diff --git a/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-api.json b/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-api.json
deleted file mode 100644
index 7b8c03f1ef75..000000000000
--- a/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-api.json
+++ /dev/null
@@ -1,3158 +0,0 @@
-{
- "discoveryVersion": "v1",
- "version_module": true,
- "schemas": {
- "SetMaintenancePolicyRequest": {
- "type": "object",
- "properties": {
- "clusterId": {
- "description": "The name of the cluster to update.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "maintenancePolicy": {
- "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy.",
- "$ref": "MaintenancePolicy"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
- "type": "string"
- }
- },
- "id": "SetMaintenancePolicyRequest",
- "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster."
- },
- "SetNodePoolManagementRequest": {
- "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "management": {
- "$ref": "NodeManagement",
- "description": "NodeManagement configuration for the node pool."
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead."
- }
- },
- "id": "SetNodePoolManagementRequest"
- },
- "Empty": {
- "type": "object",
- "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 `{}`."
- },
- "MasterAuthorizedNetworksConfig": {
- "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
- "type": "object",
- "properties": {
- "enabled": {
- "description": "Whether or not master authorized networks is enabled.",
- "type": "boolean"
- },
- "cidrBlocks": {
- "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
- "items": {
- "$ref": "CidrBlock"
- },
- "type": "array"
- }
- },
- "id": "MasterAuthorizedNetworksConfig"
- },
- "CreateClusterRequest": {
- "id": "CreateClusterRequest",
- "description": "CreateClusterRequest creates a cluster.",
- "type": "object",
- "properties": {
- "cluster": {
- "$ref": "Cluster",
- "description": "A [cluster\nresource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string"
- }
- }
- },
- "ListNodePoolsResponse": {
- "properties": {
- "nodePools": {
- "description": "A list of node pools for a cluster.",
- "items": {
- "$ref": "NodePool"
- },
- "type": "array"
- }
- },
- "id": "ListNodePoolsResponse",
- "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
- "type": "object"
- },
- "CompleteIPRotationRequest": {
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- }
- },
- "id": "CompleteIPRotationRequest",
- "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.",
- "type": "object"
- },
- "StartIPRotationRequest": {
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "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"
- },
- "AcceleratorConfig": {
- "description": "AcceleratorConfig represents a Hardware Accelerator request.",
- "type": "object",
- "properties": {
- "acceleratorType": {
- "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
- "type": "string"
- },
- "acceleratorCount": {
- "format": "int64",
- "description": "The number of the accelerator cards exposed to an instance.",
- "type": "string"
- }
- },
- "id": "AcceleratorConfig"
- },
- "NodePool": {
- "type": "object",
- "properties": {
- "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": {
- "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."
- ],
- "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"
- },
- "config": {
- "$ref": "NodeConfig",
- "description": "The node configuration of the pool."
- },
- "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": {
- "description": "NodeManagement configuration for this NodePool.",
- "$ref": "NodeManagement"
- },
- "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"
- }
- },
- "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."
- },
- "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": {
- "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"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "resourceLabels": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "The labels to set for that cluster.",
- "type": "object"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLabelsRequest"
- },
- "NodeManagement": {
- "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
- "type": "object",
- "properties": {
- "autoRepair": {
- "description": "Whether the nodes will be automatically repaired.",
- "type": "boolean"
- },
- "autoUpgrade": {
- "type": "boolean",
- "description": "Whether the nodes will be automatically upgraded."
- },
- "upgradeOptions": {
- "$ref": "AutoUpgradeOptions",
- "description": "Specifies the Auto Upgrade knobs for the node pool."
- }
- },
- "id": "NodeManagement"
- },
- "NodeTaint": {
- "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "type": "object",
- "properties": {
- "effect": {
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "NoSchedule",
- "PreferNoSchedule",
- "NoExecute"
- ],
- "enum": [
- "EFFECT_UNSPECIFIED",
- "NO_SCHEDULE",
- "PREFER_NO_SCHEDULE",
- "NO_EXECUTE"
- ],
- "description": "Effect for taint."
- },
- "value": {
- "type": "string",
- "description": "Value for taint."
- },
- "key": {
- "description": "Key for taint.",
- "type": "string"
- }
- },
- "id": "NodeTaint"
- },
- "CancelOperationRequest": {
- "description": "CancelOperationRequest cancels a single operation.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "CancelOperationRequest"
- },
- "SetLegacyAbacRequest": {
- "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "enabled": {
- "description": "Whether ABAC authorization will be enabled in the cluster.",
- "type": "boolean"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLegacyAbacRequest"
- },
- "KubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "KubernetesDashboard"
- },
- "Operation": {
- "type": "object",
- "properties": {
- "endTime": {
- "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "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": {
- "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",
- "SET_MAINTENANCE_POLICY"
- ],
- "description": "The operation type.",
- "type": "string",
- "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.",
- "Set the maintenance policy."
- ]
- },
- "startTime": {
- "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PENDING",
- "RUNNING",
- "DONE",
- "ABORTING"
- ],
- "description": "The current status of the operation."
- },
- "statusMessage": {
- "description": "If an error has occurred, a textual description of the error.",
- "type": "string"
- },
- "name": {
- "description": "The server-assigned ID for the operation.",
- "type": "string"
- },
- "selfLink": {
- "description": "Server-defined URL for the resource.",
- "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."
- },
- "AddonsConfig": {
- "description": "Configuration for the addons that can be automatically spun up in the\ncluster, enabling additional functionality.",
- "type": "object",
- "properties": {
- "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.",
- "$ref": "HorizontalPodAutoscaling"
- },
- "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."
- },
- "kubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "$ref": "KubernetesDashboard"
- },
- "networkPolicyConfig": {
- "$ref": "NetworkPolicyConfig",
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes."
- }
- },
- "id": "AddonsConfig"
- },
- "MaintenanceWindow": {
- "properties": {
- "dailyMaintenanceWindow": {
- "$ref": "DailyMaintenanceWindow",
- "description": "DailyMaintenanceWindow specifies a daily maintenance operation window."
- }
- },
- "id": "MaintenanceWindow",
- "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
- "type": "object"
- },
- "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",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- }
- },
- "id": "RollbackNodePoolUpgradeRequest"
- },
- "NetworkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether NetworkPolicy is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicyConfig"
- },
- "UpdateClusterRequest": {
- "id": "UpdateClusterRequest",
- "description": "UpdateClusterRequest updates the settings of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "ClusterUpdate",
- "description": "A description of the update."
- },
- "name": {
- "type": "string",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "NetworkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
- "type": "object",
- "properties": {
- "provider": {
- "description": "The selected network policy provider.",
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "Tigera (Calico Felix)."
- ],
- "enum": [
- "PROVIDER_UNSPECIFIED",
- "CALICO"
- ]
- },
- "enabled": {
- "description": "Whether network policy is enabled on the cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicy"
- },
- "Cluster": {
- "properties": {
- "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"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "nodePools": {
- "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"
- },
- "type": "array"
- },
- "instanceGroupUrls": {
- "description": "[Output only] The resource URLs of [instance\ngroups](/compute/docs/instance-groups/) associated with this\ncluster.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "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"
- },
- "networkPolicy": {
- "$ref": "NetworkPolicy",
- "description": "Configuration options for the NetworkPolicy feature."
- },
- "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"
- },
- "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"
- },
- "zone": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "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"
- },
- "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"
- },
- "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"
- },
- "masterAuthorizedNetworksConfig": {
- "description": "The configuration options for master authorized networks feature.",
- "$ref": "MasterAuthorizedNetworksConfig"
- },
- "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."
- },
- "podSecurityPolicyConfig": {
- "description": "Configuration for the PodSecurityPolicy feature.",
- "$ref": "PodSecurityPolicyConfig"
- },
- "addonsConfig": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "subnetwork": {
- "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
- "type": "string"
- },
- "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"
- },
- "maintenancePolicy": {
- "$ref": "MaintenancePolicy",
- "description": "Configure the maintenance policy for this cluster."
- },
- "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"
- },
- "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."
- },
- "autoscaling": {
- "$ref": "ClusterAutoscaling",
- "description": "Cluster-level autoscaling configuration."
- }
- },
- "id": "Cluster",
- "description": "A Google Container Engine cluster.",
- "type": "object"
- },
- "ListOperationsResponse": {
- "id": "ListOperationsResponse",
- "description": "ListOperationsResponse is the result of ListOperationsRequest.",
- "type": "object",
- "properties": {
- "operations": {
- "description": "A list of operations in the project in the specified zone.",
- "items": {
- "$ref": "Operation"
- },
- "type": "array"
- },
- "missingZones": {
- "description": "If any zones are listed here, the list of operations returned\nmay be missing the operations from those zones.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- }
- },
- "CreateNodePoolRequest": {
- "description": "CreateNodePoolRequest creates a node pool for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "nodePool": {
- "description": "The node pool to create.",
- "$ref": "NodePool"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- },
- "id": "CreateNodePoolRequest"
- },
- "CidrBlock": {
- "type": "object",
- "properties": {
- "cidrBlock": {
- "description": "cidr_block must be specified in CIDR notation.",
- "type": "string"
- },
- "displayName": {
- "description": "display_name is an optional field for users to identify CIDR blocks.",
- "type": "string"
- }
- },
- "id": "CidrBlock",
- "description": "CidrBlock contains an optional name and one CIDR block."
- },
- "ServerConfig": {
- "description": "Container Engine service configuration.",
- "type": "object",
- "properties": {
- "validMasterVersions": {
- "description": "List of valid master versions.",
- "items": {
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "validNodeVersions": {
- "description": "List of valid node upgrade target versions.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ServerConfig"
- },
- "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": {
- "clientCertificateConfig": {
- "$ref": "ClientCertificateConfig",
- "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
- },
- "password": {
- "type": "string",
- "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."
- },
- "clientKey": {
- "description": "[Output only] Base64-encoded private key used by clients to authenticate\nto the cluster endpoint.",
- "type": "string"
- },
- "clusterCaCertificate": {
- "type": "string",
- "description": "[Output only] Base64-encoded public certificate that is the root of\ntrust for the cluster."
- },
- "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"
- },
- "NodeConfig": {
- "description": "Parameters that describe the nodes in a cluster.",
- "type": "object",
- "properties": {
- "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"
- },
- "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": {
- "type": "string",
- "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."
- },
- "imageType": {
- "type": "string",
- "description": "The image type to use for this node. Note that for a given image type,\nthe latest version of it will be used."
- },
- "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"
- },
- "taints": {
- "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "items": {
- "$ref": "NodeTaint"
- },
- "type": "array"
- },
- "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
- "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"
- },
- "accelerators": {
- "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
- "items": {
- "$ref": "AcceleratorConfig"
- },
- "type": "array"
- },
- "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"
- },
- "minCpuPlatform": {
- "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: "Intel Haswell"\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: "Intel Sandy Bridge"\u003c/code\u003e. For more\ninformation, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
- "type": "string"
- },
- "preemptible": {
- "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
- "type": "boolean"
- },
- "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"
- }
- },
- "id": "NodeConfig"
- },
- "DailyMaintenanceWindow": {
- "type": "object",
- "properties": {
- "duration": {
- "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
- "type": "string"
- },
- "startTime": {
- "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT.",
- "type": "string"
- }
- },
- "id": "DailyMaintenanceWindow",
- "description": "Time window specified for daily maintenance operations."
- },
- "AutoUpgradeOptions": {
- "id": "AutoUpgradeOptions",
- "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
- "type": "object",
- "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"
- }
- }
- },
- "ListClustersResponse": {
- "description": "ListClustersResponse is the result of ListClustersRequest.",
- "type": "object",
- "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"
- },
- "PodSecurityPolicyConfig": {
- "properties": {
- "enabled": {
- "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
- "type": "boolean"
- }
- },
- "id": "PodSecurityPolicyConfig",
- "description": "Configuration for the PodSecurityPolicy feature.",
- "type": "object"
- },
- "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",
- "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"
- },
- "SetNetworkPolicyRequest": {
- "id": "SetNetworkPolicyRequest",
- "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
- "type": "object",
- "properties": {
- "networkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.",
- "$ref": "NetworkPolicy"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "SetMasterAuthRequest": {
- "description": "SetMasterAuthRequest updates the admin password of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "action": {
- "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.",
- "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
- ],
- "enum": [
- "UNKNOWN",
- "SET_PASSWORD",
- "GENERATE_PASSWORD",
- "SET_USERNAME"
- ],
- "description": "The exact form of action to be taken on the master auth.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "MasterAuth",
- "description": "A description of the update."
- }
- },
- "id": "SetMasterAuthRequest"
- },
- "ClientCertificateConfig": {
- "id": "ClientCertificateConfig",
- "description": "Configuration for client certificates on the cluster.",
- "type": "object",
- "properties": {
- "issueClientCertificate": {
- "description": "Issue a client certificate.",
- "type": "boolean"
- }
- }
- },
- "NodePoolAutoscaling": {
- "description": "NodePoolAutoscaling contains information required by cluster autoscaler to\nadjust the size of the node pool to the current cluster usage.",
- "type": "object",
- "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": {
- "type": "integer",
- "format": "int32",
- "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c=\nmax_node_count."
- },
- "autoprovisioned": {
- "description": "Is autosprovisoning enabled for this node pool.",
- "type": "boolean"
- }
- },
- "id": "NodePoolAutoscaling"
- },
- "MaintenancePolicy": {
- "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
- "type": "object",
- "properties": {
- "window": {
- "$ref": "MaintenanceWindow",
- "description": "Specifies the maintenance window in which maintenance may be performed."
- }
- },
- "id": "MaintenancePolicy"
- },
- "ClusterAutoscaling": {
- "properties": {
- "enableNodeAutoprovisioning": {
- "type": "boolean",
- "description": "Enables automatic node pool creation and deletion."
- },
- "resourceLimits": {
- "items": {
- "$ref": "ResourceLimit"
- },
- "type": "array",
- "description": "Contains global constraints regarding minimum and maximum\namount of resources in the cluster."
- }
- },
- "id": "ClusterAutoscaling",
- "type": "object",
- "description": "ClusterAutoscaling contains global, per-cluster information\nrequired by Cluster Autoscaler to automatically adjust\nthe size of the cluster and create/delete\nnode pools based on the current needs."
- },
- "ResourceLimit": {
- "properties": {
- "name": {
- "type": "string",
- "description": "Resource name \"cpu\", \"memory\" or gpu-specific string."
- },
- "minimum": {
- "type": "string",
- "format": "int64",
- "description": "Minimum amount of the resource in the cluster."
- },
- "maximum": {
- "type": "string",
- "format": "int64",
- "description": "Maximum amount of the resource in the cluster."
- }
- },
- "id": "ResourceLimit",
- "type": "object",
- "description": "Contains information about amount of some resource in the cluster. For memory, value should be in GB."
- },
- "IPAllocationPolicy": {
- "properties": {
- "nodeIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "servicesIpv4Cidr": {
- "description": "This field is deprecated, use services_ipv4_cidr_block.",
- "type": "string"
- },
- "servicesSecondaryRangeName": {
- "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "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 be chosen for the new\nsubnetwork.",
- "type": "string"
- },
- "servicesIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterIpv4Cidr": {
- "description": "This field is deprecated, use cluster_ipv4_cidr_block.",
- "type": "string"
- },
- "nodeIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use node_ipv4_cidr_block."
- },
- "clusterSecondaryRangeName": {
- "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "type": "string"
- },
- "clusterIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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",
- "description": "Configuration for controlling how IPs are allocated in the cluster.",
- "type": "object"
- },
- "ClusterUpdate": {
- "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",
- "properties": {
- "desiredMasterVersion": {
- "type": "string",
- "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."
- },
- "desiredPodSecurityPolicyConfig": {
- "description": "The desired configuration options for the PodSecurityPolicy feature.",
- "$ref": "PodSecurityPolicyConfig"
- },
- "desiredMasterAuthorizedNetworksConfig": {
- "$ref": "MasterAuthorizedNetworksConfig",
- "description": "The desired configuration options for master authorized networks feature."
- },
- "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": {
- "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.",
- "$ref": "NodePoolAutoscaling"
- },
- "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": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "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"
- },
- "desiredClusterAutoscaling": {
- "description": "The desired cluster-level autoscaling configuration.",
- "$ref": "ClusterAutoscaling"
- }
- }
- },
- "HorizontalPodAutoscaling": {
- "type": "object",
- "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."
- }
- },
- "protocol": "rest",
- "icons": {
- "x32": "http://www.google.com/images/icons/product/search-32.gif",
- "x16": "http://www.google.com/images/icons/product/search-16.gif"
- },
- "canonicalName": "Container",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/cloud-platform": {
- "description": "View and manage your data across Google Cloud Platform services"
- }
- }
- }
- },
- "rootUrl": "https://container.googleapis.com/",
- "ownerDomain": "google.com",
- "name": "container",
- "batchPath": "batch",
- "title": "Google Container Engine API",
- "ownerName": "Google",
- "resources": {
- "projects": {
- "resources": {
- "locations": {
- "methods": {
- "getServerConfig": {
- "path": "v1alpha1/{+name}/serverConfig",
- "id": "container.projects.locations.getServerConfig",
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path",
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/serverConfig"
- }
- },
- "resources": {
- "clusters": {
- "methods": {
- "setNetworkPolicy": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
- "path": "v1alpha1/{+name}:setNetworkPolicy",
- "id": "container.projects.locations.clusters.setNetworkPolicy",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
- "description": "Enables/Disables Network Policy for a cluster."
- },
- "get": {
- "description": "Gets the details of a specific cluster.",
- "httpMethod": "GET",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "name"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "type": "string",
- "location": "query",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead."
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "path": "v1alpha1/{+name}",
- "id": "container.projects.locations.clusters.get"
- },
- "startIpRotation": {
- "description": "Start master IP rotation.",
- "request": {
- "$ref": "StartIPRotationRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- "path": "v1alpha1/{+name}:startIpRotation",
- "id": "container.projects.locations.clusters.startIpRotation"
- },
- "setMaintenancePolicy": {
- "request": {
- "$ref": "SetMaintenancePolicyRequest"
- },
- "description": "Sets the maintenance policy for a cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- "id": "container.projects.locations.clusters.setMaintenancePolicy",
- "path": "v1alpha1/{+name}:setMaintenancePolicy"
- },
- "delete": {
- "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.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "DELETE",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.delete",
- "path": "v1alpha1/{+name}"
- },
- "setLegacyAbac": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- "path": "v1alpha1/{+name}:setLegacyAbac",
- "id": "container.projects.locations.clusters.setLegacyAbac",
- "request": {
- "$ref": "SetLegacyAbacRequest"
- },
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
- },
- "setResourceLabels": {
- "request": {
- "$ref": "SetLabelsRequest"
- },
- "description": "Sets labels on a cluster.",
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- "path": "v1alpha1/{+name}:setResourceLabels",
- "id": "container.projects.locations.clusters.setResourceLabels"
- },
- "update": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.update",
- "path": "v1alpha1/{+name}",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "description": "Updates the settings of a specific cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "PUT"
- },
- "setMasterAuth": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- "id": "container.projects.locations.clusters.setMasterAuth",
- "path": "v1alpha1/{+name}: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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
- "httpMethod": "GET",
- "parameterOrder": [
- "parent"
- ],
- "response": {
- "$ref": "ListClustersResponse"
- },
- "parameters": {
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- "path": "v1alpha1/{+parent}/clusters",
- "id": "container.projects.locations.clusters.list"
- },
- "create": {
- "path": "v1alpha1/{+parent}/clusters",
- "id": "container.projects.locations.clusters.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": [
- "parent"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "parent": {
- "location": "path",
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters"
- },
- "completeIpRotation": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- "path": "v1alpha1/{+name}:completeIpRotation",
- "id": "container.projects.locations.clusters.completeIpRotation",
- "description": "Completes master IP rotation.",
- "request": {
- "$ref": "CompleteIPRotationRequest"
- }
- }
- },
- "resources": {
- "nodePools": {
- "methods": {
- "get": {
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "path": "v1alpha1/{+name}",
- "id": "container.projects.locations.clusters.nodePools.get",
- "description": "Retrieves the node pool requested.",
- "httpMethod": "GET",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "NodePool"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "nodePoolId": {
- "location": "query",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "setManagement": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- "path": "v1alpha1/{+name}:setManagement",
- "id": "container.projects.locations.clusters.nodePools.setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- }
- },
- "delete": {
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "id": "container.projects.locations.clusters.nodePools.delete",
- "path": "v1alpha1/{+name}",
- "description": "Deletes a node pool from a cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "DELETE",
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "list": {
- "id": "container.projects.locations.clusters.nodePools.list",
- "path": "v1alpha1/{+parent}/nodePools",
- "description": "Lists the node pools for a cluster.",
- "response": {
- "$ref": "ListNodePoolsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "location": "path",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- },
- "rollback": {
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
- },
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- "id": "container.projects.locations.clusters.nodePools.rollback",
- "path": "v1alpha1/{+name}:rollback"
- },
- "create": {
- "path": "v1alpha1/{+parent}/nodePools",
- "id": "container.projects.locations.clusters.nodePools.create",
- "description": "Creates a node pool for a cluster.",
- "request": {
- "$ref": "CreateNodePoolRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "parent"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "parent": {
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- }
- }
- }
- }
- },
- "operations": {
- "methods": {
- "cancel": {
- "path": "v1alpha1/{+name}:cancel",
- "id": "container.projects.locations.operations.cancel",
- "description": "Cancels the specified operation.",
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Empty"
- },
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel"
- },
- "get": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "operationId": {
- "location": "query",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "name": {
- "location": "path",
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- "id": "container.projects.locations.operations.get",
- "path": "v1alpha1/{+name}",
- "description": "Gets the specified operation."
- },
- "list": {
- "description": "Lists all operations in a project in a specific zone or all zones.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
- "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).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "parent": {
- "location": "path",
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations",
- "path": "v1alpha1/{+parent}/operations",
- "id": "container.projects.locations.operations.list"
- }
- }
- }
- }
- },
- "zones": {
- "methods": {
- "getServerconfig": {
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- "id": "container.projects.zones.getServerconfig"
- }
- },
- "resources": {
- "clusters": {
- "methods": {
- "create": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.create",
- "request": {
- "$ref": "CreateClusterRequest"
- },
- "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.",
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters"
- },
- "resourceLabels": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "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).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "id": "container.projects.zones.clusters.resourceLabels",
- "description": "Sets labels on a cluster.",
- "request": {
- "$ref": "SetLabelsRequest"
- }
- },
- "completeIpRotation": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "id": "container.projects.zones.clusters.completeIpRotation",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "request": {
- "$ref": "CompleteIPRotationRequest"
- },
- "description": "Completes master IP rotation.",
- "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://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- }
- },
- "get": {
- "description": "Gets the details of a specific cluster.",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.get",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}"
- },
- "legacyAbac": {
- "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- "request": {
- "$ref": "SetLegacyAbacRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "id": "container.projects.zones.clusters.legacyAbac",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac"
- },
- "setNetworkPolicy": {
- "id": "container.projects.zones.clusters.setNetworkPolicy",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
- "description": "Enables/Disables Network Policy for 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).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy"
- },
- "startIpRotation": {
- "description": "Start master IP rotation.",
- "request": {
- "$ref": "StartIPRotationRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "id": "container.projects.zones.clusters.startIpRotation",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation"
- },
- "setMaintenancePolicy": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "id": "container.projects.zones.clusters.setMaintenancePolicy",
- "request": {
- "$ref": "SetMaintenancePolicyRequest"
- },
- "description": "Sets the maintenance policy for a cluster.",
- "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": {
- "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"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy"
- },
- "delete": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.delete",
- "path": "v1alpha1/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.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "DELETE",
- "parameters": {
- "name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "update": {
- "description": "Updates the settings of a specific cluster.",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "httpMethod": "PUT",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.update"
- },
- "setMasterAuth": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "id": "container.projects.zones.clusters.setMasterAuth",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}: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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "response": {
- "$ref": "ListClustersResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "httpMethod": "GET",
- "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).\nThis field is deprecated, use parent instead.",
- "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, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "parent": {
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.list",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones."
- }
- },
- "resources": {
- "nodePools": {
- "methods": {
- "setManagement": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "id": "container.projects.zones.clusters.nodePools.setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "delete": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.delete",
- "description": "Deletes a node pool from a cluster.",
- "httpMethod": "DELETE",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "parameters": {
- "zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}"
- },
- "list": {
- "description": "Lists the node pools for a cluster.",
- "response": {
- "$ref": "ListNodePoolsResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "GET",
- "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).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "parent": {
- "type": "string",
- "location": "query",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.list",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools"
- },
- "rollback": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- "id": "container.projects.zones.clusters.nodePools.rollback",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
- },
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- }
- },
- "create": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.create",
- "description": "Creates a node pool for a cluster.",
- "request": {
- "$ref": "CreateNodePoolRequest"
- }
- },
- "get": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.get",
- "description": "Retrieves the node pool requested.",
- "httpMethod": "GET",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
- "$ref": "NodePool"
- },
- "parameters": {
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
- }
- }
- }
- },
- "operations": {
- "methods": {
- "cancel": {
- "response": {
- "$ref": "Empty"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "id": "container.projects.zones.operations.cancel",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "description": "Cancels the specified operation."
- },
- "get": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "location": "query"
- },
- "operationId": {
- "location": "path",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "id": "container.projects.zones.operations.get",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "description": "Gets the specified operation."
- },
- "list": {
- "httpMethod": "GET",
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "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).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "parent": {
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- "path": "v1alpha1/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."
- }
- }
- }
- }
- }
- }
- }
- },
- "parameters": {
- "pp": {
- "location": "query",
- "description": "Pretty-print response.",
- "default": "true",
- "type": "boolean"
- },
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
- "type": "string",
- "location": "query"
- },
- "bearer_token": {
- "location": "query",
- "description": "OAuth bearer token.",
- "type": "string"
- },
- "upload_protocol": {
- "location": "query",
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "type": "string"
- },
- "prettyPrint": {
- "location": "query",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "type": "boolean"
- },
- "uploadType": {
- "location": "query",
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "type": "string"
- },
- "fields": {
- "location": "query",
- "description": "Selector specifying which fields to include in a partial response.",
- "type": "string"
- },
- "callback": {
- "type": "string",
- "location": "query",
- "description": "JSONP"
- },
- "$.xgafv": {
- "location": "query",
- "enum": [
- "1",
- "2"
- ],
- "description": "V1 error format.",
- "type": "string",
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ]
- },
- "alt": {
- "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",
- "description": "Data format for response.",
- "default": "json"
- },
- "access_token": {
- "type": "string",
- "location": "query",
- "description": "OAuth access token."
- },
- "key": {
- "location": "query",
- "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"
- },
- "quotaUser": {
- "location": "query",
- "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"
- }
- },
- "version": "v1alpha1",
- "baseUrl": "https://container.googleapis.com/",
- "kind": "discovery#restDescription",
- "description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
- "servicePath": "",
- "basePath": "",
- "id": "container:v1alpha1",
- "documentationLink": "https://cloud.google.com/container-engine/",
- "revision": "20170929"
-}
diff --git a/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-gen.go b/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-gen.go
deleted file mode 100644
index d144ca095e2b..000000000000
--- a/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/container-gen.go
+++ /dev/null
@@ -1,9749 +0,0 @@
-// Package container provides access to the Google Container Engine API.
-//
-// See https://cloud.google.com/container-engine/
-//
-// Usage example:
-//
-// import "google.golang.org/api/container/v1alpha1"
-// ...
-// containerService, err := container.New(oauthHttpClient)
-package container // import "google.golang.org/api/container/v1alpha1"
-
-import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- context "golang.org/x/net/context"
- ctxhttp "golang.org/x/net/context/ctxhttp"
- gensupport "google.golang.org/api/gensupport"
- googleapi "google.golang.org/api/googleapi"
- "io"
- "net/http"
- "net/url"
- "strconv"
- "strings"
-)
-
-// Always reference these packages, just in case the auto-generated code
-// below doesn't.
-var _ = bytes.NewBuffer
-var _ = strconv.Itoa
-var _ = fmt.Sprintf
-var _ = json.NewDecoder
-var _ = io.Copy
-var _ = url.Parse
-var _ = gensupport.MarshalJSON
-var _ = googleapi.Version
-var _ = errors.New
-var _ = strings.Replace
-var _ = context.Canceled
-var _ = ctxhttp.Do
-
-const apiId = "container:v1alpha1"
-const apiName = "container"
-const apiVersion = "v1alpha1"
-const basePath = "https://container.googleapis.com/"
-
-// OAuth2 scopes used by this API.
-const (
- // View and manage your data across Google Cloud Platform services
- CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
-)
-
-func New(client *http.Client) (*Service, error) {
- if client == nil {
- return nil, errors.New("client is nil")
- }
- s := &Service{client: client, BasePath: basePath}
- s.Projects = NewProjectsService(s)
- return s, nil
-}
-
-type Service struct {
- client *http.Client
- BasePath string // API endpoint base URL
- UserAgent string // optional additional User-Agent fragment
-
- Projects *ProjectsService
-}
-
-func (s *Service) userAgent() string {
- if s.UserAgent == "" {
- return googleapi.UserAgent
- }
- return googleapi.UserAgent + " " + s.UserAgent
-}
-
-func NewProjectsService(s *Service) *ProjectsService {
- rs := &ProjectsService{s: s}
- rs.Locations = NewProjectsLocationsService(s)
- rs.Zones = NewProjectsZonesService(s)
- return rs
-}
-
-type ProjectsService struct {
- s *Service
-
- Locations *ProjectsLocationsService
-
- Zones *ProjectsZonesService
-}
-
-func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
- rs := &ProjectsLocationsService{s: s}
- rs.Clusters = NewProjectsLocationsClustersService(s)
- rs.Operations = NewProjectsLocationsOperationsService(s)
- return rs
-}
-
-type ProjectsLocationsService struct {
- s *Service
-
- Clusters *ProjectsLocationsClustersService
-
- Operations *ProjectsLocationsOperationsService
-}
-
-func NewProjectsLocationsClustersService(s *Service) *ProjectsLocationsClustersService {
- rs := &ProjectsLocationsClustersService{s: s}
- rs.NodePools = NewProjectsLocationsClustersNodePoolsService(s)
- return rs
-}
-
-type ProjectsLocationsClustersService struct {
- s *Service
-
- NodePools *ProjectsLocationsClustersNodePoolsService
-}
-
-func NewProjectsLocationsClustersNodePoolsService(s *Service) *ProjectsLocationsClustersNodePoolsService {
- rs := &ProjectsLocationsClustersNodePoolsService{s: s}
- return rs
-}
-
-type ProjectsLocationsClustersNodePoolsService struct {
- s *Service
-}
-
-func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
- rs := &ProjectsLocationsOperationsService{s: s}
- return rs
-}
-
-type ProjectsLocationsOperationsService struct {
- s *Service
-}
-
-func NewProjectsZonesService(s *Service) *ProjectsZonesService {
- rs := &ProjectsZonesService{s: s}
- rs.Clusters = NewProjectsZonesClustersService(s)
- rs.Operations = NewProjectsZonesOperationsService(s)
- return rs
-}
-
-type ProjectsZonesService struct {
- s *Service
-
- Clusters *ProjectsZonesClustersService
-
- Operations *ProjectsZonesOperationsService
-}
-
-func NewProjectsZonesClustersService(s *Service) *ProjectsZonesClustersService {
- rs := &ProjectsZonesClustersService{s: s}
- rs.NodePools = NewProjectsZonesClustersNodePoolsService(s)
- return rs
-}
-
-type ProjectsZonesClustersService struct {
- s *Service
-
- NodePools *ProjectsZonesClustersNodePoolsService
-}
-
-func NewProjectsZonesClustersNodePoolsService(s *Service) *ProjectsZonesClustersNodePoolsService {
- rs := &ProjectsZonesClustersNodePoolsService{s: s}
- return rs
-}
-
-type ProjectsZonesClustersNodePoolsService struct {
- s *Service
-}
-
-func NewProjectsZonesOperationsService(s *Service) *ProjectsZonesOperationsService {
- rs := &ProjectsZonesOperationsService{s: s}
- return rs
-}
-
-type ProjectsZonesOperationsService struct {
- s *Service
-}
-
-// AcceleratorConfig: AcceleratorConfig represents a Hardware
-// Accelerator request.
-type AcceleratorConfig struct {
- // AcceleratorCount: The number of the accelerator cards exposed to an
- // instance.
- AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"`
-
- // AcceleratorType: The accelerator type resource name. List of
- // supported accelerators
- // [here](/compute/docs/gpus/#Introduction)
- AcceleratorType string `json:"acceleratorType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "AcceleratorCount") 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. "AcceleratorCount") 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 *AcceleratorConfig) MarshalJSON() ([]byte, error) {
- type noMethod AcceleratorConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// AddonsConfig: Configuration for the addons that can be automatically
-// 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.
- 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.
- HttpLoadBalancing *HttpLoadBalancing `json:"httpLoadBalancing,omitempty"`
-
- // KubernetesDashboard: Configuration for the Kubernetes Dashboard.
- KubernetesDashboard *KubernetesDashboard `json:"kubernetesDashboard,omitempty"`
-
- // NetworkPolicyConfig: Configuration for NetworkPolicy. This only
- // tracks whether the addon
- // is enabled or not on the Master, it does not track whether network
- // policy
- // is enabled for the nodes.
- NetworkPolicyConfig *NetworkPolicyConfig `json:"networkPolicyConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "HorizontalPodAutoscaling") 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. "HorizontalPodAutoscaling")
- // 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 *AddonsConfig) MarshalJSON() ([]byte, error) {
- type noMethod AddonsConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// AutoUpgradeOptions: AutoUpgradeOptions defines the set of options for
-// 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.
- AutoUpgradeStartTime string `json:"autoUpgradeStartTime,omitempty"`
-
- // Description: [Output only] This field is set when upgrades are about
- // to commence
- // with the description of the upgrade.
- Description string `json:"description,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "AutoUpgradeStartTime") 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. "AutoUpgradeStartTime") 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 *AutoUpgradeOptions) MarshalJSON() ([]byte, error) {
- type noMethod AutoUpgradeOptions
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CancelOperationRequest: CancelOperationRequest cancels a single
-// operation.
-type CancelOperationRequest struct {
- // Name: The name (project, location, operation id) of the operation to
- // cancel.
- // Specified in the format 'projects/*/locations/*/operations/*'.
- Name string `json:"name,omitempty"`
-
- // OperationId: The server-assigned `name` of the operation.
- // This field is deprecated, use name instead.
- OperationId string `json:"operationId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the operation
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *CancelOperationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CancelOperationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CidrBlock: CidrBlock contains an optional name and one CIDR block.
-type CidrBlock struct {
- // CidrBlock: cidr_block must be specified in CIDR notation.
- CidrBlock string `json:"cidrBlock,omitempty"`
-
- // DisplayName: display_name is an optional field for users to identify
- // CIDR blocks.
- DisplayName string `json:"displayName,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CidrBlock") 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. "CidrBlock") 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 *CidrBlock) MarshalJSON() ([]byte, error) {
- type noMethod CidrBlock
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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
- // in the cluster.
- AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
-
- // Autoscaling: Cluster-level autoscaling configuration.
- Autoscaling *ClusterAutoscaling `json:"autoscaling,omitempty"`
-
- // ClusterIpv4Cidr: 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`.
- ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
-
- // 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"`
-
- // CurrentMasterVersion: [Output only] The current software version of
- // the master endpoint.
- CurrentMasterVersion string `json:"currentMasterVersion,omitempty"`
-
- // CurrentNodeCount: [Output only] The number of nodes currently in the
- // cluster.
- 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.
- 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.
- 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 string `json:"endpoint,omitempty"`
-
- // 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: 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
- // 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 []string `json:"instanceGroupUrls,omitempty"`
-
- // IpAllocationPolicy: Configuration for cluster IP allocation.
- IpAllocationPolicy *IPAllocationPolicy `json:"ipAllocationPolicy,omitempty"`
-
- // Location: [Output only] The name of the Google Compute
- // Engine
- // [zone](/compute/docs/regions-zones/regions-zones#available)
- // or
- // [region](/compute/docs/regions-zones/regions-zones#available) in
- // which
- // the cluster resides.
- Location string `json:"location,omitempty"`
-
- // Locations: The list of Google Compute
- // Engine
- // [locations](/compute/docs/zones#available) in which the cluster's
- // 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.
- LoggingService string `json:"loggingService,omitempty"`
-
- // MaintenancePolicy: Configure the maintenance policy for this cluster.
- MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
-
- // MasterAuth: The authentication information for accessing the master
- // endpoint.
- MasterAuth *MasterAuth `json:"masterAuth,omitempty"`
-
- // MasterAuthorizedNetworksConfig: The configuration options for master
- // authorized networks feature.
- MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,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.
- 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.
- 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 string `json:"network,omitempty"`
-
- // 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.
- 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
- // specified.
- NodePools []*NodePool `json:"nodePools,omitempty"`
-
- // PodSecurityPolicyConfig: Configuration for the PodSecurityPolicy
- // feature.
- PodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"podSecurityPolicyConfig,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
- // [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.
- ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
-
- // Status: [Output only] The current status of this cluster.
- //
- // Possible values:
- // "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.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // 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.
- // This field is deprecated, use location instead.
- Zone string `json:"zone,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // 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
- // 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. "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 *Cluster) MarshalJSON() ([]byte, error) {
- type noMethod Cluster
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ClusterAutoscaling: ClusterAutoscaling contains global, per-cluster
-// information
-// required by Cluster Autoscaler to automatically adjust
-// the size of the cluster and create/delete
-// node pools based on the current needs.
-type ClusterAutoscaling struct {
- // EnableNodeAutoprovisioning: Enables automatic node pool creation and
- // deletion.
- EnableNodeAutoprovisioning bool `json:"enableNodeAutoprovisioning,omitempty"`
-
- // ResourceLimits: Contains global constraints regarding minimum and
- // maximum
- // amount of resources in the cluster.
- ResourceLimits []*ResourceLimit `json:"resourceLimits,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "EnableNodeAutoprovisioning") 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.
- // "EnableNodeAutoprovisioning") 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 *ClusterAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod ClusterAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-type ClusterUpdate struct {
- // DesiredAddonsConfig: Configurations for the various addons available
- // to run in the cluster.
- DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"`
-
- // DesiredClusterAutoscaling: The desired cluster-level autoscaling
- // configuration.
- DesiredClusterAutoscaling *ClusterAutoscaling `json:"desiredClusterAutoscaling,omitempty"`
-
- // 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
- // [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.
- DesiredLocations []string `json:"desiredLocations,omitempty"`
-
- // DesiredMasterAuthorizedNetworksConfig: The desired configuration
- // options for master authorized networks feature.
- DesiredMasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"desiredMasterAuthorizedNetworksConfig,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.
- 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
- 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.
- DesiredNodePoolAutoscaling *NodePoolAutoscaling `json:"desiredNodePoolAutoscaling,omitempty"`
-
- // DesiredNodePoolId: 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.
- 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.
- DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
-
- // DesiredPodSecurityPolicyConfig: The desired configuration options for
- // the PodSecurityPolicy feature.
- DesiredPodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"desiredPodSecurityPolicyConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DesiredAddonsConfig")
- // 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. "DesiredAddonsConfig") 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 *ClusterUpdate) MarshalJSON() ([]byte, error) {
- type noMethod ClusterUpdate
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CompleteIPRotationRequest: CompleteIPRotationRequest moves the
-// cluster master back into single-IP mode.
-type CompleteIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to
- // complete IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *CompleteIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CompleteIPRotationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CreateClusterRequest: CreateClusterRequest creates a cluster.
-type CreateClusterRequest struct {
- // Cluster: A
- // [cluster
- // resource](/container-engine/reference/rest/v1alpha1/projects.
- // zones.clusters)
- Cluster *Cluster `json:"cluster,omitempty"`
-
- // Parent: The parent (project and location) where the cluster will be
- // created.
- // Specified in the format 'projects/*/locations/*'.
- Parent string `json:"parent,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use parent instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use parent instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Cluster") 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. "Cluster") 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 *CreateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateClusterRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CreateNodePoolRequest: CreateNodePoolRequest creates a node pool for
-// a cluster.
-type CreateNodePoolRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use parent instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // NodePool: The node pool to create.
- NodePool *NodePool `json:"nodePool,omitempty"`
-
- // Parent: The parent (project, location, cluster id) where the node
- // pool will be created.
- // Specified in the format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Parent string `json:"parent,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use parent instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use parent instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateNodePoolRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// DailyMaintenanceWindow: Time window specified for daily maintenance
-// operations.
-type DailyMaintenanceWindow struct {
- // Duration: [Output only] Duration of the time window, automatically
- // chosen to be
- // smallest possible in the given scenario.
- Duration string `json:"duration,omitempty"`
-
- // StartTime: Time within the maintenance window to start the
- // maintenance operations.
- // It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59]
- // GMT.
- StartTime string `json:"startTime,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod DailyMaintenanceWindow
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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 `{}`.
-type Empty struct {
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-}
-
-// 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.
-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.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod HorizontalPodAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-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.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
- type noMethod HttpLoadBalancing
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// IPAllocationPolicy: Configuration for controlling how IPs are
-// allocated in the cluster.
-type IPAllocationPolicy struct {
- // ClusterIpv4Cidr: This field is deprecated, use
- // cluster_ipv4_cidr_block.
- ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
-
- // ClusterIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- ClusterIpv4CidrBlock string `json:"clusterIpv4CidrBlock,omitempty"`
-
- // ClusterSecondaryRangeName: The name of the secondary range to be used
- // for the cluster CIDR
- // block. The secondary range will be used for pod IP
- // addresses. This must be an existing secondary range associated
- // with the cluster subnetwork.
- //
- // This field is only applicable with use_ip_aliases
- // and
- // create_subnetwork is false.
- ClusterSecondaryRangeName string `json:"clusterSecondaryRangeName,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: This field is deprecated, use node_ipv4_cidr_block.
- NodeIpv4Cidr string `json:"nodeIpv4Cidr,omitempty"`
-
- // NodeIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- NodeIpv4CidrBlock string `json:"nodeIpv4CidrBlock,omitempty"`
-
- // ServicesIpv4Cidr: This field is deprecated, use
- // services_ipv4_cidr_block.
- ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
-
- // ServicesIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- ServicesIpv4CidrBlock string `json:"servicesIpv4CidrBlock,omitempty"`
-
- // ServicesSecondaryRangeName: The name of the secondary range to be
- // used as for the services
- // CIDR block. The secondary range will be used for service
- // ClusterIPs. This must be an existing secondary range associated
- // with the cluster subnetwork.
- //
- // This field is only applicable with use_ip_aliases
- // and
- // create_subnetwork is false.
- ServicesSecondaryRangeName string `json:"servicesSecondaryRangeName,omitempty"`
-
- // SubnetworkName: A custom subnetwork name to be used if
- // `create_subnetwork` is true. If
- // this field is empty, then an automatic name will be chosen 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)
-}
-
-// KubernetesDashboard: Configuration for the Kubernetes Dashboard.
-type KubernetesDashboard struct {
- // Disabled: Whether the Kubernetes Dashboard is enabled for this
- // cluster.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *KubernetesDashboard) MarshalJSON() ([]byte, error) {
- type noMethod KubernetesDashboard
- 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
- // 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.
- MissingZones []string `json:"missingZones,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Clusters") 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. "Clusters") 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 *ListClustersResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListClustersResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ListNodePoolsResponse: ListNodePoolsResponse is the result of
-// ListNodePoolsRequest.
-type ListNodePoolsResponse struct {
- // NodePools: A list of node pools for a cluster.
- NodePools []*NodePool `json:"nodePools,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "NodePools") 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. "NodePools") 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 *ListNodePoolsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListNodePoolsResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ListOperationsResponse: ListOperationsResponse is the result of
-// ListOperationsRequest.
-type ListOperationsResponse struct {
- // MissingZones: If any zones are listed here, the list of operations
- // 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
- // zone.
- Operations []*Operation `json:"operations,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "MissingZones") 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. "MissingZones") 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 *ListOperationsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListOperationsResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MaintenancePolicy: MaintenancePolicy defines the maintenance policy
-// to be used for the cluster.
-type MaintenancePolicy struct {
- // Window: Specifies the maintenance window in which maintenance may be
- // performed.
- Window *MaintenanceWindow `json:"window,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Window") 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. "Window") 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 *MaintenancePolicy) MarshalJSON() ([]byte, error) {
- type noMethod MaintenancePolicy
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MaintenanceWindow: MaintenanceWindow defines the maintenance window
-// to be used for the cluster.
-type MaintenanceWindow struct {
- // DailyMaintenanceWindow: DailyMaintenanceWindow specifies a daily
- // maintenance operation window.
- DailyMaintenanceWindow *DailyMaintenanceWindow `json:"dailyMaintenanceWindow,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "DailyMaintenanceWindow") 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. "DailyMaintenanceWindow")
- // 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 *MaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod MaintenanceWindow
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MasterAuth: The authentication information for accessing the master
-// 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.
- 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.
- ClientKey string `json:"clientKey,omitempty"`
-
- // ClusterCaCertificate: [Output only] Base64-encoded public certificate
- // 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. 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")
- // 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. "ClientCertificate") 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 *MasterAuth) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuth
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MasterAuthorizedNetworksConfig: Configuration options for the master
-// authorized networks feature. Enabled
-// master authorized networks will disallow all external traffic to
-// access
-// Kubernetes master through HTTPS except traffic from the given CIDR
-// blocks,
-// Google Compute Engine Public IPs and Google Prod IPs.
-type MasterAuthorizedNetworksConfig struct {
- // CidrBlocks: cidr_blocks define up to 10 external networks that could
- // access
- // Kubernetes master through HTTPS.
- CidrBlocks []*CidrBlock `json:"cidrBlocks,omitempty"`
-
- // Enabled: Whether or not master authorized networks is enabled.
- Enabled bool `json:"enabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CidrBlocks") 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. "CidrBlocks") 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 *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuthorizedNetworksConfig
- raw := noMethod(*s)
- 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:
- // "PROVIDER_UNSPECIFIED" - 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)
-}
-
-// NetworkPolicyConfig: Configuration for NetworkPolicy. This only
-// tracks whether the addon
-// is enabled or not on the Master, it does not track whether network
-// policy
-// is enabled for the nodes.
-type NetworkPolicyConfig struct {
- // Disabled: Whether NetworkPolicy is enabled for this cluster.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *NetworkPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicyConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeConfig: Parameters that describe the nodes in a cluster.
-type NodeConfig struct {
- // Accelerators: A list of hardware accelerators to be attached to each
- // node.
- // See https://cloud.google.com/compute/docs/gpus for more information
- // about
- // support for GPUs.
- Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"`
-
- // 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.
- 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:
- // https://kubernetes.io/docs/concepts/overview/working-with-objects
- // /labels/
- 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_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 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.
- Metadata map[string]string `json:"metadata,omitempty"`
-
- // MinCpuPlatform: Minimum CPU platform to be used by this instance. The
- // instance may be
- // scheduled on the specified or newer CPU platform. Applicable values
- // are the
- // friendly names of CPU platforms, such as
- // minCpuPlatform: "Intel Haswell"
- // or
- // minCpuPlatform: "Intel Sandy Bridge"
. For
- // more
- // information, read [how to specify min CPU
- // platform](https://cloud.google.com/compute/docs/instances/specify-min-
- // cpu-platform)
- MinCpuPlatform string `json:"minCpuPlatform,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.
- 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.
- 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.
- 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.
- Tags []string `json:"tags,omitempty"`
-
- // Taints: List of kubernetes taints to be applied to each node.
- //
- // For more information, including usage and the valid values,
- // see:
- // https://kubernetes.io/docs/concepts/configuration/taint-and-toler
- // ation/
- Taints []*NodeTaint `json:"taints,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Accelerators") 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. "Accelerators") 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 *NodeConfig) MarshalJSON() ([]byte, error) {
- type noMethod NodeConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeManagement: NodeManagement defines the set of node management
-// services turned on for the
-// node pool.
-type NodeManagement struct {
- // AutoRepair: Whether the nodes will be automatically repaired.
- AutoRepair bool `json:"autoRepair,omitempty"`
-
- // AutoUpgrade: Whether the nodes will be automatically upgraded.
- 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. "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
- // 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. "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:"-"`
-}
-
-func (s *NodeManagement) MarshalJSON() ([]byte, error) {
- type noMethod NodeManagement
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-type NodePool struct {
- // Autoscaling: Autoscaler configuration for this NodePool. Autoscaler
- // 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.
- InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
-
- // 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.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name of the node pool.
- Name string `json:"name,omitempty"`
-
- // SelfLink: [Output only] Server-defined URL for the resource.
- SelfLink string `json:"selfLink,omitempty"`
-
- // Status: [Output only] The status of the nodes in this pool instance.
- //
- // Possible values:
- // "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.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // Version: [Output only] The version of the Kubernetes of this node.
- Version string `json:"version,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // 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 *NodePool) MarshalJSON() ([]byte, error) {
- type noMethod NodePool
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodePoolAutoscaling: NodePoolAutoscaling contains information
-// required by cluster autoscaler to
-// adjust the size of the node pool to the current cluster usage.
-type NodePoolAutoscaling struct {
- // Autoprovisioned: Is autosprovisoning enabled for this node pool.
- Autoprovisioned bool `json:"autoprovisioned,omitempty"`
-
- // 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.
- MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
-
- // MinNodeCount: Minimum number of nodes in the NodePool. Must be >= 1
- // and <=
- // max_node_count.
- MinNodeCount int64 `json:"minNodeCount,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Autoprovisioned") 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. "Autoprovisioned") 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod NodePoolAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeTaint: Kubernetes taint is comprised of three fields: key, value,
-// and effect. Effect
-// can only be one of three types: NoSchedule, PreferNoSchedule or
-// NoExecute.
-//
-// For more information, including usage and the valid values,
-// see:
-// https://kubernetes.io/docs/concepts/configuration/taint-and-toler
-// ation/
-type NodeTaint struct {
- // Effect: Effect for taint.
- //
- // Possible values:
- // "EFFECT_UNSPECIFIED" - Not set
- // "NO_SCHEDULE" - NoSchedule
- // "PREFER_NO_SCHEDULE" - PreferNoSchedule
- // "NO_EXECUTE" - NoExecute
- Effect string `json:"effect,omitempty"`
-
- // Key: Key for taint.
- Key string `json:"key,omitempty"`
-
- // Value: Value for taint.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Effect") 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. "Effect") 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 *NodeTaint) MarshalJSON() ([]byte, error) {
- type noMethod NodeTaint
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// Operation: This operation resource represents operations that may
-// 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"`
-
- // EndTime: [Output only] The time the operation completed,
- // in
- // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- EndTime string `json:"endTime,omitempty"`
-
- // Location: [Output only] The name of the Google Compute
- // Engine
- // [zone](/compute/docs/regions-zones/regions-zones#available)
- // or
- // [region](/compute/docs/regions-zones/regions-zones#available) in
- // which
- // the cluster resides.
- Location string `json:"location,omitempty"`
-
- // Name: The server-assigned ID for the operation.
- Name string `json:"name,omitempty"`
-
- // OperationType: The operation type.
- //
- // Possible values:
- // "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.
- // "SET_MAINTENANCE_POLICY" - Set the maintenance policy.
- OperationType string `json:"operationType,omitempty"`
-
- // SelfLink: Server-defined URL for the resource.
- SelfLink string `json:"selfLink,omitempty"`
-
- // StartTime: [Output only] The time the operation started,
- // in
- // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- StartTime string `json:"startTime,omitempty"`
-
- // Status: The current status of the operation.
- //
- // Possible values:
- // "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
- // error.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // 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.
- // This field is deprecated, use location instead.
- Zone string `json:"zone,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 *Operation) MarshalJSON() ([]byte, error) {
- type noMethod Operation
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// PodSecurityPolicyConfig: Configuration for the PodSecurityPolicy
-// feature.
-type PodSecurityPolicyConfig struct {
- // Enabled: Enable the PodSecurityPolicy controller for this cluster. If
- // enabled, pods
- // must be valid under a PodSecurityPolicy to be created.
- 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 *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod PodSecurityPolicyConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ResourceLimit: Contains information about amount of some resource in
-// the cluster. For memory, value should be in GB.
-type ResourceLimit struct {
- // Maximum: Maximum amount of the resource in the cluster.
- Maximum int64 `json:"maximum,omitempty,string"`
-
- // Minimum: Minimum amount of the resource in the cluster.
- Minimum int64 `json:"minimum,omitempty,string"`
-
- // Name: Resource name "cpu", "memory" or gpu-specific string.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Maximum") 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. "Maximum") 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 *ResourceLimit) MarshalJSON() ([]byte, error) {
- type noMethod ResourceLimit
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// RollbackNodePoolUpgradeRequest: RollbackNodePoolUpgradeRequest
-// rollbacks the previously Aborted or Failed
-// NodePool upgrade. This will be an no-op if the last upgrade
-// successfully
-// completed.
-type RollbackNodePoolUpgradeRequest struct {
- // ClusterId: The name of the cluster to rollback.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // poll to
- // rollback upgrade.
- // Specified in the format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Name string `json:"name,omitempty"`
-
- // NodePoolId: The name of the node pool to rollback.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) {
- type noMethod RollbackNodePoolUpgradeRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ServerConfig: Container Engine service configuration.
-type ServerConfig struct {
- // DefaultClusterVersion: Version of Kubernetes the service deploys by
- // default.
- DefaultClusterVersion string `json:"defaultClusterVersion,omitempty"`
-
- // DefaultImageType: Default image type.
- DefaultImageType string `json:"defaultImageType,omitempty"`
-
- // ValidImageTypes: List of valid image types.
- ValidImageTypes []string `json:"validImageTypes,omitempty"`
-
- // ValidMasterVersions: List of valid master versions.
- ValidMasterVersions []string `json:"validMasterVersions,omitempty"`
-
- // ValidNodeVersions: List of valid node upgrade target versions.
- ValidNodeVersions []string `json:"validNodeVersions,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g.
- // "DefaultClusterVersion") 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. "DefaultClusterVersion") 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 *ServerConfig) MarshalJSON() ([]byte, error) {
- type noMethod ServerConfig
- 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 {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // 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"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // labels.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // ResourceLabels: The labels to set for that cluster.
- ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Enabled: Whether ABAC authorization will be enabled in the cluster.
- Enabled bool `json:"enabled,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // legacy abac.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLegacyAbacRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// SetMaintenancePolicyRequest: SetMaintenancePolicyRequest sets the
-// maintenance policy for a cluster.
-type SetMaintenancePolicyRequest struct {
- // ClusterId: The name of the cluster to update.
- ClusterId string `json:"clusterId,omitempty"`
-
- // MaintenancePolicy: The maintenance policy to be set for the cluster.
- // An empty field
- // clears the existing maintenance policy.
- MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // maintenance
- // policy.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the cluster
- // resides.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMaintenancePolicyRequest
- 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.
- // "SET_USERNAME" - Set the username. If an empty username is
- // provided, basic authentication
- // is disabled for the cluster. If a non-empty username is provided,
- // basic
- // authentication is enabled, with either a provided password or a
- // generated
- // one.
- Action string `json:"action,omitempty"`
-
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster) of the cluster to set
- // auth.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Update: A description of the update.
- Update *MasterAuth `json:"update,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,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)
-}
-
-// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
-// network policy for a cluster.
-type SetNetworkPolicyRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // networking policy.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // NetworkPolicy: Configuration options for the NetworkPolicy feature.
- NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// SetNodePoolManagementRequest: SetNodePoolManagementRequest sets the
-// node management properties of a node
-// pool.
-type SetNodePoolManagementRequest struct {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Management: NodeManagement configuration for the node pool.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // pool to set
- // management properties. Specified in the
- // format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Name string `json:"name,omitempty"`
-
- // NodePoolId: The name of the node pool to update.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// 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 {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to
- // start IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *StartIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod StartIPRotationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
-// cluster.
-type UpdateClusterRequest struct {
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster) of the cluster to
- // update.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Update: A description of the update.
- Update *ClusterUpdate `json:"update,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// method id "container.projects.locations.getServerConfig":
-
-type ProjectsLocationsGetServerConfigCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// GetServerConfig: Returns configuration info about the Container
-// Engine service.
-func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
- c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("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 *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsGetServerConfigCall) 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, "v1alpha1/{+name}/serverConfig")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsGetServerConfigCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.getServerConfig",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}/serverConfig",
- // "response": {
- // "$ref": "ServerConfig"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.completeIpRotation":
-
-type ProjectsLocationsClustersCompleteIpRotationCall struct {
- s *Service
- name string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// CompleteIpRotation: Completes master IP rotation.
-func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
- c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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, "v1alpha1/{+name}:completeIpRotation")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCompleteIpRotationCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.completeIpRotation",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:completeIpRotation",
- // "request": {
- // "$ref": "CompleteIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.create":
-
-type ProjectsLocationsClustersCreateCall struct {
- s *Service
- parent 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
- c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
- 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
- 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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersCreateCall) 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, "v1alpha1/{+parent}/clusters")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/clusters",
- // "request": {
- // "$ref": "CreateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.delete":
-
-type ProjectsLocationsClustersDeleteCall struct {
- s *Service
- name 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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
- c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
- 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
- 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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersDeleteCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.get":
-
-type ProjectsLocationsClustersGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the details of a specific cluster.
-func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
- c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to retrieve.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersGetCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Cluster"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.list":
-
-type ProjectsLocationsClustersListCall struct {
- s *Service
- parent 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 *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
- c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the cluster
-// resides, or "-" for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersListCall) 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, "v1alpha1/{+parent}/clusters")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersListCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/clusters",
- // "response": {
- // "$ref": "ListClustersResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setLegacyAbac":
-
-type ProjectsLocationsClustersSetLegacyAbacCall struct {
- s *Service
- name string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
-// on a cluster.
-func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
- c := &ProjectsLocationsClustersSetLegacyAbacCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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, "v1alpha1/{+name}:setLegacyAbac")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setLegacyAbac" 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 *ProjectsLocationsClustersSetLegacyAbacCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setLegacyAbac",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setLegacyAbac",
- // "request": {
- // "$ref": "SetLegacyAbacRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setMaintenancePolicy":
-
-type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
- s *Service
- name string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setMaintenancePolicy")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) 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 maintenance policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMaintenancePolicy",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setMaintenancePolicy",
- // "request": {
- // "$ref": "SetMaintenancePolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setMasterAuth":
-
-type ProjectsLocationsClustersSetMasterAuthCall struct {
- s *Service
- name 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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
- c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetMasterAuthCall) 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, "v1alpha1/{+name}:setMasterAuth")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMasterAuth",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setMasterAuth",
- // "request": {
- // "$ref": "SetMasterAuthRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setNetworkPolicy":
-
-type ProjectsLocationsClustersSetNetworkPolicyCall struct {
- s *Service
- name string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
- c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetNetworkPolicyCall) 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.setnetworkpolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setNetworkPolicy")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsClustersSetNetworkPolicyCall) 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/Disables Network Policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setNetworkPolicy",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setNetworkPolicy",
- // "request": {
- // "$ref": "SetNetworkPolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setResourceLabels":
-
-type ProjectsLocationsClustersSetResourceLabelsCall struct {
- s *Service
- name string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetResourceLabels: Sets labels on a cluster.
-func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
- c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetResourceLabelsCall) 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, "v1alpha1/{+name}:setResourceLabels")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setResourceLabels" 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 *ProjectsLocationsClustersSetResourceLabelsCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setResourceLabels",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setResourceLabels",
- // "request": {
- // "$ref": "SetLabelsRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.startIpRotation":
-
-type ProjectsLocationsClustersStartIpRotationCall struct {
- s *Service
- name string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// StartIpRotation: Start master IP rotation.
-func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
- c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
- 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
- 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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersStartIpRotationCall) 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.startiprotationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:startIpRotation")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) 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": "Start master IP rotation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.startIpRotation",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:startIpRotation",
- // "request": {
- // "$ref": "StartIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.update":
-
-type ProjectsLocationsClustersUpdateCall struct {
- s *Service
- name string
- updateclusterrequest *UpdateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Update: Updates the settings of a specific cluster.
-func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
- c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
- 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 *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
- 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 *ProjectsLocationsClustersUpdateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersUpdateCall) 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.updateclusterrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersUpdateCall) 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 settings of a specific cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.locations.clusters.update",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.create":
-
-type ProjectsLocationsClustersNodePoolsCreateCall struct {
- s *Service
- parent string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Create: Creates a node pool for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
- c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsCreateCall) 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.createnodepoolrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/nodePools")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsCreateCall) 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 node pool for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.delete":
-
-type ProjectsLocationsClustersNodePoolsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Delete: Deletes a node pool from a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
- 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 *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
- 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 *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsDeleteCall) 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 a node pool from a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.nodePools.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.get":
-
-type ProjectsLocationsClustersNodePoolsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Retrieves the node pool requested.
-func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
- c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, 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 := &NodePool{
- 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": "Retrieves the node pool requested.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "NodePool"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.list":
-
-type ProjectsLocationsClustersNodePoolsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists the node pools for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
- c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsListCall) 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, "v1alpha1/{+parent}/nodePools")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, 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 := &ListNodePoolsResponse{
- 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 the node pools for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/nodePools",
- // "response": {
- // "$ref": "ListNodePoolsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.rollback":
-
-type ProjectsLocationsClustersNodePoolsRollbackCall struct {
- s *Service
- name string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- 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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
- c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsRollbackCall) 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.rollbacknodepoolupgraderequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:rollback")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsRollbackCall) 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": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.rollback",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:rollback",
- // "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.setManagement":
-
-type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
- s *Service
- name string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetManagement: Sets the NodeManagement options for a node pool.
-func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) 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.setnodepoolmanagementrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setManagement")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsSetManagementCall) 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 NodeManagement options for a node pool.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.setManagement",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.cancel":
-
-type ProjectsLocationsOperationsCancelCall struct {
- s *Service
- name string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Cancel: Cancels the specified operation.
-func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
- c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.canceloperationrequest = canceloperationrequest
- 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
- 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
- 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsCancelCall) 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.canceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
- 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": "Cancels the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.operations.cancel",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.get":
-
-type ProjectsLocationsOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the specified operation.
-func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
- c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// OperationId sets the optional parameter "operationId": The
-// server-assigned `name` of the operation.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("operationId", operationId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.get" 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 *ProjectsLocationsOperationsGetCall) 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": "Gets the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.list":
-
-type ProjectsLocationsOperationsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists all operations in a project in a specific zone or all
-// zones.
-func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
- c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for, or `-` for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsListCall) 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, "v1alpha1/{+parent}/operations")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{
- 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 operations in a project in a specific zone or all zones.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/operations",
- // "response": {
- // "$ref": "ListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// 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
-}
-
-// Name sets the optional parameter "name": The name (project and
-// location) of the server config to get
-// Specified in the format 'projects/*/locations/*'.
-func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.getServerconfig",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- // "response": {
- // "$ref": "ServerConfig"
- // },
- // "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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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, "v1alpha1/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": "v1alpha1/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).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to delete.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to retrieve.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the clusters will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
- c.urlParams_.Set("parent", parent)
- 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, "v1alpha1/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": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.list",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- // "response": {
- // "$ref": "ListClustersResponse"
- // },
- // "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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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.setMaintenancePolicy":
-
-type ProjectsZonesClustersSetMaintenancePolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
- c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
- 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.setMaintenancePolicy" 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 *ProjectsZonesClustersSetMaintenancePolicyCall) 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 maintenance policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMaintenancePolicy",
- // "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": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- // "request": {
- // "$ref": "SetMaintenancePolicyRequest"
- // },
- // "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.
-// Modify basic_auth.csv and reset the K8S API server.
-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 *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMasterAuthCall {
- 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 *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, "v1alpha1/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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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 *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 *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
- 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.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
-// *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 *ProjectsZonesClustersSetNetworkPolicyCall) 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/Disables Network Policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setNetworkPolicy",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- // "request": {
- // "$ref": "SetNetworkPolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.startIpRotation":
-
-type ProjectsZonesClustersStartIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// 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.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 *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
- 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 *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 *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- var body io.Reader = nil
- 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, "v1alpha1/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.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 *ProjectsZonesClustersStartIpRotationCall) 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": "Start master IP rotation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.startIpRotation",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- // "request": {
- // "$ref": "StartIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// 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
-}
-
-// 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 *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
- 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 *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 *ProjectsZonesClustersUpdateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", 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.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 *ProjectsZonesClustersUpdateCall) 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 settings of a specific cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.zones.clusters.update",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.create":
-
-type ProjectsZonesClustersNodePoolsCreateCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- 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)}
- 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 *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
- 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 *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 *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
- 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.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 {
- 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 node pool for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.create",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "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).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.delete":
-
-type ProjectsZonesClustersNodePoolsDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.nodePoolId = nodePoolId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to delete.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
- c.urlParams_.Set("name", name)
- 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 {
- 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 *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 *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- 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) {
- 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 a node pool from a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.nodePools.delete",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.get":
-
-type ProjectsZonesClustersNodePoolsGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.nodePoolId = nodePoolId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to get.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
- c.urlParams_.Set("name", name)
- 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 {
- 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 {
- 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 {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- 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
-// 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) {
- 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 := &NodePool{
- 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": "Retrieves the node pool requested.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.get",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "response": {
- // "$ref": "NodePool"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.list":
-
-type ProjectsZonesClustersNodePoolsListCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project,
-// location, cluster id) where the node pools will be listed.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
- c.urlParams_.Set("parent", parent)
- 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 {
- 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 {
- 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 {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
- 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.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 {
- 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 := &ListNodePoolsResponse{
- 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 the node pools for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.list",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "response": {
- // "$ref": "ListNodePoolsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.rollback":
-
-type ProjectsZonesClustersNodePoolsRollbackCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- 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)}
- 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 *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall {
- 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 *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 *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// 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 *ProjectsZonesClustersNodePoolsRollbackCall) 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": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.rollback",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- // "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.setManagement":
-
-type ProjectsZonesClustersNodePoolsSetManagementCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- 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)}
- 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 *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall {
- 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 *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 *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// 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 {
- 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 NodeManagement options for a node pool.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.setManagement",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.cancel":
-
-type ProjectsZonesOperationsCancelCall struct {
- s *Service
- projectId string
- zone string
- operationId string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Cancel: Cancels the specified operation.
-func (r *ProjectsZonesOperationsService) Cancel(projectId string, zone string, operationId string, canceloperationrequest *CancelOperationRequest) *ProjectsZonesOperationsCancelCall {
- c := &ProjectsZonesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.operationId = operationId
- c.canceloperationrequest = canceloperationrequest
- 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 *ProjectsZonesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsCancelCall {
- 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 *ProjectsZonesOperationsCancelCall) Context(ctx context.Context) *ProjectsZonesOperationsCancelCall {
- 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 *ProjectsZonesOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsCancelCall) 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.canceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel")
- 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,
- "operationId": c.operationId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.zones.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *Empty.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 *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
- 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": "Cancels the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.operations.cancel",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "operationId"
- // ],
- // "parameters": {
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.get":
-
-type ProjectsZonesOperationsGetCall struct {
- s *Service
- projectId string
- zone string
- operationId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the specified operation.
-func (r *ProjectsZonesOperationsService) Get(projectId string, zone string, operationId string) *ProjectsZonesOperationsGetCall {
- c := &ProjectsZonesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.operationId = operationId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// operation id) of the operation to get.
-// Specified in the format 'projects/*/locations/*/operations/*'.
-func (c *ProjectsZonesOperationsGetCall) Name(name string) *ProjectsZonesOperationsGetCall {
- c.urlParams_.Set("name", name)
- 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 *ProjectsZonesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) Context(ctx context.Context) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsGetCall) 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, "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}")
- 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,
- "operationId": c.operationId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.zones.operations.get" 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 *ProjectsZonesOperationsGetCall) 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": "Gets the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.operations.get",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "operationId"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.list":
-
-type ProjectsZonesOperationsListCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists all operations in a project in a specific zone or all
-// zones.
-func (r *ProjectsZonesOperationsService) List(projectId string, zone string) *ProjectsZonesOperationsListCall {
- c := &ProjectsZonesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the operations will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesOperationsListCall) Parent(parent string) *ProjectsZonesOperationsListCall {
- c.urlParams_.Set("parent", parent)
- 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 *ProjectsZonesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) Context(ctx context.Context) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsListCall) 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, "v1alpha1/projects/{projectId}/zones/{zone}/operations")
- 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.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListOperationsResponse.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 *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{
- 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 operations in a project in a specific zone or all zones.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.operations.list",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- // "response": {
- // "$ref": "ListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
diff --git a/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-api.json b/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-api.json
index 83901b3ef10f..1a37486377c9 100644
--- a/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-api.json
+++ b/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-api.json
@@ -1,2856 +1,2317 @@
{
- "schemas": {
- "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"
+ "auth": {
+ "oauth2": {
+ "scopes": {
+ "https://www.googleapis.com/auth/cloud-platform": {
+ "description": "View and manage your data across Google Cloud Platform services"
}
- },
- "id": "ListNodePoolsResponse"
+ }
+ }
+ },
+ "basePath": "",
+ "baseUrl": "https://container.googleapis.com/",
+ "batchPath": "batch",
+ "canonicalName": "Container",
+ "description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
+ "discoveryVersion": "v1",
+ "documentationLink": "https://cloud.google.com/container-engine/",
+ "fullyEncodeReservedExpansion": true,
+ "icons": {
+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
+ },
+ "id": "container:v1beta1",
+ "kind": "discovery#restDescription",
+ "name": "container",
+ "ownerDomain": "google.com",
+ "ownerName": "Google",
+ "parameters": {
+ "$.xgafv": {
+ "description": "V1 error format.",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
+ "location": "query",
+ "type": "string"
},
- "CompleteIPRotationRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- }
- },
- "id": "CompleteIPRotationRequest",
- "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode."
+ "access_token": {
+ "description": "OAuth access token.",
+ "location": "query",
+ "type": "string"
},
- "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": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "StartIPRotationRequest"
+ "alt": {
+ "default": "json",
+ "description": "Data format for response.",
+ "enum": [
+ "json",
+ "media",
+ "proto"
+ ],
+ "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",
+ "type": "string"
},
- "AcceleratorConfig": {
- "properties": {
- "acceleratorType": {
- "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
- "type": "string"
- },
- "acceleratorCount": {
- "format": "int64",
- "description": "The number of the accelerator cards exposed to an instance.",
- "type": "string"
- }
- },
- "id": "AcceleratorConfig",
- "description": "AcceleratorConfig represents a Hardware Accelerator request.",
- "type": "object"
+ "bearer_token": {
+ "description": "OAuth bearer token.",
+ "location": "query",
+ "type": "string"
},
- "SetLabelsRequest": {
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "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"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "resourceLabels": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "The labels to set for that cluster.",
- "type": "object"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- }
- },
- "id": "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"
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
},
- "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",
- "properties": {
- "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": {
- "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."
- ],
- "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"
- },
- "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": {
- "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present.",
- "$ref": "NodePoolAutoscaling"
- },
- "management": {
- "description": "NodeManagement configuration for this NodePool.",
- "$ref": "NodeManagement"
- },
- "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"
- }
- },
- "id": "NodePool"
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
+ "location": "query",
+ "type": "string"
},
- "NodeManagement": {
- "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
- "type": "object",
- "properties": {
- "autoRepair": {
- "description": "Whether the nodes will be automatically repaired.",
- "type": "boolean"
- },
- "autoUpgrade": {
- "description": "Whether the nodes will be automatically upgraded.",
- "type": "boolean"
- },
- "upgradeOptions": {
- "$ref": "AutoUpgradeOptions",
- "description": "Specifies the Auto Upgrade knobs for the node pool."
- }
- },
- "id": "NodeManagement"
+ "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.",
+ "location": "query",
+ "type": "string"
},
- "NodeTaint": {
- "id": "NodeTaint",
- "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "type": "object",
- "properties": {
- "effect": {
- "enum": [
- "EFFECT_UNSPECIFIED",
- "NO_SCHEDULE",
- "PREFER_NO_SCHEDULE",
- "NO_EXECUTE"
- ],
- "description": "Effect for taint.",
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "NoSchedule",
- "PreferNoSchedule",
- "NoExecute"
- ]
- },
- "value": {
- "description": "Value for taint.",
- "type": "string"
- },
- "key": {
- "description": "Key for taint.",
- "type": "string"
- }
- }
- },
- "CancelOperationRequest": {
- "description": "CancelOperationRequest cancels a single operation.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "CancelOperationRequest"
- },
- "SetLegacyAbacRequest": {
- "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "enabled": {
- "description": "Whether ABAC authorization will be enabled in the cluster.",
- "type": "boolean"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLegacyAbacRequest"
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
+ "location": "query",
+ "type": "string"
},
- "KubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "KubernetesDashboard"
+ "pp": {
+ "default": "true",
+ "description": "Pretty-print response.",
+ "location": "query",
+ "type": "boolean"
},
- "Operation": {
- "properties": {
- "endTime": {
- "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "location": {
- "type": "string",
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides."
- },
- "detail": {
- "description": "Detailed operation progress, if available.",
- "type": "string"
- },
- "targetLink": {
- "description": "Server-defined URL for the target of the operation.",
- "type": "string"
- },
- "operationType": {
- "description": "The operation type.",
- "type": "string",
- "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.",
- "Set the maintenance policy."
- ],
- "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",
- "SET_MAINTENANCE_POLICY"
- ]
- },
- "startTime": {
- "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PENDING",
- "RUNNING",
- "DONE",
- "ABORTING"
- ]
- },
- "statusMessage": {
- "description": "If an error has occurred, a textual description of the error.",
- "type": "string"
- },
- "name": {
- "description": "The server-assigned ID for the operation.",
- "type": "string"
- },
- "selfLink": {
- "type": "string",
- "description": "Server-defined URL for the resource."
- }
- },
- "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"
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
+ "location": "query",
+ "type": "boolean"
},
- "AddonsConfig": {
- "id": "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."
- },
- "kubernetesDashboard": {
- "$ref": "KubernetesDashboard",
- "description": "Configuration for the Kubernetes Dashboard."
- },
- "networkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "$ref": "NetworkPolicyConfig"
- }
- }
+ "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.",
+ "location": "query",
+ "type": "string"
},
- "MaintenanceWindow": {
- "id": "MaintenanceWindow",
- "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
- "type": "object",
- "properties": {
- "dailyMaintenanceWindow": {
- "description": "DailyMaintenanceWindow specifies a daily maintenance operation window.",
- "$ref": "DailyMaintenanceWindow"
- }
- }
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "location": "query",
+ "type": "string"
},
- "RollbackNodePoolUpgradeRequest": {
- "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",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "NetworkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether NetworkPolicy is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicyConfig"
- },
- "UpdateClusterRequest": {
- "description": "UpdateClusterRequest updates the settings of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "ClusterUpdate",
- "description": "A description of the update."
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- }
- },
- "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": {
- "enumDescriptions": [
- "Not set",
- "Tigera (Calico Felix)."
- ],
- "enum": [
- "PROVIDER_UNSPECIFIED",
- "CALICO"
- ],
- "description": "The selected network policy provider.",
- "type": "string"
- }
- },
- "id": "NetworkPolicy"
- },
- "Cluster": {
- "id": "Cluster",
- "description": "A Google Container Engine cluster.",
- "type": "object",
- "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"
- },
- "zone": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "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": {
- "type": "integer",
- "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."
- },
- "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"
- },
- "masterAuthorizedNetworksConfig": {
- "description": "The configuration options for master authorized networks feature.",
- "$ref": "MasterAuthorizedNetworksConfig"
- },
- "statusMessage": {
- "description": "[Output only] Additional information about the current status of this\ncluster, if available.",
- "type": "string"
- },
- "masterAuth": {
- "description": "The authentication information for accessing the master endpoint.",
- "$ref": "MasterAuth"
- },
- "currentMasterVersion": {
- "type": "string",
- "description": "[Output only] The current software version of the master endpoint."
- },
- "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.",
- "$ref": "NodeConfig"
- },
- "podSecurityPolicyConfig": {
- "$ref": "PodSecurityPolicyConfig",
- "description": "Configuration for the PodSecurityPolicy feature."
- },
- "addonsConfig": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "subnetwork": {
- "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
- "type": "string"
- },
- "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"
- },
- "maintenancePolicy": {
- "description": "Configure the maintenance policy for this cluster.",
- "$ref": "MaintenancePolicy"
- },
- "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"
- },
- "initialClusterVersion": {
- "type": "string",
- "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."
- },
- "ipAllocationPolicy": {
- "description": "Configuration for cluster IP allocation.",
- "$ref": "IPAllocationPolicy"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "type": "string"
- },
- "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"
- },
- "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"
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "protocol": "rest",
+ "resources": {
+ "projects": {
+ "resources": {
+ "aggregated": {
+ "resources": {
+ "usableSubnetworks": {
+ "methods": {
+ "list": {
+ "description": "Lists subnetworks that are usable for creating clusters in a project.",
+ "flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
+ "httpMethod": "GET",
+ "id": "container.projects.aggregated.usableSubnetworks.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "filter": {
+ "description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
+ "location": "query",
+ "type": "string"
+ },
+ "pageSize": {
+ "description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
+ },
+ "pageToken": {
+ "description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
+ "location": "query",
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
+ "response": {
+ "$ref": "ListUsableSubnetworksResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
},
"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"
- },
- "type": "array"
- },
- "nodePools": {
- "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"
- },
- "type": "array"
- },
- "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\ncluster.",
- "items": {
- "type": "string"
+ "methods": {
+ "getServerConfig": {
+ "description": "Returns configuration info about the Kubernetes Engine service.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.getServerConfig",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}/serverConfig",
+ "response": {
+ "$ref": "ServerConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "",
+ "flatPath": "v1beta1/projects/{projectsId}/locations",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/locations",
+ "response": {
+ "$ref": "ListLocationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
},
- "type": "array"
- },
- "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"
- },
- "networkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.",
- "$ref": "NetworkPolicy"
- },
- "enableKubernetesAlpha": {
- "type": "boolean",
- "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha\nAPI groups (e.g. v1beta1) 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."
- },
- "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"
- }
- }
- },
- "CreateNodePoolRequest": {
- "id": "CreateNodePoolRequest",
- "description": "CreateNodePoolRequest creates a node pool for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "nodePool": {
- "description": "The node pool to create.",
- "$ref": "NodePool"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- }
- },
- "ListOperationsResponse": {
- "type": "object",
- "properties": {
- "operations": {
- "description": "A list of operations in the project in the specified zone.",
- "items": {
- "$ref": "Operation"
- },
- "type": "array"
- },
- "missingZones": {
- "items": {
- "type": "string"
- },
- "type": "array",
- "description": "If any zones are listed here, the list of operations returned\nmay be missing the operations from those zones."
- }
- },
- "id": "ListOperationsResponse",
- "description": "ListOperationsResponse is the result of ListOperationsRequest."
- },
- "CidrBlock": {
- "description": "CidrBlock contains an optional name and one CIDR block.",
- "type": "object",
- "properties": {
- "displayName": {
- "description": "display_name is an optional field for users to identify CIDR blocks.",
- "type": "string"
- },
- "cidrBlock": {
- "description": "cidr_block must be specified in CIDR notation.",
- "type": "string"
- }
- },
- "id": "CidrBlock"
- },
- "ServerConfig": {
- "description": "Container Engine service configuration.",
- "type": "object",
- "properties": {
- "validMasterVersions": {
- "description": "List of valid master versions.",
- "items": {
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "validNodeVersions": {
- "description": "List of valid node upgrade target versions.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ServerConfig"
- },
- "NodeConfig": {
- "description": "Parameters that describe the nodes in a cluster.",
- "type": "object",
- "properties": {
- "serviceAccount": {
- "type": "string",
- "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."
- },
- "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"
- },
- "taints": {
- "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "items": {
- "$ref": "NodeTaint"
- },
- "type": "array"
- },
- "labels": {
- "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "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"
- },
- "accelerators": {
- "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
- "items": {
- "$ref": "AcceleratorConfig"
- },
- "type": "array"
- },
- "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"
- },
- "minCpuPlatform": {
- "type": "string",
- "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: "Intel Haswell"\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: "Intel Sandy Bridge"\u003c/code\u003e. For more\ninformation, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)"
- },
- "preemptible": {
- "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
- "type": "boolean"
- },
- "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"
- },
- "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"
- }
- },
- "id": "NodeConfig"
- },
- "MasterAuth": {
- "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",
- "description": "The authentication information for accessing the master endpoint.\nAuthentication can be done using HTTP basic auth or using client\ncertificates."
- },
- "DailyMaintenanceWindow": {
- "description": "Time window specified for daily maintenance operations.",
- "type": "object",
- "properties": {
- "startTime": {
- "type": "string",
- "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT."
- },
- "duration": {
- "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
- "type": "string"
- }
- },
- "id": "DailyMaintenanceWindow"
- },
- "AutoUpgradeOptions": {
- "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
- "type": "object",
- "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"
- },
- "ListClustersResponse": {
- "type": "object",
- "properties": {
- "clusters": {
- "description": "A list of clusters in the project in the specified zone, or\nacross all ones.",
- "items": {
- "$ref": "Cluster"
- },
- "type": "array"
- },
- "missingZones": {
- "description": "If any zones are listed here, the list of clusters returned\nmay be missing those zones.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ListClustersResponse",
- "description": "ListClustersResponse is the result of ListClustersRequest."
- },
- "PodSecurityPolicyConfig": {
- "description": "Configuration for the PodSecurityPolicy feature.",
- "type": "object",
- "properties": {
- "enabled": {
- "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
- "type": "boolean"
- }
- },
- "id": "PodSecurityPolicyConfig"
- },
- "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",
- "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"
- },
- "SetNetworkPolicyRequest": {
- "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- },
- "networkPolicy": {
- "$ref": "NetworkPolicy",
- "description": "Configuration options for the NetworkPolicy feature."
- }
- },
- "id": "SetNetworkPolicyRequest"
- },
- "SetMasterAuthRequest": {
- "id": "SetMasterAuthRequest",
- "description": "SetMasterAuthRequest updates the admin password of a cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "action": {
- "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.",
- "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
- ],
- "enum": [
- "UNKNOWN",
- "SET_PASSWORD",
- "GENERATE_PASSWORD",
- "SET_USERNAME"
- ],
- "description": "The exact form of action to be taken on the master auth.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "MasterAuth",
- "description": "A description of the update."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "ClientCertificateConfig": {
- "description": "Configuration for client certificates on the cluster.",
- "type": "object",
- "properties": {
- "issueClientCertificate": {
- "description": "Issue a client certificate.",
- "type": "boolean"
- }
- },
- "id": "ClientCertificateConfig"
- },
- "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"
- },
- "MaintenancePolicy": {
- "properties": {
- "window": {
- "$ref": "MaintenanceWindow",
- "description": "Specifies the maintenance window in which maintenance may be performed."
- }
- },
- "id": "MaintenancePolicy",
- "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
- "type": "object"
- },
- "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",
- "properties": {
- "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"
- },
- "desiredPodSecurityPolicyConfig": {
- "$ref": "PodSecurityPolicyConfig",
- "description": "The desired configuration options for the PodSecurityPolicy feature."
- },
- "desiredMasterAuthorizedNetworksConfig": {
- "$ref": "MasterAuthorizedNetworksConfig",
- "description": "The desired configuration options for master authorized networks feature."
- },
- "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": {
- "type": "string",
- "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well."
- },
- "desiredAddonsConfig": {
- "$ref": "AddonsConfig",
- "description": "Configurations for the various addons available to run in the cluster."
- }
- },
- "id": "ClusterUpdate"
- },
- "IPAllocationPolicy": {
- "type": "object",
- "properties": {
- "servicesIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use services_ipv4_cidr_block."
- },
- "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"
- },
- "useIpAliases": {
- "description": "Whether alias IPs will be used for pod IPs in the cluster.",
- "type": "boolean"
- },
- "servicesSecondaryRangeName": {
- "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "type": "string"
- },
- "subnetworkName": {
- "description": "A custom subnetwork name to be used if `create_subnetwork` is true. If\nthis field is empty, then an automatic name will be chosen for the new\nsubnetwork.",
- "type": "string"
- },
- "servicesIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use cluster_ipv4_cidr_block."
- },
- "nodeIpv4Cidr": {
- "description": "This field is deprecated, use node_ipv4_cidr_block.",
- "type": "string"
- },
- "clusterIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterSecondaryRangeName": {
- "type": "string",
- "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false."
- },
- "nodeIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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",
- "description": "Configuration for controlling how IPs are allocated in the cluster."
- },
- "HorizontalPodAutoscaling": {
- "type": "object",
- "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."
- },
- "SetMaintenancePolicyRequest": {
- "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to update.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "maintenancePolicy": {
- "$ref": "MaintenancePolicy",
- "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy."
- }
- },
- "id": "SetMaintenancePolicyRequest"
- },
- "SetNodePoolManagementRequest": {
- "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
- "type": "object",
- "properties": {
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "management": {
- "description": "NodeManagement configuration for the node pool.",
- "$ref": "NodeManagement"
- }
- },
- "id": "SetNodePoolManagementRequest"
- },
- "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",
- "properties": {},
- "id": "Empty"
- },
- "MasterAuthorizedNetworksConfig": {
- "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
- "type": "object",
- "properties": {
- "cidrBlocks": {
- "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
- "items": {
- "$ref": "CidrBlock"
- },
- "type": "array"
- },
- "enabled": {
- "description": "Whether or not master authorized networks is enabled.",
- "type": "boolean"
- }
- },
- "id": "MasterAuthorizedNetworksConfig"
- },
- "CreateClusterRequest": {
- "description": "CreateClusterRequest creates a cluster.",
- "type": "object",
- "properties": {
- "cluster": {
- "$ref": "Cluster",
- "description": "A [cluster\nresource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string"
- }
- },
- "id": "CreateClusterRequest"
- }
- },
- "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",
- "canonicalName": "Container",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/cloud-platform": {
- "description": "View and manage your data across Google Cloud Platform services"
- }
- }
- }
- },
- "rootUrl": "https://container.googleapis.com/",
- "ownerDomain": "google.com",
- "name": "container",
- "batchPath": "batch",
- "title": "Google Container Engine API",
- "ownerName": "Google",
- "resources": {
- "projects": {
- "resources": {
- "zones": {
"resources": {
- "operations": {
+ "clusters": {
"methods": {
- "cancel": {
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "description": "Cancels the specified operation.",
+ "completeIpRotation": {
+ "description": "Completes master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.completeIpRotation",
"parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "operationId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "id": "container.projects.zones.operations.cancel"
- },
- "get": {
+ "path": "v1beta1/{+name}:completeIpRotation",
+ "request": {
+ "$ref": "CompleteIPRotationRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "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.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.create",
"parameterOrder": [
- "projectId",
- "zone",
- "operationId"
+ "parent"
],
- "httpMethod": "GET",
"parameters": {
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "location": "query"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "parent": {
+ "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
+ "path": "v1beta1/{+parent}/clusters",
+ "request": {
+ "$ref": "CreateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "id": "container.projects.zones.operations.get",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "description": "Gets the specified operation."
+ ]
},
- "list": {
- "response": {
- "$ref": "ListOperationsResponse"
- },
+ "delete": {
+ "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.locations.clusters.delete",
"parameterOrder": [
- "projectId",
- "zone"
+ "name"
],
- "httpMethod": "GET",
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
},
- "parent": {
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "query",
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
"type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations",
- "id": "container.projects.zones.operations.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations",
- "description": "Lists all operations in a project in a specific zone or all zones."
- }
- }
- },
- "clusters": {
- "methods": {
- "update": {
- "httpMethod": "PUT",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
+ "path": "v1beta1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the details for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.get",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
},
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead."
- }
- },
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.update",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "description": "Updates the settings of a specific cluster."
- },
- "setMasterAuth": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
"projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
"zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "id": "container.projects.zones.clusters.setMasterAuth",
- "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.\nModify basic_auth.csv and reset the K8S API server.",
- "request": {
- "$ref": "SetMasterAuthRequest"
- }
- },
- "list": {
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "path": "v1beta1/{+name}",
"response": {
- "$ref": "ListClustersResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "httpMethod": "GET",
+ "$ref": "Cluster"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.list",
+ "parameterOrder": [
+ "parent"
],
"parameters": {
"parent": {
- "location": "query",
"description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
"type": "string"
},
"projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
},
"zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters"
+ "path": "v1beta1/{+parent}/clusters",
+ "response": {
+ "$ref": "ListClustersResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "create": {
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.create",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "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.",
+ "setAddons": {
+ "description": "Sets the addons for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setAddons",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setAddons",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setAddons",
"request": {
- "$ref": "CreateClusterRequest"
+ "$ref": "SetAddonsConfigRequest"
},
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setLegacyAbac": {
+ "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLegacyAbac",
"parameterOrder": [
- "projectId",
- "zone"
+ "name"
],
- "httpMethod": "POST",
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/{+name}:setLegacyAbac",
+ "request": {
+ "$ref": "SetLegacyAbacRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "resourceLabels": {
- "request": {
- "$ref": "SetLabelsRequest"
- },
- "description": "Sets labels on a cluster.",
+ "setLocations": {
+ "description": "Sets the locations for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLocations",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLocations",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setLocations",
+ "request": {
+ "$ref": "SetLocationsRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setLogging": {
+ "description": "Sets the logging service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLogging",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLogging",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "required": true,
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "id": "container.projects.zones.clusters.resourceLabels"
- },
- "completeIpRotation": {
+ "path": "v1beta1/{+name}:setLogging",
"request": {
- "$ref": "CompleteIPRotationRequest"
+ "$ref": "SetLoggingServiceRequest"
},
- "description": "Completes master IP rotation.",
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setMaintenancePolicy": {
+ "description": "Sets the maintenance policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "id": "container.projects.zones.clusters.completeIpRotation"
+ "path": "v1beta1/{+name}:setMaintenancePolicy",
+ "request": {
+ "$ref": "SetMaintenancePolicyRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "get": {
- "description": "Gets the details of a specific cluster.",
- "httpMethod": "GET",
+ "setMasterAuth": {
+ "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMasterAuth",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "response": {
- "$ref": "Cluster"
- },
"parameters": {
"name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
+ "path": "v1beta1/{+name}:setMasterAuth",
+ "request": {
+ "$ref": "SetMasterAuthRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.get"
+ ]
},
- "legacyAbac": {
+ "setMonitoring": {
+ "description": "Sets the monitoring service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMonitoring",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMonitoring",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setMonitoring",
+ "request": {
+ "$ref": "SetMonitoringServiceRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setNetworkPolicy": {
+ "description": "Enables/Disables Network Policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setNetworkPolicy",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "id": "container.projects.zones.clusters.legacyAbac",
+ "path": "v1beta1/{+name}:setNetworkPolicy",
"request": {
- "$ref": "SetLegacyAbacRequest"
+ "$ref": "SetNetworkPolicyRequest"
},
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
- },
- "setNetworkPolicy": {
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setResourceLabels": {
+ "description": "Sets labels on a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setResourceLabels",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- "id": "container.projects.zones.clusters.setNetworkPolicy",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ "path": "v1beta1/{+name}:setResourceLabels",
"request": {
- "$ref": "SetNetworkPolicyRequest"
+ "$ref": "SetLabelsRequest"
},
- "description": "Enables/Disables Network Policy for a cluster."
- },
- "startIpRotation": {
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "startIpRotation": {
+ "description": "Start master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.startIpRotation",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "httpMethod": "POST",
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "id": "container.projects.zones.clusters.startIpRotation",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "description": "Start master IP rotation.",
+ "path": "v1beta1/{+name}:startIpRotation",
"request": {
"$ref": "StartIPRotationRequest"
- }
- },
- "setMaintenancePolicy": {
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the settings for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.locations.clusters.update",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "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": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"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",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "id": "container.projects.zones.clusters.setMaintenancePolicy",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "description": "Sets the maintenance policy for a cluster.",
+ "path": "v1beta1/{+name}",
"request": {
- "$ref": "SetMaintenancePolicyRequest"
- }
- },
- "delete": {
- "id": "container.projects.zones.clusters.delete",
- "path": "v1beta1/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.",
+ "$ref": "UpdateClusterRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "updateMaster": {
+ "description": "Updates the master for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:updateMaster",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.updateMaster",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
"name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}"
+ "path": "v1beta1/{+name}:updateMaster",
+ "request": {
+ "$ref": "UpdateMasterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
},
"resources": {
"nodePools": {
"methods": {
- "list": {
+ "create": {
+ "description": "Creates a node pool for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.create",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/nodePools",
+ "request": {
+ "$ref": "CreateNodePoolRequest"
+ },
"response": {
- "$ref": "ListNodePoolsResponse"
+ "$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a node pool from a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.locations.clusters.nodePools.delete",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Retrieves the node pool requested.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.nodePools.get",
+ "parameterOrder": [
+ "name"
],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "NodePool"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists the node pools for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
"httpMethod": "GET",
+ "id": "container.projects.locations.clusters.nodePools.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/nodePools",
+ "response": {
+ "$ref": "ListNodePoolsResponse"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "rollback": {
+ "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.rollback",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "type": "string",
- "required": true,
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead."
- },
- "parent": {
- "type": "string",
- "location": "query",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "clusterId": {
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead."
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "description": "Lists the node pools for a cluster."
- },
- "rollback": {
- "id": "container.projects.zones.clusters.nodePools.rollback",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ "path": "v1beta1/{+name}:rollback",
"request": {
"$ref": "RollbackNodePoolUpgradeRequest"
},
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setAutoscaling": {
+ "description": "Sets the autoscaling settings of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setAutoscaling",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setAutoscaling",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback"
- },
- "create": {
- "id": "container.projects.zones.clusters.nodePools.create",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "description": "Creates a node pool for a cluster.",
+ "path": "v1beta1/{+name}:setAutoscaling",
"request": {
- "$ref": "CreateNodePoolRequest"
+ "$ref": "SetNodePoolAutoscalingRequest"
},
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools"
+ ]
},
- "get": {
+ "setManagement": {
+ "description": "Sets the NodeManagement options for a node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setManagement",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "GET",
- "response": {
- "$ref": "NodePool"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "name"
],
"parameters": {
"name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.get",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "description": "Retrieves the node pool requested."
- },
- "delete": {
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.delete",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "description": "Deletes a node pool from a cluster.",
+ "path": "v1beta1/{+name}:setManagement",
+ "request": {
+ "$ref": "SetNodePoolManagementRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setSize": {
+ "description": "Sets the size for a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setSize",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setSize",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
+ "name"
],
- "httpMethod": "DELETE",
"parameters": {
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
"name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "setManagement": {
+ "path": "v1beta1/{+name}:setSize",
+ "request": {
+ "$ref": "SetNodePoolSizeRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the version and/or image type of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.locations.clusters.nodePools.update",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "id": "container.projects.zones.clusters.nodePools.setManagement",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "path": "v1beta1/{+name}",
"request": {
- "$ref": "SetNodePoolManagementRequest"
+ "$ref": "UpdateNodePoolRequest"
+ },
+ "response": {
+ "$ref": "Operation"
},
- "description": "Sets the NodeManagement options for a node pool."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "operations": {
+ "methods": {
+ "cancel": {
+ "description": "Cancels the specified operation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.operations.cancel",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:cancel",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ },
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the specified operation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.operations.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all operations in a project in a specific zone or all zones.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.operations.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
}
- }
+ },
+ "path": "v1beta1/{+parent}/operations",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
}
- },
+ }
+ },
+ "zones": {
"methods": {
"getServerconfig": {
- "description": "Returns configuration info about the Container Engine service.",
- "response": {
- "$ref": "ServerConfig"
- },
+ "description": "Returns configuration info about the Kubernetes Engine service.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.getServerconfig",
"parameterOrder": [
"projectId",
"zone"
],
- "httpMethod": "GET",
"parameters": {
+ "name": {
+ "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "query",
+ "type": "string"
+ },
"projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "location": "path"
+ "type": "string"
},
"zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "location": "query"
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ "response": {
+ "$ref": "ServerConfig"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
- "id": "container.projects.zones.getServerconfig",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig"
+ ]
}
- }
- },
- "locations": {
+ },
"resources": {
"clusters": {
"methods": {
- "setLegacyAbac": {
+ "addons": {
+ "description": "Sets the addons for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
"httpMethod": "POST",
+ "id": "container.projects.zones.clusters.addons",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ "request": {
+ "$ref": "SetAddonsConfigRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "completeIpRotation": {
+ "description": "Completes master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.completeIpRotation",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "request": {
+ "$ref": "CompleteIPRotationRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "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.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.create",
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "request": {
+ "$ref": "CreateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.zones.clusters.delete",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the details for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.get",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "response": {
+ "$ref": "Cluster"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "legacyAbac": {
+ "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.legacyAbac",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "request": {
+ "$ref": "SetLegacyAbacRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.list",
+ "parameterOrder": [
+ "projectId",
+ "zone"
],
"parameters": {
- "name": {
- "type": "string",
+ "parent": {
+ "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- "path": "v1beta1/{+name}:setLegacyAbac",
- "id": "container.projects.locations.clusters.setLegacyAbac",
- "request": {
- "$ref": "SetLegacyAbacRequest"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "response": {
+ "$ref": "ListClustersResponse"
},
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "setResourceLabels": {
+ "locations": {
+ "description": "Sets the locations for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.locations",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
"request": {
- "$ref": "SetLabelsRequest"
+ "$ref": "SetLocationsRequest"
},
- "description": "Sets labels on a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "logging": {
+ "description": "Sets the logging service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.logging",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- "id": "container.projects.locations.clusters.setResourceLabels",
- "path": "v1beta1/{+name}:setResourceLabels"
- },
- "update": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "request": {
+ "$ref": "SetLoggingServiceRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "master": {
+ "description": "Updates the master for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.master",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "PUT",
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.update",
- "path": "v1beta1/{+name}",
- "description": "Updates the settings of a specific cluster.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
"request": {
- "$ref": "UpdateClusterRequest"
- }
- },
- "setMasterAuth": {
+ "$ref": "UpdateMasterRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "monitoring": {
+ "description": "Sets the monitoring service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.monitoring",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- "id": "container.projects.locations.clusters.setMasterAuth",
- "path": "v1beta1/{+name}:setMasterAuth",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
"request": {
- "$ref": "SetMasterAuthRequest"
+ "$ref": "SetMonitoringServiceRequest"
},
- "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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "id": "container.projects.locations.clusters.list",
- "path": "v1beta1/{+parent}/clusters",
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
"response": {
- "$ref": "ListClustersResponse"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "resourceLabels": {
+ "description": "Sets labels on a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.resourceLabels",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
"projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead."
- },
- "parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters"
- },
- "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.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
"request": {
- "$ref": "CreateClusterRequest"
+ "$ref": "SetLabelsRequest"
},
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setMaintenancePolicy": {
+ "description": "Sets the maintenance policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setMaintenancePolicy",
"parameterOrder": [
- "parent"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "POST",
"parameters": {
- "parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "clusterId": {
+ "description": "The name of the cluster to update.",
"location": "path",
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true
+ "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ "request": {
+ "$ref": "SetMaintenancePolicyRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
- "id": "container.projects.locations.clusters.create",
- "path": "v1beta1/{+parent}/clusters"
+ ]
},
- "completeIpRotation": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "setMasterAuth": {
+ "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setMasterAuth",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- "id": "container.projects.locations.clusters.completeIpRotation",
- "path": "v1beta1/{+name}:completeIpRotation",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
"request": {
- "$ref": "CompleteIPRotationRequest"
+ "$ref": "SetMasterAuthRequest"
},
- "description": "Completes master IP rotation.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST"
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
"setNetworkPolicy": {
- "path": "v1beta1/{+name}:setNetworkPolicy",
- "id": "container.projects.locations.clusters.setNetworkPolicy",
"description": "Enables/Disables Network Policy for a cluster.",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
"httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setNetworkPolicy",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "response": {
- "$ref": "Operation"
- },
"parameters": {
- "name": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy"
- },
- "get": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
"type": "string"
},
- "name": {
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- },
"projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
"zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.get",
- "path": "v1beta1/{+name}",
- "description": "Gets the details of a specific cluster.",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET"
- },
- "startIpRotation": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
"request": {
- "$ref": "StartIPRotationRequest"
+ "$ref": "SetNetworkPolicyRequest"
},
- "description": "Start master IP rotation.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "startIpRotation": {
+ "description": "Start master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.startIpRotation",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- "id": "container.projects.locations.clusters.startIpRotation",
- "path": "v1beta1/{+name}:startIpRotation"
- },
- "setMaintenancePolicy": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
"request": {
- "$ref": "SetMaintenancePolicyRequest"
+ "$ref": "StartIPRotationRequest"
},
- "description": "Sets the maintenance policy for a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- "id": "container.projects.locations.clusters.setMaintenancePolicy",
- "path": "v1beta1/{+name}:setMaintenancePolicy"
+ ]
},
- "delete": {
- "response": {
- "$ref": "Operation"
- },
+ "update": {
+ "description": "Updates the settings for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.zones.clusters.update",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "DELETE",
"parameters": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
+ "type": "string"
},
"projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "request": {
+ "$ref": "UpdateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.delete",
- "path": "v1beta1/{+name}",
- "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": {
- "list": {
+ "autoscaling": {
+ "description": "Sets the autoscaling settings of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.autoscaling",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ "request": {
+ "$ref": "SetNodePoolAutoscalingRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "create": {
+ "description": "Creates a node pool for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.create",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "request": {
+ "$ref": "CreateNodePoolRequest"
+ },
"response": {
- "$ref": "ListNodePoolsResponse"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a node pool from a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.zones.clusters.nodePools.delete",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead."
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- "id": "container.projects.locations.clusters.nodePools.list",
- "path": "v1beta1/{+parent}/nodePools",
- "description": "Lists the node pools for a cluster."
- },
- "rollback": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Retrieves the node pool requested.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.nodePools.get",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
- "httpMethod": "POST",
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "response": {
+ "$ref": "NodePool"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists the node pools for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.nodePools.list",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- "id": "container.projects.locations.clusters.nodePools.rollback",
- "path": "v1beta1/{+name}:rollback",
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "response": {
+ "$ref": "ListNodePoolsResponse"
},
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "create": {
- "id": "container.projects.locations.clusters.nodePools.create",
- "path": "v1beta1/{+parent}/nodePools",
+ "rollback": {
+ "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.rollback",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
"request": {
- "$ref": "CreateNodePoolRequest"
+ "$ref": "RollbackNodePoolUpgradeRequest"
},
- "description": "Creates a node pool for a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setManagement": {
+ "description": "Sets the NodeManagement options for a node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.setManagement",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "parent": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- },
- "get": {
- "description": "Retrieves the node pool requested.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "request": {
+ "$ref": "SetNodePoolManagementRequest"
+ },
"response": {
- "$ref": "NodePool"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setSize": {
+ "description": "Sets the size for a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.setSize",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
"clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"nodePoolId": {
- "type": "string",
- "location": "query",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead."
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
+ "type": "string"
},
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "id": "container.projects.locations.clusters.nodePools.get",
- "path": "v1beta1/{+name}"
- },
- "delete": {
- "description": "Deletes a node pool from a cluster.",
- "httpMethod": "DELETE",
- "parameterOrder": [
- "name"
- ],
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "request": {
+ "$ref": "SetNodePoolSizeRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the version and/or image type of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.update",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
"parameters": {
- "name": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "type": "string"
},
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "nodePoolId": {
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "path": "v1beta1/{+name}",
- "id": "container.projects.locations.clusters.nodePools.delete"
- },
- "setManagement": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "request": {
+ "$ref": "UpdateNodePoolRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true
- }
- },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- "id": "container.projects.locations.clusters.nodePools.setManagement",
- "path": "v1beta1/{+name}:setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- }
+ ]
}
}
}
@@ -2860,248 +2321,1989 @@
"methods": {
"cancel": {
"description": "Cancels the specified operation.",
- "request": {
- "$ref": "CancelOperationRequest"
- },
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
"httpMethod": "POST",
+ "id": "container.projects.zones.operations.cancel",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "operationId"
],
- "response": {
- "$ref": "Empty"
- },
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ },
+ "response": {
+ "$ref": "Empty"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- "path": "v1beta1/{+name}:cancel",
- "id": "container.projects.locations.operations.cancel"
+ ]
},
"get": {
"description": "Gets the specified operation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
"httpMethod": "GET",
- "response": {
- "$ref": "Operation"
- },
+ "id": "container.projects.zones.operations.get",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "operationId"
],
"parameters": {
- "operationId": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
"location": "query",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
"type": "string"
},
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- "location": "path"
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- "path": "v1beta1/{+name}",
- "id": "container.projects.locations.operations.get"
+ ]
},
"list": {
- "id": "container.projects.locations.operations.list",
- "path": "v1beta1/{+parent}/operations",
"description": "Lists all operations in a project in a specific zone or all zones.",
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations",
"httpMethod": "GET",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "id": "container.projects.zones.operations.list",
+ "parameterOrder": [
+ "projectId",
+ "zone"
],
"parameters": {
"parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path",
"description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true
+ "location": "query",
+ "type": "string"
},
"projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
}
+ }
+ }
+ }
+ }
+ },
+ "revision": "20180524",
+ "rootUrl": "https://container.googleapis.com/",
+ "schemas": {
+ "AcceleratorConfig": {
+ "description": "AcceleratorConfig represents a Hardware Accelerator request.",
+ "id": "AcceleratorConfig",
+ "properties": {
+ "acceleratorCount": {
+ "description": "The number of the accelerator cards exposed to an instance.",
+ "format": "int64",
+ "type": "string"
+ },
+ "acceleratorType": {
+ "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "AddonsConfig": {
+ "description": "Configuration for the addons that can be automatically spun up in the\ncluster, enabling additional functionality.",
+ "id": "AddonsConfig",
+ "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."
+ },
+ "kubernetesDashboard": {
+ "$ref": "KubernetesDashboard",
+ "description": "Configuration for the Kubernetes Dashboard."
+ },
+ "networkPolicyConfig": {
+ "$ref": "NetworkPolicyConfig",
+ "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes."
+ }
+ },
+ "type": "object"
+ },
+ "AutoUpgradeOptions": {
+ "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
+ "id": "AutoUpgradeOptions",
+ "properties": {
+ "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"
+ },
+ "description": {
+ "description": "[Output only] This field is set when upgrades are about to commence\nwith the description of the upgrade.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "BinaryAuthorization": {
+ "description": "Configuration for Binary Authorization.",
+ "id": "BinaryAuthorization",
+ "properties": {
+ "enabled": {
+ "description": "Enable Binary Authorization for this cluster. If enabled, all container\nimages will be validated by Google Binauthz.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "CancelOperationRequest": {
+ "description": "CancelOperationRequest cancels a single operation.",
+ "id": "CancelOperationRequest",
+ "properties": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "type": "string"
+ },
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CidrBlock": {
+ "description": "CidrBlock contains an optional name and one CIDR block.",
+ "id": "CidrBlock",
+ "properties": {
+ "cidrBlock": {
+ "description": "cidr_block must be specified in CIDR notation.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "display_name is an optional field for users to identify CIDR blocks.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ClientCertificateConfig": {
+ "description": "Configuration for client certificates on the cluster.",
+ "id": "ClientCertificateConfig",
+ "properties": {
+ "issueClientCertificate": {
+ "description": "Issue a client certificate.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "Cluster": {
+ "description": "A Google Kubernetes Engine cluster.",
+ "id": "Cluster",
+ "properties": {
+ "addonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "Configurations for the various addons available to run in the cluster."
+ },
+ "binaryAuthorization": {
+ "$ref": "BinaryAuthorization",
+ "description": "Configuration for Binary Authorization."
+ },
+ "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"
+ },
+ "createTime": {
+ "description": "[Output only] The time the cluster was created, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "currentMasterVersion": {
+ "description": "[Output only] The current software version of the master endpoint.",
+ "type": "string"
+ },
+ "currentNodeCount": {
+ "description": "[Output only] The number of nodes currently in the cluster.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "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"
+ },
+ "description": {
+ "description": "An optional description of this cluster.",
+ "type": "string"
+ },
+ "enableKubernetesAlpha": {
+ "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha\nAPI groups (e.g. v1beta1) 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"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"\",\"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "initialNodeCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "instanceGroupUrls": {
+ "description": "Deprecated. Use node_pools.instance_group_urls.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "ipAllocationPolicy": {
+ "$ref": "IPAllocationPolicy",
+ "description": "Configuration for cluster IP allocation."
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the set of labels for this cluster.",
+ "type": "string"
+ },
+ "legacyAbac": {
+ "$ref": "LegacyAbac",
+ "description": "Configuration for the legacy ABAC authorization mode."
+ },
+ "location": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
+ "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"
+ },
+ "type": "array"
+ },
+ "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"
+ },
+ "maintenancePolicy": {
+ "$ref": "MaintenancePolicy",
+ "description": "Configure the maintenance policy for this cluster."
+ },
+ "masterAuth": {
+ "$ref": "MasterAuth",
+ "description": "The authentication information for accessing the master endpoint."
+ },
+ "masterAuthorizedNetworksConfig": {
+ "$ref": "MasterAuthorizedNetworksConfig",
+ "description": "The configuration options for master authorized networks feature."
+ },
+ "masterIpv4CidrBlock": {
+ "description": "The IP prefix in CIDR notation to use for the hosted master network.\nThis prefix will be used for assigning private IP addresses to the\nmaster or set of masters, as well as the ILB VIP.",
+ "type": "string"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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. On output this shows the network ID instead of\nthe name.",
+ "type": "string"
+ },
+ "networkConfig": {
+ "$ref": "NetworkConfig",
+ "description": "Configuration for cluster networking."
+ },
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ },
+ "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."
+ },
+ "nodeIpv4CidrSize": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "nodePools": {
+ "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"
+ },
+ "type": "array"
+ },
+ "podSecurityPolicyConfig": {
+ "$ref": "PodSecurityPolicyConfig",
+ "description": "Configuration for the PodSecurityPolicy feature."
+ },
+ "autoscaling": {
+ "$ref": "ClusterAutoscaling",
+ "description": "Cluster-level autoscaling configuration."
+ },
+ "privateCluster": {
+ "description": "If this is a private cluster setup. Private clusters are clusters that, by\ndefault have no external IP addresses on the nodes and where nodes and the\nmaster communicate over private IP addresses.",
+ "type": "boolean"
+ },
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The resource labels for the cluster to use to annotate any related\nGoogle Compute Engine resources.",
+ "type": "object"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "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"
+ },
+ "status": {
+ "description": "[Output only] The current status of this cluster.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR",
+ "DEGRADED"
+ ],
+ "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.",
+ "The DEGRADED state indicates the cluster requires user action to restore\nfull functionality. Details can be found in the `statusMessage` field."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\ncluster, if available.",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected. On output this shows the subnetwork ID instead of\nthe name.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "ClusterUpdate",
+ "properties": {
+ "desiredAddonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "Configurations for the various addons available to run in the cluster."
+ },
+ "desiredBinaryAuthorization": {
+ "$ref": "BinaryAuthorization",
+ "description": "The desired configuration options for the Binary Authorization feature."
+ },
+ "desiredImageType": {
+ "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well.",
+ "type": "string"
+ },
+ "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"
+ },
+ "desiredMasterAuthorizedNetworksConfig": {
+ "$ref": "MasterAuthorizedNetworksConfig",
+ "description": "The desired configuration options for master authorized networks feature."
+ },
+ "desiredMasterVersion": {
+ "description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "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"
+ },
+ "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."
+ },
+ "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).\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
+ "type": "string"
+ },
+ "desiredPodSecurityPolicyConfig": {
+ "$ref": "PodSecurityPolicyConfig",
+ "description": "The desired configuration options for the PodSecurityPolicy feature."
+ },
+ "desiredClusterAutoscaling": {
+ "description": "Cluster-level autoscaling configuration.",
+ "$ref": "ClusterAutoscaling"
+ }
+ },
+ "type": "object"
+ },
+ "CompleteIPRotationRequest": {
+ "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.",
+ "id": "CompleteIPRotationRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CreateClusterRequest": {
+ "description": "CreateClusterRequest creates a cluster.",
+ "id": "CreateClusterRequest",
+ "properties": {
+ "cluster": {
+ "$ref": "Cluster",
+ "description": "A [cluster\nresource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)"
+ },
+ "parent": {
+ "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CreateNodePoolRequest": {
+ "description": "CreateNodePoolRequest creates a node pool for a cluster.",
+ "id": "CreateNodePoolRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "nodePool": {
+ "$ref": "NodePool",
+ "description": "The node pool to create."
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DailyMaintenanceWindow": {
+ "description": "Time window specified for daily maintenance operations.",
+ "id": "DailyMaintenanceWindow",
+ "properties": {
+ "duration": {
+ "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
+ "type": "string"
+ },
+ "startTime": {
+ "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "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 `{}`.",
+ "id": "Empty",
+ "properties": {},
+ "type": "object"
+ },
+ "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.",
+ "id": "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"
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "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"
+ }
+ },
+ "type": "object"
+ },
+ "IPAllocationPolicy": {
+ "description": "Configuration for controlling how IPs are allocated in the cluster.",
+ "id": "IPAllocationPolicy",
+ "properties": {
+ "allowRouteOverlap": {
+ "description": "If true, allow allocation of cluster CIDR ranges that overlap with certain\nkinds of network routes. By default we do not allow cluster CIDR ranges to\nintersect with any user declared routes. With allow_route_overlap == true,\nwe allow overlapping with CIDR ranges that are larger than the cluster CIDR\nrange.\n\nIf this field is set to true, then cluster and services CIDRs must be\nfully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:\n1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and\n `services_ipv4_cidr_block` must be fully-specified.\n2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be\n fully-specified.",
+ "type": "boolean"
+ },
+ "clusterIpv4Cidr": {
+ "description": "This field is deprecated, use cluster_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "clusterIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "clusterSecondaryRangeName": {
+ "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
+ "type": "string"
+ },
+ "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"
+ },
+ "nodeIpv4Cidr": {
+ "description": "This field is deprecated, use node_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "nodeIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "servicesIpv4Cidr": {
+ "description": "This field is deprecated, use services_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "servicesIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "servicesSecondaryRangeName": {
+ "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
+ "type": "string"
+ },
+ "subnetworkName": {
+ "description": "A custom subnetwork name to be used if `create_subnetwork` is true. If\nthis field is empty, then an automatic name will be chosen for the new\nsubnetwork.",
+ "type": "string"
+ },
+ "useIpAliases": {
+ "description": "Whether alias IPs will be used for pod IPs in the cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "KubernetesDashboard": {
+ "description": "Configuration for the Kubernetes Dashboard.",
+ "id": "KubernetesDashboard",
+ "properties": {
+ "disabled": {
+ "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "LegacyAbac": {
+ "description": "Configuration for the legacy Attribute Based Access Control authorization\nmode.",
+ "id": "LegacyAbac",
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "ListClustersResponse": {
+ "description": "ListClustersResponse is the result of ListClustersRequest.",
+ "id": "ListClustersResponse",
+ "properties": {
+ "clusters": {
+ "description": "A list of clusters in the project in the specified zone, or\nacross all ones.",
+ "items": {
+ "$ref": "Cluster"
+ },
+ "type": "array"
+ },
+ "missingZones": {
+ "description": "If any zones are listed here, the list of clusters returned\nmay be missing those zones.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListLocationsResponse": {
+ "description": "ListLocationsResponse returns the list of all GKE locations and their\nrecommendation state.",
+ "id": "ListLocationsResponse",
+ "properties": {
+ "locations": {
+ "description": "A full list of GKE locations.",
+ "items": {
+ "$ref": "Location"
+ },
+ "type": "array"
+ },
+ "nextPageToken": {
+ "description": "Only return ListLocationsResponse that occur after the page_token. This\nvalue should be populated from the ListLocationsResponse.next_page_token if\nthat response token was set (which happens when listing more Locations than\nfit in a single ListLocationsResponse).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ListNodePoolsResponse": {
+ "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
+ "id": "ListNodePoolsResponse",
+ "properties": {
+ "nodePools": {
+ "description": "A list of node pools for a cluster.",
+ "items": {
+ "$ref": "NodePool"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListOperationsResponse": {
+ "description": "ListOperationsResponse is the result of ListOperationsRequest.",
+ "id": "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"
+ },
+ "type": "array"
+ },
+ "operations": {
+ "description": "A list of operations in the project in the specified zone.",
+ "items": {
+ "$ref": "Operation"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListUsableSubnetworksResponse": {
+ "description": "ListUsableSubnetworksResponse is the response of\nListUsableSubnetworksRequest.",
+ "id": "ListUsableSubnetworksResponse",
+ "properties": {
+ "nextPageToken": {
+ "description": "This token allows you to get the next page of results for list requests.\nIf the number of results is larger than `page_size`, use the\n`next_page_token` as a value for the query parameter `page_token` in the\nnext request. The value will become empty when there are no more pages.",
+ "type": "string"
+ },
+ "subnetworks": {
+ "description": "A list of usable subnetworks in the specified network project.",
+ "items": {
+ "$ref": "UsableSubnetwork"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Location": {
+ "description": "Location returns the location name, and if the location is recommended\nfor GKE cluster scheduling.",
+ "id": "Location",
+ "properties": {
+ "name": {
+ "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations/*'.",
+ "type": "string"
+ },
+ "recommended": {
+ "description": "Recommended is a bool combining the drain state of the location (ie- has\nthe region been drained manually?), and the stockout status of any zone\naccording to Zone Advisor. This will be internal only for use by pantheon.",
+ "type": "boolean"
+ },
+ "type": {
+ "description": "Contains the type of location this Location is for.\nRegional or Zonal.",
+ "enum": [
+ "LOCATION_TYPE_UNSPECIFIED",
+ "ZONE",
+ "REGION"
+ ],
+ "enumDescriptions": [
+ "LOCATION_TYPE_UNSPECIFIED means the location type was not determined.",
+ "A GKE Location where Zonal clusters can be created.",
+ "A GKE Location where Regional clusters can be created."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "MaintenancePolicy": {
+ "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
+ "id": "MaintenancePolicy",
+ "properties": {
+ "window": {
+ "$ref": "MaintenanceWindow",
+ "description": "Specifies the maintenance window in which maintenance may be performed."
+ }
+ },
+ "type": "object"
+ },
+ "MaintenanceWindow": {
+ "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
+ "id": "MaintenanceWindow",
+ "properties": {
+ "dailyMaintenanceWindow": {
+ "$ref": "DailyMaintenanceWindow",
+ "description": "DailyMaintenanceWindow specifies a daily maintenance operation window."
+ }
+ },
+ "type": "object"
+ },
+ "MasterAuth": {
+ "description": "The authentication information for accessing the master endpoint.\nAuthentication can be done using HTTP basic auth or using client\ncertificates.",
+ "id": "MasterAuth",
+ "properties": {
+ "clientCertificate": {
+ "description": "[Output only] Base64-encoded public certificate used by clients to\nauthenticate to the cluster endpoint.",
+ "type": "string"
+ },
+ "clientCertificateConfig": {
+ "$ref": "ClientCertificateConfig",
+ "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
+ },
+ "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"
+ },
+ "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"
+ },
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "MasterAuthorizedNetworksConfig": {
+ "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
+ "id": "MasterAuthorizedNetworksConfig",
+ "properties": {
+ "cidrBlocks": {
+ "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
+ "items": {
+ "$ref": "CidrBlock"
+ },
+ "type": "array"
+ },
+ "enabled": {
+ "description": "Whether or not master authorized networks is enabled.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "Metric": {
+ "description": "Progress metric is (string, int|float|string) pair.",
+ "id": "Metric",
+ "properties": {
+ "doubleValue": {
+ "description": "For metrics with floating point value.",
+ "format": "double",
+ "type": "number"
+ },
+ "intValue": {
+ "description": "For metrics with integer value.",
+ "format": "int64",
+ "type": "string"
+ },
+ "name": {
+ "description": "Metric name, required.\ne.g., \"nodes total\", \"percent done\"",
+ "type": "string"
+ },
+ "stringValue": {
+ "description": "For metrics with custom values (ratios, visual progress, etc.).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkConfig": {
+ "description": "NetworkConfig reports the relative names of network \u0026 subnetwork.",
+ "id": "NetworkConfig",
+ "properties": {
+ "network": {
+ "description": "Output only. The name of the Google Compute Engine\nnetwork(/compute/docs/networks-and-firewalls#networks).\nExample: projects/my-project/global/networks/my-network",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "Output only. The name of the Google Compute Engine\n[subnetwork](/compute/docs/vpc).\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkPolicy": {
+ "description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
+ "id": "NetworkPolicy",
+ "properties": {
+ "enabled": {
+ "description": "Whether network policy is enabled on the cluster.",
+ "type": "boolean"
+ },
+ "provider": {
+ "description": "The selected network policy provider.",
+ "enum": [
+ "PROVIDER_UNSPECIFIED",
+ "CALICO"
+ ],
+ "enumDescriptions": [
+ "Not set",
+ "Tigera (Calico Felix)."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkPolicyConfig": {
+ "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
+ "id": "NetworkPolicyConfig",
+ "properties": {
+ "disabled": {
+ "description": "Whether NetworkPolicy is enabled for this cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "NodeConfig": {
+ "description": "Parameters that describe the nodes in a cluster.",
+ "id": "NodeConfig",
+ "properties": {
+ "accelerators": {
+ "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
+ "items": {
+ "$ref": "AcceleratorConfig"
+ },
+ "type": "array"
+ },
+ "diskSizeGb": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "diskType": {
+ "description": "Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')\n\nIf unspecified, the default disk type is 'pd-standard'",
+ "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"
+ },
+ "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
+ "type": "object"
+ },
+ "localSsdCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "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"
+ },
+ "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 reserved keys:\n \"cluster-location\"\n \"cluster-name\"\n \"cluster-uid\"\n \"configure-sh\"\n \"gci-update-strategy\"\n \"gci-ensure-gke-docker\"\n \"instance-template\"\n \"kube-env\"\n \"startup-script\"\n \"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"
+ },
+ "minCpuPlatform": {
+ "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Haswell\u0026quot;\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Sandy Bridge\u0026quot;\u003c/code\u003e. For more\ninformation, read [how to specify min CPU\nplatform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
+ "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"
+ },
+ "preemptible": {
+ "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
+ "type": "boolean"
+ },
+ "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"
+ },
+ "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"
+ },
+ "taints": {
+ "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
+ "items": {
+ "$ref": "NodeTaint"
+ },
+ "type": "array"
+ },
+ "workloadMetadataConfig": {
+ "$ref": "WorkloadMetadataConfig",
+ "description": "The workload metadata configuration for this node."
+ }
+ },
+ "type": "object"
+ },
+ "NodeManagement": {
+ "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
+ "id": "NodeManagement",
+ "properties": {
+ "autoRepair": {
+ "description": "Whether the nodes will be automatically repaired.",
+ "type": "boolean"
+ },
+ "autoUpgrade": {
+ "description": "Whether the nodes will be automatically upgraded.",
+ "type": "boolean"
+ },
+ "upgradeOptions": {
+ "$ref": "AutoUpgradeOptions",
+ "description": "Specifies the Auto Upgrade knobs for the node pool."
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "NodePool",
+ "properties": {
+ "autoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present."
+ },
+ "config": {
+ "$ref": "NodeConfig",
+ "description": "The node configuration of the pool."
+ },
+ "initialNodeCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "instanceGroupUrls": {
+ "description": "[Output only] The resource URLs of the [managed instance\ngroups](/compute/docs/instance-groups/creating-groups-of-managed-instances)\nassociated with this node pool.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for this NodePool."
+ },
+ "name": {
+ "description": "The name of the node pool.",
+ "type": "string"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "status": {
+ "description": "[Output only] The status of the nodes in this pool instance.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RUNNING_WITH_ERROR",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR"
+ ],
+ "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."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\nnode pool instance, if available.",
+ "type": "string"
+ },
+ "version": {
+ "description": "The version of the Kubernetes of this node.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NodePoolAutoscaling": {
+ "description": "NodePoolAutoscaling contains information required by cluster autoscaler to\nadjust the size of the node pool to the current cluster usage.",
+ "id": "NodePoolAutoscaling",
+ "properties": {
+ "enabled": {
+ "description": "Is autoscaling enabled for this node pool.",
+ "type": "boolean"
+ },
+ "maxNodeCount": {
+ "description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There\nhas to enough quota to scale up the cluster.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "minNodeCount": {
+ "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c=\nmax_node_count.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "autoprovisioned": {
+ "description": "Can this node pool be deleted automatically.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "NodeTaint": {
+ "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
+ "id": "NodeTaint",
+ "properties": {
+ "effect": {
+ "description": "Effect for taint.",
+ "enum": [
+ "EFFECT_UNSPECIFIED",
+ "NO_SCHEDULE",
+ "PREFER_NO_SCHEDULE",
+ "NO_EXECUTE"
+ ],
+ "enumDescriptions": [
+ "Not set",
+ "NoSchedule",
+ "PreferNoSchedule",
+ "NoExecute"
+ ],
+ "type": "string"
+ },
+ "key": {
+ "description": "Key for taint.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Value for taint.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Operation": {
+ "description": "This operation resource represents operations that may have happened or are\nhappening on the cluster. All fields are output only.",
+ "id": "Operation",
+ "properties": {
+ "detail": {
+ "description": "Detailed operation progress, if available.",
+ "type": "string"
+ },
+ "endTime": {
+ "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "location": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The server-assigned ID for the operation.",
+ "type": "string"
+ },
+ "operationType": {
+ "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",
+ "AUTO_REPAIR_NODES",
+ "AUTO_UPGRADE_NODES",
+ "SET_LABELS",
+ "SET_MASTER_AUTH",
+ "SET_NODE_POOL_SIZE",
+ "SET_NETWORK_POLICY",
+ "SET_MAINTENANCE_POLICY"
+ ],
+ "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.",
+ "Set the maintenance policy."
+ ],
+ "type": "string"
+ },
+ "progress": {
+ "$ref": "OperationProgress",
+ "description": "[Output only] Progress information for an operation."
+ },
+ "selfLink": {
+ "description": "Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "startTime": {
+ "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "status": {
+ "description": "The current status of the operation.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "ABORTING"
+ ],
+ "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."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "If an error has occurred, a textual description of the error.",
+ "type": "string"
+ },
+ "targetLink": {
+ "description": "Server-defined URL for the target of the operation.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "OperationProgress": {
+ "description": "Information about operation (or operation stage) progress.",
+ "id": "OperationProgress",
+ "properties": {
+ "metrics": {
+ "description": "Progress metric bundle, for example:\n metrics: [{name: \"nodes done\", int_value: 15},\n {name: \"nodes total\", int_value: 32}]\nor\n metrics: [{name: \"progress\", double_value: 0.56},\n {name: \"progress scale\", double_value: 1.0}]",
+ "items": {
+ "$ref": "Metric"
},
- "methods": {
- "getServerConfig": {
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- "path": "v1beta1/{+name}/serverConfig",
- "id": "container.projects.locations.getServerConfig",
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead."
- },
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
+ "type": "array"
+ },
+ "name": {
+ "description": "A non-parameterized string describing an operation stage.\nUnset for single-stage operations.",
+ "type": "string"
+ },
+ "stages": {
+ "description": "Substages of an operation or a stage.",
+ "items": {
+ "$ref": "OperationProgress"
+ },
+ "type": "array"
+ },
+ "status": {
+ "description": "Status of an operation stage.\nUnset for single-stage operations.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "ABORTING"
+ ],
+ "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."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "PodSecurityPolicyConfig": {
+ "description": "Configuration for the PodSecurityPolicy feature.",
+ "id": "PodSecurityPolicyConfig",
+ "properties": {
+ "enabled": {
+ "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "ClusterAutoscaling": {
+ "id": "ClusterAutoscaling",
+ "description": "ClusterAutoscaling contains global, per-cluster information\nrequired by Cluster Autoscaler to automatically adjust\nthe size of the cluster and create\/delete\nnode pools based on the current needs.",
+ "type": "object",
+ "properties": {
+ "enableNodeAutoprovisioning": {
+ "description": "Enables automatic node pool creation and deletion.\nContains global constraints regarding minimum and maximum",
+ "type": "boolean"
+ },
+ "resourceLimits": {
+ "description": "amount of resources in the cluster.",
+ "type": "array",
+ "items": {
+ "$ref": "ResourceLimit"
}
}
}
- }
- },
- "parameters": {
- "quotaUser": {
- "location": "query",
- "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"
},
- "pp": {
- "default": "true",
- "type": "boolean",
- "location": "query",
- "description": "Pretty-print response."
+ "ResourceLimit": {
+ "id": "ResourceLimit",
+ "description": "Contains information about amount of some resource in the cluster.\nFor memory, value should be in GB.",
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "description": "Resource name \"cpu\", \"memory\" or gpu-specific string.",
+ "type": "string"
+ },
+ "minimum": {
+ "description": "Minimum amount of the resource in the cluster.",
+ "type": "string",
+ "format": "int64"
+ },
+ "maximum": {
+ "description": "Maximum amount of the resource in the cluster.",
+ "type": "string",
+ "format": "int64"
+ }
+ }
+ },
+ "RollbackNodePoolUpgradeRequest": {
+ "description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed\nNodePool upgrade. This will be an no-op if the last upgrade successfully\ncompleted.",
+ "id": "RollbackNodePoolUpgradeRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "oauth_token": {
- "location": "query",
- "description": "OAuth 2.0 token for the current user.",
- "type": "string"
+ "ServerConfig": {
+ "description": "Kubernetes Engine service configuration.",
+ "id": "ServerConfig",
+ "properties": {
+ "defaultClusterVersion": {
+ "description": "Version of Kubernetes the service deploys by default.",
+ "type": "string"
+ },
+ "defaultImageType": {
+ "description": "Default image type.",
+ "type": "string"
+ },
+ "validImageTypes": {
+ "description": "List of valid image types.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "validMasterVersions": {
+ "description": "List of valid master versions.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "validNodeVersions": {
+ "description": "List of valid node upgrade target versions.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "SetAddonsConfigRequest": {
+ "description": "SetAddonsRequest sets the addons associated with the cluster.",
+ "id": "SetAddonsConfigRequest",
+ "properties": {
+ "addonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "The desired configurations for the various addons available to run in the\ncluster."
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "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",
+ "id": "SetLabelsRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the previous set of labels for this resource,\nused to detect conflicts. The fingerprint is initially generated by\nKubernetes 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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The labels to set for that cluster.",
+ "type": "object"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLegacyAbacRequest": {
+ "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
+ "id": "SetLegacyAbacRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "enabled": {
+ "description": "Whether ABAC authorization will be enabled in the cluster.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLocationsRequest": {
+ "description": "SetLocationsRequest sets the locations of the cluster.",
+ "id": "SetLocationsRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLoggingServiceRequest": {
+ "description": "SetLoggingServiceRequest sets the logging service of a cluster.",
+ "id": "SetLoggingServiceRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMaintenancePolicyRequest": {
+ "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster.",
+ "id": "SetMaintenancePolicyRequest",
+ "properties": {
+ "clusterId": {
+ "description": "The name of the cluster to update.",
+ "type": "string"
+ },
+ "maintenancePolicy": {
+ "$ref": "MaintenancePolicy",
+ "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy."
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMasterAuthRequest": {
+ "description": "SetMasterAuthRequest updates the admin password of a cluster.",
+ "id": "SetMasterAuthRequest",
+ "properties": {
+ "action": {
+ "description": "The exact form of action to be taken on the master auth.",
+ "enum": [
+ "UNKNOWN",
+ "SET_PASSWORD",
+ "GENERATE_PASSWORD",
+ "SET_USERNAME"
+ ],
+ "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.",
+ "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
+ ],
+ "type": "string"
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "update": {
+ "$ref": "MasterAuth",
+ "description": "A description of the update."
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMonitoringServiceRequest": {
+ "description": "SetMonitoringServiceRequest sets the monitoring service of a cluster.",
+ "id": "SetMonitoringServiceRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
- "type": "string",
- "location": "query"
+ "SetNetworkPolicyRequest": {
+ "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
+ "id": "SetNetworkPolicyRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "upload_protocol": {
- "location": "query",
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "type": "string"
+ "SetNodePoolAutoscalingRequest": {
+ "description": "SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.",
+ "id": "SetNodePoolAutoscalingRequest",
+ "properties": {
+ "autoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaling configuration for the node pool."
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "prettyPrint": {
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "type": "boolean",
- "location": "query"
+ "SetNodePoolManagementRequest": {
+ "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
+ "id": "SetNodePoolManagementRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for the node pool."
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "fields": {
- "location": "query",
- "description": "Selector specifying which fields to include in a partial response.",
- "type": "string"
+ "SetNodePoolSizeRequest": {
+ "description": "SetNodePoolSizeRequest sets the size a node\npool.",
+ "id": "SetNodePoolSizeRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodeCount": {
+ "description": "The desired node count for the pool.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "type": "string",
- "location": "query"
+ "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.",
+ "id": "StartIPRotationRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "rotateCredentials": {
+ "description": "Whether to rotate credentials during IP rotation.",
+ "type": "boolean"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "callback": {
- "type": "string",
- "location": "query",
- "description": "JSONP"
+ "UpdateClusterRequest": {
+ "description": "UpdateClusterRequest updates the settings of a cluster.",
+ "id": "UpdateClusterRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "update": {
+ "$ref": "ClusterUpdate",
+ "description": "A description of the update."
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "$.xgafv": {
- "enum": [
- "1",
- "2"
- ],
- "description": "V1 error format.",
- "type": "string",
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
- "location": "query"
+ "UpdateMasterRequest": {
+ "description": "UpdateMasterRequest updates the master of the cluster.",
+ "id": "UpdateMasterRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "masterVersion": {
+ "description": "The Kubernetes version to change the master to.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "alt": {
- "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",
- "description": "Data format for response.",
- "default": "json"
+ "UpdateNodePoolRequest": {
+ "description": "SetNodePoolVersionRequest updates the version of a node pool.",
+ "id": "UpdateNodePoolRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "imageType": {
+ "description": "The desired image type for the node pool.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "nodeVersion": {
+ "description": "The Kubernetes version to change the nodes to (typically an\nupgrade).\n\nUsers may specify either explicit versions offered by Kubernetes Engine or\nversion aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "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"
+ "UsableSubnetwork": {
+ "description": "UsableSubnetwork resource returns the subnetwork name, its associated network\nand the primary CIDR range.",
+ "id": "UsableSubnetwork",
+ "properties": {
+ "ipCidrRange": {
+ "description": "The range of internal addresses that are owned by this subnetwork.",
+ "type": "string"
+ },
+ "network": {
+ "description": "Network Name.\nExample: projects/my-project/global/networks/my-network",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "Subnetwork Name.\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "access_token": {
- "location": "query",
- "description": "OAuth access token.",
- "type": "string"
+ "WorkloadMetadataConfig": {
+ "description": "WorkloadMetadataConfig defines the metadata configuration to expose to\nworkloads on the node pool.",
+ "id": "WorkloadMetadataConfig",
+ "properties": {
+ "nodeMetadata": {
+ "description": "NodeMetadata is the configuration for how to expose the node metadata to\nthe workload running on the node.",
+ "enum": [
+ "UNSPECIFIED",
+ "SECURE",
+ "EXPOSE"
+ ],
+ "enumDescriptions": [
+ "Not set.",
+ "Prevent workloads not in hostNetwork from accessing certain VM metadata,\nspecifically kube-env, which contains Kubelet credentials, and the\ninstance identity token.\n\nMetadata concealment is a temporary security solution available while the\nbootstrapping process for cluster nodes is being redesigned with\nsignificant security improvements. This feature is scheduled to be\ndeprecated in the future and later removed.",
+ "Expose all VM metadata to pods."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
}
},
- "version": "v1beta1",
- "baseUrl": "https://container.googleapis.com/",
- "kind": "discovery#restDescription",
- "description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"servicePath": "",
- "basePath": "",
- "revision": "20170929",
- "documentationLink": "https://cloud.google.com/container-engine/",
- "id": "container:v1beta1",
- "discoveryVersion": "v1",
+ "title": "Kubernetes Engine API",
+ "version": "v1beta1",
"version_module": true
}
diff --git a/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-gen.go b/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-gen.go
index 70e08e8a3107..b295acfa0ead 100644
--- a/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-gen.go
+++ b/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/container-gen.go
@@ -1,4 +1,4 @@
-// Package container provides access to the Google Container Engine API.
+// Package container provides access to the Kubernetes Engine API.
//
// See https://cloud.google.com/container-engine/
//
@@ -77,6 +77,7 @@ func (s *Service) userAgent() string {
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
+ rs.Aggregated = NewProjectsAggregatedService(s)
rs.Locations = NewProjectsLocationsService(s)
rs.Zones = NewProjectsZonesService(s)
return rs
@@ -85,11 +86,34 @@ func NewProjectsService(s *Service) *ProjectsService {
type ProjectsService struct {
s *Service
+ Aggregated *ProjectsAggregatedService
+
Locations *ProjectsLocationsService
Zones *ProjectsZonesService
}
+func NewProjectsAggregatedService(s *Service) *ProjectsAggregatedService {
+ rs := &ProjectsAggregatedService{s: s}
+ rs.UsableSubnetworks = NewProjectsAggregatedUsableSubnetworksService(s)
+ return rs
+}
+
+type ProjectsAggregatedService struct {
+ s *Service
+
+ UsableSubnetworks *ProjectsAggregatedUsableSubnetworksService
+}
+
+func NewProjectsAggregatedUsableSubnetworksService(s *Service) *ProjectsAggregatedUsableSubnetworksService {
+ rs := &ProjectsAggregatedUsableSubnetworksService{s: s}
+ return rs
+}
+
+type ProjectsAggregatedUsableSubnetworksService struct {
+ s *Service
+}
+
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Clusters = NewProjectsLocationsClustersService(s)
@@ -211,8 +235,8 @@ type AcceleratorConfig struct {
}
func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) {
- type noMethod AcceleratorConfig
- raw := noMethod(*s)
+ type NoMethod AcceleratorConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -263,8 +287,8 @@ type AddonsConfig struct {
}
func (s *AddonsConfig) MarshalJSON() ([]byte, error) {
- type noMethod AddonsConfig
- raw := noMethod(*s)
+ type NoMethod AddonsConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -304,8 +328,38 @@ type AutoUpgradeOptions struct {
}
func (s *AutoUpgradeOptions) MarshalJSON() ([]byte, error) {
- type noMethod AutoUpgradeOptions
- raw := noMethod(*s)
+ type NoMethod AutoUpgradeOptions
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// BinaryAuthorization: Configuration for Binary Authorization.
+type BinaryAuthorization struct {
+ // Enabled: Enable Binary Authorization for this cluster. If enabled,
+ // all container
+ // images will be validated by Google Binauthz.
+ 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 *BinaryAuthorization) MarshalJSON() ([]byte, error) {
+ type NoMethod BinaryAuthorization
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -317,22 +371,23 @@ type CancelOperationRequest struct {
// Specified in the format 'projects/*/locations/*/operations/*'.
Name string `json:"name,omitempty"`
- // OperationId: The server-assigned `name` of the operation.
- // This field is deprecated, use name instead.
+ // OperationId: Deprecated. The server-assigned `name` of the
+ // operation.
+ // This field has been deprecated and replaced by the name field.
OperationId string `json:"operationId,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the operation
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
@@ -353,8 +408,8 @@ type CancelOperationRequest struct {
}
func (s *CancelOperationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CancelOperationRequest
- raw := noMethod(*s)
+ type NoMethod CancelOperationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -385,8 +440,8 @@ type CidrBlock struct {
}
func (s *CidrBlock) MarshalJSON() ([]byte, error) {
- type noMethod CidrBlock
- raw := noMethod(*s)
+ type NoMethod CidrBlock
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -416,17 +471,23 @@ type ClientCertificateConfig struct {
}
func (s *ClientCertificateConfig) MarshalJSON() ([]byte, error) {
- type noMethod ClientCertificateConfig
- raw := noMethod(*s)
+ type NoMethod ClientCertificateConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// Cluster: A Google Container Engine cluster.
+// Cluster: A Google Kubernetes Engine cluster.
type Cluster struct {
// AddonsConfig: Configurations for the various addons available to run
// in the cluster.
AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
+ // Autoscaling: Cluster-level autoscaling configuration.
+ Autoscaling *ClusterAutoscaling `json:"autoscaling,omitempty"`
+
+ // BinaryAuthorization: Configuration for Binary Authorization.
+ BinaryAuthorization *BinaryAuthorization `json:"binaryAuthorization,omitempty"`
+
// ClusterIpv4Cidr: The IP address range of the container pods in this
// cluster,
// in
@@ -495,6 +556,17 @@ type Cluster struct {
// be upgraded over time; such upgrades are reflected
// in
// currentMasterVersion and currentNodeVersion.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "","-": picks the default Kubernetes version
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
// InitialNodeCount: The number of nodes to create in this cluster. You
@@ -513,15 +585,19 @@ type Cluster struct {
// time.
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
- // InstanceGroupUrls: [Output only] The resource URLs of
- // [instance
- // groups](/compute/docs/instance-groups/) associated with this
- // cluster.
+ // InstanceGroupUrls: Deprecated. Use node_pools.instance_group_urls.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
// 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"`
+
// Location: [Output only] The name of the Google Compute
// Engine
// [zone](/compute/docs/regions-zones/regions-zones#available)
@@ -558,6 +634,13 @@ type Cluster struct {
// authorized networks feature.
MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,omitempty"`
+ // MasterIpv4CidrBlock: The IP prefix in CIDR notation to use for the
+ // hosted master network.
+ // This prefix will be used for assigning private IP addresses to
+ // the
+ // master or set of masters, as well as the ILB VIP.
+ MasterIpv4CidrBlock string `json:"masterIpv4CidrBlock,omitempty"`
+
// MonitoringService: The monitoring service the cluster should use to
// write metrics.
// Currently available options:
@@ -584,9 +667,13 @@ type Cluster struct {
// [network](/compute/docs/networks-and-firewalls#networks) to which
// the
// cluster is connected. If left unspecified, the `default` network
- // will be used.
+ // will be used. On output this shows the network ID instead of
+ // the name.
Network string `json:"network,omitempty"`
+ // NetworkConfig: Configuration for cluster networking.
+ NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
+
// NetworkPolicy: Configuration options for the NetworkPolicy feature.
NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
@@ -623,6 +710,18 @@ type Cluster struct {
// feature.
PodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"podSecurityPolicyConfig,omitempty"`
+ // PrivateCluster: If this is a private cluster setup. Private clusters
+ // are clusters that, by
+ // default have no external IP addresses on the nodes and where nodes
+ // and the
+ // master communicate over private IP addresses.
+ PrivateCluster bool `json:"privateCluster,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"`
@@ -655,6 +754,10 @@ type Cluster struct {
// "ERROR" - The ERROR state indicates the cluster may be unusable.
// Details
// can be found in the `statusMessage` field.
+ // "DEGRADED" - The DEGRADED state indicates the cluster requires user
+ // action to restore
+ // full functionality. Details can be found in the `statusMessage`
+ // field.
Status string `json:"status,omitempty"`
// StatusMessage: [Output only] Additional information about the current
@@ -665,7 +768,9 @@ type Cluster struct {
// Subnetwork: The name of the Google Compute
// Engine
// [subnetwork](/compute/docs/subnetworks) to which the
- // cluster is connected.
+ // cluster is connected. On output this shows the subnetwork ID instead
+ // of
+ // the name.
Subnetwork string `json:"subnetwork,omitempty"`
// Zone: [Output only] The name of the Google Compute
@@ -698,8 +803,47 @@ type Cluster struct {
}
func (s *Cluster) MarshalJSON() ([]byte, error) {
- type noMethod Cluster
- raw := noMethod(*s)
+ type NoMethod Cluster
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ClusterAutoscaling: ClusterAutoscaling contains global, per-cluster
+// information
+// required by Cluster Autoscaler to automatically adjust
+// the size of the cluster and create/delete
+// node pools based on the current needs.
+type ClusterAutoscaling struct {
+ // EnableNodeAutoprovisioning: Enables automatic node pool creation and
+ // deletion.
+ // Contains global constraints regarding minimum and maximum
+ EnableNodeAutoprovisioning bool `json:"enableNodeAutoprovisioning,omitempty"`
+
+ // ResourceLimits: amount of resources in the cluster.
+ ResourceLimits []*ResourceLimit `json:"resourceLimits,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g.
+ // "EnableNodeAutoprovisioning") 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.
+ // "EnableNodeAutoprovisioning") 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 *ClusterAutoscaling) MarshalJSON() ([]byte, error) {
+ type NoMethod ClusterAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -713,6 +857,13 @@ type ClusterUpdate struct {
// to run in the cluster.
DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"`
+ // DesiredBinaryAuthorization: The desired configuration options for the
+ // Binary Authorization feature.
+ DesiredBinaryAuthorization *BinaryAuthorization `json:"desiredBinaryAuthorization,omitempty"`
+
+ // DesiredClusterAutoscaling: Cluster-level autoscaling configuration.
+ DesiredClusterAutoscaling *ClusterAutoscaling `json:"desiredClusterAutoscaling,omitempty"`
+
// DesiredImageType: The desired image type for the node pool.
// NOTE: Set the "desired_node_pool" field as well.
DesiredImageType string `json:"desiredImageType,omitempty"`
@@ -736,9 +887,18 @@ type ClusterUpdate struct {
// 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.
+ // latest supported version.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the default Kubernetes version
DesiredMasterVersion string `json:"desiredMasterVersion,omitempty"`
// DesiredMonitoringService: The monitoring service the cluster should
@@ -767,8 +927,18 @@ type ClusterUpdate struct {
// DesiredNodeVersion: The Kubernetes version to change the nodes to
// (typically an
- // upgrade). Use `-` to upgrade to the latest version supported by
- // the server.
+ // upgrade).
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the Kubernetes master version
DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
// DesiredPodSecurityPolicyConfig: The desired configuration options for
@@ -794,36 +964,37 @@ type ClusterUpdate struct {
}
func (s *ClusterUpdate) MarshalJSON() ([]byte, error) {
- type noMethod ClusterUpdate
- raw := noMethod(*s)
+ type NoMethod ClusterUpdate
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompleteIPRotationRequest: CompleteIPRotationRequest moves the
// cluster master back into single-IP mode.
type CompleteIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
- // complete IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
+ // complete IP
+ // rotation. Specified in the format
+ // 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -844,8 +1015,8 @@ type CompleteIPRotationRequest struct {
}
func (s *CompleteIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CompleteIPRotationRequest
- raw := noMethod(*s)
+ type NoMethod CompleteIPRotationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -862,19 +1033,19 @@ type CreateClusterRequest struct {
// Specified in the format 'projects/*/locations/*'.
Parent string `json:"parent,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use parent instead.
+ // field has been deprecated and replaced by the parent field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cluster") to
@@ -895,40 +1066,41 @@ type CreateClusterRequest struct {
}
func (s *CreateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateClusterRequest
- raw := noMethod(*s)
+ type NoMethod CreateClusterRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateNodePoolRequest: CreateNodePoolRequest creates a node pool for
// a cluster.
type CreateNodePoolRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use parent instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the parent field.
ClusterId string `json:"clusterId,omitempty"`
// NodePool: The node pool to create.
NodePool *NodePool `json:"nodePool,omitempty"`
// Parent: The parent (project, location, cluster id) where the node
- // pool will be created.
- // Specified in the format
+ // pool will be
+ // created. Specified in the
+ // format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Parent string `json:"parent,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -949,8 +1121,8 @@ type CreateNodePoolRequest struct {
}
func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateNodePoolRequest
- raw := noMethod(*s)
+ type NoMethod CreateNodePoolRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -986,8 +1158,8 @@ type DailyMaintenanceWindow struct {
}
func (s *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod DailyMaintenanceWindow
- raw := noMethod(*s)
+ type NoMethod DailyMaintenanceWindow
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1040,8 +1212,8 @@ type HorizontalPodAutoscaling struct {
}
func (s *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod HorizontalPodAutoscaling
- raw := noMethod(*s)
+ type NoMethod HorizontalPodAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1075,14 +1247,34 @@ type HttpLoadBalancing struct {
}
func (s *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
- type noMethod HttpLoadBalancing
- raw := noMethod(*s)
+ type NoMethod HttpLoadBalancing
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// IPAllocationPolicy: Configuration for controlling how IPs are
// allocated in the cluster.
type IPAllocationPolicy struct {
+ // AllowRouteOverlap: If true, allow allocation of cluster CIDR ranges
+ // that overlap with certain
+ // kinds of network routes. By default we do not allow cluster CIDR
+ // ranges to
+ // intersect with any user declared routes. With allow_route_overlap ==
+ // true,
+ // we allow overlapping with CIDR ranges that are larger than the
+ // cluster CIDR
+ // range.
+ //
+ // If this field is set to true, then cluster and services CIDRs must
+ // be
+ // fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+ // 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+ // `services_ipv4_cidr_block` must be fully-specified.
+ // 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse
+ // be
+ // fully-specified.
+ AllowRouteOverlap bool `json:"allowRouteOverlap,omitempty"`
+
// ClusterIpv4Cidr: This field is deprecated, use
// cluster_ipv4_cidr_block.
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
@@ -1201,15 +1393,15 @@ type IPAllocationPolicy struct {
// 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
+ // ForceSendFields is a list of field names (e.g. "AllowRouteOverlap")
+ // 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
+ // NullFields is a list of field names (e.g. "AllowRouteOverlap") 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
@@ -1220,8 +1412,8 @@ type IPAllocationPolicy struct {
}
func (s *IPAllocationPolicy) MarshalJSON() ([]byte, error) {
- type noMethod IPAllocationPolicy
- raw := noMethod(*s)
+ type NoMethod IPAllocationPolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1249,8 +1441,44 @@ type KubernetesDashboard struct {
}
func (s *KubernetesDashboard) MarshalJSON() ([]byte, error) {
- type noMethod KubernetesDashboard
- raw := noMethod(*s)
+ type NoMethod KubernetesDashboard
+ 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)
}
@@ -1289,8 +1517,51 @@ type ListClustersResponse struct {
}
func (s *ListClustersResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListClustersResponse
- raw := noMethod(*s)
+ type NoMethod ListClustersResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ListLocationsResponse: ListLocationsResponse returns the list of all
+// GKE locations and their
+// recommendation state.
+type ListLocationsResponse struct {
+ // Locations: A full list of GKE locations.
+ Locations []*Location `json:"locations,omitempty"`
+
+ // NextPageToken: Only return ListLocationsResponse that occur after the
+ // page_token. This
+ // value should be populated from the
+ // ListLocationsResponse.next_page_token if
+ // that response token was set (which happens when listing more
+ // Locations than
+ // fit in a single ListLocationsResponse).
+ NextPageToken string `json:"nextPageToken,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // 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
+ // 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. "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.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListLocationsResponse
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1322,8 +1593,8 @@ type ListNodePoolsResponse struct {
}
func (s *ListNodePoolsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListNodePoolsResponse
- raw := noMethod(*s)
+ type NoMethod ListNodePoolsResponse
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1361,8 +1632,102 @@ type ListOperationsResponse struct {
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListOperationsResponse
- raw := noMethod(*s)
+ type NoMethod ListOperationsResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ListUsableSubnetworksResponse: ListUsableSubnetworksResponse is the
+// response of
+// ListUsableSubnetworksRequest.
+type ListUsableSubnetworksResponse struct {
+ // NextPageToken: This token allows you to get the next page of results
+ // for list requests.
+ // If the number of results is larger than `page_size`, use
+ // the
+ // `next_page_token` as a value for the query parameter `page_token` in
+ // the
+ // next request. The value will become empty when there are no more
+ // pages.
+ NextPageToken string `json:"nextPageToken,omitempty"`
+
+ // Subnetworks: A list of usable subnetworks in the specified network
+ // project.
+ Subnetworks []*UsableSubnetwork `json:"subnetworks,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListUsableSubnetworksResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListUsableSubnetworksResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// Location: Location returns the location name, and if the location is
+// recommended
+// for GKE cluster scheduling.
+type Location struct {
+ // Name: Contains the name of the resource requested.
+ // Specific in the format 'projects/*/locations/*'.
+ Name string `json:"name,omitempty"`
+
+ // Recommended: Recommended is a bool combining the drain state of the
+ // location (ie- has
+ // the region been drained manually?), and the stockout status of any
+ // zone
+ // according to Zone Advisor. This will be internal only for use by
+ // pantheon.
+ Recommended bool `json:"recommended,omitempty"`
+
+ // Type: Contains the type of location this Location is for.
+ // Regional or Zonal.
+ //
+ // Possible values:
+ // "LOCATION_TYPE_UNSPECIFIED" - LOCATION_TYPE_UNSPECIFIED means the
+ // location type was not determined.
+ // "ZONE" - A GKE Location where Zonal clusters can be created.
+ // "REGION" - A GKE Location where Regional clusters can be created.
+ Type string `json:"type,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *Location) MarshalJSON() ([]byte, error) {
+ type NoMethod Location
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1391,8 +1756,8 @@ type MaintenancePolicy struct {
}
func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) {
- type noMethod MaintenancePolicy
- raw := noMethod(*s)
+ type NoMethod MaintenancePolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1423,8 +1788,8 @@ type MaintenanceWindow struct {
}
func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod MaintenanceWindow
- raw := noMethod(*s)
+ type NoMethod MaintenanceWindow
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1489,8 +1854,8 @@ type MasterAuth struct {
}
func (s *MasterAuth) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuth
- raw := noMethod(*s)
+ type NoMethod MasterAuth
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1528,8 +1893,101 @@ type MasterAuthorizedNetworksConfig struct {
}
func (s *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuthorizedNetworksConfig
- raw := noMethod(*s)
+ type NoMethod MasterAuthorizedNetworksConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// Metric: Progress metric is (string, int|float|string) pair.
+type Metric struct {
+ // DoubleValue: For metrics with floating point value.
+ DoubleValue float64 `json:"doubleValue,omitempty"`
+
+ // IntValue: For metrics with integer value.
+ IntValue int64 `json:"intValue,omitempty,string"`
+
+ // Name: Metric name, required.
+ // e.g., "nodes total", "percent done"
+ Name string `json:"name,omitempty"`
+
+ // StringValue: For metrics with custom values (ratios, visual progress,
+ // etc.).
+ StringValue string `json:"stringValue,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "DoubleValue") 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. "DoubleValue") 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 *Metric) MarshalJSON() ([]byte, error) {
+ type NoMethod Metric
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+func (s *Metric) UnmarshalJSON(data []byte) error {
+ type NoMethod Metric
+ var s1 struct {
+ DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
+ *NoMethod
+ }
+ s1.NoMethod = (*NoMethod)(s)
+ if err := json.Unmarshal(data, &s1); err != nil {
+ return err
+ }
+ s.DoubleValue = float64(s1.DoubleValue)
+ return nil
+}
+
+// NetworkConfig: NetworkConfig reports the relative names of network &
+// subnetwork.
+type NetworkConfig struct {
+ // Network: Output only. The name of the Google Compute
+ // Engine
+ // network(/compute/docs/networks-and-firewalls#networks).
+ // Example
+ // : projects/my-project/global/networks/my-network
+ Network string `json:"network,omitempty"`
+
+ // Subnetwork: Output only. The name of the Google Compute
+ // Engine
+ // [subnetwork](/compute/docs/vpc).
+ // Example:
+ // projects/my-project/regions/us-central1/subnetworks/my-subnet
+ Subnetwork string `json:"subnetwork,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Network") 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. "Network") 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 *NetworkConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod NetworkConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1566,8 +2024,8 @@ type NetworkPolicy struct {
}
func (s *NetworkPolicy) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicy
- raw := noMethod(*s)
+ type NoMethod NetworkPolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1598,8 +2056,8 @@ type NetworkPolicyConfig struct {
}
func (s *NetworkPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicyConfig
- raw := noMethod(*s)
+ type NoMethod NetworkPolicyConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1619,6 +2077,12 @@ type NodeConfig struct {
// If unspecified, the default disk size is 100GB.
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
+ // DiskType: Type of the disk attached to each node (e.g. 'pd-standard'
+ // or 'pd-ssd')
+ //
+ // If unspecified, the default disk type is 'pd-standard'
+ DiskType string `json:"diskType,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.
@@ -1669,10 +2133,17 @@ type NodeConfig struct {
// 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"
+ // metadata keys for the project or be one of the reserved keys:
+ // "cluster-location"
+ // "cluster-name"
+ // "cluster-uid"
+ // "configure-sh"
+ // "gci-update-strategy"
+ // "gci-ensure-gke-docker"
+ // "instance-template"
+ // "kube-env"
+ // "startup-script"
+ // "user-data"
//
// Values are free-form strings, and only have meaning as interpreted
// by
@@ -1692,9 +2163,10 @@ type NodeConfig struct {
// or
// minCpuPlatform: "Intel Sandy Bridge"
. For
// more
- // information, read [how to specify min CPU
- // platform](https://cloud.google.com/compute/docs/instances/specify-min-
- // cpu-platform)
+ // information, read [how to specify min
+ // CPU
+ // platform](https://cloud.google.com/compute/docs/instances/specify-
+ // min-cpu-platform)
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// OauthScopes: The set of Google API scopes to be made available on all
@@ -1750,6 +2222,10 @@ type NodeConfig struct {
// ation/
Taints []*NodeTaint `json:"taints,omitempty"`
+ // WorkloadMetadataConfig: The workload metadata configuration for this
+ // node.
+ WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"`
+
// ForceSendFields is a list of field names (e.g. "Accelerators") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1768,8 +2244,8 @@ type NodeConfig struct {
}
func (s *NodeConfig) MarshalJSON() ([]byte, error) {
- type noMethod NodeConfig
- raw := noMethod(*s)
+ type NoMethod NodeConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1804,8 +2280,8 @@ type NodeManagement struct {
}
func (s *NodeManagement) MarshalJSON() ([]byte, error) {
- type noMethod NodeManagement
- raw := noMethod(*s)
+ type NoMethod NodeManagement
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1838,10 +2314,11 @@ type NodePool struct {
// 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 the [managed
+ // instance
+ // groups](/compute/docs/instance-groups/creating-groups-of-mana
+ // ged-instances)
+ // associated with this node pool.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
// Management: NodeManagement configuration for this NodePool.
@@ -1885,7 +2362,7 @@ type NodePool struct {
// node pool instance, if available.
StatusMessage string `json:"statusMessage,omitempty"`
- // Version: [Output only] The version of the Kubernetes of this node.
+ // Version: The version of the Kubernetes of this node.
Version string `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1910,8 +2387,8 @@ type NodePool struct {
}
func (s *NodePool) MarshalJSON() ([]byte, error) {
- type noMethod NodePool
- raw := noMethod(*s)
+ type NoMethod NodePool
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1919,6 +2396,9 @@ func (s *NodePool) MarshalJSON() ([]byte, error) {
// required by cluster autoscaler to
// adjust the size of the node pool to the current cluster usage.
type NodePoolAutoscaling struct {
+ // Autoprovisioned: Can this node pool be deleted automatically.
+ Autoprovisioned bool `json:"autoprovisioned,omitempty"`
+
// Enabled: Is autoscaling enabled for this node pool.
Enabled bool `json:"enabled,omitempty"`
@@ -1932,7 +2412,7 @@ type NodePoolAutoscaling struct {
// max_node_count.
MinNodeCount int64 `json:"minNodeCount,omitempty"`
- // ForceSendFields is a list of field names (e.g. "Enabled") to
+ // ForceSendFields is a list of field names (e.g. "Autoprovisioned") 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
@@ -1940,18 +2420,19 @@ type NodePoolAutoscaling struct {
// 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod NodePoolAutoscaling
- raw := noMethod(*s)
+ // NullFields is a list of field names (e.g. "Autoprovisioned") 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
+ type NoMethod NodePoolAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1998,8 +2479,8 @@ type NodeTaint struct {
}
func (s *NodeTaint) MarshalJSON() ([]byte, error) {
- type noMethod NodeTaint
- raw := noMethod(*s)
+ type NoMethod NodeTaint
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2049,6 +2530,9 @@ type Operation struct {
// "SET_MAINTENANCE_POLICY" - Set the maintenance policy.
OperationType string `json:"operationType,omitempty"`
+ // Progress: [Output only] Progress information for an operation.
+ Progress *OperationProgress `json:"progress,omitempty"`
+
// SelfLink: Server-defined URL for the resource.
SelfLink string `json:"selfLink,omitempty"`
@@ -2103,8 +2587,60 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
- type noMethod Operation
- raw := noMethod(*s)
+ type NoMethod Operation
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// OperationProgress: Information about operation (or operation stage)
+// progress.
+type OperationProgress struct {
+ // Metrics: Progress metric bundle, for example:
+ // metrics: [{name: "nodes done", int_value: 15},
+ // {name: "nodes total", int_value: 32}]
+ // or
+ // metrics: [{name: "progress", double_value: 0.56},
+ // {name: "progress scale", double_value: 1.0}]
+ Metrics []*Metric `json:"metrics,omitempty"`
+
+ // Name: A non-parameterized string describing an operation stage.
+ // Unset for single-stage operations.
+ Name string `json:"name,omitempty"`
+
+ // Stages: Substages of an operation or a stage.
+ Stages []*OperationProgress `json:"stages,omitempty"`
+
+ // Status: Status of an operation stage.
+ // Unset for single-stage operations.
+ //
+ // Possible values:
+ // "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"`
+
+ // ForceSendFields is a list of field names (e.g. "Metrics") 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. "Metrics") 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 *OperationProgress) MarshalJSON() ([]byte, error) {
+ type NoMethod OperationProgress
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2134,8 +2670,44 @@ type PodSecurityPolicyConfig struct {
}
func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod PodSecurityPolicyConfig
- raw := noMethod(*s)
+ type NoMethod PodSecurityPolicyConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ResourceLimit: Contains information about amount of some resource in
+// the cluster.
+// For memory, value should be in GB.
+type ResourceLimit struct {
+ // Maximum: Maximum amount of the resource in the cluster.
+ Maximum int64 `json:"maximum,omitempty,string"`
+
+ // Minimum: Minimum amount of the resource in the cluster.
+ Minimum int64 `json:"minimum,omitempty,string"`
+
+ // ResourceType: Resource name "cpu", "memory" or gpu-specific string.
+ ResourceType string `json:"resourceType,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Maximum") 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. "Maximum") 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 *ResourceLimit) MarshalJSON() ([]byte, error) {
+ type NoMethod ResourceLimit
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2145,8 +2717,8 @@ func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
// successfully
// completed.
type RollbackNodePoolUpgradeRequest struct {
- // ClusterId: The name of the cluster to rollback.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to rollback.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster, node pool id) of the node
@@ -2156,23 +2728,23 @@ type RollbackNodePoolUpgradeRequest struct {
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Name string `json:"name,omitempty"`
- // NodePoolId: The name of the node pool to rollback.
- // This field is deprecated, use name instead.
+ // NodePoolId: Deprecated. The name of the node pool to rollback.
+ // This field has been deprecated and replaced by the name field.
NodePoolId string `json:"nodePoolId,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2193,12 +2765,12 @@ type RollbackNodePoolUpgradeRequest struct {
}
func (s *RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) {
- type noMethod RollbackNodePoolUpgradeRequest
- raw := noMethod(*s)
+ type NoMethod RollbackNodePoolUpgradeRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// ServerConfig: Container Engine service configuration.
+// ServerConfig: Kubernetes Engine service configuration.
type ServerConfig struct {
// DefaultClusterVersion: Version of Kubernetes the service deploys by
// default.
@@ -2240,8 +2812,63 @@ type ServerConfig struct {
}
func (s *ServerConfig) MarshalJSON() ([]byte, error) {
- type noMethod ServerConfig
- raw := noMethod(*s)
+ type NoMethod ServerConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetAddonsConfigRequest: SetAddonsRequest 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"`
+
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // addons.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // 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
+ // 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. "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)
}
@@ -2251,15 +2878,15 @@ func (s *ServerConfig) MarshalJSON() ([]byte, error) {
// Engine
// resources used by that cluster
type SetLabelsRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// 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
+ // Kubernetes Engine and changes after every request to modify or
// update
// labels. You must always provide an up-to-date fingerprint hash
// when
@@ -2273,22 +2900,22 @@ type SetLabelsRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// ResourceLabels: The labels to set for that cluster.
ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2309,8 +2936,8 @@ type SetLabelsRequest struct {
}
func (s *SetLabelsRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLabelsRequest
- raw := noMethod(*s)
+ type NoMethod SetLabelsRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2318,8 +2945,8 @@ func (s *SetLabelsRequest) MarshalJSON() ([]byte, error) {
// ABAC authorization mechanism for
// a cluster.
type SetLegacyAbacRequest struct {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Enabled: Whether ABAC authorization will be enabled in the cluster.
@@ -2330,19 +2957,19 @@ type SetLegacyAbacRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2363,8 +2990,129 @@ type SetLegacyAbacRequest struct {
}
func (s *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLegacyAbacRequest
- raw := noMethod(*s)
+ type NoMethod SetLegacyAbacRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLocationsRequest: SetLocationsRequest sets the locations of the
+// cluster.
+type SetLocationsRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // locations.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetLocationsRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod SetLocationsRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLoggingServiceRequest: SetLoggingServiceRequest sets the logging
+// service of a cluster.
+type SetLoggingServiceRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // logging.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
}
@@ -2414,8 +3162,8 @@ type SetMaintenancePolicyRequest struct {
}
func (s *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMaintenancePolicyRequest
- raw := noMethod(*s)
+ type NoMethod SetMaintenancePolicyRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2437,8 +3185,8 @@ type SetMasterAuthRequest struct {
// one.
Action string `json:"action,omitempty"`
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster) of the cluster to set
@@ -2446,22 +3194,22 @@ type SetMasterAuthRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// Update: A description of the update.
Update *MasterAuth `json:"update,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to
@@ -2482,39 +3230,44 @@ type SetMasterAuthRequest struct {
}
func (s *SetMasterAuthRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMasterAuthRequest
- raw := noMethod(*s)
+ type NoMethod SetMasterAuthRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
-// network policy for a cluster.
-type SetNetworkPolicyRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+// SetMonitoringServiceRequest: SetMonitoringServiceRequest sets the
+// monitoring service of a cluster.
+type SetMonitoringServiceRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
- // Name: The name (project, location, cluster id) of the cluster to set
- // networking policy.
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // monitoring.
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // NetworkPolicy: Configuration options for the NetworkPolicy feature.
- NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2534,47 +3287,40 @@ type SetNetworkPolicyRequest struct {
NullFields []string `json:"-"`
}
-func (s *SetNetworkPolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetNetworkPolicyRequest
- raw := noMethod(*s)
+func (s *SetMonitoringServiceRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod SetMonitoringServiceRequest
+ 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 {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
+// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
+// network policy for a cluster.
+type SetNetworkPolicyRequest struct {
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
- // Management: NodeManagement configuration for the node pool.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // pool to set
- // management properties. Specified in the
- // format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ // Name: The name (project, location, cluster id) of the cluster to set
+ // networking
+ // policy. Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // NodePoolId: The name of the node pool to update.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
+ // NetworkPolicy: Configuration options for the NetworkPolicy feature.
+ NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
+ // number](https://developers.google.com/console/help/new/#projec
+ // tnumber).
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2594,9 +3340,188 @@ type SetNodePoolManagementRequest struct {
NullFields []string `json:"-"`
}
-func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetNodePoolManagementRequest
- raw := noMethod(*s)
+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"`
+
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool) of the node
+ // pool to set
+ // autoscaler settings. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,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 {
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Management: NodeManagement configuration for the node pool.
+ Management *NodeManagement `json:"management,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool id) of the node
+ // pool to set
+ // management properties. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to update.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 {
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool id) of the node
+ // pool to set
+ // size.
+ // Specified in the format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodeCount: The desired node count for the pool.
+ NodeCount int64 `json:"nodeCount,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to update.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
}
@@ -2604,28 +3529,32 @@ func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
// the cluster and then performs
// a node upgrade on each node pool to point to the new IP.
type StartIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
- // start IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
+ // start IP
+ // rotation. Specified in the format
+ // 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // RotateCredentials: Whether to rotate credentials during IP rotation.
+ RotateCredentials bool `json:"rotateCredentials,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2646,16 +3575,16 @@ type StartIPRotationRequest struct {
}
func (s *StartIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod StartIPRotationRequest
- raw := noMethod(*s)
+ type NoMethod StartIPRotationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
// cluster.
type UpdateClusterRequest struct {
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster) of the cluster to
@@ -2663,22 +3592,22 @@ type UpdateClusterRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// Update: A description of the update.
Update *ClusterUpdate `json:"update,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2699,99 +3628,2995 @@ type UpdateClusterRequest struct {
}
func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod UpdateClusterRequest
- raw := noMethod(*s)
+ type NoMethod UpdateClusterRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// method id "container.projects.locations.getServerConfig":
+// UpdateMasterRequest: UpdateMasterRequest updates the master of the
+// cluster.
+type UpdateMasterRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
-type ProjectsLocationsGetServerConfigCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+ // MasterVersion: The Kubernetes version to change the master to.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the default Kubernetes version
+ MasterVersion string `json:"masterVersion,omitempty"`
+
+ // Name: The name (project, location, cluster) of the cluster to
+ // update.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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:"-"`
}
-// GetServerConfig: Returns configuration info about the Container
-// Engine service.
-func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
- c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
+func (s *UpdateMasterRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateMasterRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+// UpdateNodePoolRequest: SetNodePoolVersionRequest updates the version
+// of a node pool.
+type UpdateNodePoolRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // ImageType: The desired image type for the node pool.
+ ImageType string `json:"imageType,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool) of the node
+ // pool to
+ // update. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // NodeVersion: The Kubernetes version to change the nodes to (typically
+ // an
+ // upgrade).
+ //
+ // Users may specify either explicit versions offered by Kubernetes
+ // Engine or
+ // version aliases, which have the following behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the Kubernetes master version
+ NodeVersion string `json:"nodeVersion,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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:"-"`
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("zone", zone)
- return c
+func (s *UpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateNodePoolRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// Fields allows partial responses to be retrieved. See
-// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
-// for more information.
-func (c *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
+// UsableSubnetwork: UsableSubnetwork resource returns the subnetwork
+// name, its associated network
+// and the primary CIDR range.
+type UsableSubnetwork struct {
+ // IpCidrRange: The range of internal addresses that are owned by this
+ // subnetwork.
+ IpCidrRange string `json:"ipCidrRange,omitempty"`
+
+ // Network: Network Name.
+ // Example: projects/my-project/global/networks/my-network
+ Network string `json:"network,omitempty"`
+
+ // Subnetwork: Subnetwork Name.
+ // Example:
+ // projects/my-project/regions/us-central1/subnetworks/my-subnet
+ Subnetwork string `json:"subnetwork,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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 *UsableSubnetwork) MarshalJSON() ([]byte, error) {
+ type NoMethod UsableSubnetwork
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// WorkloadMetadataConfig: WorkloadMetadataConfig defines the metadata
+// configuration to expose to
+// workloads on the node pool.
+type WorkloadMetadataConfig struct {
+ // NodeMetadata: NodeMetadata is the configuration for how to expose the
+ // node metadata to
+ // the workload running on the node.
+ //
+ // Possible values:
+ // "UNSPECIFIED" - Not set.
+ // "SECURE" - Prevent workloads not in hostNetwork from accessing
+ // certain VM metadata,
+ // specifically kube-env, which contains Kubelet credentials, and
+ // the
+ // instance identity token.
+ //
+ // Metadata concealment is a temporary security solution available while
+ // the
+ // bootstrapping process for cluster nodes is being redesigned
+ // with
+ // significant security improvements. This feature is scheduled to
+ // be
+ // deprecated in the future and later removed.
+ // "EXPOSE" - Expose all VM metadata to pods.
+ NodeMetadata string `json:"nodeMetadata,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "NodeMetadata") 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. "NodeMetadata") 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 *WorkloadMetadataConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod WorkloadMetadataConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// method id "container.projects.aggregated.usableSubnetworks.list":
+
+type ProjectsAggregatedUsableSubnetworksListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Lists subnetworks that are usable for creating clusters in a
+// project.
+func (r *ProjectsAggregatedUsableSubnetworksService) List(parent string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c := &ProjectsAggregatedUsableSubnetworksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Filter sets the optional parameter "filter": Filtering currently only
+// supports equality on the networkProjectId and must
+// be in the form: "networkProjectId=[PROJECTID]", where
+// `networkProjectId`
+// is the project which owns the listed subnetworks. This defaults to
+// the
+// parent project ID.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) Filter(filter string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("filter", filter)
+ return c
+}
+
+// PageSize sets the optional parameter "pageSize": The max number of
+// results per page that should be returned. If the number
+// of available results is larger than `page_size`, a `next_page_token`
+// is
+// returned which can be used to get the next page of results in
+// subsequent
+// requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+func (c *ProjectsAggregatedUsableSubnetworksListCall) PageSize(pageSize int64) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
+ return c
+}
+
+// PageToken sets the optional parameter "pageToken": Specifies a page
+// token to use. Set this to the nextPageToken returned by
+// previous list requests to get the next page of results.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) PageToken(pageToken string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("pageToken", pageToken)
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Fields(s ...googleapi.Field) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) IfNoneMatch(entityTag string) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Context(ctx context.Context) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsAggregatedUsableSubnetworksListCall) 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, "v1beta1/{+parent}/aggregated/usableSubnetworks")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.aggregated.usableSubnetworks.list" call.
+// Exactly one of *ListUsableSubnetworksResponse or error will be
+// non-nil. Any non-2xx status code is an error. Response headers are in
+// either *ListUsableSubnetworksResponse.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 *ProjectsAggregatedUsableSubnetworksListCall) Do(opts ...googleapi.CallOption) (*ListUsableSubnetworksResponse, 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 := &ListUsableSubnetworksResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Lists subnetworks that are usable for creating clusters in a project.",
+ // "flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
+ // "httpMethod": "GET",
+ // "id": "container.projects.aggregated.usableSubnetworks.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "filter": {
+ // "description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "pageSize": {
+ // "description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
+ // "format": "int32",
+ // "location": "query",
+ // "type": "integer"
+ // },
+ // "pageToken": {
+ // "description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "parent": {
+ // "description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
+ // "response": {
+ // "$ref": "ListUsableSubnetworksResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// Pages invokes f for each page of results.
+// A non-nil error returned from f will halt the iteration.
+// The provided context supersedes any context provided to the Context method.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) Pages(ctx context.Context, f func(*ListUsableSubnetworksResponse) error) error {
+ c.ctx_ = ctx
+ defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
+ for {
+ x, err := c.Do()
+ if err != nil {
+ return err
+ }
+ if err := f(x); err != nil {
+ return err
+ }
+ if x.NextPageToken == "" {
+ return nil
+ }
+ c.PageToken(x.NextPageToken)
+ }
+}
+
+// method id "container.projects.locations.getServerConfig":
+
+type ProjectsLocationsGetServerConfigCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetServerConfig: Returns configuration info about the Kubernetes
+// Engine service.
+func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
+ c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) to return operations for.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
+ c.urlParams_.Set("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 *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsGetServerConfigCall) 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, "v1beta1/{+name}/serverConfig")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsGetServerConfigCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Returns configuration info about the Kubernetes Engine service.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.getServerConfig",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}/serverConfig",
+ // "response": {
+ // "$ref": "ServerConfig"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.list":
+
+type ProjectsLocationsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List:
+func (r *ProjectsLocationsService) List(parent string) *ProjectsLocationsListCall {
+ c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsListCall) 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, "v1beta1/{+parent}/locations")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.list" call.
+// Exactly one of *ListLocationsResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/locations",
+ // "response": {
+ // "$ref": "ListLocationsResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.completeIpRotation":
+
+type ProjectsLocationsClustersCompleteIpRotationCall struct {
+ s *Service
+ name string
+ completeiprotationrequest *CompleteIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// CompleteIpRotation: Completes master IP rotation.
+func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
+ c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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, "v1beta1/{+name}:completeIpRotation")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCompleteIpRotationCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Completes master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.completeIpRotation",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:completeIpRotation",
+ // "request": {
+ // "$ref": "CompleteIPRotationRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.create":
+
+type ProjectsLocationsClustersCreateCall struct {
+ s *Service
+ parent 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
+ c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
+ 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
+ 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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersCreateCall) 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, "v1beta1/{+parent}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.create",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/clusters",
+ // "request": {
+ // "$ref": "CreateClusterRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.delete":
+
+type ProjectsLocationsClustersDeleteCall struct {
+ s *Service
+ name 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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
+ c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster to delete.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
+ 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
+ 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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersDeleteCall) 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, "v1beta1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("DELETE", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.locations.clusters.delete",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}",
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.get":
+
+type ProjectsLocationsClustersGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Gets the details for a specific cluster.
+func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
+ c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster to retrieve.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersGetCall) 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, "v1beta1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersGetCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Gets the details for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.clusters.get",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}",
+ // "response": {
+ // "$ref": "Cluster"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.list":
+
+type ProjectsLocationsClustersListCall struct {
+ s *Service
+ parent 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 *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
+ c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the cluster
+// resides, or "-" for all zones.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersListCall) 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, "v1beta1/{+parent}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersListCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.clusters.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/clusters",
+ // "response": {
+ // "$ref": "ListClustersResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setAddons":
+
+type ProjectsLocationsClustersSetAddonsCall struct {
+ s *Service
+ name string
+ setaddonsconfigrequest *SetAddonsConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetAddons: Sets the addons for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetAddons(name string, setaddonsconfigrequest *SetAddonsConfigRequest) *ProjectsLocationsClustersSetAddonsCall {
+ c := &ProjectsLocationsClustersSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetAddonsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetAddonsCall {
+ 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 *ProjectsLocationsClustersSetAddonsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetAddonsCall {
+ 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 *ProjectsLocationsClustersSetAddonsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetAddonsCall) 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, "v1beta1/{+name}:setAddons")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setAddons" 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 *ProjectsLocationsClustersSetAddonsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the addons for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setAddons",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setAddons",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setAddons",
+ // "request": {
+ // "$ref": "SetAddonsConfigRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLegacyAbac":
+
+type ProjectsLocationsClustersSetLegacyAbacCall struct {
+ s *Service
+ name string
+ setlegacyabacrequest *SetLegacyAbacRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
+// on a cluster.
+func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
+ c := &ProjectsLocationsClustersSetLegacyAbacCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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, "v1beta1/{+name}:setLegacyAbac")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLegacyAbac" 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 *ProjectsLocationsClustersSetLegacyAbacCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLegacyAbac",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLegacyAbac",
+ // "request": {
+ // "$ref": "SetLegacyAbacRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLocations":
+
+type ProjectsLocationsClustersSetLocationsCall struct {
+ s *Service
+ name string
+ setlocationsrequest *SetLocationsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLocations: Sets the locations for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetLocations(name string, setlocationsrequest *SetLocationsRequest) *ProjectsLocationsClustersSetLocationsCall {
+ c := &ProjectsLocationsClustersSetLocationsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLocationsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLocationsCall {
+ 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 *ProjectsLocationsClustersSetLocationsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLocationsCall {
+ 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 *ProjectsLocationsClustersSetLocationsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLocationsCall) 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, "v1beta1/{+name}:setLocations")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLocations" 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 *ProjectsLocationsClustersSetLocationsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the locations for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLocations",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLocations",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLocations",
+ // "request": {
+ // "$ref": "SetLocationsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLogging":
+
+type ProjectsLocationsClustersSetLoggingCall struct {
+ s *Service
+ name string
+ setloggingservicerequest *SetLoggingServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLogging: Sets the logging service for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetLogging(name string, setloggingservicerequest *SetLoggingServiceRequest) *ProjectsLocationsClustersSetLoggingCall {
+ c := &ProjectsLocationsClustersSetLoggingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLoggingCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLoggingCall {
+ 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 *ProjectsLocationsClustersSetLoggingCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLoggingCall {
+ 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 *ProjectsLocationsClustersSetLoggingCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLoggingCall) 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, "v1beta1/{+name}:setLogging")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLogging" 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 *ProjectsLocationsClustersSetLoggingCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the logging service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLogging",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLogging",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLogging",
+ // "request": {
+ // "$ref": "SetLoggingServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMaintenancePolicy":
+
+type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
+ s *Service
+ name string
+ setmaintenancepolicyrequest *SetMaintenancePolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
+func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setMaintenancePolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the maintenance policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMaintenancePolicy",
+ // "request": {
+ // "$ref": "SetMaintenancePolicyRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMasterAuth":
+
+type ProjectsLocationsClustersSetMasterAuthCall struct {
+ s *Service
+ name 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 for a specific cluster.
+// This can be either via password generation or explicitly set.
+// Modify basic_auth.csv and reset the K8S API server.
+func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
+ c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMasterAuthCall) 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, "v1beta1/{+name}:setMasterAuth")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMasterAuth",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMasterAuth",
+ // "request": {
+ // "$ref": "SetMasterAuthRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMonitoring":
+
+type ProjectsLocationsClustersSetMonitoringCall struct {
+ s *Service
+ name string
+ setmonitoringservicerequest *SetMonitoringServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetMonitoring: Sets the monitoring service for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetMonitoring(name string, setmonitoringservicerequest *SetMonitoringServiceRequest) *ProjectsLocationsClustersSetMonitoringCall {
+ c := &ProjectsLocationsClustersSetMonitoringCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMonitoringCall {
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMonitoringCall {
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMonitoringCall) 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, "v1beta1/{+name}:setMonitoring")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setMonitoring" 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 *ProjectsLocationsClustersSetMonitoringCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the monitoring service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMonitoring",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMonitoring",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMonitoring",
+ // "request": {
+ // "$ref": "SetMonitoringServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setNetworkPolicy":
+
+type ProjectsLocationsClustersSetNetworkPolicyCall struct {
+ s *Service
+ name string
+ setnetworkpolicyrequest *SetNetworkPolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
+func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetNetworkPolicyCall) 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.setnetworkpolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setNetworkPolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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
+// *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 *ProjectsLocationsClustersSetNetworkPolicyCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Enables/Disables Network Policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setNetworkPolicy",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setNetworkPolicy",
+ // "request": {
+ // "$ref": "SetNetworkPolicyRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setResourceLabels":
+
+type ProjectsLocationsClustersSetResourceLabelsCall struct {
+ s *Service
+ name string
+ setlabelsrequest *SetLabelsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetResourceLabels: Sets labels on a cluster.
+func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
+ c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetResourceLabelsCall) 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, "v1beta1/{+name}:setResourceLabels")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setResourceLabels" 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 *ProjectsLocationsClustersSetResourceLabelsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets labels on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setResourceLabels",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setResourceLabels",
+ // "request": {
+ // "$ref": "SetLabelsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.startIpRotation":
+
+type ProjectsLocationsClustersStartIpRotationCall struct {
+ s *Service
+ name string
+ startiprotationrequest *StartIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// StartIpRotation: Start master IP rotation.
+func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
+ c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersStartIpRotationCall) 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.startiprotationrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:startIpRotation")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Start master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.startIpRotation",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:startIpRotation",
+ // "request": {
+ // "$ref": "StartIPRotationRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.update":
+
+type ProjectsLocationsClustersUpdateCall struct {
+ s *Service
+ name string
+ updateclusterrequest *UpdateClusterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Updates the settings for a specific cluster.
+func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
+ c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
+func (c *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
+func (c *ProjectsLocationsClustersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersUpdateCall) 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
+ 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, "v1beta1/{+name}/serverConfig")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -2799,14 +6624,14 @@ func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Resp
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.getServerConfig" call.
-// Exactly one of *ServerConfig or error will be non-nil. Any non-2xx
+// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption) (*ServerConfig, error) {
+func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2825,47 +6650,40 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ServerConfig{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Returns configuration info about the Container Engine service.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.getServerConfig",
+ // "description": "Updates the settings for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.locations.clusters.update",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
// }
// },
- // "path": "v1beta1/{+name}/serverConfig",
+ // "path": "v1beta1/{+name}",
+ // "request": {
+ // "$ref": "UpdateClusterRequest"
+ // },
// "response": {
- // "$ref": "ServerConfig"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2874,29 +6692,29 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption)
}
-// method id "container.projects.locations.clusters.completeIpRotation":
+// method id "container.projects.locations.clusters.updateMaster":
-type ProjectsLocationsClustersCompleteIpRotationCall struct {
- s *Service
- name string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersUpdateMasterCall struct {
+ s *Service
+ name string
+ updatemasterrequest *UpdateMasterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// CompleteIpRotation: Completes master IP rotation.
-func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
- c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// UpdateMaster: Updates the master for a specific cluster.
+func (r *ProjectsLocationsClustersService) UpdateMaster(name string, updatemasterrequest *UpdateMasterRequest) *ProjectsLocationsClustersUpdateMasterCall {
+ c := &ProjectsLocationsClustersUpdateMasterCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.completeiprotationrequest = completeiprotationrequest
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateMasterCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -2904,34 +6722,34 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateMasterCall {
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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersUpdateMasterCall) 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)
+ 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, "v1beta1/{+name}:completeIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:updateMaster")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -2941,14 +6759,14 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string)
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.completeIpRotation" call.
+// Do executes the "container.projects.locations.clusters.updateMaster" 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 *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2974,30 +6792,30 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.C
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Completes master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
+ // "description": "Updates the master for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:updateMaster",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.completeIpRotation",
+ // "id": "container.projects.locations.clusters.updateMaster",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:completeIpRotation",
+ // "path": "v1beta1/{+name}:updateMaster",
// "request": {
- // "$ref": "CompleteIPRotationRequest"
+ // "$ref": "UpdateMasterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3009,45 +6827,29 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.C
}
-// method id "container.projects.locations.clusters.create":
+// method id "container.projects.locations.clusters.nodePools.create":
-type ProjectsLocationsClustersCreateCall struct {
- s *Service
- parent string
- createclusterrequest *CreateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsCreateCall struct {
+ s *Service
+ parent string
+ createnodepoolrequest *CreateNodePoolRequest
+ 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
- c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Create: Creates a node pool for a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
+ c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
- c.createclusterrequest = createclusterrequest
+ 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3055,34 +6857,34 @@ func (c *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) 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)
+ 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, "v1beta1/{+parent}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3092,14 +6894,14 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.create" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3125,30 +6927,30 @@ func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "description": "Creates a node pool for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.create",
+ // "id": "container.projects.locations.clusters.nodePools.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ // "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/clusters",
+ // "path": "v1beta1/{+parent}/nodePools",
// "request": {
- // "$ref": "CreateClusterRequest"
+ // "$ref": "CreateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3160,9 +6962,9 @@ func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.delete":
+// method id "container.projects.locations.clusters.nodePools.delete":
-type ProjectsLocationsClustersDeleteCall struct {
+type ProjectsLocationsClustersNodePoolsDeleteCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
@@ -3170,50 +6972,47 @@ type ProjectsLocationsClustersDeleteCall struct {
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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
- c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Delete: Deletes a node pool from a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
+ c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("clusterId", clusterId)
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// NodePoolId sets the optional parameter "nodePoolId": Deprecated. The
+// name of the node pool to delete.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
+ c.urlParams_.Set("nodePoolId", nodePoolId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3221,7 +7020,7 @@ func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocatio
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3229,21 +7028,21 @@ func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3261,14 +7060,14 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.delete" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3294,38 +7093,43 @@ func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "description": "Deletes a node pool from a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
// "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.delete",
+ // "id": "container.projects.locations.clusters.nodePools.delete",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// }
@@ -3341,9 +7145,9 @@ func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.get":
+// method id "container.projects.locations.clusters.nodePools.get":
-type ProjectsLocationsClustersGetCall struct {
+type ProjectsLocationsClustersNodePoolsGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
@@ -3352,39 +7156,47 @@ type ProjectsLocationsClustersGetCall struct {
header_ http.Header
}
-// Get: Gets the details of a specific cluster.
-func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
- c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Get: Retrieves the node pool requested.
+func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
+ c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to retrieve.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("clusterId", clusterId)
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// NodePoolId sets the optional parameter "nodePoolId": Deprecated. The
+// name of the node pool.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
+ c.urlParams_.Set("nodePoolId", nodePoolId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3392,7 +7204,7 @@ func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsC
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3402,7 +7214,7 @@ func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *Project
// 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -3410,21 +7222,21 @@ func (c *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *Projec
// 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
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 *ProjectsLocationsClustersGetCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3445,14 +7257,14 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.get" call.
-// Exactly one of *Cluster or error will be non-nil. Any non-2xx status
+// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error) {
+// *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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3471,52 +7283,57 @@ func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cl
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Cluster{
+ ret := &NodePool{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the details of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "description": "Retrieves the node pool requested.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
// "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.get",
+ // "id": "container.projects.locations.clusters.nodePools.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}",
// "response": {
- // "$ref": "Cluster"
+ // "$ref": "NodePool"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -3525,9 +7342,9 @@ func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cl
}
-// method id "container.projects.locations.clusters.list":
+// method id "container.projects.locations.clusters.nodePools.list":
-type ProjectsLocationsClustersListCall struct {
+type ProjectsLocationsClustersNodePoolsListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
@@ -3536,32 +7353,39 @@ type ProjectsLocationsClustersListCall struct {
header_ http.Header
}
-// List: Lists all clusters owned by a project in either the specified
-// zone or all
-// zones.
-func (r *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
- c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// List: Lists the node pools for a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
+ c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the cluster
-// resides, or "-" for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3569,7 +7393,7 @@ func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocations
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3579,7 +7403,7 @@ func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *Projec
// 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -3587,21 +7411,21 @@ func (c *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *Proje
// 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
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 *ProjectsLocationsClustersListCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3612,7 +7436,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
@@ -3622,14 +7446,14 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.list" call.
-// Exactly one of *ListClustersResponse or error will be non-nil. Any
+// Do executes the "container.projects.locations.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
-// *ListClustersResponse.ServerResponse.Header or (if a response was
+// *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 *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error) {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3648,47 +7472,52 @@ func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*L
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListClustersResponse{
+ ret := &ListNodePoolsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "description": "Lists the node pools for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
// "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.list",
+ // "id": "container.projects.locations.clusters.nodePools.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "location": "query",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "query",
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/clusters",
+ // "path": "v1beta1/{+parent}/nodePools",
// "response": {
- // "$ref": "ListClustersResponse"
+ // "$ref": "ListNodePoolsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -3697,30 +7526,31 @@ func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*L
}
-// method id "container.projects.locations.clusters.setLegacyAbac":
+// method id "container.projects.locations.clusters.nodePools.rollback":
-type ProjectsLocationsClustersSetLegacyAbacCall struct {
- s *Service
- name string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsRollbackCall struct {
+ s *Service
+ name string
+ rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
-// on a cluster.
-func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
- c := &ProjectsLocationsClustersSetLegacyAbacCall{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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
+ c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setlegacyabacrequest = setlegacyabacrequest
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3728,34 +7558,34 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) 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)
+ 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, "v1beta1/{+name}:setLegacyAbac")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:rollback")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3765,14 +7595,14 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*htt
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setLegacyAbac" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3798,30 +7628,30 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setLegacyAbac",
+ // "id": "container.projects.locations.clusters.nodePools.rollback",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setLegacyAbac",
+ // "path": "v1beta1/{+name}:rollback",
// "request": {
- // "$ref": "SetLegacyAbacRequest"
+ // "$ref": "RollbackNodePoolUpgradeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3833,29 +7663,30 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.setMaintenancePolicy":
+// method id "container.projects.locations.clusters.nodePools.setAutoscaling":
-type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
- s *Service
- name string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetAutoscalingCall struct {
+ s *Service
+ name string
+ setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetAutoscaling: Sets the autoscaling settings of a specific node
+// pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetAutoscaling(name string, setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
+ c := &ProjectsLocationsClustersNodePoolsSetAutoscalingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3863,34 +7694,34 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleap
// 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) 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.setmaintenancepolicyrequest)
+ 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, "v1beta1/{+name}:setMaintenancePolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setAutoscaling")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3900,14 +7731,14 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" call.
+// Do executes the "container.projects.locations.clusters.nodePools.setAutoscaling" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3933,30 +7764,30 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the maintenance policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ // "description": "Sets the autoscaling settings of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setAutoscaling",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ // "id": "container.projects.locations.clusters.nodePools.setAutoscaling",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setMaintenancePolicy",
+ // "path": "v1beta1/{+name}:setAutoscaling",
// "request": {
- // "$ref": "SetMaintenancePolicyRequest"
+ // "$ref": "SetNodePoolAutoscalingRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3968,33 +7799,29 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi
}
-// method id "container.projects.locations.clusters.setMasterAuth":
+// method id "container.projects.locations.clusters.nodePools.setManagement":
-type ProjectsLocationsClustersSetMasterAuthCall struct {
- s *Service
- name string
- setmasterauthrequest *SetMasterAuthRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
+ s *Service
+ name string
+ setnodepoolmanagementrequest *SetNodePoolManagementRequest
+ 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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
- c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetManagement: Sets the NodeManagement options for a node pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+ c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setmasterauthrequest = setmasterauthrequest
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4002,34 +7829,34 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) 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)
+ 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, "v1beta1/{+name}:setMasterAuth")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setManagement")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4039,14 +7866,14 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*htt
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setMasterAuth" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4072,30 +7899,30 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ // "description": "Sets the NodeManagement options for a node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMasterAuth",
+ // "id": "container.projects.locations.clusters.nodePools.setManagement",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setMasterAuth",
+ // "path": "v1beta1/{+name}:setManagement",
// "request": {
- // "$ref": "SetMasterAuthRequest"
+ // "$ref": "SetNodePoolManagementRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4107,29 +7934,29 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.setNetworkPolicy":
+// method id "container.projects.locations.clusters.nodePools.setSize":
-type ProjectsLocationsClustersSetNetworkPolicyCall struct {
- s *Service
- name string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetSizeCall struct {
+ s *Service
+ name string
+ setnodepoolsizerequest *SetNodePoolSizeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
- c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetSize: Sets the size for a specific node pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetSize(name string, setnodepoolsizerequest *SetNodePoolSizeRequest) *ProjectsLocationsClustersNodePoolsSetSizeCall {
+ c := &ProjectsLocationsClustersNodePoolsSetSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setnetworkpolicyrequest = setnetworkpolicyrequest
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetSizeCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4137,34 +7964,34 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Fi
// 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetSizeCall {
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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) 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.setnetworkpolicyrequest)
+ 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, "v1beta1/{+name}:setNetworkPolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4174,14 +8001,14 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setNetworkPolicy" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4207,30 +8034,30 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.Cal
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables/Disables Network Policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ // "description": "Sets the size for a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setSize",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setNetworkPolicy",
+ // "id": "container.projects.locations.clusters.nodePools.setSize",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setNetworkPolicy",
+ // "path": "v1beta1/{+name}:setSize",
// "request": {
- // "$ref": "SetNetworkPolicyRequest"
+ // "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4242,29 +8069,30 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.Cal
}
-// method id "container.projects.locations.clusters.setResourceLabels":
+// method id "container.projects.locations.clusters.nodePools.update":
-type ProjectsLocationsClustersSetResourceLabelsCall struct {
- s *Service
- name string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsUpdateCall struct {
+ s *Service
+ name string
+ updatenodepoolrequest *UpdateNodePoolRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetResourceLabels: Sets labels on a cluster.
-func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
- c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the version and/or image type of a specific node
+// pool.
+func (r *ProjectsLocationsClustersNodePoolsService) Update(name string, updatenodepoolrequest *UpdateNodePoolRequest) *ProjectsLocationsClustersNodePoolsUpdateCall {
+ c := &ProjectsLocationsClustersNodePoolsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setlabelsrequest = setlabelsrequest
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4272,36 +8100,36 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.F
// 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsUpdateCall {
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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) 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)
+ 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, "v1beta1/{+name}:setResourceLabels")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -4309,14 +8137,14 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setResourceLabels" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4342,30 +8170,30 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.Ca
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets labels on a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setResourceLabels",
+ // "description": "Updates the version and/or image type of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.locations.clusters.nodePools.update",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setResourceLabels",
+ // "path": "v1beta1/{+name}",
// "request": {
- // "$ref": "SetLabelsRequest"
+ // "$ref": "UpdateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4377,29 +8205,29 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.Ca
}
-// method id "container.projects.locations.clusters.startIpRotation":
+// method id "container.projects.locations.operations.cancel":
-type ProjectsLocationsClustersStartIpRotationCall struct {
+type ProjectsLocationsOperationsCancelCall struct {
s *Service
name string
- startiprotationrequest *StartIPRotationRequest
+ canceloperationrequest *CancelOperationRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
-// StartIpRotation: Start master IP rotation.
-func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
- c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Cancel: Cancels the specified operation.
+func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
+ c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.startiprotationrequest = startiprotationrequest
+ c.canceloperationrequest = canceloperationrequest
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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
+func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4407,34 +8235,34 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Fie
// 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
+func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsCancelCall) 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.startiprotationrequest)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:startIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4444,14 +8272,14 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*h
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+// Do executes the "container.projects.locations.operations.cancel" call.
+// Exactly one of *Empty or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4470,40 +8298,40 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Start master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ // "description": "Cancels the specified operation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.startIpRotation",
+ // "id": "container.projects.locations.operations.cancel",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:startIpRotation",
+ // "path": "v1beta1/{+name}:cancel",
// "request": {
- // "$ref": "StartIPRotationRequest"
+ // "$ref": "CancelOperationRequest"
// },
// "response": {
- // "$ref": "Operation"
+ // "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4512,66 +8340,103 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.update":
+// method id "container.projects.locations.operations.get":
-type ProjectsLocationsClustersUpdateCall struct {
- s *Service
- name string
- updateclusterrequest *UpdateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsOperationsGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Update: Updates the settings of a specific cluster.
-func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
- c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Get: Gets the specified operation.
+func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
+ c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.updateclusterrequest = updateclusterrequest
+ return c
+}
+
+// OperationId sets the optional parameter "operationId": Deprecated.
+// The server-assigned `name` of the operation.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("operationId", operationId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
+func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
+ 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 *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
+func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
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 *ProjectsLocationsClustersUpdateCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsGetCall) 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.updateclusterrequest)
- 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, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", urls, body)
+ req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -4579,14 +8444,14 @@ func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.update" call.
+// Do executes the "container.projects.locations.operations.get" 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 *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4612,31 +8477,43 @@ func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Updates the settings of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.locations.clusters.update",
+ // "description": "Gets the specified operation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.operations.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
+ // },
+ // "operationId": {
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
// }
// },
// "path": "v1beta1/{+name}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
// "response": {
// "$ref": "Operation"
// },
@@ -4647,66 +8524,96 @@ func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.nodePools.create":
+// method id "container.projects.locations.operations.list":
-type ProjectsLocationsClustersNodePoolsCreateCall struct {
- s *Service
- parent string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsOperationsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Create: Creates a node pool for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
- c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// List: Lists all operations in a project in a specific zone or all
+// zones.
+func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
+ c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
- c.createnodepoolrequest = createnodepoolrequest
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) to return operations for, or
+// `-` for
+// all zones. This field has been deprecated and replaced by the parent
+// field.
+func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
+func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
+ 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 *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
+func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
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 *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsListCall) 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.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, "v1beta1/{+parent}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/operations")
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{
"parent": c.parent,
@@ -4714,14 +8621,14 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*h
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+// Do executes the "container.projects.locations.operations.list" call.
+// Exactly one of *ListOperationsResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4740,40 +8647,47 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &ListOperationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Creates a node pool for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.create",
+ // "description": "Lists all operations in a project in a specific zone or all zones.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.operations.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
+ // "path": "v1beta1/{+parent}/operations",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ListOperationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4782,112 +8696,100 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.nodePools.delete":
-
-type ProjectsLocationsClustersNodePoolsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Delete: Deletes a node pool from a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
+// method id "container.projects.zones.getServerconfig":
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
+type ProjectsZonesGetServerconfigCall struct {
+ s *Service
+ projectId string
+ zone string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("projectId", projectId)
+// GetServerconfig: Returns configuration info about the Kubernetes
+// 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
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("zone", zone)
+// Name sets the optional parameter "name": The name (project and
+// location) of the server config to get
+// Specified in the format 'projects/*/locations/*'.
+func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
+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 *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
+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 *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
+func (c *ProjectsZonesGetServerconfigCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
+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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/serverconfig")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.delete" call.
-// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// 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
-// *Operation.ServerResponse.Header or (if a response was returned at
+// *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 *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -4906,57 +8808,48 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &ServerConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Deletes a node pool from a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.nodePools.delete",
+ // "description": "Returns configuration info about the Kubernetes Engine service.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.getServerconfig",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
+ // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
// "location": "query",
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ServerConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4965,126 +8858,87 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.nodePools.get":
-
-type ProjectsLocationsClustersNodePoolsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Retrieves the node pool requested.
-func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
- c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
+// method id "container.projects.zones.clusters.addons":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersAddonsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setaddonsconfigrequest *SetAddonsConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("zone", zone)
+// Addons: Sets the addons for 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 *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
+func (c *ProjectsZonesClustersAddonsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersAddonsCall {
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 *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
+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 *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersAddonsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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.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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
+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 {
@@ -5103,57 +8957,53 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOpt
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &NodePool{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Retrieves the node pool requested.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.get",
+ // "description": "Sets the addons for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.addons",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "request": {
+ // "$ref": "SetAddonsConfigRequest"
+ // },
// "response": {
- // "$ref": "NodePool"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -5162,118 +9012,87 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOpt
}
-// method id "container.projects.locations.clusters.nodePools.list":
-
-type ProjectsLocationsClustersNodePoolsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists the node pools for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
- c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
+// method id "container.projects.zones.clusters.completeIpRotation":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersCompleteIpRotationCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ completeiprotationrequest *CompleteIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("zone", zone)
+// 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 *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteIpRotationCall {
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 *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
+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 *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+parent}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation")
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{
- "parent": c.parent,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
+// 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 {
@@ -5292,52 +9111,53 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOp
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListNodePoolsResponse{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists the node pools for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.list",
+ // "description": "Completes master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.completeIpRotation",
// "parameterOrder": [
- // "parent"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/nodePools",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "request": {
+ // "$ref": "CompleteIPRotationRequest"
+ // },
// "response": {
- // "$ref": "ListNodePoolsResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -5346,31 +9166,47 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.nodePools.rollback":
+// method id "container.projects.zones.clusters.create":
-type ProjectsLocationsClustersNodePoolsRollbackCall struct {
- s *Service
- name string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersCreateCall struct {
+ s *Service
+ projectId string
+ zone string
+ createclusterrequest *CreateClusterRequest
+ 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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
- c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.rollbacknodepoolupgraderequest = rollbacknodepoolupgraderequest
+// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
+func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5378,51 +9214,52 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.F
// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
+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 *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
+func (c *ProjectsZonesClustersCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) {
+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.rollbacknodepoolupgraderequest)
+ 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, "v1beta1/{+name}:rollback")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.rollback" call.
+// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5448,30 +9285,36 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.Ca
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.rollback",
+ // "id": "container.projects.zones.clusters.create",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:rollback",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
+ // "$ref": "CreateClusterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -5483,29 +9326,50 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.Ca
}
-// method id "container.projects.locations.clusters.nodePools.setManagement":
+// method id "container.projects.zones.clusters.delete":
-type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
- s *Service
- name string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersDeleteCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetManagement: Sets the NodeManagement options for a node pool.
-func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.setnodepoolmanagementrequest = setnodepoolmanagementrequest
+// 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster) of the cluster to delete.
+// Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5513,51 +9377,48 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...google
// 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
+func (c *ProjectsZonesClustersDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) {
+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
- 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, "v1beta1/{+name}:setManagement")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("DELETE", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.setManagement" call.
+// 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5583,31 +9444,46 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googlea
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the NodeManagement options for a node pool.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.setManagement",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.zones.clusters.delete",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
// "response": {
// "$ref": "Operation"
// },
@@ -5618,81 +9494,102 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googlea
}
-// method id "container.projects.locations.operations.cancel":
+// method id "container.projects.zones.clusters.get":
-type ProjectsLocationsOperationsCancelCall struct {
- s *Service
- name string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersGetCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Cancel: Cancels the specified operation.
-func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
- c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.canceloperationrequest = canceloperationrequest
+// Get: Gets the details for 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster) of the cluster to retrieve.
+// Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
+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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
+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 *ProjectsLocationsOperationsCancelCall) Header() http.Header {
+func (c *ProjectsZonesClustersGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
+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())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
- 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, "v1beta1/{+name}:cancel")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
+// 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
-// *Empty.ServerResponse.Header or (if a response was returned at all)
+// *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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
+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 {
@@ -5711,160 +9608,145 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Empty{
+ ret := &Cluster{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Cancels the specified operation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.operations.cancel",
+ // "description": "Gets the details for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.get",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "name": {
- // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// }
- // },
- // "path": "v1beta1/{+name}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.get":
-
-type ProjectsLocationsOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
+ // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "response": {
+ // "$ref": "Cluster"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
-// Get: Gets the specified operation.
-func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
- c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
}
-// OperationId sets the optional parameter "operationId": The
-// server-assigned `name` of the operation.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("operationId", operationId)
- return c
-}
+// method id "container.projects.zones.clusters.legacyAbac":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersLegacyAbacCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlegacyabacrequest *SetLegacyAbacRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("zone", zone)
+// 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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
+func (c *ProjectsZonesClustersLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLegacyAbacCall {
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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
+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 *ProjectsLocationsOperationsGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersLegacyAbacCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.get" call.
+// 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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5890,43 +9772,44 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the specified operation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.get",
+ // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.legacyAbac",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "request": {
+ // "$ref": "SetLegacyAbacRequest"
+ // },
// "response": {
// "$ref": "Operation"
// },
@@ -5937,49 +9820,41 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
}
-// method id "container.projects.locations.operations.list":
+// method id "container.projects.zones.clusters.list":
-type ProjectsLocationsOperationsListCall struct {
+type ProjectsZonesClustersListCall struct {
s *Service
- parent string
+ projectId string
+ zone string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
-// List: Lists all operations in a project in a specific zone or all
+// List: Lists all clusters owned by a project in either the specified
+// zone or all
// zones.
-func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
- c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("projectId", projectId)
+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
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for, or `-` for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("zone", zone)
+// Parent sets the optional parameter "parent": The parent (project and
+// location) where the clusters will be listed.
+// Specified in the format 'projects/*/locations/*'.
+// Location "-" matches all zones and all regions.
+func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
+ c.urlParams_.Set("parent", parent)
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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
+func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5989,7 +9864,7 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
+func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -5997,21 +9872,21 @@ func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Pro
// 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
+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 *ProjectsLocationsOperationsListCall) Header() http.Header {
+func (c *ProjectsZonesClustersListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -6022,24 +9897,25 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/operations")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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{
- "parent": c.parent,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
+// 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
-// *ListOperationsResponse.ServerResponse.Header or (if a response was
+// *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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
+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 {
@@ -6058,47 +9934,48 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListOperationsResponse{
+ ret := &ListClustersResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists all operations in a project in a specific zone or all zones.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ // "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "httpMethod": "GET",
- // "id": "container.projects.locations.operations.list",
+ // "id": "container.projects.zones.clusters.list",
// "parameterOrder": [
- // "parent"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
+ // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "location": "query",
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/operations",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "response": {
- // "$ref": "ListOperationsResponse"
+ // "$ref": "ListClustersResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6107,100 +9984,87 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.zones.getServerconfig":
+// method id "container.projects.zones.clusters.locations":
-type ProjectsZonesGetServerconfigCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersLocationsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlocationsrequest *SetLocationsRequest
+ urlParams_ gensupport.URLParams
+ 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)}
+// Locations: Sets the locations for 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project and
-// location) of the server config to get
-// Specified in the format 'projects/*/locations/*'.
-func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall {
+func (c *ProjectsZonesClustersLocationsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLocationsCall {
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 {
+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 *ProjectsZonesGetServerconfigCall) Header() http.Header {
+func (c *ProjectsZonesClustersLocationsCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/serverconfig")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations")
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.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
-// *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 *ProjectsZonesClustersLocationsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -6219,48 +10083,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Returns configuration info about the Container Engine service.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.getServerconfig",
+ // "description": "Sets the locations for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.locations",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "query",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "request": {
+ // "$ref": "SetLocationsRequest"
+ // },
// "response": {
- // "$ref": "ServerConfig"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6269,33 +10138,33 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
-// method id "container.projects.zones.clusters.completeIpRotation":
+// method id "container.projects.zones.clusters.logging":
-type ProjectsZonesClustersCompleteIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersLoggingCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setloggingservicerequest *SetLoggingServiceRequest
+ 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)}
+// Logging: Sets the logging service for 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.completeiprotationrequest = completeiprotationrequest
+ 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 *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteIpRotationCall {
+func (c *ProjectsZonesClustersLoggingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLoggingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6303,34 +10172,34 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Fiel
// 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 {
+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 *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header {
+func (c *ProjectsZonesClustersLoggingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) {
+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.completeiprotationrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -6342,14 +10211,14 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*ht
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.completeIpRotation" call.
+// 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 *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6375,15 +10244,15 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Completes master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "description": "Sets the logging service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.completeIpRotation",
+ // "id": "container.projects.zones.clusters.logging",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -6391,27 +10260,27 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
// "request": {
- // "$ref": "CompleteIPRotationRequest"
+ // "$ref": "SetLoggingServiceRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -6423,47 +10292,33 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
}
-// method id "container.projects.zones.clusters.create":
+// method id "container.projects.zones.clusters.master":
-type ProjectsZonesClustersCreateCall struct {
- s *Service
- projectId string
- zone string
- createclusterrequest *CreateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersMasterCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ updatemasterrequest *UpdateMasterRequest
+ 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)}
+// Master: Updates the master for 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.createclusterrequest = createclusterrequest
+ 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 *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
+func (c *ProjectsZonesClustersMasterCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMasterCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6471,52 +10326,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 *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 *ProjectsZonesClustersCreateCall) Header() http.Header {
+func (c *ProjectsZonesClustersMasterCall) 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 *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.createclusterrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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.create" call.
+// 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 *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6542,36 +10398,43 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "description": "Updates the master for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.create",
+ // "id": "container.projects.zones.clusters.master",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
// "request": {
- // "$ref": "CreateClusterRequest"
+ // "$ref": "UpdateMasterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -6583,50 +10446,33 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.delete":
+// method id "container.projects.zones.clusters.monitoring":
-type ProjectsZonesClustersDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersMonitoringCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmonitoringservicerequest *SetMonitoringServiceRequest
+ 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)}
+// Monitoring: Sets the monitoring service for 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to delete.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
+func (c *ProjectsZonesClustersMonitoringCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMonitoringCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6634,31 +10480,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 *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 *ProjectsZonesClustersDeleteCall) Header() http.Header {
+func (c *ProjectsZonesClustersMonitoringCall) 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 *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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -6668,14 +10519,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.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 *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6701,15 +10552,15 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.delete",
+ // "description": "Sets the monitoring service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.monitoring",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -6717,30 +10568,28 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "request": {
+ // "$ref": "SetMonitoringServiceRequest"
+ // },
// "response": {
// "$ref": "Operation"
// },
@@ -6751,85 +10600,70 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.get":
+// method id "container.projects.zones.clusters.resourceLabels":
-type ProjectsZonesClustersGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersResourceLabelsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlabelsrequest *SetLabelsRequest
+ 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)}
+// 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to retrieve.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall {
+func (c *ProjectsZonesClustersResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersResourceLabelsCall {
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 *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 *ProjectsZonesClustersGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersResourceLabelsCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels")
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,
@@ -6839,14 +10673,14 @@ func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, er
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.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 {
@@ -6865,55 +10699,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the details of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.get",
+ // "description": "Sets labels on a cluster.",
+ // "flatPath": "v1beta1/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 to retrieve.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "request": {
+ // "$ref": "SetLabelsRequest"
+ // },
// "response": {
- // "$ref": "Cluster"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6922,34 +10754,33 @@ func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluste
}
-// method id "container.projects.zones.clusters.legacyAbac":
+// method id "container.projects.zones.clusters.setMaintenancePolicy":
-type ProjectsZonesClustersLegacyAbacCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetMaintenancePolicyCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmaintenancepolicyrequest *SetMaintenancePolicyRequest
+ 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)}
+// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
+func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
+ c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
- c.setlegacyabacrequest = setlegacyabacrequest
+ c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6957,34 +10788,34 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Fields(s ...googleapi.Field) *Proj
// 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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmaintenancepolicyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -6996,14 +10827,14 @@ func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.legacyAbac" call.
+// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" 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) {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -7029,15 +10860,15 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "description": "Sets the maintenance policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.legacyAbac",
+ // "id": "container.projects.zones.clusters.setMaintenancePolicy",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7045,27 +10876,27 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
+ // "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).\nThis field is deprecated, use name instead.",
+ // "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.\nThis field is deprecated, use name instead.",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "request": {
- // "$ref": "SetLegacyAbacRequest"
+ // "$ref": "SetMaintenancePolicyRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7077,102 +10908,91 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.zones.clusters.list":
+// method id "container.projects.zones.clusters.setMasterAuth":
-type ProjectsZonesClustersListCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetMasterAuthCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmasterauthrequest *SetMasterAuthRequest
+ 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)}
+// SetMasterAuth: Used to set master auth materials. Currently supports
+// :-
+// Changing the admin password for a specific cluster.
+// This can be either via password generation or explicitly set.
+// Modify basic_auth.csv and reset the K8S API server.
+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
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the clusters will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
- c.urlParams_.Set("parent", parent)
+ 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 *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
+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 *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 *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 *ProjectsZonesClustersListCall) Header() http.Header {
+func (c *ProjectsZonesClustersSetMasterAuthCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth")
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.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 {
@@ -7191,48 +11011,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.list",
+ // "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.setMasterAuth",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "request": {
+ // "$ref": "SetMasterAuthRequest"
+ // },
// "response": {
- // "$ref": "ListClustersResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -7241,33 +11066,33 @@ func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListC
}
-// method id "container.projects.zones.clusters.resourceLabels":
+// method id "container.projects.zones.clusters.setNetworkPolicy":
-type ProjectsZonesClustersResourceLabelsCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetNetworkPolicyCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setnetworkpolicyrequest *SetNetworkPolicyRequest
+ 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)}
+// 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.setlabelsrequest = setlabelsrequest
+ 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 *ProjectsZonesClustersResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersResourceLabelsCall {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetNetworkPolicyCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7275,34 +11100,34 @@ func (c *ProjectsZonesClustersResourceLabelsCall) 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 *ProjectsZonesClustersResourceLabelsCall) Context(ctx context.Context) *ProjectsZonesClustersResourceLabelsCall {
+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 *ProjectsZonesClustersResourceLabelsCall) Header() http.Header {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersResourceLabelsCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setlabelsrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7314,14 +11139,14 @@ func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.R
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.resourceLabels" call.
+// 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
// *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) {
+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 {
@@ -7347,15 +11172,15 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets labels on a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "description": "Enables/Disables Network Policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.resourceLabels",
+ // "id": "container.projects.zones.clusters.setNetworkPolicy",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7363,27 +11188,27 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
// "request": {
- // "$ref": "SetLabelsRequest"
+ // "$ref": "SetNetworkPolicyRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7395,33 +11220,33 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
}
-// method id "container.projects.zones.clusters.setMaintenancePolicy":
+// method id "container.projects.zones.clusters.startIpRotation":
-type ProjectsZonesClustersSetMaintenancePolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- 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
}
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
- c := &ProjectsZonesClustersSetMaintenancePolicyCall{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.clusterId = clusterId
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
+func (c *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7429,34 +11254,34 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Fi
// 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
+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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
+func (c *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmaintenancepolicyrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7468,14 +11293,14 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (*
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" 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 *ProjectsZonesClustersSetMaintenancePolicyCall) 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 {
@@ -7501,15 +11326,15 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the maintenance policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ // "description": "Start master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMaintenancePolicy",
+ // "id": "container.projects.zones.clusters.startIpRotation",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7517,27 +11342,27 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "request": {
- // "$ref": "SetMaintenancePolicyRequest"
+ // "$ref": "StartIPRotationRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7549,37 +11374,33 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
}
-// method id "container.projects.zones.clusters.setMasterAuth":
+// method id "container.projects.zones.clusters.update":
-type ProjectsZonesClustersSetMasterAuthCall struct {
+type ProjectsZonesClustersUpdateCall struct {
s *Service
projectId string
zone string
clusterId string
- setmasterauthrequest *SetMasterAuthRequest
+ updateclusterrequest *UpdateClusterRequest
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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsZonesClustersService) SetMasterAuth(projectId string, zone string, clusterId string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsZonesClustersSetMasterAuthCall {
- c := &ProjectsZonesClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the settings for 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.setmasterauthrequest = setmasterauthrequest
+ 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 *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMasterAuthCall {
+func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7587,36 +11408,36 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *P
// 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 {
+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 *ProjectsZonesClustersSetMasterAuthCall) Header() http.Header {
+func (c *ProjectsZonesClustersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetMasterAuthCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmasterauthrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -7626,14 +11447,14 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Re
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.setMasterAuth" 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 *ProjectsZonesClustersSetMasterAuthCall) 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 {
@@ -7659,15 +11480,15 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMasterAuth",
+ // "description": "Updates the settings for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.zones.clusters.update",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7675,27 +11496,27 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
// "request": {
- // "$ref": "SetMasterAuthRequest"
+ // "$ref": "UpdateClusterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7707,33 +11528,35 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
}
-// method id "container.projects.zones.clusters.setNetworkPolicy":
+// method id "container.projects.zones.clusters.nodePools.autoscaling":
-type ProjectsZonesClustersSetNetworkPolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- 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
}
-// 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)}
+// 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.setnetworkpolicyrequest = setnetworkpolicyrequest
+ 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 *ProjectsZonesClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetNetworkPolicyCall {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsAutoscalingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7741,53 +11564,54 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) 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 *ProjectsZonesClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetNetworkPolicyCall {
+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 *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetNetworkPolicyCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnetworkpolicyrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling")
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,
+ "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.setNetworkPolicy" call.
+// 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 *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -7813,43 +11637,50 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOpt
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables/Disables Network Policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "description": "Sets the autoscaling settings of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setNetworkPolicy",
+ // "id": "container.projects.zones.clusters.nodePools.autoscaling",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
// "request": {
- // "$ref": "SetNetworkPolicyRequest"
+ // "$ref": "SetNodePoolAutoscalingRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7861,33 +11692,33 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOpt
}
-// method id "container.projects.zones.clusters.startIpRotation":
+// method id "container.projects.zones.clusters.nodePools.create":
-type ProjectsZonesClustersStartIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- 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
}
-// 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)}
+// 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.startiprotationrequest = startiprotationrequest
+ 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 *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7895,34 +11726,34 @@ func (c *ProjectsZonesClustersStartIpRotationCall) 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 *ProjectsZonesClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsZonesClustersStartIpRotationCall {
+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 *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersStartIpRotationCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.startiprotationrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7934,14 +11765,14 @@ func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http.
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.startIpRotation" call.
+// 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 *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -7967,15 +11798,15 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Start master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ // "description": "Creates a node pool for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.startIpRotation",
+ // "id": "container.projects.zones.clusters.nodePools.create",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7983,27 +11814,27 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "request": {
- // "$ref": "StartIPRotationRequest"
+ // "$ref": "CreateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -8015,33 +11846,43 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
}
-// 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster, node pool id) of the node pool to
+// delete. Specified in the
+// format
+// 'projects/*/locations/*/clusters/*/nodePools/*'.
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
+ c.urlParams_.Set("name", name)
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
}
@@ -8049,53 +11890,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8121,44 +11958,53 @@ func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Updates the settings of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.zones.clusters.update",
+ // "description": "Deletes a node pool from a cluster.",
+ // "flatPath": "v1beta1/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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
// "$ref": "Operation"
// },
@@ -8169,87 +12015,107 @@ 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster, node pool id) of the node pool to
+// get. Specified in the
+// format
+// 'projects/*/locations/*/clusters/*/nodePools/*'.
+func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
+ c.urlParams_.Set("name", name)
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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8268,53 +12134,62 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Creates a node pool for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.create",
+ // "description": "Retrieves the node pool requested.",
+ // "flatPath": "v1beta1/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": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "NodePool"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -8323,92 +12198,102 @@ 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
}
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to delete.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
- c.urlParams_.Set("name", name)
+// Parent sets the optional parameter "parent": The parent (project,
+// location, cluster id) where the node pools will be
+// listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
+ c.urlParams_.Set("parent", parent)
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())
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8427,62 +12312,55 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Deletes a node pool from a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.nodePools.delete",
+ // "description": "Lists the node pools for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.nodePools.list",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId",
- // "nodePoolId"
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "parent": {
+ // "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "query",
// "type": "string"
// },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ListNodePoolsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -8491,88 +12369,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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to get.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
- c.urlParams_.Set("name", name)
+ 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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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,
@@ -8583,14 +12447,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 {
@@ -8609,22 +12473,22 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Retrieves the node pool requested.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.rollback",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -8633,38 +12497,36 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
// "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1beta1/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"
@@ -8673,102 +12535,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
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project,
-// location, cluster id) where the node pools will be listed.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
- c.urlParams_.Set("parent", parent)
+ 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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8787,55 +12637,60 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists the node pools for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.list",
+ // "description": "Sets the NodeManagement options for a node pool.",
+ // "flatPath": "v1beta1/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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ // "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).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "path": "v1beta1/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"
@@ -8844,37 +12699,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 for 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
}
@@ -8882,34 +12735,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -8922,14 +12775,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 {
@@ -8955,15 +12808,15 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "description": "Sets the size for a specific node pool.",
+ // "flatPath": "v1beta1/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",
@@ -8972,33 +12825,33 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
+ // "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -9010,35 +12863,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
}
@@ -9046,34 +12900,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -9086,14 +12940,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 {
@@ -9119,15 +12973,15 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the NodeManagement options for a node pool.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "description": "Updates the version and/or image type of a specific node pool.",
+ // "flatPath": "v1beta1/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",
@@ -9136,33 +12990,33 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
// "request": {
- // "$ref": "SetNodePoolManagementRequest"
+ // "$ref": "UpdateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -9280,7 +13134,7 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9296,19 +13150,19 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
// ],
// "parameters": {
// "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -9449,7 +13303,7 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9470,19 +13324,19 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
// "type": "string"
// },
// "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -9619,7 +13473,7 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9639,13 +13493,13 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
diff --git a/cluster-autoscaler/cloudprovider/gce/gce_manager.go b/cluster-autoscaler/cloudprovider/gce/gce_manager.go
index 0d7ea42beece..f787e0c09bc2 100644
--- a/cluster-autoscaler/cloudprovider/gce/gce_manager.go
+++ b/cluster-autoscaler/cloudprovider/gce/gce_manager.go
@@ -38,7 +38,6 @@ import (
"golang.org/x/oauth2/google"
gce "google.golang.org/api/compute/v1"
gke "google.golang.org/api/container/v1"
- gke_alpha "google.golang.org/api/container/v1alpha1"
gke_beta "google.golang.org/api/container/v1beta1"
apiv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
@@ -149,10 +148,9 @@ type gceManagerImpl struct {
migs []*migInformation
migCache map[GceRef]*Mig
- gceService *gce.Service
- gkeService *gke.Service
- gkeAlphaService *gke_alpha.Service
- gkeBetaService *gke_beta.Service
+ gceService *gce.Service
+ gkeService *gke.Service
+ gkeBetaService *gke_beta.Service
cacheMutex sync.Mutex
migsMutex sync.Mutex
@@ -274,14 +272,14 @@ func CreateGceManager(configReader io.Reader, mode GcpCloudProviderMode, cluster
manager.gkeBetaService = gkeBetaService
}
case ModeGKENAP:
- gkeAlphaService, err := gke_alpha.New(client)
+ gkeBetaService, err := gke_beta.New(client)
if err != nil {
return nil, err
}
if *gkeAPIEndpoint != "" {
- gkeAlphaService.BasePath = *gkeAPIEndpoint
+ gkeBetaService.BasePath = *gkeAPIEndpoint
}
- manager.gkeAlphaService = gkeAlphaService
+ manager.gkeBetaService = gkeBetaService
glog.V(1).Info("Using GKE-NAP mode")
}
@@ -464,7 +462,7 @@ func (m *gceManagerImpl) fetchAllNodePoolsGkeRegionalImpl() error {
func (m *gceManagerImpl) fetchAllNodePoolsGkeNapImpl() error {
m.assertGKENAP()
- nodePoolsResponse, err := m.gkeAlphaService.Projects.Zones.Clusters.NodePools.List(m.projectId, m.location, m.clusterName).Do()
+ nodePoolsResponse, err := m.gkeBetaService.Projects.Zones.Clusters.NodePools.List(m.projectId, m.location, m.clusterName).Do()
if err != nil {
return err
}
@@ -589,7 +587,7 @@ func (m *gceManagerImpl) deleteNodePool(toBeRemoved *Mig) error {
return fmt.Errorf("only autoprovisioned node pools can be deleted")
}
// TODO: handle multi-zonal node pools.
- deleteOp, err := m.gkeAlphaService.Projects.Zones.Clusters.NodePools.Delete(m.projectId, m.location, m.clusterName,
+ deleteOp, err := m.gkeBetaService.Projects.Zones.Clusters.NodePools.Delete(m.projectId, m.location, m.clusterName,
toBeRemoved.nodePoolName).Do()
if err != nil {
return err
@@ -607,14 +605,14 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
// TODO: handle preemptible
// TODO: handle SSDs
- accelerators := []*gke_alpha.AcceleratorConfig{}
+ accelerators := []*gke_beta.AcceleratorConfig{}
if gpuRequest, found := mig.spec.extraResources[gpu.ResourceNvidiaGPU]; found {
gpuType, found := mig.spec.labels[gpu.GPULabel]
if !found {
return fmt.Errorf("failed to create node pool %v with gpu request of unspecified type", mig.nodePoolName)
}
- gpuConfig := &gke_alpha.AcceleratorConfig{
+ gpuConfig := &gke_beta.AcceleratorConfig{
AcceleratorType: gpuType,
AcceleratorCount: gpuRequest.Value(),
}
@@ -622,7 +620,7 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
}
- taints := []*gke_alpha.NodeTaint{}
+ taints := []*gke_beta.NodeTaint{}
for _, taint := range mig.spec.taints {
if taint.Key == gpu.ResourceNvidiaGPU {
continue
@@ -631,7 +629,7 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
if !found {
effect = "EFFECT_UNSPECIFIED"
}
- taint := &gke_alpha.NodeTaint{
+ taint := &gke_beta.NodeTaint{
Effect: effect,
Key: taint.Key,
Value: taint.Value,
@@ -646,7 +644,7 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
}
}
- config := gke_alpha.NodeConfig{
+ config := gke_beta.NodeConfig{
MachineType: mig.spec.machineType,
OauthScopes: defaultOAuthScopes,
Labels: labels,
@@ -654,15 +652,15 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
Taints: taints,
}
- autoscaling := gke_alpha.NodePoolAutoscaling{
+ autoscaling := gke_beta.NodePoolAutoscaling{
Enabled: true,
MinNodeCount: napMinNodes,
MaxNodeCount: napMaxNodes,
Autoprovisioned: true,
}
- createRequest := gke_alpha.CreateNodePoolRequest{
- NodePool: &gke_alpha.NodePool{
+ createRequest := gke_beta.CreateNodePoolRequest{
+ NodePool: &gke_beta.NodePool{
Name: mig.nodePoolName,
InitialNodeCount: 0,
Config: &config,
@@ -670,7 +668,7 @@ func (m *gceManagerImpl) createNodePool(mig *Mig) error {
},
}
- createOp, err := m.gkeAlphaService.Projects.Zones.Clusters.NodePools.Create(m.projectId, m.location, m.clusterName,
+ createOp, err := m.gkeBetaService.Projects.Zones.Clusters.NodePools.Create(m.projectId, m.location, m.clusterName,
&createRequest).Do()
if err != nil {
return err
@@ -698,7 +696,7 @@ func (m *gceManagerImpl) fetchMachinesCache() error {
}
var locations []string
if m.mode == ModeGKENAP {
- cluster, err := m.gkeAlphaService.Projects.Locations.Clusters.Get(fmt.Sprintf("projects/%s/locations/%s/clusters/%s", m.projectId, m.location, m.clusterName)).Do()
+ cluster, err := m.gkeBetaService.Projects.Locations.Clusters.Get(fmt.Sprintf("projects/%s/locations/%s/clusters/%s", m.projectId, m.location, m.clusterName)).Do()
if err != nil {
return err
}
@@ -775,10 +773,10 @@ func (m *gceManagerImpl) waitForOp(operation *gce.Operation, project string, zon
}
// GKE
-func (m *gceManagerImpl) waitForGkeOp(operation *gke_alpha.Operation) error {
+func (m *gceManagerImpl) waitForGkeOp(operation *gke_beta.Operation) error {
for start := time.Now(); time.Since(start) < gkeOperationWaitTimeout; time.Sleep(operationPollInterval) {
glog.V(4).Infof("Waiting for operation %s %s %s", m.projectId, m.location, operation.Name)
- if op, err := m.gkeAlphaService.Projects.Zones.Operations.Get(m.projectId, m.location, operation.Name).Do(); err == nil {
+ if op, err := m.gkeBetaService.Projects.Zones.Operations.Get(m.projectId, m.location, operation.Name).Do(); err == nil {
glog.V(4).Infof("Operation %s %s %s status: %s", m.projectId, m.location, operation.Name, op.Status)
if op.Status == "DONE" {
return nil
@@ -1082,7 +1080,7 @@ func (m *gceManagerImpl) buildMigFromAutoCfg(link string, cfg cloudprovider.MIGA
func (m *gceManagerImpl) fetchResourceLimiter() error {
if m.mode == ModeGKENAP {
- cluster, err := m.gkeAlphaService.Projects.Zones.Clusters.Get(m.projectId, m.location, m.clusterName).Do()
+ cluster, err := m.gkeBetaService.Projects.Zones.Clusters.Get(m.projectId, m.location, m.clusterName).Do()
if err != nil {
return err
}
@@ -1093,11 +1091,11 @@ func (m *gceManagerImpl) fetchResourceLimiter() error {
minLimits := make(map[string]int64)
maxLimits := make(map[string]int64)
for _, limit := range cluster.Autoscaling.ResourceLimits {
- if _, found := supportedResources[limit.Name]; !found {
- glog.Warning("Unsupported limit defined %s: %d - %d", limit.Name, limit.Minimum, limit.Maximum)
+ if _, found := supportedResources[limit.ResourceType]; !found {
+ glog.Warning("Unsupported limit defined %s: %d - %d", limit.ResourceType, limit.Minimum, limit.Maximum)
}
- minLimits[limit.Name] = limit.Minimum
- maxLimits[limit.Name] = limit.Maximum
+ minLimits[limit.ResourceType] = limit.Minimum
+ maxLimits[limit.ResourceType] = limit.Maximum
}
// GKE API provides memory in GB, but ResourceLimiter expects them in bytes
diff --git a/cluster-autoscaler/cloudprovider/gce/gce_manager_test.go b/cluster-autoscaler/cloudprovider/gce/gce_manager_test.go
index 4805131d32ca..fbc693a56629 100644
--- a/cluster-autoscaler/cloudprovider/gce/gce_manager_test.go
+++ b/cluster-autoscaler/cloudprovider/gce/gce_manager_test.go
@@ -32,7 +32,6 @@ import (
"github.com/stretchr/testify/mock"
gce "google.golang.org/api/compute/v1"
gke "google.golang.org/api/container/v1"
- gke_alpha "google.golang.org/api/container/v1alpha1"
gke_beta "google.golang.org/api/container/v1beta1"
apiv1 "k8s.io/api/core/v1"
)
@@ -439,7 +438,7 @@ const getClusterResponse = `{
"maxNodeCount": 5
},
"management": {},
- "selfLink": "https:///v1alpha1/projects/user-gke-dev/zones/us-central1-c/clusters/usertest/nodePools/default-pool",
+ "selfLink": "https:///v1beta1/projects/user-gke-dev/zones/us-central1-c/clusters/usertest/nodePools/default-pool",
"version": "1.8.0-gke.1",
"instanceGroupUrls": [
"https://www.googleapis.com/compute/v1/projects/user-gke-dev/zones/us-central1-c/instanceGroupManagers/gke-usertest-default-pool-fdsafds2d5-grp"
@@ -455,12 +454,12 @@ const getClusterResponse = `{
"autoscaling": {
"resourceLimits": [
{
- "name": "cpu",
+ "resourceType": "cpu",
"minimum": "2",
"maximum": "3"
},
{
- "name": "memory",
+ "resourceType": "memory",
"minimum": "2000000000",
"maximum": "3000000000"
}
@@ -469,7 +468,7 @@ const getClusterResponse = `{
"networkConfig": {
"network": "https://www.googleapis.com/compute/v1/projects/user-gke-dev/global/networks/default"
},
- "selfLink": "https:///v1alpha1/projects/user-gke-dev/zones/us-central1-c/clusters/usertest",
+ "selfLink": "https:///v1beta1/projects/user-gke-dev/zones/us-central1-c/clusters/usertest",
"zone": "us-central1-c",
"endpoint": "xxx",
"initialClusterVersion": "1.sdafsa",
@@ -552,10 +551,10 @@ func newTestGceManager(t *testing.T, testServerURL string, mode GcpCloudProvider
}
if mode == ModeGKENAP {
- gkeService, err := gke_alpha.New(client)
+ gkeService, err := gke_beta.New(client)
assert.NoError(t, err)
gkeService.BasePath = testServerURL
- manager.gkeAlphaService = gkeService
+ manager.gkeBetaService = gkeService
}
return manager
@@ -676,9 +675,9 @@ func TestDeleteNodePool(t *testing.T) {
defer server.Close()
g := newTestGceManager(t, server.URL, ModeGKENAP, false)
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools/nodeautoprovisioning-323233232").Return(deleteNodePoolResponse).Once()
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/operations/operation-1505732351373-819ed94e").Return(deleteNodePoolOperationResponse).Once()
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(allNodePools2).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools/nodeautoprovisioning-323233232").Return(deleteNodePoolResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/operations/operation-1505732351373-819ed94e").Return(deleteNodePoolOperationResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(allNodePools2).Once()
server.On("handle", "/project1/zones/us-central1-b/instanceGroupManagers/gke-cluster-1-default-pool").Return(getInstanceGroupManager(zoneB)).Once()
server.On("handle", "/project1/zones/us-central1-b/instanceGroupManagers/gke-cluster-1-nodeautoprovisioning-323233232").Return(getInstanceGroupManager(zoneB)).Once()
server.On("handle", "/project1/global/instanceTemplates/gke-cluster-1-default-pool").Return(instanceTemplate).Once()
@@ -733,9 +732,9 @@ func TestCreateNodePool(t *testing.T) {
defer server.Close()
g := newTestGceManager(t, server.URL, ModeGKENAP, false)
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(createNodePoolOperationResponse).Once()
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(createNodePoolResponse).Once()
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(allNodePools2).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(createNodePoolOperationResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(createNodePoolResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/clusters/cluster1/nodePools").Return(allNodePools2).Once()
server.On("handle", "/project1/zones/us-central1-b/instanceGroupManagers/gke-cluster-1-default-pool").Return(getInstanceGroupManager(zoneB)).Once()
server.On("handle", "/project1/zones/us-central1-b/instanceGroupManagers/gke-cluster-1-nodeautoprovisioning-323233232").Return(getInstanceGroupManager(zoneB)).Once()
server.On("handle", "/project1/global/instanceTemplates/gke-cluster-1-default-pool").Return(instanceTemplate).Once()
@@ -820,10 +819,10 @@ func TestWaitForGkeOp(t *testing.T) {
server := NewHttpServerMock()
defer server.Close()
g := newTestGceManager(t, server.URL, ModeGKENAP, false)
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(operationRunningResponse).Once()
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(operationDoneResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(operationRunningResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/operations/operation-1505728466148-d16f5197").Return(operationDoneResponse).Once()
- operation := &gke_alpha.Operation{Name: "operation-1505728466148-d16f5197"}
+ operation := &gke_beta.Operation{Name: "operation-1505728466148-d16f5197"}
err := g.waitForGkeOp(operation)
assert.NoError(t, err)
@@ -1099,7 +1098,7 @@ func TestFetchResourceLimiter(t *testing.T) {
defer server.Close()
g := newTestGceManager(t, server.URL, ModeGKENAP, false)
- server.On("handle", "/v1alpha1/projects/project1/zones/us-central1-b/clusters/cluster1").Return(getClusterResponse).Once()
+ server.On("handle", "/v1beta1/projects/project1/zones/us-central1-b/clusters/cluster1").Return(getClusterResponse).Once()
err := g.fetchResourceLimiter()
assert.NoError(t, err)
diff --git a/cluster-autoscaler/fix_gopath.sh b/cluster-autoscaler/fix_gopath.sh
index 03dcb586fa73..3ab32d0102e5 100755
--- a/cluster-autoscaler/fix_gopath.sh
+++ b/cluster-autoscaler/fix_gopath.sh
@@ -24,8 +24,6 @@ for item in $with_vendor; do
done
echo Overriding GKE API
-mkdir -p $GOPATH/src/google.golang.org/api/container/v1alpha1
-cp $GOPATH/src/k8s.io/autoscaler/cluster-autoscaler/_override/google.golang.org/api/container/v1alpha1/* $GOPATH/src/google.golang.org/api/container/v1alpha1
mkdir -p $GOPATH/src/google.golang.org/api/container/v1beta1
cp $GOPATH/src/k8s.io/autoscaler/cluster-autoscaler/_override/google.golang.org/api/container/v1beta1/* $GOPATH/src/google.golang.org/api/container/v1beta1
cd $GOPATH/src/google.golang.org/api/
diff --git a/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-api.json b/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-api.json
deleted file mode 100644
index 7b8c03f1ef75..000000000000
--- a/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-api.json
+++ /dev/null
@@ -1,3158 +0,0 @@
-{
- "discoveryVersion": "v1",
- "version_module": true,
- "schemas": {
- "SetMaintenancePolicyRequest": {
- "type": "object",
- "properties": {
- "clusterId": {
- "description": "The name of the cluster to update.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "maintenancePolicy": {
- "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy.",
- "$ref": "MaintenancePolicy"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
- "type": "string"
- }
- },
- "id": "SetMaintenancePolicyRequest",
- "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster."
- },
- "SetNodePoolManagementRequest": {
- "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "management": {
- "$ref": "NodeManagement",
- "description": "NodeManagement configuration for the node pool."
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead."
- }
- },
- "id": "SetNodePoolManagementRequest"
- },
- "Empty": {
- "type": "object",
- "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 `{}`."
- },
- "MasterAuthorizedNetworksConfig": {
- "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
- "type": "object",
- "properties": {
- "enabled": {
- "description": "Whether or not master authorized networks is enabled.",
- "type": "boolean"
- },
- "cidrBlocks": {
- "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
- "items": {
- "$ref": "CidrBlock"
- },
- "type": "array"
- }
- },
- "id": "MasterAuthorizedNetworksConfig"
- },
- "CreateClusterRequest": {
- "id": "CreateClusterRequest",
- "description": "CreateClusterRequest creates a cluster.",
- "type": "object",
- "properties": {
- "cluster": {
- "$ref": "Cluster",
- "description": "A [cluster\nresource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string"
- }
- }
- },
- "ListNodePoolsResponse": {
- "properties": {
- "nodePools": {
- "description": "A list of node pools for a cluster.",
- "items": {
- "$ref": "NodePool"
- },
- "type": "array"
- }
- },
- "id": "ListNodePoolsResponse",
- "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
- "type": "object"
- },
- "CompleteIPRotationRequest": {
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- }
- },
- "id": "CompleteIPRotationRequest",
- "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.",
- "type": "object"
- },
- "StartIPRotationRequest": {
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "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"
- },
- "AcceleratorConfig": {
- "description": "AcceleratorConfig represents a Hardware Accelerator request.",
- "type": "object",
- "properties": {
- "acceleratorType": {
- "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
- "type": "string"
- },
- "acceleratorCount": {
- "format": "int64",
- "description": "The number of the accelerator cards exposed to an instance.",
- "type": "string"
- }
- },
- "id": "AcceleratorConfig"
- },
- "NodePool": {
- "type": "object",
- "properties": {
- "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": {
- "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."
- ],
- "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"
- },
- "config": {
- "$ref": "NodeConfig",
- "description": "The node configuration of the pool."
- },
- "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": {
- "description": "NodeManagement configuration for this NodePool.",
- "$ref": "NodeManagement"
- },
- "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"
- }
- },
- "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."
- },
- "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": {
- "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"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "resourceLabels": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "The labels to set for that cluster.",
- "type": "object"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLabelsRequest"
- },
- "NodeManagement": {
- "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
- "type": "object",
- "properties": {
- "autoRepair": {
- "description": "Whether the nodes will be automatically repaired.",
- "type": "boolean"
- },
- "autoUpgrade": {
- "type": "boolean",
- "description": "Whether the nodes will be automatically upgraded."
- },
- "upgradeOptions": {
- "$ref": "AutoUpgradeOptions",
- "description": "Specifies the Auto Upgrade knobs for the node pool."
- }
- },
- "id": "NodeManagement"
- },
- "NodeTaint": {
- "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "type": "object",
- "properties": {
- "effect": {
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "NoSchedule",
- "PreferNoSchedule",
- "NoExecute"
- ],
- "enum": [
- "EFFECT_UNSPECIFIED",
- "NO_SCHEDULE",
- "PREFER_NO_SCHEDULE",
- "NO_EXECUTE"
- ],
- "description": "Effect for taint."
- },
- "value": {
- "type": "string",
- "description": "Value for taint."
- },
- "key": {
- "description": "Key for taint.",
- "type": "string"
- }
- },
- "id": "NodeTaint"
- },
- "CancelOperationRequest": {
- "description": "CancelOperationRequest cancels a single operation.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "CancelOperationRequest"
- },
- "SetLegacyAbacRequest": {
- "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "enabled": {
- "description": "Whether ABAC authorization will be enabled in the cluster.",
- "type": "boolean"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLegacyAbacRequest"
- },
- "KubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "KubernetesDashboard"
- },
- "Operation": {
- "type": "object",
- "properties": {
- "endTime": {
- "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "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": {
- "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",
- "SET_MAINTENANCE_POLICY"
- ],
- "description": "The operation type.",
- "type": "string",
- "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.",
- "Set the maintenance policy."
- ]
- },
- "startTime": {
- "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PENDING",
- "RUNNING",
- "DONE",
- "ABORTING"
- ],
- "description": "The current status of the operation."
- },
- "statusMessage": {
- "description": "If an error has occurred, a textual description of the error.",
- "type": "string"
- },
- "name": {
- "description": "The server-assigned ID for the operation.",
- "type": "string"
- },
- "selfLink": {
- "description": "Server-defined URL for the resource.",
- "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."
- },
- "AddonsConfig": {
- "description": "Configuration for the addons that can be automatically spun up in the\ncluster, enabling additional functionality.",
- "type": "object",
- "properties": {
- "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.",
- "$ref": "HorizontalPodAutoscaling"
- },
- "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."
- },
- "kubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "$ref": "KubernetesDashboard"
- },
- "networkPolicyConfig": {
- "$ref": "NetworkPolicyConfig",
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes."
- }
- },
- "id": "AddonsConfig"
- },
- "MaintenanceWindow": {
- "properties": {
- "dailyMaintenanceWindow": {
- "$ref": "DailyMaintenanceWindow",
- "description": "DailyMaintenanceWindow specifies a daily maintenance operation window."
- }
- },
- "id": "MaintenanceWindow",
- "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
- "type": "object"
- },
- "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",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- }
- },
- "id": "RollbackNodePoolUpgradeRequest"
- },
- "NetworkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether NetworkPolicy is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicyConfig"
- },
- "UpdateClusterRequest": {
- "id": "UpdateClusterRequest",
- "description": "UpdateClusterRequest updates the settings of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "ClusterUpdate",
- "description": "A description of the update."
- },
- "name": {
- "type": "string",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "NetworkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
- "type": "object",
- "properties": {
- "provider": {
- "description": "The selected network policy provider.",
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "Tigera (Calico Felix)."
- ],
- "enum": [
- "PROVIDER_UNSPECIFIED",
- "CALICO"
- ]
- },
- "enabled": {
- "description": "Whether network policy is enabled on the cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicy"
- },
- "Cluster": {
- "properties": {
- "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"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "nodePools": {
- "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"
- },
- "type": "array"
- },
- "instanceGroupUrls": {
- "description": "[Output only] The resource URLs of [instance\ngroups](/compute/docs/instance-groups/) associated with this\ncluster.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "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"
- },
- "networkPolicy": {
- "$ref": "NetworkPolicy",
- "description": "Configuration options for the NetworkPolicy feature."
- },
- "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"
- },
- "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"
- },
- "zone": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "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"
- },
- "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"
- },
- "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"
- },
- "masterAuthorizedNetworksConfig": {
- "description": "The configuration options for master authorized networks feature.",
- "$ref": "MasterAuthorizedNetworksConfig"
- },
- "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."
- },
- "podSecurityPolicyConfig": {
- "description": "Configuration for the PodSecurityPolicy feature.",
- "$ref": "PodSecurityPolicyConfig"
- },
- "addonsConfig": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "subnetwork": {
- "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
- "type": "string"
- },
- "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"
- },
- "maintenancePolicy": {
- "$ref": "MaintenancePolicy",
- "description": "Configure the maintenance policy for this cluster."
- },
- "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"
- },
- "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."
- },
- "autoscaling": {
- "$ref": "ClusterAutoscaling",
- "description": "Cluster-level autoscaling configuration."
- }
- },
- "id": "Cluster",
- "description": "A Google Container Engine cluster.",
- "type": "object"
- },
- "ListOperationsResponse": {
- "id": "ListOperationsResponse",
- "description": "ListOperationsResponse is the result of ListOperationsRequest.",
- "type": "object",
- "properties": {
- "operations": {
- "description": "A list of operations in the project in the specified zone.",
- "items": {
- "$ref": "Operation"
- },
- "type": "array"
- },
- "missingZones": {
- "description": "If any zones are listed here, the list of operations returned\nmay be missing the operations from those zones.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- }
- },
- "CreateNodePoolRequest": {
- "description": "CreateNodePoolRequest creates a node pool for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "nodePool": {
- "description": "The node pool to create.",
- "$ref": "NodePool"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- },
- "id": "CreateNodePoolRequest"
- },
- "CidrBlock": {
- "type": "object",
- "properties": {
- "cidrBlock": {
- "description": "cidr_block must be specified in CIDR notation.",
- "type": "string"
- },
- "displayName": {
- "description": "display_name is an optional field for users to identify CIDR blocks.",
- "type": "string"
- }
- },
- "id": "CidrBlock",
- "description": "CidrBlock contains an optional name and one CIDR block."
- },
- "ServerConfig": {
- "description": "Container Engine service configuration.",
- "type": "object",
- "properties": {
- "validMasterVersions": {
- "description": "List of valid master versions.",
- "items": {
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "validNodeVersions": {
- "description": "List of valid node upgrade target versions.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ServerConfig"
- },
- "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": {
- "clientCertificateConfig": {
- "$ref": "ClientCertificateConfig",
- "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
- },
- "password": {
- "type": "string",
- "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."
- },
- "clientKey": {
- "description": "[Output only] Base64-encoded private key used by clients to authenticate\nto the cluster endpoint.",
- "type": "string"
- },
- "clusterCaCertificate": {
- "type": "string",
- "description": "[Output only] Base64-encoded public certificate that is the root of\ntrust for the cluster."
- },
- "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"
- },
- "NodeConfig": {
- "description": "Parameters that describe the nodes in a cluster.",
- "type": "object",
- "properties": {
- "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"
- },
- "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": {
- "type": "string",
- "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."
- },
- "imageType": {
- "type": "string",
- "description": "The image type to use for this node. Note that for a given image type,\nthe latest version of it will be used."
- },
- "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"
- },
- "taints": {
- "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "items": {
- "$ref": "NodeTaint"
- },
- "type": "array"
- },
- "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
- "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"
- },
- "accelerators": {
- "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
- "items": {
- "$ref": "AcceleratorConfig"
- },
- "type": "array"
- },
- "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"
- },
- "minCpuPlatform": {
- "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: "Intel Haswell"\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: "Intel Sandy Bridge"\u003c/code\u003e. For more\ninformation, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
- "type": "string"
- },
- "preemptible": {
- "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
- "type": "boolean"
- },
- "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"
- }
- },
- "id": "NodeConfig"
- },
- "DailyMaintenanceWindow": {
- "type": "object",
- "properties": {
- "duration": {
- "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
- "type": "string"
- },
- "startTime": {
- "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT.",
- "type": "string"
- }
- },
- "id": "DailyMaintenanceWindow",
- "description": "Time window specified for daily maintenance operations."
- },
- "AutoUpgradeOptions": {
- "id": "AutoUpgradeOptions",
- "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
- "type": "object",
- "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"
- }
- }
- },
- "ListClustersResponse": {
- "description": "ListClustersResponse is the result of ListClustersRequest.",
- "type": "object",
- "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"
- },
- "PodSecurityPolicyConfig": {
- "properties": {
- "enabled": {
- "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
- "type": "boolean"
- }
- },
- "id": "PodSecurityPolicyConfig",
- "description": "Configuration for the PodSecurityPolicy feature.",
- "type": "object"
- },
- "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",
- "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"
- },
- "SetNetworkPolicyRequest": {
- "id": "SetNetworkPolicyRequest",
- "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
- "type": "object",
- "properties": {
- "networkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.",
- "$ref": "NetworkPolicy"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "SetMasterAuthRequest": {
- "description": "SetMasterAuthRequest updates the admin password of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "action": {
- "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.",
- "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
- ],
- "enum": [
- "UNKNOWN",
- "SET_PASSWORD",
- "GENERATE_PASSWORD",
- "SET_USERNAME"
- ],
- "description": "The exact form of action to be taken on the master auth.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "MasterAuth",
- "description": "A description of the update."
- }
- },
- "id": "SetMasterAuthRequest"
- },
- "ClientCertificateConfig": {
- "id": "ClientCertificateConfig",
- "description": "Configuration for client certificates on the cluster.",
- "type": "object",
- "properties": {
- "issueClientCertificate": {
- "description": "Issue a client certificate.",
- "type": "boolean"
- }
- }
- },
- "NodePoolAutoscaling": {
- "description": "NodePoolAutoscaling contains information required by cluster autoscaler to\nadjust the size of the node pool to the current cluster usage.",
- "type": "object",
- "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": {
- "type": "integer",
- "format": "int32",
- "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c=\nmax_node_count."
- },
- "autoprovisioned": {
- "description": "Is autosprovisoning enabled for this node pool.",
- "type": "boolean"
- }
- },
- "id": "NodePoolAutoscaling"
- },
- "MaintenancePolicy": {
- "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
- "type": "object",
- "properties": {
- "window": {
- "$ref": "MaintenanceWindow",
- "description": "Specifies the maintenance window in which maintenance may be performed."
- }
- },
- "id": "MaintenancePolicy"
- },
- "ClusterAutoscaling": {
- "properties": {
- "enableNodeAutoprovisioning": {
- "type": "boolean",
- "description": "Enables automatic node pool creation and deletion."
- },
- "resourceLimits": {
- "items": {
- "$ref": "ResourceLimit"
- },
- "type": "array",
- "description": "Contains global constraints regarding minimum and maximum\namount of resources in the cluster."
- }
- },
- "id": "ClusterAutoscaling",
- "type": "object",
- "description": "ClusterAutoscaling contains global, per-cluster information\nrequired by Cluster Autoscaler to automatically adjust\nthe size of the cluster and create/delete\nnode pools based on the current needs."
- },
- "ResourceLimit": {
- "properties": {
- "name": {
- "type": "string",
- "description": "Resource name \"cpu\", \"memory\" or gpu-specific string."
- },
- "minimum": {
- "type": "string",
- "format": "int64",
- "description": "Minimum amount of the resource in the cluster."
- },
- "maximum": {
- "type": "string",
- "format": "int64",
- "description": "Maximum amount of the resource in the cluster."
- }
- },
- "id": "ResourceLimit",
- "type": "object",
- "description": "Contains information about amount of some resource in the cluster. For memory, value should be in GB."
- },
- "IPAllocationPolicy": {
- "properties": {
- "nodeIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "servicesIpv4Cidr": {
- "description": "This field is deprecated, use services_ipv4_cidr_block.",
- "type": "string"
- },
- "servicesSecondaryRangeName": {
- "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "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 be chosen for the new\nsubnetwork.",
- "type": "string"
- },
- "servicesIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterIpv4Cidr": {
- "description": "This field is deprecated, use cluster_ipv4_cidr_block.",
- "type": "string"
- },
- "nodeIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use node_ipv4_cidr_block."
- },
- "clusterSecondaryRangeName": {
- "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "type": "string"
- },
- "clusterIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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",
- "description": "Configuration for controlling how IPs are allocated in the cluster.",
- "type": "object"
- },
- "ClusterUpdate": {
- "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",
- "properties": {
- "desiredMasterVersion": {
- "type": "string",
- "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."
- },
- "desiredPodSecurityPolicyConfig": {
- "description": "The desired configuration options for the PodSecurityPolicy feature.",
- "$ref": "PodSecurityPolicyConfig"
- },
- "desiredMasterAuthorizedNetworksConfig": {
- "$ref": "MasterAuthorizedNetworksConfig",
- "description": "The desired configuration options for master authorized networks feature."
- },
- "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": {
- "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.",
- "$ref": "NodePoolAutoscaling"
- },
- "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": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "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"
- },
- "desiredClusterAutoscaling": {
- "description": "The desired cluster-level autoscaling configuration.",
- "$ref": "ClusterAutoscaling"
- }
- }
- },
- "HorizontalPodAutoscaling": {
- "type": "object",
- "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."
- }
- },
- "protocol": "rest",
- "icons": {
- "x32": "http://www.google.com/images/icons/product/search-32.gif",
- "x16": "http://www.google.com/images/icons/product/search-16.gif"
- },
- "canonicalName": "Container",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/cloud-platform": {
- "description": "View and manage your data across Google Cloud Platform services"
- }
- }
- }
- },
- "rootUrl": "https://container.googleapis.com/",
- "ownerDomain": "google.com",
- "name": "container",
- "batchPath": "batch",
- "title": "Google Container Engine API",
- "ownerName": "Google",
- "resources": {
- "projects": {
- "resources": {
- "locations": {
- "methods": {
- "getServerConfig": {
- "path": "v1alpha1/{+name}/serverConfig",
- "id": "container.projects.locations.getServerConfig",
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path",
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/serverConfig"
- }
- },
- "resources": {
- "clusters": {
- "methods": {
- "setNetworkPolicy": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
- "path": "v1alpha1/{+name}:setNetworkPolicy",
- "id": "container.projects.locations.clusters.setNetworkPolicy",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
- "description": "Enables/Disables Network Policy for a cluster."
- },
- "get": {
- "description": "Gets the details of a specific cluster.",
- "httpMethod": "GET",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "name"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "type": "string",
- "location": "query",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead."
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "path": "v1alpha1/{+name}",
- "id": "container.projects.locations.clusters.get"
- },
- "startIpRotation": {
- "description": "Start master IP rotation.",
- "request": {
- "$ref": "StartIPRotationRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- "path": "v1alpha1/{+name}:startIpRotation",
- "id": "container.projects.locations.clusters.startIpRotation"
- },
- "setMaintenancePolicy": {
- "request": {
- "$ref": "SetMaintenancePolicyRequest"
- },
- "description": "Sets the maintenance policy for a cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- "id": "container.projects.locations.clusters.setMaintenancePolicy",
- "path": "v1alpha1/{+name}:setMaintenancePolicy"
- },
- "delete": {
- "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.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "DELETE",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.delete",
- "path": "v1alpha1/{+name}"
- },
- "setLegacyAbac": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- "path": "v1alpha1/{+name}:setLegacyAbac",
- "id": "container.projects.locations.clusters.setLegacyAbac",
- "request": {
- "$ref": "SetLegacyAbacRequest"
- },
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
- },
- "setResourceLabels": {
- "request": {
- "$ref": "SetLabelsRequest"
- },
- "description": "Sets labels on a cluster.",
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- "path": "v1alpha1/{+name}:setResourceLabels",
- "id": "container.projects.locations.clusters.setResourceLabels"
- },
- "update": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.update",
- "path": "v1alpha1/{+name}",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "description": "Updates the settings of a specific cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "PUT"
- },
- "setMasterAuth": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- "id": "container.projects.locations.clusters.setMasterAuth",
- "path": "v1alpha1/{+name}: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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
- "httpMethod": "GET",
- "parameterOrder": [
- "parent"
- ],
- "response": {
- "$ref": "ListClustersResponse"
- },
- "parameters": {
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- "path": "v1alpha1/{+parent}/clusters",
- "id": "container.projects.locations.clusters.list"
- },
- "create": {
- "path": "v1alpha1/{+parent}/clusters",
- "id": "container.projects.locations.clusters.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": [
- "parent"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "parent": {
- "location": "path",
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters"
- },
- "completeIpRotation": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- "path": "v1alpha1/{+name}:completeIpRotation",
- "id": "container.projects.locations.clusters.completeIpRotation",
- "description": "Completes master IP rotation.",
- "request": {
- "$ref": "CompleteIPRotationRequest"
- }
- }
- },
- "resources": {
- "nodePools": {
- "methods": {
- "get": {
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "path": "v1alpha1/{+name}",
- "id": "container.projects.locations.clusters.nodePools.get",
- "description": "Retrieves the node pool requested.",
- "httpMethod": "GET",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "NodePool"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "nodePoolId": {
- "location": "query",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "setManagement": {
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- "path": "v1alpha1/{+name}:setManagement",
- "id": "container.projects.locations.clusters.nodePools.setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- }
- },
- "delete": {
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "id": "container.projects.locations.clusters.nodePools.delete",
- "path": "v1alpha1/{+name}",
- "description": "Deletes a node pool from a cluster.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "DELETE",
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- },
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "list": {
- "id": "container.projects.locations.clusters.nodePools.list",
- "path": "v1alpha1/{+parent}/nodePools",
- "description": "Lists the node pools for a cluster.",
- "response": {
- "$ref": "ListNodePoolsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "location": "path",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- },
- "rollback": {
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
- },
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- "id": "container.projects.locations.clusters.nodePools.rollback",
- "path": "v1alpha1/{+name}:rollback"
- },
- "create": {
- "path": "v1alpha1/{+parent}/nodePools",
- "id": "container.projects.locations.clusters.nodePools.create",
- "description": "Creates a node pool for a cluster.",
- "request": {
- "$ref": "CreateNodePoolRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "parent"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "parent": {
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- }
- }
- }
- }
- },
- "operations": {
- "methods": {
- "cancel": {
- "path": "v1alpha1/{+name}:cancel",
- "id": "container.projects.locations.operations.cancel",
- "description": "Cancels the specified operation.",
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Empty"
- },
- "parameters": {
- "name": {
- "location": "path",
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel"
- },
- "get": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "operationId": {
- "location": "query",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "name": {
- "location": "path",
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- "id": "container.projects.locations.operations.get",
- "path": "v1alpha1/{+name}",
- "description": "Gets the specified operation."
- },
- "list": {
- "description": "Lists all operations in a project in a specific zone or all zones.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
- "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).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
- },
- "parent": {
- "location": "path",
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$"
- }
- },
- "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations",
- "path": "v1alpha1/{+parent}/operations",
- "id": "container.projects.locations.operations.list"
- }
- }
- }
- }
- },
- "zones": {
- "methods": {
- "getServerconfig": {
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- "id": "container.projects.zones.getServerconfig"
- }
- },
- "resources": {
- "clusters": {
- "methods": {
- "create": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.create",
- "request": {
- "$ref": "CreateClusterRequest"
- },
- "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.",
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters"
- },
- "resourceLabels": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "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).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "id": "container.projects.zones.clusters.resourceLabels",
- "description": "Sets labels on a cluster.",
- "request": {
- "$ref": "SetLabelsRequest"
- }
- },
- "completeIpRotation": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "id": "container.projects.zones.clusters.completeIpRotation",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "request": {
- "$ref": "CompleteIPRotationRequest"
- },
- "description": "Completes master IP rotation.",
- "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://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- }
- },
- "get": {
- "description": "Gets the details of a specific cluster.",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.get",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}"
- },
- "legacyAbac": {
- "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- "request": {
- "$ref": "SetLegacyAbacRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "id": "container.projects.zones.clusters.legacyAbac",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac"
- },
- "setNetworkPolicy": {
- "id": "container.projects.zones.clusters.setNetworkPolicy",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
- "description": "Enables/Disables Network Policy for 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).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy"
- },
- "startIpRotation": {
- "description": "Start master IP rotation.",
- "request": {
- "$ref": "StartIPRotationRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "id": "container.projects.zones.clusters.startIpRotation",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation"
- },
- "setMaintenancePolicy": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "id": "container.projects.zones.clusters.setMaintenancePolicy",
- "request": {
- "$ref": "SetMaintenancePolicyRequest"
- },
- "description": "Sets the maintenance policy for a cluster.",
- "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": {
- "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"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy"
- },
- "delete": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.delete",
- "path": "v1alpha1/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.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "DELETE",
- "parameters": {
- "name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "update": {
- "description": "Updates the settings of a specific cluster.",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "httpMethod": "PUT",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead."
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.update"
- },
- "setMasterAuth": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "id": "container.projects.zones.clusters.setMasterAuth",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}: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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "response": {
- "$ref": "ListClustersResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "httpMethod": "GET",
- "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).\nThis field is deprecated, use parent instead.",
- "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, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "parent": {
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.list",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones."
- }
- },
- "resources": {
- "nodePools": {
- "methods": {
- "setManagement": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "id": "container.projects.zones.clusters.nodePools.setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- },
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "delete": {
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.delete",
- "description": "Deletes a node pool from a cluster.",
- "httpMethod": "DELETE",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "parameters": {
- "zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "location": "query"
- },
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}"
- },
- "list": {
- "description": "Lists the node pools for a cluster.",
- "response": {
- "$ref": "ListNodePoolsResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "GET",
- "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).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "parent": {
- "type": "string",
- "location": "query",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.list",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools"
- },
- "rollback": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- "id": "container.projects.zones.clusters.nodePools.rollback",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
- },
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- }
- },
- "create": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.create",
- "description": "Creates a node pool for a cluster.",
- "request": {
- "$ref": "CreateNodePoolRequest"
- }
- },
- "get": {
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.get",
- "description": "Retrieves the node pool requested.",
- "httpMethod": "GET",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
- "$ref": "NodePool"
- },
- "parameters": {
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
- }
- }
- }
- },
- "operations": {
- "methods": {
- "cancel": {
- "response": {
- "$ref": "Empty"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "httpMethod": "POST",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "id": "container.projects.zones.operations.cancel",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "description": "Cancels the specified operation."
- },
- "get": {
- "response": {
- "$ref": "Operation"
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "httpMethod": "GET",
- "parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "location": "query"
- },
- "operationId": {
- "location": "path",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "id": "container.projects.zones.operations.get",
- "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "description": "Gets the specified operation."
- },
- "list": {
- "httpMethod": "GET",
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "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).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "parent": {
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "location": "query"
- }
- },
- "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- "path": "v1alpha1/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."
- }
- }
- }
- }
- }
- }
- }
- },
- "parameters": {
- "pp": {
- "location": "query",
- "description": "Pretty-print response.",
- "default": "true",
- "type": "boolean"
- },
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
- "type": "string",
- "location": "query"
- },
- "bearer_token": {
- "location": "query",
- "description": "OAuth bearer token.",
- "type": "string"
- },
- "upload_protocol": {
- "location": "query",
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "type": "string"
- },
- "prettyPrint": {
- "location": "query",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "type": "boolean"
- },
- "uploadType": {
- "location": "query",
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "type": "string"
- },
- "fields": {
- "location": "query",
- "description": "Selector specifying which fields to include in a partial response.",
- "type": "string"
- },
- "callback": {
- "type": "string",
- "location": "query",
- "description": "JSONP"
- },
- "$.xgafv": {
- "location": "query",
- "enum": [
- "1",
- "2"
- ],
- "description": "V1 error format.",
- "type": "string",
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ]
- },
- "alt": {
- "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",
- "description": "Data format for response.",
- "default": "json"
- },
- "access_token": {
- "type": "string",
- "location": "query",
- "description": "OAuth access token."
- },
- "key": {
- "location": "query",
- "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"
- },
- "quotaUser": {
- "location": "query",
- "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"
- }
- },
- "version": "v1alpha1",
- "baseUrl": "https://container.googleapis.com/",
- "kind": "discovery#restDescription",
- "description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
- "servicePath": "",
- "basePath": "",
- "id": "container:v1alpha1",
- "documentationLink": "https://cloud.google.com/container-engine/",
- "revision": "20170929"
-}
diff --git a/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-gen.go b/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-gen.go
deleted file mode 100644
index e72948ed04b1..000000000000
--- a/cluster-autoscaler/vendor/google.golang.org/api/container/v1alpha1/container-gen.go
+++ /dev/null
@@ -1,9749 +0,0 @@
-// Package container provides access to the Google Container Engine API.
-//
-// See https://cloud.google.com/container-engine/
-//
-// Usage example:
-//
-// import "google.golang.org/api/container/v1alpha1"
-// ...
-// containerService, err := container.New(oauthHttpClient)
-package container
-
-import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- context "golang.org/x/net/context"
- ctxhttp "golang.org/x/net/context/ctxhttp"
- gensupport "google.golang.org/api/gensupport"
- googleapi "google.golang.org/api/googleapi"
- "io"
- "net/http"
- "net/url"
- "strconv"
- "strings"
-)
-
-// Always reference these packages, just in case the auto-generated code
-// below doesn't.
-var _ = bytes.NewBuffer
-var _ = strconv.Itoa
-var _ = fmt.Sprintf
-var _ = json.NewDecoder
-var _ = io.Copy
-var _ = url.Parse
-var _ = gensupport.MarshalJSON
-var _ = googleapi.Version
-var _ = errors.New
-var _ = strings.Replace
-var _ = context.Canceled
-var _ = ctxhttp.Do
-
-const apiId = "container:v1alpha1"
-const apiName = "container"
-const apiVersion = "v1alpha1"
-const basePath = "https://container.googleapis.com/"
-
-// OAuth2 scopes used by this API.
-const (
- // View and manage your data across Google Cloud Platform services
- CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
-)
-
-func New(client *http.Client) (*Service, error) {
- if client == nil {
- return nil, errors.New("client is nil")
- }
- s := &Service{client: client, BasePath: basePath}
- s.Projects = NewProjectsService(s)
- return s, nil
-}
-
-type Service struct {
- client *http.Client
- BasePath string // API endpoint base URL
- UserAgent string // optional additional User-Agent fragment
-
- Projects *ProjectsService
-}
-
-func (s *Service) userAgent() string {
- if s.UserAgent == "" {
- return googleapi.UserAgent
- }
- return googleapi.UserAgent + " " + s.UserAgent
-}
-
-func NewProjectsService(s *Service) *ProjectsService {
- rs := &ProjectsService{s: s}
- rs.Locations = NewProjectsLocationsService(s)
- rs.Zones = NewProjectsZonesService(s)
- return rs
-}
-
-type ProjectsService struct {
- s *Service
-
- Locations *ProjectsLocationsService
-
- Zones *ProjectsZonesService
-}
-
-func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
- rs := &ProjectsLocationsService{s: s}
- rs.Clusters = NewProjectsLocationsClustersService(s)
- rs.Operations = NewProjectsLocationsOperationsService(s)
- return rs
-}
-
-type ProjectsLocationsService struct {
- s *Service
-
- Clusters *ProjectsLocationsClustersService
-
- Operations *ProjectsLocationsOperationsService
-}
-
-func NewProjectsLocationsClustersService(s *Service) *ProjectsLocationsClustersService {
- rs := &ProjectsLocationsClustersService{s: s}
- rs.NodePools = NewProjectsLocationsClustersNodePoolsService(s)
- return rs
-}
-
-type ProjectsLocationsClustersService struct {
- s *Service
-
- NodePools *ProjectsLocationsClustersNodePoolsService
-}
-
-func NewProjectsLocationsClustersNodePoolsService(s *Service) *ProjectsLocationsClustersNodePoolsService {
- rs := &ProjectsLocationsClustersNodePoolsService{s: s}
- return rs
-}
-
-type ProjectsLocationsClustersNodePoolsService struct {
- s *Service
-}
-
-func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
- rs := &ProjectsLocationsOperationsService{s: s}
- return rs
-}
-
-type ProjectsLocationsOperationsService struct {
- s *Service
-}
-
-func NewProjectsZonesService(s *Service) *ProjectsZonesService {
- rs := &ProjectsZonesService{s: s}
- rs.Clusters = NewProjectsZonesClustersService(s)
- rs.Operations = NewProjectsZonesOperationsService(s)
- return rs
-}
-
-type ProjectsZonesService struct {
- s *Service
-
- Clusters *ProjectsZonesClustersService
-
- Operations *ProjectsZonesOperationsService
-}
-
-func NewProjectsZonesClustersService(s *Service) *ProjectsZonesClustersService {
- rs := &ProjectsZonesClustersService{s: s}
- rs.NodePools = NewProjectsZonesClustersNodePoolsService(s)
- return rs
-}
-
-type ProjectsZonesClustersService struct {
- s *Service
-
- NodePools *ProjectsZonesClustersNodePoolsService
-}
-
-func NewProjectsZonesClustersNodePoolsService(s *Service) *ProjectsZonesClustersNodePoolsService {
- rs := &ProjectsZonesClustersNodePoolsService{s: s}
- return rs
-}
-
-type ProjectsZonesClustersNodePoolsService struct {
- s *Service
-}
-
-func NewProjectsZonesOperationsService(s *Service) *ProjectsZonesOperationsService {
- rs := &ProjectsZonesOperationsService{s: s}
- return rs
-}
-
-type ProjectsZonesOperationsService struct {
- s *Service
-}
-
-// AcceleratorConfig: AcceleratorConfig represents a Hardware
-// Accelerator request.
-type AcceleratorConfig struct {
- // AcceleratorCount: The number of the accelerator cards exposed to an
- // instance.
- AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"`
-
- // AcceleratorType: The accelerator type resource name. List of
- // supported accelerators
- // [here](/compute/docs/gpus/#Introduction)
- AcceleratorType string `json:"acceleratorType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "AcceleratorCount") 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. "AcceleratorCount") 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 *AcceleratorConfig) MarshalJSON() ([]byte, error) {
- type noMethod AcceleratorConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// AddonsConfig: Configuration for the addons that can be automatically
-// 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.
- 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.
- HttpLoadBalancing *HttpLoadBalancing `json:"httpLoadBalancing,omitempty"`
-
- // KubernetesDashboard: Configuration for the Kubernetes Dashboard.
- KubernetesDashboard *KubernetesDashboard `json:"kubernetesDashboard,omitempty"`
-
- // NetworkPolicyConfig: Configuration for NetworkPolicy. This only
- // tracks whether the addon
- // is enabled or not on the Master, it does not track whether network
- // policy
- // is enabled for the nodes.
- NetworkPolicyConfig *NetworkPolicyConfig `json:"networkPolicyConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "HorizontalPodAutoscaling") 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. "HorizontalPodAutoscaling")
- // 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 *AddonsConfig) MarshalJSON() ([]byte, error) {
- type noMethod AddonsConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// AutoUpgradeOptions: AutoUpgradeOptions defines the set of options for
-// 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.
- AutoUpgradeStartTime string `json:"autoUpgradeStartTime,omitempty"`
-
- // Description: [Output only] This field is set when upgrades are about
- // to commence
- // with the description of the upgrade.
- Description string `json:"description,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "AutoUpgradeStartTime") 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. "AutoUpgradeStartTime") 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 *AutoUpgradeOptions) MarshalJSON() ([]byte, error) {
- type noMethod AutoUpgradeOptions
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CancelOperationRequest: CancelOperationRequest cancels a single
-// operation.
-type CancelOperationRequest struct {
- // Name: The name (project, location, operation id) of the operation to
- // cancel.
- // Specified in the format 'projects/*/locations/*/operations/*'.
- Name string `json:"name,omitempty"`
-
- // OperationId: The server-assigned `name` of the operation.
- // This field is deprecated, use name instead.
- OperationId string `json:"operationId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the operation
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *CancelOperationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CancelOperationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CidrBlock: CidrBlock contains an optional name and one CIDR block.
-type CidrBlock struct {
- // CidrBlock: cidr_block must be specified in CIDR notation.
- CidrBlock string `json:"cidrBlock,omitempty"`
-
- // DisplayName: display_name is an optional field for users to identify
- // CIDR blocks.
- DisplayName string `json:"displayName,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CidrBlock") 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. "CidrBlock") 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 *CidrBlock) MarshalJSON() ([]byte, error) {
- type noMethod CidrBlock
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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
- // in the cluster.
- AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
-
- // Autoscaling: Cluster-level autoscaling configuration.
- Autoscaling *ClusterAutoscaling `json:"autoscaling,omitempty"`
-
- // ClusterIpv4Cidr: 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`.
- ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
-
- // 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"`
-
- // CurrentMasterVersion: [Output only] The current software version of
- // the master endpoint.
- CurrentMasterVersion string `json:"currentMasterVersion,omitempty"`
-
- // CurrentNodeCount: [Output only] The number of nodes currently in the
- // cluster.
- 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.
- 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.
- 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 string `json:"endpoint,omitempty"`
-
- // 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: 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
- // 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 []string `json:"instanceGroupUrls,omitempty"`
-
- // IpAllocationPolicy: Configuration for cluster IP allocation.
- IpAllocationPolicy *IPAllocationPolicy `json:"ipAllocationPolicy,omitempty"`
-
- // Location: [Output only] The name of the Google Compute
- // Engine
- // [zone](/compute/docs/regions-zones/regions-zones#available)
- // or
- // [region](/compute/docs/regions-zones/regions-zones#available) in
- // which
- // the cluster resides.
- Location string `json:"location,omitempty"`
-
- // Locations: The list of Google Compute
- // Engine
- // [locations](/compute/docs/zones#available) in which the cluster's
- // 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.
- LoggingService string `json:"loggingService,omitempty"`
-
- // MaintenancePolicy: Configure the maintenance policy for this cluster.
- MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
-
- // MasterAuth: The authentication information for accessing the master
- // endpoint.
- MasterAuth *MasterAuth `json:"masterAuth,omitempty"`
-
- // MasterAuthorizedNetworksConfig: The configuration options for master
- // authorized networks feature.
- MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,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.
- 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.
- 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 string `json:"network,omitempty"`
-
- // 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.
- 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
- // specified.
- NodePools []*NodePool `json:"nodePools,omitempty"`
-
- // PodSecurityPolicyConfig: Configuration for the PodSecurityPolicy
- // feature.
- PodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"podSecurityPolicyConfig,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
- // [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.
- ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
-
- // Status: [Output only] The current status of this cluster.
- //
- // Possible values:
- // "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.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // 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.
- // This field is deprecated, use location instead.
- Zone string `json:"zone,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // 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
- // 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. "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 *Cluster) MarshalJSON() ([]byte, error) {
- type noMethod Cluster
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ClusterAutoscaling: ClusterAutoscaling contains global, per-cluster
-// information
-// required by Cluster Autoscaler to automatically adjust
-// the size of the cluster and create/delete
-// node pools based on the current needs.
-type ClusterAutoscaling struct {
- // EnableNodeAutoprovisioning: Enables automatic node pool creation and
- // deletion.
- EnableNodeAutoprovisioning bool `json:"enableNodeAutoprovisioning,omitempty"`
-
- // ResourceLimits: Contains global constraints regarding minimum and
- // maximum
- // amount of resources in the cluster.
- ResourceLimits []*ResourceLimit `json:"resourceLimits,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "EnableNodeAutoprovisioning") 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.
- // "EnableNodeAutoprovisioning") 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 *ClusterAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod ClusterAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-type ClusterUpdate struct {
- // DesiredAddonsConfig: Configurations for the various addons available
- // to run in the cluster.
- DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"`
-
- // DesiredClusterAutoscaling: The desired cluster-level autoscaling
- // configuration.
- DesiredClusterAutoscaling *ClusterAutoscaling `json:"desiredClusterAutoscaling,omitempty"`
-
- // 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
- // [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.
- DesiredLocations []string `json:"desiredLocations,omitempty"`
-
- // DesiredMasterAuthorizedNetworksConfig: The desired configuration
- // options for master authorized networks feature.
- DesiredMasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"desiredMasterAuthorizedNetworksConfig,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.
- 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
- 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.
- DesiredNodePoolAutoscaling *NodePoolAutoscaling `json:"desiredNodePoolAutoscaling,omitempty"`
-
- // DesiredNodePoolId: 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.
- 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.
- DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
-
- // DesiredPodSecurityPolicyConfig: The desired configuration options for
- // the PodSecurityPolicy feature.
- DesiredPodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"desiredPodSecurityPolicyConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DesiredAddonsConfig")
- // 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. "DesiredAddonsConfig") 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 *ClusterUpdate) MarshalJSON() ([]byte, error) {
- type noMethod ClusterUpdate
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CompleteIPRotationRequest: CompleteIPRotationRequest moves the
-// cluster master back into single-IP mode.
-type CompleteIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to
- // complete IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *CompleteIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CompleteIPRotationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CreateClusterRequest: CreateClusterRequest creates a cluster.
-type CreateClusterRequest struct {
- // Cluster: A
- // [cluster
- // resource](/container-engine/reference/rest/v1alpha1/projects.
- // zones.clusters)
- Cluster *Cluster `json:"cluster,omitempty"`
-
- // Parent: The parent (project and location) where the cluster will be
- // created.
- // Specified in the format 'projects/*/locations/*'.
- Parent string `json:"parent,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use parent instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use parent instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Cluster") 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. "Cluster") 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 *CreateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateClusterRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// CreateNodePoolRequest: CreateNodePoolRequest creates a node pool for
-// a cluster.
-type CreateNodePoolRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use parent instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // NodePool: The node pool to create.
- NodePool *NodePool `json:"nodePool,omitempty"`
-
- // Parent: The parent (project, location, cluster id) where the node
- // pool will be created.
- // Specified in the format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Parent string `json:"parent,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use parent instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use parent instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateNodePoolRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// DailyMaintenanceWindow: Time window specified for daily maintenance
-// operations.
-type DailyMaintenanceWindow struct {
- // Duration: [Output only] Duration of the time window, automatically
- // chosen to be
- // smallest possible in the given scenario.
- Duration string `json:"duration,omitempty"`
-
- // StartTime: Time within the maintenance window to start the
- // maintenance operations.
- // It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59]
- // GMT.
- StartTime string `json:"startTime,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod DailyMaintenanceWindow
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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 `{}`.
-type Empty struct {
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-}
-
-// 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.
-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.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod HorizontalPodAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-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.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
- type noMethod HttpLoadBalancing
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// IPAllocationPolicy: Configuration for controlling how IPs are
-// allocated in the cluster.
-type IPAllocationPolicy struct {
- // ClusterIpv4Cidr: This field is deprecated, use
- // cluster_ipv4_cidr_block.
- ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
-
- // ClusterIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- ClusterIpv4CidrBlock string `json:"clusterIpv4CidrBlock,omitempty"`
-
- // ClusterSecondaryRangeName: The name of the secondary range to be used
- // for the cluster CIDR
- // block. The secondary range will be used for pod IP
- // addresses. This must be an existing secondary range associated
- // with the cluster subnetwork.
- //
- // This field is only applicable with use_ip_aliases
- // and
- // create_subnetwork is false.
- ClusterSecondaryRangeName string `json:"clusterSecondaryRangeName,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: This field is deprecated, use node_ipv4_cidr_block.
- NodeIpv4Cidr string `json:"nodeIpv4Cidr,omitempty"`
-
- // NodeIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- NodeIpv4CidrBlock string `json:"nodeIpv4CidrBlock,omitempty"`
-
- // ServicesIpv4Cidr: This field is deprecated, use
- // services_ipv4_cidr_block.
- ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
-
- // ServicesIpv4CidrBlock: 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 chosen with the default size.
- //
- // Set to /netmask (e.g. `/14`) to have a range chosen with a
- // specific
- // netmask.
- //
- // Set to
- // a
- // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- //
- // notation (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.
- ServicesIpv4CidrBlock string `json:"servicesIpv4CidrBlock,omitempty"`
-
- // ServicesSecondaryRangeName: The name of the secondary range to be
- // used as for the services
- // CIDR block. The secondary range will be used for service
- // ClusterIPs. This must be an existing secondary range associated
- // with the cluster subnetwork.
- //
- // This field is only applicable with use_ip_aliases
- // and
- // create_subnetwork is false.
- ServicesSecondaryRangeName string `json:"servicesSecondaryRangeName,omitempty"`
-
- // SubnetworkName: A custom subnetwork name to be used if
- // `create_subnetwork` is true. If
- // this field is empty, then an automatic name will be chosen 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)
-}
-
-// KubernetesDashboard: Configuration for the Kubernetes Dashboard.
-type KubernetesDashboard struct {
- // Disabled: Whether the Kubernetes Dashboard is enabled for this
- // cluster.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *KubernetesDashboard) MarshalJSON() ([]byte, error) {
- type noMethod KubernetesDashboard
- 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
- // 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.
- MissingZones []string `json:"missingZones,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Clusters") 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. "Clusters") 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 *ListClustersResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListClustersResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ListNodePoolsResponse: ListNodePoolsResponse is the result of
-// ListNodePoolsRequest.
-type ListNodePoolsResponse struct {
- // NodePools: A list of node pools for a cluster.
- NodePools []*NodePool `json:"nodePools,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "NodePools") 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. "NodePools") 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 *ListNodePoolsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListNodePoolsResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ListOperationsResponse: ListOperationsResponse is the result of
-// ListOperationsRequest.
-type ListOperationsResponse struct {
- // MissingZones: If any zones are listed here, the list of operations
- // 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
- // zone.
- Operations []*Operation `json:"operations,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "MissingZones") 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. "MissingZones") 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 *ListOperationsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListOperationsResponse
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MaintenancePolicy: MaintenancePolicy defines the maintenance policy
-// to be used for the cluster.
-type MaintenancePolicy struct {
- // Window: Specifies the maintenance window in which maintenance may be
- // performed.
- Window *MaintenanceWindow `json:"window,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Window") 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. "Window") 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 *MaintenancePolicy) MarshalJSON() ([]byte, error) {
- type noMethod MaintenancePolicy
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MaintenanceWindow: MaintenanceWindow defines the maintenance window
-// to be used for the cluster.
-type MaintenanceWindow struct {
- // DailyMaintenanceWindow: DailyMaintenanceWindow specifies a daily
- // maintenance operation window.
- DailyMaintenanceWindow *DailyMaintenanceWindow `json:"dailyMaintenanceWindow,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "DailyMaintenanceWindow") 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. "DailyMaintenanceWindow")
- // 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 *MaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod MaintenanceWindow
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MasterAuth: The authentication information for accessing the master
-// 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.
- 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.
- ClientKey string `json:"clientKey,omitempty"`
-
- // ClusterCaCertificate: [Output only] Base64-encoded public certificate
- // 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. 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")
- // 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. "ClientCertificate") 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 *MasterAuth) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuth
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// MasterAuthorizedNetworksConfig: Configuration options for the master
-// authorized networks feature. Enabled
-// master authorized networks will disallow all external traffic to
-// access
-// Kubernetes master through HTTPS except traffic from the given CIDR
-// blocks,
-// Google Compute Engine Public IPs and Google Prod IPs.
-type MasterAuthorizedNetworksConfig struct {
- // CidrBlocks: cidr_blocks define up to 10 external networks that could
- // access
- // Kubernetes master through HTTPS.
- CidrBlocks []*CidrBlock `json:"cidrBlocks,omitempty"`
-
- // Enabled: Whether or not master authorized networks is enabled.
- Enabled bool `json:"enabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CidrBlocks") 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. "CidrBlocks") 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 *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuthorizedNetworksConfig
- raw := noMethod(*s)
- 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:
- // "PROVIDER_UNSPECIFIED" - 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)
-}
-
-// NetworkPolicyConfig: Configuration for NetworkPolicy. This only
-// tracks whether the addon
-// is enabled or not on the Master, it does not track whether network
-// policy
-// is enabled for the nodes.
-type NetworkPolicyConfig struct {
- // Disabled: Whether NetworkPolicy is enabled for this cluster.
- Disabled bool `json:"disabled,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *NetworkPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicyConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeConfig: Parameters that describe the nodes in a cluster.
-type NodeConfig struct {
- // Accelerators: A list of hardware accelerators to be attached to each
- // node.
- // See https://cloud.google.com/compute/docs/gpus for more information
- // about
- // support for GPUs.
- Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"`
-
- // 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.
- 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:
- // https://kubernetes.io/docs/concepts/overview/working-with-objects
- // /labels/
- 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_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 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.
- Metadata map[string]string `json:"metadata,omitempty"`
-
- // MinCpuPlatform: Minimum CPU platform to be used by this instance. The
- // instance may be
- // scheduled on the specified or newer CPU platform. Applicable values
- // are the
- // friendly names of CPU platforms, such as
- // minCpuPlatform: "Intel Haswell"
- // or
- // minCpuPlatform: "Intel Sandy Bridge"
. For
- // more
- // information, read [how to specify min CPU
- // platform](https://cloud.google.com/compute/docs/instances/specify-min-
- // cpu-platform)
- MinCpuPlatform string `json:"minCpuPlatform,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.
- 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.
- 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.
- 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.
- Tags []string `json:"tags,omitempty"`
-
- // Taints: List of kubernetes taints to be applied to each node.
- //
- // For more information, including usage and the valid values,
- // see:
- // https://kubernetes.io/docs/concepts/configuration/taint-and-toler
- // ation/
- Taints []*NodeTaint `json:"taints,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Accelerators") 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. "Accelerators") 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 *NodeConfig) MarshalJSON() ([]byte, error) {
- type noMethod NodeConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeManagement: NodeManagement defines the set of node management
-// services turned on for the
-// node pool.
-type NodeManagement struct {
- // AutoRepair: Whether the nodes will be automatically repaired.
- AutoRepair bool `json:"autoRepair,omitempty"`
-
- // AutoUpgrade: Whether the nodes will be automatically upgraded.
- 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. "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
- // 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. "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:"-"`
-}
-
-func (s *NodeManagement) MarshalJSON() ([]byte, error) {
- type noMethod NodeManagement
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// 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.
-type NodePool struct {
- // Autoscaling: Autoscaler configuration for this NodePool. Autoscaler
- // 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.
- InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
-
- // 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.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name of the node pool.
- Name string `json:"name,omitempty"`
-
- // SelfLink: [Output only] Server-defined URL for the resource.
- SelfLink string `json:"selfLink,omitempty"`
-
- // Status: [Output only] The status of the nodes in this pool instance.
- //
- // Possible values:
- // "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.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // Version: [Output only] The version of the Kubernetes of this node.
- Version string `json:"version,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // 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 *NodePool) MarshalJSON() ([]byte, error) {
- type noMethod NodePool
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodePoolAutoscaling: NodePoolAutoscaling contains information
-// required by cluster autoscaler to
-// adjust the size of the node pool to the current cluster usage.
-type NodePoolAutoscaling struct {
- // Autoprovisioned: Is autosprovisoning enabled for this node pool.
- Autoprovisioned bool `json:"autoprovisioned,omitempty"`
-
- // 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.
- MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
-
- // MinNodeCount: Minimum number of nodes in the NodePool. Must be >= 1
- // and <=
- // max_node_count.
- MinNodeCount int64 `json:"minNodeCount,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Autoprovisioned") 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. "Autoprovisioned") 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod NodePoolAutoscaling
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// NodeTaint: Kubernetes taint is comprised of three fields: key, value,
-// and effect. Effect
-// can only be one of three types: NoSchedule, PreferNoSchedule or
-// NoExecute.
-//
-// For more information, including usage and the valid values,
-// see:
-// https://kubernetes.io/docs/concepts/configuration/taint-and-toler
-// ation/
-type NodeTaint struct {
- // Effect: Effect for taint.
- //
- // Possible values:
- // "EFFECT_UNSPECIFIED" - Not set
- // "NO_SCHEDULE" - NoSchedule
- // "PREFER_NO_SCHEDULE" - PreferNoSchedule
- // "NO_EXECUTE" - NoExecute
- Effect string `json:"effect,omitempty"`
-
- // Key: Key for taint.
- Key string `json:"key,omitempty"`
-
- // Value: Value for taint.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Effect") 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. "Effect") 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 *NodeTaint) MarshalJSON() ([]byte, error) {
- type noMethod NodeTaint
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// Operation: This operation resource represents operations that may
-// 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"`
-
- // EndTime: [Output only] The time the operation completed,
- // in
- // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- EndTime string `json:"endTime,omitempty"`
-
- // Location: [Output only] The name of the Google Compute
- // Engine
- // [zone](/compute/docs/regions-zones/regions-zones#available)
- // or
- // [region](/compute/docs/regions-zones/regions-zones#available) in
- // which
- // the cluster resides.
- Location string `json:"location,omitempty"`
-
- // Name: The server-assigned ID for the operation.
- Name string `json:"name,omitempty"`
-
- // OperationType: The operation type.
- //
- // Possible values:
- // "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.
- // "SET_MAINTENANCE_POLICY" - Set the maintenance policy.
- OperationType string `json:"operationType,omitempty"`
-
- // SelfLink: Server-defined URL for the resource.
- SelfLink string `json:"selfLink,omitempty"`
-
- // StartTime: [Output only] The time the operation started,
- // in
- // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- StartTime string `json:"startTime,omitempty"`
-
- // Status: The current status of the operation.
- //
- // Possible values:
- // "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
- // error.
- StatusMessage string `json:"statusMessage,omitempty"`
-
- // 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.
- // This field is deprecated, use location instead.
- Zone string `json:"zone,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 *Operation) MarshalJSON() ([]byte, error) {
- type noMethod Operation
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// PodSecurityPolicyConfig: Configuration for the PodSecurityPolicy
-// feature.
-type PodSecurityPolicyConfig struct {
- // Enabled: Enable the PodSecurityPolicy controller for this cluster. If
- // enabled, pods
- // must be valid under a PodSecurityPolicy to be created.
- 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 *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod PodSecurityPolicyConfig
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ResourceLimit: Contains information about amount of some resource in
-// the cluster. For memory, value should be in GB.
-type ResourceLimit struct {
- // Maximum: Maximum amount of the resource in the cluster.
- Maximum int64 `json:"maximum,omitempty,string"`
-
- // Minimum: Minimum amount of the resource in the cluster.
- Minimum int64 `json:"minimum,omitempty,string"`
-
- // Name: Resource name "cpu", "memory" or gpu-specific string.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Maximum") 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. "Maximum") 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 *ResourceLimit) MarshalJSON() ([]byte, error) {
- type noMethod ResourceLimit
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// RollbackNodePoolUpgradeRequest: RollbackNodePoolUpgradeRequest
-// rollbacks the previously Aborted or Failed
-// NodePool upgrade. This will be an no-op if the last upgrade
-// successfully
-// completed.
-type RollbackNodePoolUpgradeRequest struct {
- // ClusterId: The name of the cluster to rollback.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // poll to
- // rollback upgrade.
- // Specified in the format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Name string `json:"name,omitempty"`
-
- // NodePoolId: The name of the node pool to rollback.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) {
- type noMethod RollbackNodePoolUpgradeRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// ServerConfig: Container Engine service configuration.
-type ServerConfig struct {
- // DefaultClusterVersion: Version of Kubernetes the service deploys by
- // default.
- DefaultClusterVersion string `json:"defaultClusterVersion,omitempty"`
-
- // DefaultImageType: Default image type.
- DefaultImageType string `json:"defaultImageType,omitempty"`
-
- // ValidImageTypes: List of valid image types.
- ValidImageTypes []string `json:"validImageTypes,omitempty"`
-
- // ValidMasterVersions: List of valid master versions.
- ValidMasterVersions []string `json:"validMasterVersions,omitempty"`
-
- // ValidNodeVersions: List of valid node upgrade target versions.
- ValidNodeVersions []string `json:"validNodeVersions,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g.
- // "DefaultClusterVersion") 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. "DefaultClusterVersion") 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 *ServerConfig) MarshalJSON() ([]byte, error) {
- type noMethod ServerConfig
- 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 {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // 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"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // labels.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // ResourceLabels: The labels to set for that cluster.
- ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Enabled: Whether ABAC authorization will be enabled in the cluster.
- Enabled bool `json:"enabled,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // legacy abac.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLegacyAbacRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// SetMaintenancePolicyRequest: SetMaintenancePolicyRequest sets the
-// maintenance policy for a cluster.
-type SetMaintenancePolicyRequest struct {
- // ClusterId: The name of the cluster to update.
- ClusterId string `json:"clusterId,omitempty"`
-
- // MaintenancePolicy: The maintenance policy to be set for the cluster.
- // An empty field
- // clears the existing maintenance policy.
- MaintenancePolicy *MaintenancePolicy `json:"maintenancePolicy,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // maintenance
- // policy.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the cluster
- // resides.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMaintenancePolicyRequest
- 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.
- // "SET_USERNAME" - Set the username. If an empty username is
- // provided, basic authentication
- // is disabled for the cluster. If a non-empty username is provided,
- // basic
- // authentication is enabled, with either a provided password or a
- // generated
- // one.
- Action string `json:"action,omitempty"`
-
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster) of the cluster to set
- // auth.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Update: A description of the update.
- Update *MasterAuth `json:"update,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,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)
-}
-
-// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
-// network policy for a cluster.
-type SetNetworkPolicyRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to set
- // networking policy.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // NetworkPolicy: Configuration options for the NetworkPolicy feature.
- NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// SetNodePoolManagementRequest: SetNodePoolManagementRequest sets the
-// node management properties of a node
-// pool.
-type SetNodePoolManagementRequest struct {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Management: NodeManagement configuration for the node pool.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // pool to set
- // management properties. Specified in the
- // format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
- Name string `json:"name,omitempty"`
-
- // NodePoolId: The name of the node pool to update.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// 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 {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster id) of the cluster to
- // start IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *StartIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod StartIPRotationRequest
- raw := noMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
-}
-
-// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
-// cluster.
-type UpdateClusterRequest struct {
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
- ClusterId string `json:"clusterId,omitempty"`
-
- // Name: The name (project, location, cluster) of the cluster to
- // update.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
- Name string `json:"name,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
- // project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
- ProjectId string `json:"projectId,omitempty"`
-
- // Update: A description of the update.
- Update *ClusterUpdate `json:"update,omitempty"`
-
- // Zone: The name of the Google Compute
- // Engine
- // [zone](/compute/docs/zones#available) in which the
- // cluster
- // resides.
- // This field is deprecated, use name instead.
- Zone string `json:"zone,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
-}
-
-// method id "container.projects.locations.getServerConfig":
-
-type ProjectsLocationsGetServerConfigCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// GetServerConfig: Returns configuration info about the Container
-// Engine service.
-func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
- c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("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 *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsGetServerConfigCall) 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, "v1alpha1/{+name}/serverConfig")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsGetServerConfigCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.getServerConfig",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}/serverConfig",
- // "response": {
- // "$ref": "ServerConfig"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.completeIpRotation":
-
-type ProjectsLocationsClustersCompleteIpRotationCall struct {
- s *Service
- name string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// CompleteIpRotation: Completes master IP rotation.
-func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
- c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
- 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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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, "v1alpha1/{+name}:completeIpRotation")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCompleteIpRotationCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.completeIpRotation",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:completeIpRotation",
- // "request": {
- // "$ref": "CompleteIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.create":
-
-type ProjectsLocationsClustersCreateCall struct {
- s *Service
- parent 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
- c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
- 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
- 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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersCreateCall) 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, "v1alpha1/{+parent}/clusters")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/clusters",
- // "request": {
- // "$ref": "CreateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.delete":
-
-type ProjectsLocationsClustersDeleteCall struct {
- s *Service
- name 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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
- c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
- 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
- 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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersDeleteCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.get":
-
-type ProjectsLocationsClustersGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the details of a specific cluster.
-func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
- c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to retrieve.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
- 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 *ProjectsLocationsClustersGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersGetCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Cluster"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.list":
-
-type ProjectsLocationsClustersListCall struct {
- s *Service
- parent 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 *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
- c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the cluster
-// resides, or "-" for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
- 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 *ProjectsLocationsClustersListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersListCall) 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, "v1alpha1/{+parent}/clusters")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersListCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/clusters",
- // "response": {
- // "$ref": "ListClustersResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setLegacyAbac":
-
-type ProjectsLocationsClustersSetLegacyAbacCall struct {
- s *Service
- name string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
-// on a cluster.
-func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
- c := &ProjectsLocationsClustersSetLegacyAbacCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
- 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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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, "v1alpha1/{+name}:setLegacyAbac")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setLegacyAbac" 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 *ProjectsLocationsClustersSetLegacyAbacCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setLegacyAbac",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setLegacyAbac",
- // "request": {
- // "$ref": "SetLegacyAbacRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setMaintenancePolicy":
-
-type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
- s *Service
- name string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setMaintenancePolicy")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) 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 maintenance policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMaintenancePolicy",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setMaintenancePolicy",
- // "request": {
- // "$ref": "SetMaintenancePolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setMasterAuth":
-
-type ProjectsLocationsClustersSetMasterAuthCall struct {
- s *Service
- name 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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
- c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
- 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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetMasterAuthCall) 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, "v1alpha1/{+name}:setMasterAuth")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMasterAuth",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setMasterAuth",
- // "request": {
- // "$ref": "SetMasterAuthRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setNetworkPolicy":
-
-type ProjectsLocationsClustersSetNetworkPolicyCall struct {
- s *Service
- name string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
- c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
- 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetNetworkPolicyCall) 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.setnetworkpolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setNetworkPolicy")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsClustersSetNetworkPolicyCall) 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/Disables Network Policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setNetworkPolicy",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setNetworkPolicy",
- // "request": {
- // "$ref": "SetNetworkPolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.setResourceLabels":
-
-type ProjectsLocationsClustersSetResourceLabelsCall struct {
- s *Service
- name string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetResourceLabels: Sets labels on a cluster.
-func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
- c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
- 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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersSetResourceLabelsCall) 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, "v1alpha1/{+name}:setResourceLabels")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.clusters.setResourceLabels" 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 *ProjectsLocationsClustersSetResourceLabelsCall) 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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setResourceLabels",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setResourceLabels",
- // "request": {
- // "$ref": "SetLabelsRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.startIpRotation":
-
-type ProjectsLocationsClustersStartIpRotationCall struct {
- s *Service
- name string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// StartIpRotation: Start master IP rotation.
-func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
- c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
- 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
- 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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersStartIpRotationCall) 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.startiprotationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:startIpRotation")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) 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": "Start master IP rotation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.startIpRotation",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:startIpRotation",
- // "request": {
- // "$ref": "StartIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.update":
-
-type ProjectsLocationsClustersUpdateCall struct {
- s *Service
- name string
- updateclusterrequest *UpdateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Update: Updates the settings of a specific cluster.
-func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
- c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
- 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 *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
- 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 *ProjectsLocationsClustersUpdateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersUpdateCall) 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.updateclusterrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersUpdateCall) 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 settings of a specific cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.locations.clusters.update",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.create":
-
-type ProjectsLocationsClustersNodePoolsCreateCall struct {
- s *Service
- parent string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Create: Creates a node pool for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
- c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
- 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 *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsCreateCall) 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.createnodepoolrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/nodePools")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsCreateCall) 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 node pool for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.delete":
-
-type ProjectsLocationsClustersNodePoolsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Delete: Deletes a node pool from a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
- 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 *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
- 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 *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsDeleteCall) 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 a node pool from a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.nodePools.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.get":
-
-type ProjectsLocationsClustersNodePoolsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Retrieves the node pool requested.
-func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
- c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, 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 := &NodePool{
- 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": "Retrieves the node pool requested.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "NodePool"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.list":
-
-type ProjectsLocationsClustersNodePoolsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists the node pools for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
- c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsListCall) 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, "v1alpha1/{+parent}/nodePools")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, 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 := &ListNodePoolsResponse{
- 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 the node pools for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/nodePools",
- // "response": {
- // "$ref": "ListNodePoolsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.rollback":
-
-type ProjectsLocationsClustersNodePoolsRollbackCall struct {
- s *Service
- name string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- 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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
- c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
- 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsRollbackCall) 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.rollbacknodepoolupgraderequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:rollback")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsRollbackCall) 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": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.rollback",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:rollback",
- // "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.clusters.nodePools.setManagement":
-
-type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
- s *Service
- name string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetManagement: Sets the NodeManagement options for a node pool.
-func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) 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.setnodepoolmanagementrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:setManagement")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsSetManagementCall) 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 NodeManagement options for a node pool.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.setManagement",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.cancel":
-
-type ProjectsLocationsOperationsCancelCall struct {
- s *Service
- name string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Cancel: Cancels the specified operation.
-func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
- c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.canceloperationrequest = canceloperationrequest
- 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
- 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
- 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsCancelCall) 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.canceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
- 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": "Cancels the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.operations.cancel",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.get":
-
-type ProjectsLocationsOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the specified operation.
-func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
- c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// OperationId sets the optional parameter "operationId": The
-// server-assigned `name` of the operation.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("operationId", operationId)
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsGetCall) 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, "v1alpha1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.get" 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 *ProjectsLocationsOperationsGetCall) 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": "Gets the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+name}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.list":
-
-type ProjectsLocationsOperationsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists all operations in a project in a specific zone or all
-// zones.
-func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
- c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
-}
-
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for, or `-` for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
- 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 *ProjectsLocationsOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsLocationsOperationsListCall) 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, "v1alpha1/{+parent}/operations")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.locations.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{
- 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 operations in a project in a specific zone or all zones.",
- // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/{+parent}/operations",
- // "response": {
- // "$ref": "ListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// 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
-}
-
-// Name sets the optional parameter "name": The name (project and
-// location) of the server config to get
-// Specified in the format 'projects/*/locations/*'.
-func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.getServerconfig",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/serverconfig",
- // "response": {
- // "$ref": "ServerConfig"
- // },
- // "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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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, "v1alpha1/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": "v1alpha1/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).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to delete.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to retrieve.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
- c.urlParams_.Set("name", name)
- 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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the clusters will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
- c.urlParams_.Set("parent", parent)
- 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, "v1alpha1/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": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.list",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters",
- // "response": {
- // "$ref": "ListClustersResponse"
- // },
- // "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, "v1alpha1/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": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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.setMaintenancePolicy":
-
-type ProjectsZonesClustersSetMaintenancePolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
- c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
- 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
- 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.setMaintenancePolicy" 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 *ProjectsZonesClustersSetMaintenancePolicyCall) 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 maintenance policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMaintenancePolicy",
- // "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": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- // "request": {
- // "$ref": "SetMaintenancePolicyRequest"
- // },
- // "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.
-// Modify basic_auth.csv and reset the K8S API server.
-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 *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMasterAuthCall {
- 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 *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, "v1alpha1/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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1alpha1/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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/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 *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 *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
- 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.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
-// *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 *ProjectsZonesClustersSetNetworkPolicyCall) 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/Disables Network Policy for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setNetworkPolicy",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- // "request": {
- // "$ref": "SetNetworkPolicyRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.startIpRotation":
-
-type ProjectsZonesClustersStartIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// 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.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 *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
- 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 *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 *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- var body io.Reader = nil
- 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, "v1alpha1/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.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 *ProjectsZonesClustersStartIpRotationCall) 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": "Start master IP rotation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.startIpRotation",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- // "request": {
- // "$ref": "StartIPRotationRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// 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
-}
-
-// 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 *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
- 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 *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 *ProjectsZonesClustersUpdateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", 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.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 *ProjectsZonesClustersUpdateCall) 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 settings of a specific cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.zones.clusters.update",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.create":
-
-type ProjectsZonesClustersNodePoolsCreateCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- 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)}
- 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 *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
- 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 *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 *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
- 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.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 {
- 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 node pool for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.create",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "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).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.delete":
-
-type ProjectsZonesClustersNodePoolsDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.nodePoolId = nodePoolId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to delete.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
- c.urlParams_.Set("name", name)
- 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 {
- 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 *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 *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- 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) {
- 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 a node pool from a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.nodePools.delete",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.get":
-
-type ProjectsZonesClustersNodePoolsGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- c.nodePoolId = nodePoolId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to get.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
- c.urlParams_.Set("name", name)
- 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 {
- 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 {
- 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 {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- 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
-// 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) {
- 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 := &NodePool{
- 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": "Retrieves the node pool requested.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.get",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "response": {
- // "$ref": "NodePool"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.list":
-
-type ProjectsZonesClustersNodePoolsListCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- 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)}
- c.projectId = projectId
- c.zone = zone
- c.clusterId = clusterId
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project,
-// location, cluster id) where the node pools will be listed.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
- c.urlParams_.Set("parent", parent)
- 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 {
- 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 {
- 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 {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
- 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.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 {
- 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 := &ListNodePoolsResponse{
- 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 the node pools for a cluster.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.list",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "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.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "response": {
- // "$ref": "ListNodePoolsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.rollback":
-
-type ProjectsZonesClustersNodePoolsRollbackCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- 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)}
- 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 *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall {
- 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 *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 *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// 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 *ProjectsZonesClustersNodePoolsRollbackCall) 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": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.rollback",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- // "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.clusters.nodePools.setManagement":
-
-type ProjectsZonesClustersNodePoolsSetManagementCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- 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)}
- 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 *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall {
- 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 *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 *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-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())
- 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, "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
- 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,
- "nodePoolId": c.nodePoolId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// 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 {
- 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 NodeManagement options for a node pool.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.setManagement",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "clusterId",
- // "nodePoolId"
- // ],
- // "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.cancel":
-
-type ProjectsZonesOperationsCancelCall struct {
- s *Service
- projectId string
- zone string
- operationId string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Cancel: Cancels the specified operation.
-func (r *ProjectsZonesOperationsService) Cancel(projectId string, zone string, operationId string, canceloperationrequest *CancelOperationRequest) *ProjectsZonesOperationsCancelCall {
- c := &ProjectsZonesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.operationId = operationId
- c.canceloperationrequest = canceloperationrequest
- 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 *ProjectsZonesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsCancelCall {
- 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 *ProjectsZonesOperationsCancelCall) Context(ctx context.Context) *ProjectsZonesOperationsCancelCall {
- 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 *ProjectsZonesOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsCancelCall) 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.canceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel")
- 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,
- "operationId": c.operationId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.zones.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *Empty.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 *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{
- 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": "Cancels the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.operations.cancel",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "operationId"
- // ],
- // "parameters": {
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.get":
-
-type ProjectsZonesOperationsGetCall struct {
- s *Service
- projectId string
- zone string
- operationId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Gets the specified operation.
-func (r *ProjectsZonesOperationsService) Get(projectId string, zone string, operationId string) *ProjectsZonesOperationsGetCall {
- c := &ProjectsZonesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- c.operationId = operationId
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// operation id) of the operation to get.
-// Specified in the format 'projects/*/locations/*/operations/*'.
-func (c *ProjectsZonesOperationsGetCall) Name(name string) *ProjectsZonesOperationsGetCall {
- c.urlParams_.Set("name", name)
- 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 *ProjectsZonesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) Context(ctx context.Context) *ProjectsZonesOperationsGetCall {
- 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 *ProjectsZonesOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsGetCall) 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, "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}")
- 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,
- "operationId": c.operationId,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
-}
-
-// Do executes the "container.projects.zones.operations.get" 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 *ProjectsZonesOperationsGetCall) 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": "Gets the specified operation.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.operations.get",
- // "parameterOrder": [
- // "projectId",
- // "zone",
- // "operationId"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- // "location": "query",
- // "type": "string"
- // },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "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.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- // "response": {
- // "$ref": "Operation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.zones.operations.list":
-
-type ProjectsZonesOperationsListCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists all operations in a project in a specific zone or all
-// zones.
-func (r *ProjectsZonesOperationsService) List(projectId string, zone string) *ProjectsZonesOperationsListCall {
- c := &ProjectsZonesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.projectId = projectId
- c.zone = zone
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the operations will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesOperationsListCall) Parent(parent string) *ProjectsZonesOperationsListCall {
- c.urlParams_.Set("parent", parent)
- 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 *ProjectsZonesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) Context(ctx context.Context) *ProjectsZonesOperationsListCall {
- 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 *ProjectsZonesOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
-}
-
-func (c *ProjectsZonesOperationsListCall) 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, "v1alpha1/projects/{projectId}/zones/{zone}/operations")
- 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.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListOperationsResponse.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 *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{
- 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 operations in a project in a specific zone or all zones.",
- // "flatPath": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.operations.list",
- // "parameterOrder": [
- // "projectId",
- // "zone"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
- // "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha1/projects/{projectId}/zones/{zone}/operations",
- // "response": {
- // "$ref": "ListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
diff --git a/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json b/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json
index 83901b3ef10f..1a37486377c9 100644
--- a/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json
+++ b/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json
@@ -1,2856 +1,2317 @@
{
- "schemas": {
- "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"
+ "auth": {
+ "oauth2": {
+ "scopes": {
+ "https://www.googleapis.com/auth/cloud-platform": {
+ "description": "View and manage your data across Google Cloud Platform services"
}
- },
- "id": "ListNodePoolsResponse"
+ }
+ }
+ },
+ "basePath": "",
+ "baseUrl": "https://container.googleapis.com/",
+ "batchPath": "batch",
+ "canonicalName": "Container",
+ "description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
+ "discoveryVersion": "v1",
+ "documentationLink": "https://cloud.google.com/container-engine/",
+ "fullyEncodeReservedExpansion": true,
+ "icons": {
+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
+ },
+ "id": "container:v1beta1",
+ "kind": "discovery#restDescription",
+ "name": "container",
+ "ownerDomain": "google.com",
+ "ownerName": "Google",
+ "parameters": {
+ "$.xgafv": {
+ "description": "V1 error format.",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
+ "location": "query",
+ "type": "string"
},
- "CompleteIPRotationRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- }
- },
- "id": "CompleteIPRotationRequest",
- "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode."
+ "access_token": {
+ "description": "OAuth access token.",
+ "location": "query",
+ "type": "string"
},
- "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": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "StartIPRotationRequest"
+ "alt": {
+ "default": "json",
+ "description": "Data format for response.",
+ "enum": [
+ "json",
+ "media",
+ "proto"
+ ],
+ "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",
+ "type": "string"
},
- "AcceleratorConfig": {
- "properties": {
- "acceleratorType": {
- "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
- "type": "string"
- },
- "acceleratorCount": {
- "format": "int64",
- "description": "The number of the accelerator cards exposed to an instance.",
- "type": "string"
- }
- },
- "id": "AcceleratorConfig",
- "description": "AcceleratorConfig represents a Hardware Accelerator request.",
- "type": "object"
+ "bearer_token": {
+ "description": "OAuth bearer token.",
+ "location": "query",
+ "type": "string"
},
- "SetLabelsRequest": {
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "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"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "resourceLabels": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "The labels to set for that cluster.",
- "type": "object"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- }
- },
- "id": "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"
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
},
- "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",
- "properties": {
- "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": {
- "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."
- ],
- "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"
- },
- "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": {
- "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present.",
- "$ref": "NodePoolAutoscaling"
- },
- "management": {
- "description": "NodeManagement configuration for this NodePool.",
- "$ref": "NodeManagement"
- },
- "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"
- }
- },
- "id": "NodePool"
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
+ "location": "query",
+ "type": "string"
},
- "NodeManagement": {
- "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
- "type": "object",
- "properties": {
- "autoRepair": {
- "description": "Whether the nodes will be automatically repaired.",
- "type": "boolean"
- },
- "autoUpgrade": {
- "description": "Whether the nodes will be automatically upgraded.",
- "type": "boolean"
- },
- "upgradeOptions": {
- "$ref": "AutoUpgradeOptions",
- "description": "Specifies the Auto Upgrade knobs for the node pool."
- }
- },
- "id": "NodeManagement"
+ "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.",
+ "location": "query",
+ "type": "string"
},
- "NodeTaint": {
- "id": "NodeTaint",
- "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "type": "object",
- "properties": {
- "effect": {
- "enum": [
- "EFFECT_UNSPECIFIED",
- "NO_SCHEDULE",
- "PREFER_NO_SCHEDULE",
- "NO_EXECUTE"
- ],
- "description": "Effect for taint.",
- "type": "string",
- "enumDescriptions": [
- "Not set",
- "NoSchedule",
- "PreferNoSchedule",
- "NoExecute"
- ]
- },
- "value": {
- "description": "Value for taint.",
- "type": "string"
- },
- "key": {
- "description": "Key for taint.",
- "type": "string"
- }
- }
- },
- "CancelOperationRequest": {
- "description": "CancelOperationRequest cancels a single operation.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "CancelOperationRequest"
- },
- "SetLegacyAbacRequest": {
- "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "enabled": {
- "description": "Whether ABAC authorization will be enabled in the cluster.",
- "type": "boolean"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- },
- "id": "SetLegacyAbacRequest"
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
+ "location": "query",
+ "type": "string"
},
- "KubernetesDashboard": {
- "description": "Configuration for the Kubernetes Dashboard.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "KubernetesDashboard"
+ "pp": {
+ "default": "true",
+ "description": "Pretty-print response.",
+ "location": "query",
+ "type": "boolean"
},
- "Operation": {
- "properties": {
- "endTime": {
- "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "location": {
- "type": "string",
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides."
- },
- "detail": {
- "description": "Detailed operation progress, if available.",
- "type": "string"
- },
- "targetLink": {
- "description": "Server-defined URL for the target of the operation.",
- "type": "string"
- },
- "operationType": {
- "description": "The operation type.",
- "type": "string",
- "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.",
- "Set the maintenance policy."
- ],
- "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",
- "SET_MAINTENANCE_POLICY"
- ]
- },
- "startTime": {
- "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PENDING",
- "RUNNING",
- "DONE",
- "ABORTING"
- ]
- },
- "statusMessage": {
- "description": "If an error has occurred, a textual description of the error.",
- "type": "string"
- },
- "name": {
- "description": "The server-assigned ID for the operation.",
- "type": "string"
- },
- "selfLink": {
- "type": "string",
- "description": "Server-defined URL for the resource."
- }
- },
- "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"
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
+ "location": "query",
+ "type": "boolean"
},
- "AddonsConfig": {
- "id": "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."
- },
- "kubernetesDashboard": {
- "$ref": "KubernetesDashboard",
- "description": "Configuration for the Kubernetes Dashboard."
- },
- "networkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "$ref": "NetworkPolicyConfig"
- }
- }
+ "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.",
+ "location": "query",
+ "type": "string"
},
- "MaintenanceWindow": {
- "id": "MaintenanceWindow",
- "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
- "type": "object",
- "properties": {
- "dailyMaintenanceWindow": {
- "description": "DailyMaintenanceWindow specifies a daily maintenance operation window.",
- "$ref": "DailyMaintenanceWindow"
- }
- }
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "location": "query",
+ "type": "string"
},
- "RollbackNodePoolUpgradeRequest": {
- "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",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "NetworkPolicyConfig": {
- "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
- "type": "object",
- "properties": {
- "disabled": {
- "description": "Whether NetworkPolicy is enabled for this cluster.",
- "type": "boolean"
- }
- },
- "id": "NetworkPolicyConfig"
- },
- "UpdateClusterRequest": {
- "description": "UpdateClusterRequest updates the settings of a cluster.",
- "type": "object",
- "properties": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "ClusterUpdate",
- "description": "A description of the update."
- },
- "name": {
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- }
- },
- "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": {
- "enumDescriptions": [
- "Not set",
- "Tigera (Calico Felix)."
- ],
- "enum": [
- "PROVIDER_UNSPECIFIED",
- "CALICO"
- ],
- "description": "The selected network policy provider.",
- "type": "string"
- }
- },
- "id": "NetworkPolicy"
- },
- "Cluster": {
- "id": "Cluster",
- "description": "A Google Container Engine cluster.",
- "type": "object",
- "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"
- },
- "zone": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
- "type": "string"
- },
- "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": {
- "type": "integer",
- "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."
- },
- "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"
- },
- "masterAuthorizedNetworksConfig": {
- "description": "The configuration options for master authorized networks feature.",
- "$ref": "MasterAuthorizedNetworksConfig"
- },
- "statusMessage": {
- "description": "[Output only] Additional information about the current status of this\ncluster, if available.",
- "type": "string"
- },
- "masterAuth": {
- "description": "The authentication information for accessing the master endpoint.",
- "$ref": "MasterAuth"
- },
- "currentMasterVersion": {
- "type": "string",
- "description": "[Output only] The current software version of the master endpoint."
- },
- "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.",
- "$ref": "NodeConfig"
- },
- "podSecurityPolicyConfig": {
- "$ref": "PodSecurityPolicyConfig",
- "description": "Configuration for the PodSecurityPolicy feature."
- },
- "addonsConfig": {
- "description": "Configurations for the various addons available to run in the cluster.",
- "$ref": "AddonsConfig"
- },
- "status": {
- "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."
- ],
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "subnetwork": {
- "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
- "type": "string"
- },
- "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"
- },
- "maintenancePolicy": {
- "description": "Configure the maintenance policy for this cluster.",
- "$ref": "MaintenancePolicy"
- },
- "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"
- },
- "initialClusterVersion": {
- "type": "string",
- "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."
- },
- "ipAllocationPolicy": {
- "description": "Configuration for cluster IP allocation.",
- "$ref": "IPAllocationPolicy"
- },
- "location": {
- "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
- "type": "string"
- },
- "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"
- },
- "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"
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "protocol": "rest",
+ "resources": {
+ "projects": {
+ "resources": {
+ "aggregated": {
+ "resources": {
+ "usableSubnetworks": {
+ "methods": {
+ "list": {
+ "description": "Lists subnetworks that are usable for creating clusters in a project.",
+ "flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
+ "httpMethod": "GET",
+ "id": "container.projects.aggregated.usableSubnetworks.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "filter": {
+ "description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
+ "location": "query",
+ "type": "string"
+ },
+ "pageSize": {
+ "description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
+ },
+ "pageToken": {
+ "description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
+ "location": "query",
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
+ "response": {
+ "$ref": "ListUsableSubnetworksResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
},
"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"
- },
- "type": "array"
- },
- "nodePools": {
- "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"
- },
- "type": "array"
- },
- "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\ncluster.",
- "items": {
- "type": "string"
+ "methods": {
+ "getServerConfig": {
+ "description": "Returns configuration info about the Kubernetes Engine service.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.getServerConfig",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}/serverConfig",
+ "response": {
+ "$ref": "ServerConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "",
+ "flatPath": "v1beta1/projects/{projectsId}/locations",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/locations",
+ "response": {
+ "$ref": "ListLocationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
},
- "type": "array"
- },
- "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"
- },
- "networkPolicy": {
- "description": "Configuration options for the NetworkPolicy feature.",
- "$ref": "NetworkPolicy"
- },
- "enableKubernetesAlpha": {
- "type": "boolean",
- "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha\nAPI groups (e.g. v1beta1) 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."
- },
- "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"
- }
- }
- },
- "CreateNodePoolRequest": {
- "id": "CreateNodePoolRequest",
- "description": "CreateNodePoolRequest creates a node pool for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "nodePool": {
- "description": "The node pool to create.",
- "$ref": "NodePool"
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string"
- }
- }
- },
- "ListOperationsResponse": {
- "type": "object",
- "properties": {
- "operations": {
- "description": "A list of operations in the project in the specified zone.",
- "items": {
- "$ref": "Operation"
- },
- "type": "array"
- },
- "missingZones": {
- "items": {
- "type": "string"
- },
- "type": "array",
- "description": "If any zones are listed here, the list of operations returned\nmay be missing the operations from those zones."
- }
- },
- "id": "ListOperationsResponse",
- "description": "ListOperationsResponse is the result of ListOperationsRequest."
- },
- "CidrBlock": {
- "description": "CidrBlock contains an optional name and one CIDR block.",
- "type": "object",
- "properties": {
- "displayName": {
- "description": "display_name is an optional field for users to identify CIDR blocks.",
- "type": "string"
- },
- "cidrBlock": {
- "description": "cidr_block must be specified in CIDR notation.",
- "type": "string"
- }
- },
- "id": "CidrBlock"
- },
- "ServerConfig": {
- "description": "Container Engine service configuration.",
- "type": "object",
- "properties": {
- "validMasterVersions": {
- "description": "List of valid master versions.",
- "items": {
- "type": "string"
- },
- "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"
- },
- "type": "array"
- },
- "validNodeVersions": {
- "description": "List of valid node upgrade target versions.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ServerConfig"
- },
- "NodeConfig": {
- "description": "Parameters that describe the nodes in a cluster.",
- "type": "object",
- "properties": {
- "serviceAccount": {
- "type": "string",
- "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."
- },
- "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"
- },
- "taints": {
- "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
- "items": {
- "$ref": "NodeTaint"
- },
- "type": "array"
- },
- "labels": {
- "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "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"
- },
- "accelerators": {
- "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
- "items": {
- "$ref": "AcceleratorConfig"
- },
- "type": "array"
- },
- "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"
- },
- "minCpuPlatform": {
- "type": "string",
- "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: "Intel Haswell"\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: "Intel Sandy Bridge"\u003c/code\u003e. For more\ninformation, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)"
- },
- "preemptible": {
- "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
- "type": "boolean"
- },
- "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"
- },
- "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"
- }
- },
- "id": "NodeConfig"
- },
- "MasterAuth": {
- "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",
- "description": "The authentication information for accessing the master endpoint.\nAuthentication can be done using HTTP basic auth or using client\ncertificates."
- },
- "DailyMaintenanceWindow": {
- "description": "Time window specified for daily maintenance operations.",
- "type": "object",
- "properties": {
- "startTime": {
- "type": "string",
- "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT."
- },
- "duration": {
- "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
- "type": "string"
- }
- },
- "id": "DailyMaintenanceWindow"
- },
- "AutoUpgradeOptions": {
- "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
- "type": "object",
- "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"
- },
- "ListClustersResponse": {
- "type": "object",
- "properties": {
- "clusters": {
- "description": "A list of clusters in the project in the specified zone, or\nacross all ones.",
- "items": {
- "$ref": "Cluster"
- },
- "type": "array"
- },
- "missingZones": {
- "description": "If any zones are listed here, the list of clusters returned\nmay be missing those zones.",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "id": "ListClustersResponse",
- "description": "ListClustersResponse is the result of ListClustersRequest."
- },
- "PodSecurityPolicyConfig": {
- "description": "Configuration for the PodSecurityPolicy feature.",
- "type": "object",
- "properties": {
- "enabled": {
- "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
- "type": "boolean"
- }
- },
- "id": "PodSecurityPolicyConfig"
- },
- "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",
- "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"
- },
- "SetNetworkPolicyRequest": {
- "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead."
- },
- "networkPolicy": {
- "$ref": "NetworkPolicy",
- "description": "Configuration options for the NetworkPolicy feature."
- }
- },
- "id": "SetNetworkPolicyRequest"
- },
- "SetMasterAuthRequest": {
- "id": "SetMasterAuthRequest",
- "description": "SetMasterAuthRequest updates the admin password of a cluster.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "action": {
- "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.",
- "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
- ],
- "enum": [
- "UNKNOWN",
- "SET_PASSWORD",
- "GENERATE_PASSWORD",
- "SET_USERNAME"
- ],
- "description": "The exact form of action to be taken on the master auth.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "update": {
- "$ref": "MasterAuth",
- "description": "A description of the update."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- }
- }
- },
- "ClientCertificateConfig": {
- "description": "Configuration for client certificates on the cluster.",
- "type": "object",
- "properties": {
- "issueClientCertificate": {
- "description": "Issue a client certificate.",
- "type": "boolean"
- }
- },
- "id": "ClientCertificateConfig"
- },
- "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"
- },
- "MaintenancePolicy": {
- "properties": {
- "window": {
- "$ref": "MaintenanceWindow",
- "description": "Specifies the maintenance window in which maintenance may be performed."
- }
- },
- "id": "MaintenancePolicy",
- "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
- "type": "object"
- },
- "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",
- "properties": {
- "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"
- },
- "desiredPodSecurityPolicyConfig": {
- "$ref": "PodSecurityPolicyConfig",
- "description": "The desired configuration options for the PodSecurityPolicy feature."
- },
- "desiredMasterAuthorizedNetworksConfig": {
- "$ref": "MasterAuthorizedNetworksConfig",
- "description": "The desired configuration options for master authorized networks feature."
- },
- "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": {
- "type": "string",
- "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well."
- },
- "desiredAddonsConfig": {
- "$ref": "AddonsConfig",
- "description": "Configurations for the various addons available to run in the cluster."
- }
- },
- "id": "ClusterUpdate"
- },
- "IPAllocationPolicy": {
- "type": "object",
- "properties": {
- "servicesIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use services_ipv4_cidr_block."
- },
- "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"
- },
- "useIpAliases": {
- "description": "Whether alias IPs will be used for pod IPs in the cluster.",
- "type": "boolean"
- },
- "servicesSecondaryRangeName": {
- "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
- "type": "string"
- },
- "subnetworkName": {
- "description": "A custom subnetwork name to be used if `create_subnetwork` is true. If\nthis field is empty, then an automatic name will be chosen for the new\nsubnetwork.",
- "type": "string"
- },
- "servicesIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterIpv4Cidr": {
- "type": "string",
- "description": "This field is deprecated, use cluster_ipv4_cidr_block."
- },
- "nodeIpv4Cidr": {
- "description": "This field is deprecated, use node_ipv4_cidr_block.",
- "type": "string"
- },
- "clusterIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
- },
- "clusterSecondaryRangeName": {
- "type": "string",
- "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false."
- },
- "nodeIpv4CidrBlock": {
- "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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",
- "description": "Configuration for controlling how IPs are allocated in the cluster."
- },
- "HorizontalPodAutoscaling": {
- "type": "object",
- "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."
- },
- "SetMaintenancePolicyRequest": {
- "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster.",
- "type": "object",
- "properties": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
- "type": "string"
- },
- "clusterId": {
- "description": "The name of the cluster to update.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "maintenancePolicy": {
- "$ref": "MaintenancePolicy",
- "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy."
- }
- },
- "id": "SetMaintenancePolicyRequest"
- },
- "SetNodePoolManagementRequest": {
- "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
- "type": "object",
- "properties": {
- "clusterId": {
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead."
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string"
- },
- "management": {
- "description": "NodeManagement configuration for the node pool.",
- "$ref": "NodeManagement"
- }
- },
- "id": "SetNodePoolManagementRequest"
- },
- "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",
- "properties": {},
- "id": "Empty"
- },
- "MasterAuthorizedNetworksConfig": {
- "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
- "type": "object",
- "properties": {
- "cidrBlocks": {
- "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
- "items": {
- "$ref": "CidrBlock"
- },
- "type": "array"
- },
- "enabled": {
- "description": "Whether or not master authorized networks is enabled.",
- "type": "boolean"
- }
- },
- "id": "MasterAuthorizedNetworksConfig"
- },
- "CreateClusterRequest": {
- "description": "CreateClusterRequest creates a cluster.",
- "type": "object",
- "properties": {
- "cluster": {
- "$ref": "Cluster",
- "description": "A [cluster\nresource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string"
- },
- "parent": {
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string"
- }
- },
- "id": "CreateClusterRequest"
- }
- },
- "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",
- "canonicalName": "Container",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/cloud-platform": {
- "description": "View and manage your data across Google Cloud Platform services"
- }
- }
- }
- },
- "rootUrl": "https://container.googleapis.com/",
- "ownerDomain": "google.com",
- "name": "container",
- "batchPath": "batch",
- "title": "Google Container Engine API",
- "ownerName": "Google",
- "resources": {
- "projects": {
- "resources": {
- "zones": {
"resources": {
- "operations": {
+ "clusters": {
"methods": {
- "cancel": {
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "description": "Cancels the specified operation.",
+ "completeIpRotation": {
+ "description": "Completes master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.completeIpRotation",
"parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "operationId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "id": "container.projects.zones.operations.cancel"
- },
- "get": {
+ "path": "v1beta1/{+name}:completeIpRotation",
+ "request": {
+ "$ref": "CompleteIPRotationRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "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.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.create",
"parameterOrder": [
- "projectId",
- "zone",
- "operationId"
+ "parent"
],
- "httpMethod": "GET",
"parameters": {
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "location": "query"
- },
- "operationId": {
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "parent": {
+ "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
+ "path": "v1beta1/{+parent}/clusters",
+ "request": {
+ "$ref": "CreateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "id": "container.projects.zones.operations.get",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "description": "Gets the specified operation."
+ ]
},
- "list": {
- "response": {
- "$ref": "ListOperationsResponse"
- },
+ "delete": {
+ "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.locations.clusters.delete",
"parameterOrder": [
- "projectId",
- "zone"
+ "name"
],
- "httpMethod": "GET",
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
},
- "parent": {
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "query",
- "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
"type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations",
- "id": "container.projects.zones.operations.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/operations",
- "description": "Lists all operations in a project in a specific zone or all zones."
- }
- }
- },
- "clusters": {
- "methods": {
- "update": {
- "httpMethod": "PUT",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
+ "path": "v1beta1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the details for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.get",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
},
- "clusterId": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead."
- }
- },
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.update",
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "description": "Updates the settings of a specific cluster."
- },
- "setMasterAuth": {
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "parameters": {
"projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
},
"zone": {
- "type": "string",
- "required": true,
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- "id": "container.projects.zones.clusters.setMasterAuth",
- "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.\nModify basic_auth.csv and reset the K8S API server.",
- "request": {
- "$ref": "SetMasterAuthRequest"
- }
- },
- "list": {
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "path": "v1beta1/{+name}",
"response": {
- "$ref": "ListClustersResponse"
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "httpMethod": "GET",
+ "$ref": "Cluster"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.list",
+ "parameterOrder": [
+ "parent"
],
"parameters": {
"parent": {
- "location": "query",
"description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
"type": "string"
},
"projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
},
"zone": {
- "location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters"
+ "path": "v1beta1/{+parent}/clusters",
+ "response": {
+ "$ref": "ListClustersResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "create": {
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "id": "container.projects.zones.clusters.create",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- "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.",
+ "setAddons": {
+ "description": "Sets the addons for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setAddons",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setAddons",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setAddons",
"request": {
- "$ref": "CreateClusterRequest"
+ "$ref": "SetAddonsConfigRequest"
},
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setLegacyAbac": {
+ "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLegacyAbac",
"parameterOrder": [
- "projectId",
- "zone"
+ "name"
],
- "httpMethod": "POST",
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/{+name}:setLegacyAbac",
+ "request": {
+ "$ref": "SetLegacyAbacRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "resourceLabels": {
- "request": {
- "$ref": "SetLabelsRequest"
- },
- "description": "Sets labels on a cluster.",
+ "setLocations": {
+ "description": "Sets the locations for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLocations",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLocations",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setLocations",
+ "request": {
+ "$ref": "SetLocationsRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setLogging": {
+ "description": "Sets the logging service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLogging",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setLogging",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "required": true,
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead."
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
- "id": "container.projects.zones.clusters.resourceLabels"
- },
- "completeIpRotation": {
+ "path": "v1beta1/{+name}:setLogging",
"request": {
- "$ref": "CompleteIPRotationRequest"
+ "$ref": "SetLoggingServiceRequest"
},
- "description": "Completes master IP rotation.",
- "httpMethod": "POST",
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setMaintenancePolicy": {
+ "description": "Sets the maintenance policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
- "id": "container.projects.zones.clusters.completeIpRotation"
+ "path": "v1beta1/{+name}:setMaintenancePolicy",
+ "request": {
+ "$ref": "SetMaintenancePolicyRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "get": {
- "description": "Gets the details of a specific cluster.",
- "httpMethod": "GET",
+ "setMasterAuth": {
+ "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMasterAuth",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "response": {
- "$ref": "Cluster"
- },
"parameters": {
"name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
+ "path": "v1beta1/{+name}:setMasterAuth",
+ "request": {
+ "$ref": "SetMasterAuthRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "id": "container.projects.zones.clusters.get"
+ ]
},
- "legacyAbac": {
+ "setMonitoring": {
+ "description": "Sets the monitoring service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMonitoring",
"httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setMonitoring",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:setMonitoring",
+ "request": {
+ "$ref": "SetMonitoringServiceRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setNetworkPolicy": {
+ "description": "Enables/Disables Network Policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setNetworkPolicy",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
- "id": "container.projects.zones.clusters.legacyAbac",
+ "path": "v1beta1/{+name}:setNetworkPolicy",
"request": {
- "$ref": "SetLegacyAbacRequest"
+ "$ref": "SetNetworkPolicyRequest"
},
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
- },
- "setNetworkPolicy": {
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setResourceLabels": {
+ "description": "Sets labels on a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.setResourceLabels",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
- "id": "container.projects.zones.clusters.setNetworkPolicy",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ "path": "v1beta1/{+name}:setResourceLabels",
"request": {
- "$ref": "SetNetworkPolicyRequest"
+ "$ref": "SetLabelsRequest"
},
- "description": "Enables/Disables Network Policy for a cluster."
- },
- "startIpRotation": {
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "startIpRotation": {
+ "description": "Start master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.startIpRotation",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "httpMethod": "POST",
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "id": "container.projects.zones.clusters.startIpRotation",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
- "description": "Start master IP rotation.",
+ "path": "v1beta1/{+name}:startIpRotation",
"request": {
"$ref": "StartIPRotationRequest"
- }
- },
- "setMaintenancePolicy": {
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the settings for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.locations.clusters.update",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
],
- "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": {
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"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",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "id": "container.projects.zones.clusters.setMaintenancePolicy",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
- "description": "Sets the maintenance policy for a cluster.",
+ "path": "v1beta1/{+name}",
"request": {
- "$ref": "SetMaintenancePolicyRequest"
- }
- },
- "delete": {
- "id": "container.projects.zones.clusters.delete",
- "path": "v1beta1/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.",
+ "$ref": "UpdateClusterRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "updateMaster": {
+ "description": "Updates the master for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:updateMaster",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.updateMaster",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
"name": {
- "location": "query",
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}"
+ "path": "v1beta1/{+name}:updateMaster",
+ "request": {
+ "$ref": "UpdateMasterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
},
"resources": {
"nodePools": {
"methods": {
- "list": {
+ "create": {
+ "description": "Creates a node pool for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.create",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/nodePools",
+ "request": {
+ "$ref": "CreateNodePoolRequest"
+ },
"response": {
- "$ref": "ListNodePoolsResponse"
+ "$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a node pool from a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.locations.clusters.nodePools.delete",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
+ "name"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Retrieves the node pool requested.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.clusters.nodePools.get",
+ "parameterOrder": [
+ "name"
],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "NodePool"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists the node pools for a cluster.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
"httpMethod": "GET",
+ "id": "container.projects.locations.clusters.nodePools.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+parent}/nodePools",
+ "response": {
+ "$ref": "ListNodePoolsResponse"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "rollback": {
+ "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.rollback",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "type": "string",
- "required": true,
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead."
- },
- "parent": {
- "type": "string",
- "location": "query",
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
- },
- "clusterId": {
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead."
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "id": "container.projects.zones.clusters.nodePools.list",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "description": "Lists the node pools for a cluster."
- },
- "rollback": {
- "id": "container.projects.zones.clusters.nodePools.rollback",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ "path": "v1beta1/{+name}:rollback",
"request": {
"$ref": "RollbackNodePoolUpgradeRequest"
},
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setAutoscaling": {
+ "description": "Sets the autoscaling settings of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setAutoscaling",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setAutoscaling",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback"
- },
- "create": {
- "id": "container.projects.zones.clusters.nodePools.create",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "description": "Creates a node pool for a cluster.",
+ "path": "v1beta1/{+name}:setAutoscaling",
"request": {
- "$ref": "CreateNodePoolRequest"
+ "$ref": "SetNodePoolAutoscalingRequest"
},
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "httpMethod": "POST",
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- "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.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools"
+ ]
},
- "get": {
+ "setManagement": {
+ "description": "Sets the NodeManagement options for a node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setManagement",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "GET",
- "response": {
- "$ref": "NodePool"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "name"
],
"parameters": {
"name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "zone": {
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
- },
- "clusterId": {
- "location": "path",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.get",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "description": "Retrieves the node pool requested."
- },
- "delete": {
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "id": "container.projects.zones.clusters.nodePools.delete",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "description": "Deletes a node pool from a cluster.",
+ "path": "v1beta1/{+name}:setManagement",
+ "request": {
+ "$ref": "SetNodePoolManagementRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setSize": {
+ "description": "Sets the size for a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setSize",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.clusters.nodePools.setSize",
"parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
+ "name"
],
- "httpMethod": "DELETE",
"parameters": {
- "clusterId": {
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "location": "path",
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
"name": {
- "location": "query",
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "setManagement": {
+ "path": "v1beta1/{+name}:setSize",
+ "request": {
+ "$ref": "SetNodePoolSizeRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the version and/or image type of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.locations.clusters.nodePools.update",
+ "parameterOrder": [
+ "name"
],
"parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "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.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "clusterId": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "path",
- "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "nodePoolId": {
- "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
- "type": "string",
+ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
"required": true,
- "location": "path"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "id": "container.projects.zones.clusters.nodePools.setManagement",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "path": "v1beta1/{+name}",
"request": {
- "$ref": "SetNodePoolManagementRequest"
+ "$ref": "UpdateNodePoolRequest"
+ },
+ "response": {
+ "$ref": "Operation"
},
- "description": "Sets the NodeManagement options for a node pool."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "operations": {
+ "methods": {
+ "cancel": {
+ "description": "Cancels the specified operation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
+ "httpMethod": "POST",
+ "id": "container.projects.locations.operations.cancel",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}:cancel",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ },
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the specified operation.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.operations.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/{+name}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all operations in a project in a specific zone or all zones.",
+ "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ "httpMethod": "GET",
+ "id": "container.projects.locations.operations.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ "location": "query",
+ "type": "string"
}
- }
+ },
+ "path": "v1beta1/{+parent}/operations",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
}
- },
+ }
+ },
+ "zones": {
"methods": {
"getServerconfig": {
- "description": "Returns configuration info about the Container Engine service.",
- "response": {
- "$ref": "ServerConfig"
- },
+ "description": "Returns configuration info about the Kubernetes Engine service.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.getServerconfig",
"parameterOrder": [
"projectId",
"zone"
],
- "httpMethod": "GET",
"parameters": {
+ "name": {
+ "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ "location": "query",
+ "type": "string"
+ },
"projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "location": "path"
+ "type": "string"
},
"zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- "type": "string",
- "required": true
- },
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "location": "query"
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ "response": {
+ "$ref": "ServerConfig"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
- "id": "container.projects.zones.getServerconfig",
- "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig"
+ ]
}
- }
- },
- "locations": {
+ },
"resources": {
"clusters": {
"methods": {
- "setLegacyAbac": {
+ "addons": {
+ "description": "Sets the addons for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
"httpMethod": "POST",
+ "id": "container.projects.zones.clusters.addons",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ "request": {
+ "$ref": "SetAddonsConfigRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "completeIpRotation": {
+ "description": "Completes master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.completeIpRotation",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "request": {
+ "$ref": "CompleteIPRotationRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "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.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.create",
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "request": {
+ "$ref": "CreateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.zones.clusters.delete",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Gets the details for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.get",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "response": {
+ "$ref": "Cluster"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "legacyAbac": {
+ "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.legacyAbac",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "request": {
+ "$ref": "SetLegacyAbacRequest"
+ },
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.list",
+ "parameterOrder": [
+ "projectId",
+ "zone"
],
"parameters": {
- "name": {
- "type": "string",
+ "parent": {
+ "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
- "path": "v1beta1/{+name}:setLegacyAbac",
- "id": "container.projects.locations.clusters.setLegacyAbac",
- "request": {
- "$ref": "SetLegacyAbacRequest"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ "response": {
+ "$ref": "ListClustersResponse"
},
- "description": "Enables or disables the ABAC authorization mechanism on a cluster."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "setResourceLabels": {
+ "locations": {
+ "description": "Sets the locations for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.locations",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
"request": {
- "$ref": "SetLabelsRequest"
+ "$ref": "SetLocationsRequest"
},
- "description": "Sets labels on a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "logging": {
+ "description": "Sets the logging service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.logging",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- "id": "container.projects.locations.clusters.setResourceLabels",
- "path": "v1beta1/{+name}:setResourceLabels"
- },
- "update": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "request": {
+ "$ref": "SetLoggingServiceRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "master": {
+ "description": "Updates the master for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.master",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "PUT",
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.update",
- "path": "v1beta1/{+name}",
- "description": "Updates the settings of a specific cluster.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
"request": {
- "$ref": "UpdateClusterRequest"
- }
- },
- "setMasterAuth": {
+ "$ref": "UpdateMasterRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "monitoring": {
+ "description": "Sets the monitoring service for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.monitoring",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'."
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
- "id": "container.projects.locations.clusters.setMasterAuth",
- "path": "v1beta1/{+name}:setMasterAuth",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
"request": {
- "$ref": "SetMasterAuthRequest"
+ "$ref": "SetMonitoringServiceRequest"
},
- "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.\nModify basic_auth.csv and reset the K8S API server."
- },
- "list": {
- "id": "container.projects.locations.clusters.list",
- "path": "v1beta1/{+parent}/clusters",
- "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
"response": {
- "$ref": "ListClustersResponse"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "resourceLabels": {
+ "description": "Sets labels on a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.resourceLabels",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
"projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field is deprecated, use parent instead."
- },
- "parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters"
- },
- "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.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
"request": {
- "$ref": "CreateClusterRequest"
+ "$ref": "SetLabelsRequest"
},
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setMaintenancePolicy": {
+ "description": "Sets the maintenance policy for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setMaintenancePolicy",
"parameterOrder": [
- "parent"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "POST",
"parameters": {
- "parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "clusterId": {
+ "description": "The name of the cluster to update.",
"location": "path",
- "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true
+ "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ "request": {
+ "$ref": "SetMaintenancePolicyRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
- "id": "container.projects.locations.clusters.create",
- "path": "v1beta1/{+parent}/clusters"
+ ]
},
- "completeIpRotation": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "setMasterAuth": {
+ "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setMasterAuth",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
- "id": "container.projects.locations.clusters.completeIpRotation",
- "path": "v1beta1/{+name}:completeIpRotation",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
"request": {
- "$ref": "CompleteIPRotationRequest"
+ "$ref": "SetMasterAuthRequest"
},
- "description": "Completes master IP rotation.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST"
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
"setNetworkPolicy": {
- "path": "v1beta1/{+name}:setNetworkPolicy",
- "id": "container.projects.locations.clusters.setNetworkPolicy",
"description": "Enables/Disables Network Policy for a cluster.",
- "request": {
- "$ref": "SetNetworkPolicyRequest"
- },
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
"httpMethod": "POST",
+ "id": "container.projects.zones.clusters.setNetworkPolicy",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "response": {
- "$ref": "Operation"
- },
"parameters": {
- "name": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy"
- },
- "get": {
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
"type": "string"
},
- "name": {
- "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
- },
"projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
"zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.get",
- "path": "v1beta1/{+name}",
- "description": "Gets the details of a specific cluster.",
- "response": {
- "$ref": "Cluster"
- },
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET"
- },
- "startIpRotation": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
"request": {
- "$ref": "StartIPRotationRequest"
+ "$ref": "SetNetworkPolicyRequest"
},
- "description": "Start master IP rotation.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "startIpRotation": {
+ "description": "Start master IP rotation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.startIpRotation",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
- "id": "container.projects.locations.clusters.startIpRotation",
- "path": "v1beta1/{+name}:startIpRotation"
- },
- "setMaintenancePolicy": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
"request": {
- "$ref": "SetMaintenancePolicyRequest"
+ "$ref": "StartIPRotationRequest"
},
- "description": "Sets the maintenance policy for a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
- "required": true
- }
- },
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
- "id": "container.projects.locations.clusters.setMaintenancePolicy",
- "path": "v1beta1/{+name}:setMaintenancePolicy"
+ ]
},
- "delete": {
- "response": {
- "$ref": "Operation"
- },
+ "update": {
+ "description": "Updates the settings for a specific cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "httpMethod": "PUT",
+ "id": "container.projects.zones.clusters.update",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId"
],
- "httpMethod": "DELETE",
"parameters": {
- "name": {
- "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
+ "type": "string"
},
"projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead."
- },
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "request": {
+ "$ref": "UpdateClusterRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- "id": "container.projects.locations.clusters.delete",
- "path": "v1beta1/{+name}",
- "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": {
- "list": {
+ "autoscaling": {
+ "description": "Sets the autoscaling settings of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.autoscaling",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ "request": {
+ "$ref": "SetNodePoolAutoscalingRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "create": {
+ "description": "Creates a node pool for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.create",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "request": {
+ "$ref": "CreateNodePoolRequest"
+ },
"response": {
- "$ref": "ListNodePoolsResponse"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a node pool from a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "httpMethod": "DELETE",
+ "id": "container.projects.zones.clusters.nodePools.delete",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "projectId": {
- "type": "string",
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead."
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
- "zone": {
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
"location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use parent instead.",
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "parent": {
- "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- "type": "string",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
- "location": "path"
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- "id": "container.projects.locations.clusters.nodePools.list",
- "path": "v1beta1/{+parent}/nodePools",
- "description": "Lists the node pools for a cluster."
- },
- "rollback": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Retrieves the node pool requested.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.nodePools.get",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
- "httpMethod": "POST",
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "response": {
+ "$ref": "NodePool"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Lists the node pools for a cluster.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "httpMethod": "GET",
+ "id": "container.projects.zones.clusters.nodePools.list",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
],
"parameters": {
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
+ "type": "string"
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
- "id": "container.projects.locations.clusters.nodePools.rollback",
- "path": "v1beta1/{+name}:rollback",
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "response": {
+ "$ref": "ListNodePoolsResponse"
},
- "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed."
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
},
- "create": {
- "id": "container.projects.locations.clusters.nodePools.create",
- "path": "v1beta1/{+parent}/nodePools",
+ "rollback": {
+ "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.rollback",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "parameters": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
"request": {
- "$ref": "CreateNodePoolRequest"
+ "$ref": "RollbackNodePoolUpgradeRequest"
},
- "description": "Creates a node pool for a cluster.",
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "parent"
- ],
- "httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setManagement": {
+ "description": "Sets the NodeManagement options for a node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.setManagement",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "parent": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools"
- },
- "get": {
- "description": "Retrieves the node pool requested.",
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "request": {
+ "$ref": "SetNodePoolManagementRequest"
+ },
"response": {
- "$ref": "NodePool"
+ "$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "setSize": {
+ "description": "Sets the size for a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.setSize",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
],
"parameters": {
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
- "type": "string"
- },
"clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"nodePoolId": {
- "type": "string",
- "location": "query",
- "description": "The name of the node pool.\nThis field is deprecated, use name instead."
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
- "name": {
- "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path"
+ "type": "string"
},
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "id": "container.projects.locations.clusters.nodePools.get",
- "path": "v1beta1/{+name}"
- },
- "delete": {
- "description": "Deletes a node pool from a cluster.",
- "httpMethod": "DELETE",
- "parameterOrder": [
- "name"
- ],
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "request": {
+ "$ref": "SetNodePoolSizeRequest"
+ },
"response": {
"$ref": "Operation"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Updates the version and/or image type of a specific node pool.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "httpMethod": "POST",
+ "id": "container.projects.zones.clusters.nodePools.update",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
"parameters": {
- "name": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$"
- },
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "type": "string"
},
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "clusterId": {
- "location": "query",
- "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "nodePoolId": {
- "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- "path": "v1beta1/{+name}",
- "id": "container.projects.locations.clusters.nodePools.delete"
- },
- "setManagement": {
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "request": {
+ "$ref": "UpdateNodePoolRequest"
+ },
"response": {
"$ref": "Operation"
},
- "parameterOrder": [
- "name"
- ],
- "httpMethod": "POST",
- "parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- "location": "path",
- "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
- "type": "string",
- "required": true
- }
- },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- "id": "container.projects.locations.clusters.nodePools.setManagement",
- "path": "v1beta1/{+name}:setManagement",
- "description": "Sets the NodeManagement options for a node pool.",
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- }
+ ]
}
}
}
@@ -2860,248 +2321,1989 @@
"methods": {
"cancel": {
"description": "Cancels the specified operation.",
- "request": {
- "$ref": "CancelOperationRequest"
- },
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
"httpMethod": "POST",
+ "id": "container.projects.zones.operations.cancel",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "operationId"
],
- "response": {
- "$ref": "Empty"
- },
"parameters": {
- "name": {
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
"location": "path",
- "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
- "required": true
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ },
+ "response": {
+ "$ref": "Empty"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- "path": "v1beta1/{+name}:cancel",
- "id": "container.projects.locations.operations.cancel"
+ ]
},
"get": {
"description": "Gets the specified operation.",
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
"httpMethod": "GET",
- "response": {
- "$ref": "Operation"
- },
+ "id": "container.projects.zones.operations.get",
"parameterOrder": [
- "name"
+ "projectId",
+ "zone",
+ "operationId"
],
"parameters": {
- "operationId": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
"location": "query",
- "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
"type": "string"
},
- "projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "zone": {
- "location": "query",
- "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
- "name": {
- "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
- "type": "string",
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "location": "path",
"required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
- "location": "path"
+ "type": "string"
}
},
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}",
+ "response": {
+ "$ref": "Operation"
+ },
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
- ],
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- "path": "v1beta1/{+name}",
- "id": "container.projects.locations.operations.get"
+ ]
},
"list": {
- "id": "container.projects.locations.operations.list",
- "path": "v1beta1/{+parent}/operations",
"description": "Lists all operations in a project in a specific zone or all zones.",
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "parameterOrder": [
- "parent"
- ],
+ "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/operations",
"httpMethod": "GET",
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
+ "id": "container.projects.zones.operations.list",
+ "parameterOrder": [
+ "projectId",
+ "zone"
],
"parameters": {
"parent": {
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path",
"description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- "type": "string",
- "required": true
+ "location": "query",
+ "type": "string"
},
"projectId": {
- "location": "query",
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"zone": {
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- "type": "string",
- "location": "query"
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations"
+ "path": "v1beta1/projects/{projectId}/zones/{zone}/operations",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
}
+ }
+ }
+ }
+ }
+ },
+ "revision": "20180524",
+ "rootUrl": "https://container.googleapis.com/",
+ "schemas": {
+ "AcceleratorConfig": {
+ "description": "AcceleratorConfig represents a Hardware Accelerator request.",
+ "id": "AcceleratorConfig",
+ "properties": {
+ "acceleratorCount": {
+ "description": "The number of the accelerator cards exposed to an instance.",
+ "format": "int64",
+ "type": "string"
+ },
+ "acceleratorType": {
+ "description": "The accelerator type resource name. List of supported accelerators\n[here](/compute/docs/gpus/#Introduction)",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "AddonsConfig": {
+ "description": "Configuration for the addons that can be automatically spun up in the\ncluster, enabling additional functionality.",
+ "id": "AddonsConfig",
+ "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."
+ },
+ "kubernetesDashboard": {
+ "$ref": "KubernetesDashboard",
+ "description": "Configuration for the Kubernetes Dashboard."
+ },
+ "networkPolicyConfig": {
+ "$ref": "NetworkPolicyConfig",
+ "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes."
+ }
+ },
+ "type": "object"
+ },
+ "AutoUpgradeOptions": {
+ "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
+ "id": "AutoUpgradeOptions",
+ "properties": {
+ "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"
+ },
+ "description": {
+ "description": "[Output only] This field is set when upgrades are about to commence\nwith the description of the upgrade.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "BinaryAuthorization": {
+ "description": "Configuration for Binary Authorization.",
+ "id": "BinaryAuthorization",
+ "properties": {
+ "enabled": {
+ "description": "Enable Binary Authorization for this cluster. If enabled, all container\nimages will be validated by Google Binauthz.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "CancelOperationRequest": {
+ "description": "CancelOperationRequest cancels a single operation.",
+ "id": "CancelOperationRequest",
+ "properties": {
+ "name": {
+ "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ "type": "string"
+ },
+ "operationId": {
+ "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CidrBlock": {
+ "description": "CidrBlock contains an optional name and one CIDR block.",
+ "id": "CidrBlock",
+ "properties": {
+ "cidrBlock": {
+ "description": "cidr_block must be specified in CIDR notation.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "display_name is an optional field for users to identify CIDR blocks.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ClientCertificateConfig": {
+ "description": "Configuration for client certificates on the cluster.",
+ "id": "ClientCertificateConfig",
+ "properties": {
+ "issueClientCertificate": {
+ "description": "Issue a client certificate.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "Cluster": {
+ "description": "A Google Kubernetes Engine cluster.",
+ "id": "Cluster",
+ "properties": {
+ "addonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "Configurations for the various addons available to run in the cluster."
+ },
+ "binaryAuthorization": {
+ "$ref": "BinaryAuthorization",
+ "description": "Configuration for Binary Authorization."
+ },
+ "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"
+ },
+ "createTime": {
+ "description": "[Output only] The time the cluster was created, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "currentMasterVersion": {
+ "description": "[Output only] The current software version of the master endpoint.",
+ "type": "string"
+ },
+ "currentNodeCount": {
+ "description": "[Output only] The number of nodes currently in the cluster.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "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"
+ },
+ "description": {
+ "description": "An optional description of this cluster.",
+ "type": "string"
+ },
+ "enableKubernetesAlpha": {
+ "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha\nAPI groups (e.g. v1beta1) 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"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"\",\"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "initialNodeCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "instanceGroupUrls": {
+ "description": "Deprecated. Use node_pools.instance_group_urls.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "ipAllocationPolicy": {
+ "$ref": "IPAllocationPolicy",
+ "description": "Configuration for cluster IP allocation."
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the set of labels for this cluster.",
+ "type": "string"
+ },
+ "legacyAbac": {
+ "$ref": "LegacyAbac",
+ "description": "Configuration for the legacy ABAC authorization mode."
+ },
+ "location": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
+ "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"
+ },
+ "type": "array"
+ },
+ "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"
+ },
+ "maintenancePolicy": {
+ "$ref": "MaintenancePolicy",
+ "description": "Configure the maintenance policy for this cluster."
+ },
+ "masterAuth": {
+ "$ref": "MasterAuth",
+ "description": "The authentication information for accessing the master endpoint."
+ },
+ "masterAuthorizedNetworksConfig": {
+ "$ref": "MasterAuthorizedNetworksConfig",
+ "description": "The configuration options for master authorized networks feature."
+ },
+ "masterIpv4CidrBlock": {
+ "description": "The IP prefix in CIDR notation to use for the hosted master network.\nThis prefix will be used for assigning private IP addresses to the\nmaster or set of masters, as well as the ILB VIP.",
+ "type": "string"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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. On output this shows the network ID instead of\nthe name.",
+ "type": "string"
+ },
+ "networkConfig": {
+ "$ref": "NetworkConfig",
+ "description": "Configuration for cluster networking."
+ },
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ },
+ "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."
+ },
+ "nodeIpv4CidrSize": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "nodePools": {
+ "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"
+ },
+ "type": "array"
+ },
+ "podSecurityPolicyConfig": {
+ "$ref": "PodSecurityPolicyConfig",
+ "description": "Configuration for the PodSecurityPolicy feature."
+ },
+ "autoscaling": {
+ "$ref": "ClusterAutoscaling",
+ "description": "Cluster-level autoscaling configuration."
+ },
+ "privateCluster": {
+ "description": "If this is a private cluster setup. Private clusters are clusters that, by\ndefault have no external IP addresses on the nodes and where nodes and the\nmaster communicate over private IP addresses.",
+ "type": "boolean"
+ },
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The resource labels for the cluster to use to annotate any related\nGoogle Compute Engine resources.",
+ "type": "object"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "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"
+ },
+ "status": {
+ "description": "[Output only] The current status of this cluster.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR",
+ "DEGRADED"
+ ],
+ "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.",
+ "The DEGRADED state indicates the cluster requires user action to restore\nfull functionality. Details can be found in the `statusMessage` field."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\ncluster, if available.",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected. On output this shows the subnetwork ID instead of\nthe name.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use location instead.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "ClusterUpdate",
+ "properties": {
+ "desiredAddonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "Configurations for the various addons available to run in the cluster."
+ },
+ "desiredBinaryAuthorization": {
+ "$ref": "BinaryAuthorization",
+ "description": "The desired configuration options for the Binary Authorization feature."
+ },
+ "desiredImageType": {
+ "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well.",
+ "type": "string"
+ },
+ "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"
+ },
+ "desiredMasterAuthorizedNetworksConfig": {
+ "$ref": "MasterAuthorizedNetworksConfig",
+ "description": "The desired configuration options for master authorized networks feature."
+ },
+ "desiredMasterVersion": {
+ "description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "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"
+ },
+ "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."
+ },
+ "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).\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
+ "type": "string"
+ },
+ "desiredPodSecurityPolicyConfig": {
+ "$ref": "PodSecurityPolicyConfig",
+ "description": "The desired configuration options for the PodSecurityPolicy feature."
+ },
+ "desiredClusterAutoscaling": {
+ "description": "Cluster-level autoscaling configuration.",
+ "$ref": "ClusterAutoscaling"
+ }
+ },
+ "type": "object"
+ },
+ "CompleteIPRotationRequest": {
+ "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.",
+ "id": "CompleteIPRotationRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CreateClusterRequest": {
+ "description": "CreateClusterRequest creates a cluster.",
+ "id": "CreateClusterRequest",
+ "properties": {
+ "cluster": {
+ "$ref": "Cluster",
+ "description": "A [cluster\nresource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)"
+ },
+ "parent": {
+ "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CreateNodePoolRequest": {
+ "description": "CreateNodePoolRequest creates a node pool for a cluster.",
+ "id": "CreateNodePoolRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "nodePool": {
+ "$ref": "NodePool",
+ "description": "The node pool to create."
+ },
+ "parent": {
+ "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DailyMaintenanceWindow": {
+ "description": "Time window specified for daily maintenance operations.",
+ "id": "DailyMaintenanceWindow",
+ "properties": {
+ "duration": {
+ "description": "[Output only] Duration of the time window, automatically chosen to be\nsmallest possible in the given scenario.",
+ "type": "string"
+ },
+ "startTime": {
+ "description": "Time within the maintenance window to start the maintenance operations.\nIt must be in format \"HH:MM”, where HH : [00-23] and MM : [00-59] GMT.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "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 `{}`.",
+ "id": "Empty",
+ "properties": {},
+ "type": "object"
+ },
+ "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.",
+ "id": "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"
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "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"
+ }
+ },
+ "type": "object"
+ },
+ "IPAllocationPolicy": {
+ "description": "Configuration for controlling how IPs are allocated in the cluster.",
+ "id": "IPAllocationPolicy",
+ "properties": {
+ "allowRouteOverlap": {
+ "description": "If true, allow allocation of cluster CIDR ranges that overlap with certain\nkinds of network routes. By default we do not allow cluster CIDR ranges to\nintersect with any user declared routes. With allow_route_overlap == true,\nwe allow overlapping with CIDR ranges that are larger than the cluster CIDR\nrange.\n\nIf this field is set to true, then cluster and services CIDRs must be\nfully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:\n1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and\n `services_ipv4_cidr_block` must be fully-specified.\n2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be\n fully-specified.",
+ "type": "boolean"
+ },
+ "clusterIpv4Cidr": {
+ "description": "This field is deprecated, use cluster_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "clusterIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "clusterSecondaryRangeName": {
+ "description": "The name of the secondary range to be used for the cluster CIDR\nblock. The secondary range will be used for pod IP\naddresses. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
+ "type": "string"
+ },
+ "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"
+ },
+ "nodeIpv4Cidr": {
+ "description": "This field is deprecated, use node_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "nodeIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "servicesIpv4Cidr": {
+ "description": "This field is deprecated, use services_ipv4_cidr_block.",
+ "type": "string"
+ },
+ "servicesIpv4CidrBlock": {
+ "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 chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range chosen with a specific\nnetmask.\n\nSet to a\n[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"
+ },
+ "servicesSecondaryRangeName": {
+ "description": "The name of the secondary range to be used as for the services\nCIDR block. The secondary range will be used for service\nClusterIPs. This must be an existing secondary range associated\nwith the cluster subnetwork.\n\nThis field is only applicable with use_ip_aliases and\ncreate_subnetwork is false.",
+ "type": "string"
+ },
+ "subnetworkName": {
+ "description": "A custom subnetwork name to be used if `create_subnetwork` is true. If\nthis field is empty, then an automatic name will be chosen for the new\nsubnetwork.",
+ "type": "string"
+ },
+ "useIpAliases": {
+ "description": "Whether alias IPs will be used for pod IPs in the cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "KubernetesDashboard": {
+ "description": "Configuration for the Kubernetes Dashboard.",
+ "id": "KubernetesDashboard",
+ "properties": {
+ "disabled": {
+ "description": "Whether the Kubernetes Dashboard is enabled for this cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "LegacyAbac": {
+ "description": "Configuration for the legacy Attribute Based Access Control authorization\nmode.",
+ "id": "LegacyAbac",
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "ListClustersResponse": {
+ "description": "ListClustersResponse is the result of ListClustersRequest.",
+ "id": "ListClustersResponse",
+ "properties": {
+ "clusters": {
+ "description": "A list of clusters in the project in the specified zone, or\nacross all ones.",
+ "items": {
+ "$ref": "Cluster"
+ },
+ "type": "array"
+ },
+ "missingZones": {
+ "description": "If any zones are listed here, the list of clusters returned\nmay be missing those zones.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListLocationsResponse": {
+ "description": "ListLocationsResponse returns the list of all GKE locations and their\nrecommendation state.",
+ "id": "ListLocationsResponse",
+ "properties": {
+ "locations": {
+ "description": "A full list of GKE locations.",
+ "items": {
+ "$ref": "Location"
+ },
+ "type": "array"
+ },
+ "nextPageToken": {
+ "description": "Only return ListLocationsResponse that occur after the page_token. This\nvalue should be populated from the ListLocationsResponse.next_page_token if\nthat response token was set (which happens when listing more Locations than\nfit in a single ListLocationsResponse).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ListNodePoolsResponse": {
+ "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
+ "id": "ListNodePoolsResponse",
+ "properties": {
+ "nodePools": {
+ "description": "A list of node pools for a cluster.",
+ "items": {
+ "$ref": "NodePool"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListOperationsResponse": {
+ "description": "ListOperationsResponse is the result of ListOperationsRequest.",
+ "id": "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"
+ },
+ "type": "array"
+ },
+ "operations": {
+ "description": "A list of operations in the project in the specified zone.",
+ "items": {
+ "$ref": "Operation"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListUsableSubnetworksResponse": {
+ "description": "ListUsableSubnetworksResponse is the response of\nListUsableSubnetworksRequest.",
+ "id": "ListUsableSubnetworksResponse",
+ "properties": {
+ "nextPageToken": {
+ "description": "This token allows you to get the next page of results for list requests.\nIf the number of results is larger than `page_size`, use the\n`next_page_token` as a value for the query parameter `page_token` in the\nnext request. The value will become empty when there are no more pages.",
+ "type": "string"
+ },
+ "subnetworks": {
+ "description": "A list of usable subnetworks in the specified network project.",
+ "items": {
+ "$ref": "UsableSubnetwork"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Location": {
+ "description": "Location returns the location name, and if the location is recommended\nfor GKE cluster scheduling.",
+ "id": "Location",
+ "properties": {
+ "name": {
+ "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations/*'.",
+ "type": "string"
+ },
+ "recommended": {
+ "description": "Recommended is a bool combining the drain state of the location (ie- has\nthe region been drained manually?), and the stockout status of any zone\naccording to Zone Advisor. This will be internal only for use by pantheon.",
+ "type": "boolean"
+ },
+ "type": {
+ "description": "Contains the type of location this Location is for.\nRegional or Zonal.",
+ "enum": [
+ "LOCATION_TYPE_UNSPECIFIED",
+ "ZONE",
+ "REGION"
+ ],
+ "enumDescriptions": [
+ "LOCATION_TYPE_UNSPECIFIED means the location type was not determined.",
+ "A GKE Location where Zonal clusters can be created.",
+ "A GKE Location where Regional clusters can be created."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "MaintenancePolicy": {
+ "description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
+ "id": "MaintenancePolicy",
+ "properties": {
+ "window": {
+ "$ref": "MaintenanceWindow",
+ "description": "Specifies the maintenance window in which maintenance may be performed."
+ }
+ },
+ "type": "object"
+ },
+ "MaintenanceWindow": {
+ "description": "MaintenanceWindow defines the maintenance window to be used for the cluster.",
+ "id": "MaintenanceWindow",
+ "properties": {
+ "dailyMaintenanceWindow": {
+ "$ref": "DailyMaintenanceWindow",
+ "description": "DailyMaintenanceWindow specifies a daily maintenance operation window."
+ }
+ },
+ "type": "object"
+ },
+ "MasterAuth": {
+ "description": "The authentication information for accessing the master endpoint.\nAuthentication can be done using HTTP basic auth or using client\ncertificates.",
+ "id": "MasterAuth",
+ "properties": {
+ "clientCertificate": {
+ "description": "[Output only] Base64-encoded public certificate used by clients to\nauthenticate to the cluster endpoint.",
+ "type": "string"
+ },
+ "clientCertificateConfig": {
+ "$ref": "ClientCertificateConfig",
+ "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
+ },
+ "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"
+ },
+ "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"
+ },
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "MasterAuthorizedNetworksConfig": {
+ "description": "Configuration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs.",
+ "id": "MasterAuthorizedNetworksConfig",
+ "properties": {
+ "cidrBlocks": {
+ "description": "cidr_blocks define up to 10 external networks that could access\nKubernetes master through HTTPS.",
+ "items": {
+ "$ref": "CidrBlock"
+ },
+ "type": "array"
+ },
+ "enabled": {
+ "description": "Whether or not master authorized networks is enabled.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "Metric": {
+ "description": "Progress metric is (string, int|float|string) pair.",
+ "id": "Metric",
+ "properties": {
+ "doubleValue": {
+ "description": "For metrics with floating point value.",
+ "format": "double",
+ "type": "number"
+ },
+ "intValue": {
+ "description": "For metrics with integer value.",
+ "format": "int64",
+ "type": "string"
+ },
+ "name": {
+ "description": "Metric name, required.\ne.g., \"nodes total\", \"percent done\"",
+ "type": "string"
+ },
+ "stringValue": {
+ "description": "For metrics with custom values (ratios, visual progress, etc.).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkConfig": {
+ "description": "NetworkConfig reports the relative names of network \u0026 subnetwork.",
+ "id": "NetworkConfig",
+ "properties": {
+ "network": {
+ "description": "Output only. The name of the Google Compute Engine\nnetwork(/compute/docs/networks-and-firewalls#networks).\nExample: projects/my-project/global/networks/my-network",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "Output only. The name of the Google Compute Engine\n[subnetwork](/compute/docs/vpc).\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkPolicy": {
+ "description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
+ "id": "NetworkPolicy",
+ "properties": {
+ "enabled": {
+ "description": "Whether network policy is enabled on the cluster.",
+ "type": "boolean"
+ },
+ "provider": {
+ "description": "The selected network policy provider.",
+ "enum": [
+ "PROVIDER_UNSPECIFIED",
+ "CALICO"
+ ],
+ "enumDescriptions": [
+ "Not set",
+ "Tigera (Calico Felix)."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NetworkPolicyConfig": {
+ "description": "Configuration for NetworkPolicy. This only tracks whether the addon\nis enabled or not on the Master, it does not track whether network policy\nis enabled for the nodes.",
+ "id": "NetworkPolicyConfig",
+ "properties": {
+ "disabled": {
+ "description": "Whether NetworkPolicy is enabled for this cluster.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "NodeConfig": {
+ "description": "Parameters that describe the nodes in a cluster.",
+ "id": "NodeConfig",
+ "properties": {
+ "accelerators": {
+ "description": "A list of hardware accelerators to be attached to each node.\nSee https://cloud.google.com/compute/docs/gpus for more information about\nsupport for GPUs.",
+ "items": {
+ "$ref": "AcceleratorConfig"
+ },
+ "type": "array"
+ },
+ "diskSizeGb": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "diskType": {
+ "description": "Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')\n\nIf unspecified, the default disk type is 'pd-standard'",
+ "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"
+ },
+ "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:\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
+ "type": "object"
+ },
+ "localSsdCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "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"
+ },
+ "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 reserved keys:\n \"cluster-location\"\n \"cluster-name\"\n \"cluster-uid\"\n \"configure-sh\"\n \"gci-update-strategy\"\n \"gci-ensure-gke-docker\"\n \"instance-template\"\n \"kube-env\"\n \"startup-script\"\n \"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"
+ },
+ "minCpuPlatform": {
+ "description": "Minimum CPU platform to be used by this instance. The instance may be\nscheduled on the specified or newer CPU platform. Applicable values are the\nfriendly names of CPU platforms, such as\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Haswell\u0026quot;\u003c/code\u003e or\n\u003ccode\u003eminCpuPlatform: \u0026quot;Intel Sandy Bridge\u0026quot;\u003c/code\u003e. For more\ninformation, read [how to specify min CPU\nplatform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
+ "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"
+ },
+ "preemptible": {
+ "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninforamtion about preemptible VM instances.",
+ "type": "boolean"
+ },
+ "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"
+ },
+ "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"
+ },
+ "taints": {
+ "description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
+ "items": {
+ "$ref": "NodeTaint"
+ },
+ "type": "array"
+ },
+ "workloadMetadataConfig": {
+ "$ref": "WorkloadMetadataConfig",
+ "description": "The workload metadata configuration for this node."
+ }
+ },
+ "type": "object"
+ },
+ "NodeManagement": {
+ "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
+ "id": "NodeManagement",
+ "properties": {
+ "autoRepair": {
+ "description": "Whether the nodes will be automatically repaired.",
+ "type": "boolean"
+ },
+ "autoUpgrade": {
+ "description": "Whether the nodes will be automatically upgraded.",
+ "type": "boolean"
+ },
+ "upgradeOptions": {
+ "$ref": "AutoUpgradeOptions",
+ "description": "Specifies the Auto Upgrade knobs for the node pool."
+ }
+ },
+ "type": "object"
+ },
+ "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.",
+ "id": "NodePool",
+ "properties": {
+ "autoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present."
+ },
+ "config": {
+ "$ref": "NodeConfig",
+ "description": "The node configuration of the pool."
+ },
+ "initialNodeCount": {
+ "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.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "instanceGroupUrls": {
+ "description": "[Output only] The resource URLs of the [managed instance\ngroups](/compute/docs/instance-groups/creating-groups-of-managed-instances)\nassociated with this node pool.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for this NodePool."
+ },
+ "name": {
+ "description": "The name of the node pool.",
+ "type": "string"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "status": {
+ "description": "[Output only] The status of the nodes in this pool instance.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RUNNING_WITH_ERROR",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR"
+ ],
+ "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."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\nnode pool instance, if available.",
+ "type": "string"
+ },
+ "version": {
+ "description": "The version of the Kubernetes of this node.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "NodePoolAutoscaling": {
+ "description": "NodePoolAutoscaling contains information required by cluster autoscaler to\nadjust the size of the node pool to the current cluster usage.",
+ "id": "NodePoolAutoscaling",
+ "properties": {
+ "enabled": {
+ "description": "Is autoscaling enabled for this node pool.",
+ "type": "boolean"
+ },
+ "maxNodeCount": {
+ "description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There\nhas to enough quota to scale up the cluster.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "minNodeCount": {
+ "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c=\nmax_node_count.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "autoprovisioned": {
+ "description": "Can this node pool be deleted automatically.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "NodeTaint": {
+ "description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
+ "id": "NodeTaint",
+ "properties": {
+ "effect": {
+ "description": "Effect for taint.",
+ "enum": [
+ "EFFECT_UNSPECIFIED",
+ "NO_SCHEDULE",
+ "PREFER_NO_SCHEDULE",
+ "NO_EXECUTE"
+ ],
+ "enumDescriptions": [
+ "Not set",
+ "NoSchedule",
+ "PreferNoSchedule",
+ "NoExecute"
+ ],
+ "type": "string"
+ },
+ "key": {
+ "description": "Key for taint.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Value for taint.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Operation": {
+ "description": "This operation resource represents operations that may have happened or are\nhappening on the cluster. All fields are output only.",
+ "id": "Operation",
+ "properties": {
+ "detail": {
+ "description": "Detailed operation progress, if available.",
+ "type": "string"
+ },
+ "endTime": {
+ "description": "[Output only] The time the operation completed, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "location": {
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/regions-zones/regions-zones#available) or\n[region](/compute/docs/regions-zones/regions-zones#available) in which\nthe cluster resides.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The server-assigned ID for the operation.",
+ "type": "string"
+ },
+ "operationType": {
+ "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",
+ "AUTO_REPAIR_NODES",
+ "AUTO_UPGRADE_NODES",
+ "SET_LABELS",
+ "SET_MASTER_AUTH",
+ "SET_NODE_POOL_SIZE",
+ "SET_NETWORK_POLICY",
+ "SET_MAINTENANCE_POLICY"
+ ],
+ "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.",
+ "Set the maintenance policy."
+ ],
+ "type": "string"
+ },
+ "progress": {
+ "$ref": "OperationProgress",
+ "description": "[Output only] Progress information for an operation."
+ },
+ "selfLink": {
+ "description": "Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "startTime": {
+ "description": "[Output only] The time the operation started, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "status": {
+ "description": "The current status of the operation.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "ABORTING"
+ ],
+ "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."
+ ],
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "If an error has occurred, a textual description of the error.",
+ "type": "string"
+ },
+ "targetLink": {
+ "description": "Server-defined URL for the target of the operation.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.\nThis field is deprecated, use location instead.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "OperationProgress": {
+ "description": "Information about operation (or operation stage) progress.",
+ "id": "OperationProgress",
+ "properties": {
+ "metrics": {
+ "description": "Progress metric bundle, for example:\n metrics: [{name: \"nodes done\", int_value: 15},\n {name: \"nodes total\", int_value: 32}]\nor\n metrics: [{name: \"progress\", double_value: 0.56},\n {name: \"progress scale\", double_value: 1.0}]",
+ "items": {
+ "$ref": "Metric"
},
- "methods": {
- "getServerConfig": {
- "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- "path": "v1beta1/{+name}/serverConfig",
- "id": "container.projects.locations.getServerConfig",
- "description": "Returns configuration info about the Container Engine service.",
- "httpMethod": "GET",
- "response": {
- "$ref": "ServerConfig"
- },
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "projectId": {
- "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- "type": "string",
- "location": "query"
- },
- "zone": {
- "type": "string",
- "location": "query",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead."
- },
- "name": {
- "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- "type": "string",
- "required": true,
- "pattern": "^projects/[^/]+/locations/[^/]+$",
- "location": "path"
- }
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
+ "type": "array"
+ },
+ "name": {
+ "description": "A non-parameterized string describing an operation stage.\nUnset for single-stage operations.",
+ "type": "string"
+ },
+ "stages": {
+ "description": "Substages of an operation or a stage.",
+ "items": {
+ "$ref": "OperationProgress"
+ },
+ "type": "array"
+ },
+ "status": {
+ "description": "Status of an operation stage.\nUnset for single-stage operations.",
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "ABORTING"
+ ],
+ "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."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "PodSecurityPolicyConfig": {
+ "description": "Configuration for the PodSecurityPolicy feature.",
+ "id": "PodSecurityPolicyConfig",
+ "properties": {
+ "enabled": {
+ "description": "Enable the PodSecurityPolicy controller for this cluster. If enabled, pods\nmust be valid under a PodSecurityPolicy to be created.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "ClusterAutoscaling": {
+ "id": "ClusterAutoscaling",
+ "description": "ClusterAutoscaling contains global, per-cluster information\nrequired by Cluster Autoscaler to automatically adjust\nthe size of the cluster and create\/delete\nnode pools based on the current needs.",
+ "type": "object",
+ "properties": {
+ "enableNodeAutoprovisioning": {
+ "description": "Enables automatic node pool creation and deletion.\nContains global constraints regarding minimum and maximum",
+ "type": "boolean"
+ },
+ "resourceLimits": {
+ "description": "amount of resources in the cluster.",
+ "type": "array",
+ "items": {
+ "$ref": "ResourceLimit"
}
}
}
- }
- },
- "parameters": {
- "quotaUser": {
- "location": "query",
- "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"
},
- "pp": {
- "default": "true",
- "type": "boolean",
- "location": "query",
- "description": "Pretty-print response."
+ "ResourceLimit": {
+ "id": "ResourceLimit",
+ "description": "Contains information about amount of some resource in the cluster.\nFor memory, value should be in GB.",
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "description": "Resource name \"cpu\", \"memory\" or gpu-specific string.",
+ "type": "string"
+ },
+ "minimum": {
+ "description": "Minimum amount of the resource in the cluster.",
+ "type": "string",
+ "format": "int64"
+ },
+ "maximum": {
+ "description": "Maximum amount of the resource in the cluster.",
+ "type": "string",
+ "format": "int64"
+ }
+ }
+ },
+ "RollbackNodePoolUpgradeRequest": {
+ "description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed\nNodePool upgrade. This will be an no-op if the last upgrade successfully\ncompleted.",
+ "id": "RollbackNodePoolUpgradeRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "oauth_token": {
- "location": "query",
- "description": "OAuth 2.0 token for the current user.",
- "type": "string"
+ "ServerConfig": {
+ "description": "Kubernetes Engine service configuration.",
+ "id": "ServerConfig",
+ "properties": {
+ "defaultClusterVersion": {
+ "description": "Version of Kubernetes the service deploys by default.",
+ "type": "string"
+ },
+ "defaultImageType": {
+ "description": "Default image type.",
+ "type": "string"
+ },
+ "validImageTypes": {
+ "description": "List of valid image types.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "validMasterVersions": {
+ "description": "List of valid master versions.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "validNodeVersions": {
+ "description": "List of valid node upgrade target versions.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "SetAddonsConfigRequest": {
+ "description": "SetAddonsRequest sets the addons associated with the cluster.",
+ "id": "SetAddonsConfigRequest",
+ "properties": {
+ "addonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "The desired configurations for the various addons available to run in the\ncluster."
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "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",
+ "id": "SetLabelsRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the previous set of labels for this resource,\nused to detect conflicts. The fingerprint is initially generated by\nKubernetes 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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The labels to set for that cluster.",
+ "type": "object"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLegacyAbacRequest": {
+ "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
+ "id": "SetLegacyAbacRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "enabled": {
+ "description": "Whether ABAC authorization will be enabled in the cluster.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLocationsRequest": {
+ "description": "SetLocationsRequest sets the locations of the cluster.",
+ "id": "SetLocationsRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetLoggingServiceRequest": {
+ "description": "SetLoggingServiceRequest sets the logging service of a cluster.",
+ "id": "SetLoggingServiceRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMaintenancePolicyRequest": {
+ "description": "SetMaintenancePolicyRequest sets the maintenance policy for a cluster.",
+ "id": "SetMaintenancePolicyRequest",
+ "properties": {
+ "clusterId": {
+ "description": "The name of the cluster to update.",
+ "type": "string"
+ },
+ "maintenancePolicy": {
+ "$ref": "MaintenancePolicy",
+ "description": "The maintenance policy to be set for the cluster. An empty field\nclears the existing maintenance policy."
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMasterAuthRequest": {
+ "description": "SetMasterAuthRequest updates the admin password of a cluster.",
+ "id": "SetMasterAuthRequest",
+ "properties": {
+ "action": {
+ "description": "The exact form of action to be taken on the master auth.",
+ "enum": [
+ "UNKNOWN",
+ "SET_PASSWORD",
+ "GENERATE_PASSWORD",
+ "SET_USERNAME"
+ ],
+ "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.",
+ "Set the username. If an empty username is provided, basic authentication\nis disabled for the cluster. If a non-empty username is provided, basic\nauthentication is enabled, with either a provided password or a generated\none."
+ ],
+ "type": "string"
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "update": {
+ "$ref": "MasterAuth",
+ "description": "A description of the update."
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SetMonitoringServiceRequest": {
+ "description": "SetMonitoringServiceRequest sets the monitoring service of a cluster.",
+ "id": "SetMonitoringServiceRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
- "type": "string",
- "location": "query"
+ "SetNetworkPolicyRequest": {
+ "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
+ "id": "SetNetworkPolicyRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "upload_protocol": {
- "location": "query",
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "type": "string"
+ "SetNodePoolAutoscalingRequest": {
+ "description": "SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.",
+ "id": "SetNodePoolAutoscalingRequest",
+ "properties": {
+ "autoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaling configuration for the node pool."
+ },
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "prettyPrint": {
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "type": "boolean",
- "location": "query"
+ "SetNodePoolManagementRequest": {
+ "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
+ "id": "SetNodePoolManagementRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for the node pool."
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "fields": {
- "location": "query",
- "description": "Selector specifying which fields to include in a partial response.",
- "type": "string"
+ "SetNodePoolSizeRequest": {
+ "description": "SetNodePoolSizeRequest sets the size a node\npool.",
+ "id": "SetNodePoolSizeRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodeCount": {
+ "description": "The desired node count for the pool.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "type": "string",
- "location": "query"
+ "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.",
+ "id": "StartIPRotationRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "rotateCredentials": {
+ "description": "Whether to rotate credentials during IP rotation.",
+ "type": "boolean"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "callback": {
- "type": "string",
- "location": "query",
- "description": "JSONP"
+ "UpdateClusterRequest": {
+ "description": "UpdateClusterRequest updates the settings of a cluster.",
+ "id": "UpdateClusterRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "update": {
+ "$ref": "ClusterUpdate",
+ "description": "A description of the update."
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "$.xgafv": {
- "enum": [
- "1",
- "2"
- ],
- "description": "V1 error format.",
- "type": "string",
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
- "location": "query"
+ "UpdateMasterRequest": {
+ "description": "UpdateMasterRequest updates the master of the cluster.",
+ "id": "UpdateMasterRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "masterVersion": {
+ "description": "The Kubernetes version to change the master to.\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the default Kubernetes version",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "alt": {
- "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",
- "description": "Data format for response.",
- "default": "json"
+ "UpdateNodePoolRequest": {
+ "description": "SetNodePoolVersionRequest updates the version of a node pool.",
+ "id": "UpdateNodePoolRequest",
+ "properties": {
+ "clusterId": {
+ "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "imageType": {
+ "description": "The desired image type for the node pool.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ "type": "string"
+ },
+ "nodePoolId": {
+ "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "nodeVersion": {
+ "description": "The Kubernetes version to change the nodes to (typically an\nupgrade).\n\nUsers may specify either explicit versions offered by Kubernetes Engine or\nversion aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "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"
+ "UsableSubnetwork": {
+ "description": "UsableSubnetwork resource returns the subnetwork name, its associated network\nand the primary CIDR range.",
+ "id": "UsableSubnetwork",
+ "properties": {
+ "ipCidrRange": {
+ "description": "The range of internal addresses that are owned by this subnetwork.",
+ "type": "string"
+ },
+ "network": {
+ "description": "Network Name.\nExample: projects/my-project/global/networks/my-network",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "Subnetwork Name.\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
+ "type": "string"
+ }
+ },
+ "type": "object"
},
- "access_token": {
- "location": "query",
- "description": "OAuth access token.",
- "type": "string"
+ "WorkloadMetadataConfig": {
+ "description": "WorkloadMetadataConfig defines the metadata configuration to expose to\nworkloads on the node pool.",
+ "id": "WorkloadMetadataConfig",
+ "properties": {
+ "nodeMetadata": {
+ "description": "NodeMetadata is the configuration for how to expose the node metadata to\nthe workload running on the node.",
+ "enum": [
+ "UNSPECIFIED",
+ "SECURE",
+ "EXPOSE"
+ ],
+ "enumDescriptions": [
+ "Not set.",
+ "Prevent workloads not in hostNetwork from accessing certain VM metadata,\nspecifically kube-env, which contains Kubelet credentials, and the\ninstance identity token.\n\nMetadata concealment is a temporary security solution available while the\nbootstrapping process for cluster nodes is being redesigned with\nsignificant security improvements. This feature is scheduled to be\ndeprecated in the future and later removed.",
+ "Expose all VM metadata to pods."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
}
},
- "version": "v1beta1",
- "baseUrl": "https://container.googleapis.com/",
- "kind": "discovery#restDescription",
- "description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
"servicePath": "",
- "basePath": "",
- "revision": "20170929",
- "documentationLink": "https://cloud.google.com/container-engine/",
- "id": "container:v1beta1",
- "discoveryVersion": "v1",
+ "title": "Kubernetes Engine API",
+ "version": "v1beta1",
"version_module": true
}
diff --git a/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go b/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go
index 797e23a0ad9d..b295acfa0ead 100644
--- a/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go
+++ b/cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go
@@ -1,4 +1,4 @@
-// Package container provides access to the Google Container Engine API.
+// Package container provides access to the Kubernetes Engine API.
//
// See https://cloud.google.com/container-engine/
//
@@ -7,7 +7,7 @@
// import "google.golang.org/api/container/v1beta1"
// ...
// containerService, err := container.New(oauthHttpClient)
-package container
+package container // import "google.golang.org/api/container/v1beta1"
import (
"bytes"
@@ -77,6 +77,7 @@ func (s *Service) userAgent() string {
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
+ rs.Aggregated = NewProjectsAggregatedService(s)
rs.Locations = NewProjectsLocationsService(s)
rs.Zones = NewProjectsZonesService(s)
return rs
@@ -85,11 +86,34 @@ func NewProjectsService(s *Service) *ProjectsService {
type ProjectsService struct {
s *Service
+ Aggregated *ProjectsAggregatedService
+
Locations *ProjectsLocationsService
Zones *ProjectsZonesService
}
+func NewProjectsAggregatedService(s *Service) *ProjectsAggregatedService {
+ rs := &ProjectsAggregatedService{s: s}
+ rs.UsableSubnetworks = NewProjectsAggregatedUsableSubnetworksService(s)
+ return rs
+}
+
+type ProjectsAggregatedService struct {
+ s *Service
+
+ UsableSubnetworks *ProjectsAggregatedUsableSubnetworksService
+}
+
+func NewProjectsAggregatedUsableSubnetworksService(s *Service) *ProjectsAggregatedUsableSubnetworksService {
+ rs := &ProjectsAggregatedUsableSubnetworksService{s: s}
+ return rs
+}
+
+type ProjectsAggregatedUsableSubnetworksService struct {
+ s *Service
+}
+
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Clusters = NewProjectsLocationsClustersService(s)
@@ -211,8 +235,8 @@ type AcceleratorConfig struct {
}
func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) {
- type noMethod AcceleratorConfig
- raw := noMethod(*s)
+ type NoMethod AcceleratorConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -263,8 +287,8 @@ type AddonsConfig struct {
}
func (s *AddonsConfig) MarshalJSON() ([]byte, error) {
- type noMethod AddonsConfig
- raw := noMethod(*s)
+ type NoMethod AddonsConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -304,8 +328,38 @@ type AutoUpgradeOptions struct {
}
func (s *AutoUpgradeOptions) MarshalJSON() ([]byte, error) {
- type noMethod AutoUpgradeOptions
- raw := noMethod(*s)
+ type NoMethod AutoUpgradeOptions
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// BinaryAuthorization: Configuration for Binary Authorization.
+type BinaryAuthorization struct {
+ // Enabled: Enable Binary Authorization for this cluster. If enabled,
+ // all container
+ // images will be validated by Google Binauthz.
+ 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 *BinaryAuthorization) MarshalJSON() ([]byte, error) {
+ type NoMethod BinaryAuthorization
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -317,22 +371,23 @@ type CancelOperationRequest struct {
// Specified in the format 'projects/*/locations/*/operations/*'.
Name string `json:"name,omitempty"`
- // OperationId: The server-assigned `name` of the operation.
- // This field is deprecated, use name instead.
+ // OperationId: Deprecated. The server-assigned `name` of the
+ // operation.
+ // This field has been deprecated and replaced by the name field.
OperationId string `json:"operationId,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the operation
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
@@ -353,8 +408,8 @@ type CancelOperationRequest struct {
}
func (s *CancelOperationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CancelOperationRequest
- raw := noMethod(*s)
+ type NoMethod CancelOperationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -385,8 +440,8 @@ type CidrBlock struct {
}
func (s *CidrBlock) MarshalJSON() ([]byte, error) {
- type noMethod CidrBlock
- raw := noMethod(*s)
+ type NoMethod CidrBlock
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -416,17 +471,23 @@ type ClientCertificateConfig struct {
}
func (s *ClientCertificateConfig) MarshalJSON() ([]byte, error) {
- type noMethod ClientCertificateConfig
- raw := noMethod(*s)
+ type NoMethod ClientCertificateConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// Cluster: A Google Container Engine cluster.
+// Cluster: A Google Kubernetes Engine cluster.
type Cluster struct {
// AddonsConfig: Configurations for the various addons available to run
// in the cluster.
AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
+ // Autoscaling: Cluster-level autoscaling configuration.
+ Autoscaling *ClusterAutoscaling `json:"autoscaling,omitempty"`
+
+ // BinaryAuthorization: Configuration for Binary Authorization.
+ BinaryAuthorization *BinaryAuthorization `json:"binaryAuthorization,omitempty"`
+
// ClusterIpv4Cidr: The IP address range of the container pods in this
// cluster,
// in
@@ -495,6 +556,17 @@ type Cluster struct {
// be upgraded over time; such upgrades are reflected
// in
// currentMasterVersion and currentNodeVersion.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "","-": picks the default Kubernetes version
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
// InitialNodeCount: The number of nodes to create in this cluster. You
@@ -513,15 +585,19 @@ type Cluster struct {
// time.
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
- // InstanceGroupUrls: [Output only] The resource URLs of
- // [instance
- // groups](/compute/docs/instance-groups/) associated with this
- // cluster.
+ // InstanceGroupUrls: Deprecated. Use node_pools.instance_group_urls.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
// 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"`
+
// Location: [Output only] The name of the Google Compute
// Engine
// [zone](/compute/docs/regions-zones/regions-zones#available)
@@ -558,6 +634,13 @@ type Cluster struct {
// authorized networks feature.
MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,omitempty"`
+ // MasterIpv4CidrBlock: The IP prefix in CIDR notation to use for the
+ // hosted master network.
+ // This prefix will be used for assigning private IP addresses to
+ // the
+ // master or set of masters, as well as the ILB VIP.
+ MasterIpv4CidrBlock string `json:"masterIpv4CidrBlock,omitempty"`
+
// MonitoringService: The monitoring service the cluster should use to
// write metrics.
// Currently available options:
@@ -584,9 +667,13 @@ type Cluster struct {
// [network](/compute/docs/networks-and-firewalls#networks) to which
// the
// cluster is connected. If left unspecified, the `default` network
- // will be used.
+ // will be used. On output this shows the network ID instead of
+ // the name.
Network string `json:"network,omitempty"`
+ // NetworkConfig: Configuration for cluster networking.
+ NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
+
// NetworkPolicy: Configuration options for the NetworkPolicy feature.
NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
@@ -623,6 +710,18 @@ type Cluster struct {
// feature.
PodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"podSecurityPolicyConfig,omitempty"`
+ // PrivateCluster: If this is a private cluster setup. Private clusters
+ // are clusters that, by
+ // default have no external IP addresses on the nodes and where nodes
+ // and the
+ // master communicate over private IP addresses.
+ PrivateCluster bool `json:"privateCluster,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"`
@@ -655,6 +754,10 @@ type Cluster struct {
// "ERROR" - The ERROR state indicates the cluster may be unusable.
// Details
// can be found in the `statusMessage` field.
+ // "DEGRADED" - The DEGRADED state indicates the cluster requires user
+ // action to restore
+ // full functionality. Details can be found in the `statusMessage`
+ // field.
Status string `json:"status,omitempty"`
// StatusMessage: [Output only] Additional information about the current
@@ -665,7 +768,9 @@ type Cluster struct {
// Subnetwork: The name of the Google Compute
// Engine
// [subnetwork](/compute/docs/subnetworks) to which the
- // cluster is connected.
+ // cluster is connected. On output this shows the subnetwork ID instead
+ // of
+ // the name.
Subnetwork string `json:"subnetwork,omitempty"`
// Zone: [Output only] The name of the Google Compute
@@ -698,8 +803,47 @@ type Cluster struct {
}
func (s *Cluster) MarshalJSON() ([]byte, error) {
- type noMethod Cluster
- raw := noMethod(*s)
+ type NoMethod Cluster
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ClusterAutoscaling: ClusterAutoscaling contains global, per-cluster
+// information
+// required by Cluster Autoscaler to automatically adjust
+// the size of the cluster and create/delete
+// node pools based on the current needs.
+type ClusterAutoscaling struct {
+ // EnableNodeAutoprovisioning: Enables automatic node pool creation and
+ // deletion.
+ // Contains global constraints regarding minimum and maximum
+ EnableNodeAutoprovisioning bool `json:"enableNodeAutoprovisioning,omitempty"`
+
+ // ResourceLimits: amount of resources in the cluster.
+ ResourceLimits []*ResourceLimit `json:"resourceLimits,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g.
+ // "EnableNodeAutoprovisioning") 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.
+ // "EnableNodeAutoprovisioning") 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 *ClusterAutoscaling) MarshalJSON() ([]byte, error) {
+ type NoMethod ClusterAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -713,6 +857,13 @@ type ClusterUpdate struct {
// to run in the cluster.
DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"`
+ // DesiredBinaryAuthorization: The desired configuration options for the
+ // Binary Authorization feature.
+ DesiredBinaryAuthorization *BinaryAuthorization `json:"desiredBinaryAuthorization,omitempty"`
+
+ // DesiredClusterAutoscaling: Cluster-level autoscaling configuration.
+ DesiredClusterAutoscaling *ClusterAutoscaling `json:"desiredClusterAutoscaling,omitempty"`
+
// DesiredImageType: The desired image type for the node pool.
// NOTE: Set the "desired_node_pool" field as well.
DesiredImageType string `json:"desiredImageType,omitempty"`
@@ -736,9 +887,18 @@ type ClusterUpdate struct {
// 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.
+ // latest supported version.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the default Kubernetes version
DesiredMasterVersion string `json:"desiredMasterVersion,omitempty"`
// DesiredMonitoringService: The monitoring service the cluster should
@@ -767,8 +927,18 @@ type ClusterUpdate struct {
// DesiredNodeVersion: The Kubernetes version to change the nodes to
// (typically an
- // upgrade). Use `-` to upgrade to the latest version supported by
- // the server.
+ // upgrade).
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the Kubernetes master version
DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
// DesiredPodSecurityPolicyConfig: The desired configuration options for
@@ -794,36 +964,37 @@ type ClusterUpdate struct {
}
func (s *ClusterUpdate) MarshalJSON() ([]byte, error) {
- type noMethod ClusterUpdate
- raw := noMethod(*s)
+ type NoMethod ClusterUpdate
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompleteIPRotationRequest: CompleteIPRotationRequest moves the
// cluster master back into single-IP mode.
type CompleteIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
- // complete IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
+ // complete IP
+ // rotation. Specified in the format
+ // 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -844,8 +1015,8 @@ type CompleteIPRotationRequest struct {
}
func (s *CompleteIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod CompleteIPRotationRequest
- raw := noMethod(*s)
+ type NoMethod CompleteIPRotationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -862,19 +1033,19 @@ type CreateClusterRequest struct {
// Specified in the format 'projects/*/locations/*'.
Parent string `json:"parent,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use parent instead.
+ // field has been deprecated and replaced by the parent field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cluster") to
@@ -895,40 +1066,41 @@ type CreateClusterRequest struct {
}
func (s *CreateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateClusterRequest
- raw := noMethod(*s)
+ type NoMethod CreateClusterRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateNodePoolRequest: CreateNodePoolRequest creates a node pool for
// a cluster.
type CreateNodePoolRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use parent instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the parent field.
ClusterId string `json:"clusterId,omitempty"`
// NodePool: The node pool to create.
NodePool *NodePool `json:"nodePool,omitempty"`
// Parent: The parent (project, location, cluster id) where the node
- // pool will be created.
- // Specified in the format
+ // pool will be
+ // created. Specified in the
+ // format
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Parent string `json:"parent,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use parent instead.
+ // This field has been deprecated and replaced by the parent field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -949,8 +1121,8 @@ type CreateNodePoolRequest struct {
}
func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
- type noMethod CreateNodePoolRequest
- raw := noMethod(*s)
+ type NoMethod CreateNodePoolRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -986,8 +1158,8 @@ type DailyMaintenanceWindow struct {
}
func (s *DailyMaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod DailyMaintenanceWindow
- raw := noMethod(*s)
+ type NoMethod DailyMaintenanceWindow
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1040,8 +1212,8 @@ type HorizontalPodAutoscaling struct {
}
func (s *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod HorizontalPodAutoscaling
- raw := noMethod(*s)
+ type NoMethod HorizontalPodAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1075,14 +1247,34 @@ type HttpLoadBalancing struct {
}
func (s *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
- type noMethod HttpLoadBalancing
- raw := noMethod(*s)
+ type NoMethod HttpLoadBalancing
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// IPAllocationPolicy: Configuration for controlling how IPs are
// allocated in the cluster.
type IPAllocationPolicy struct {
+ // AllowRouteOverlap: If true, allow allocation of cluster CIDR ranges
+ // that overlap with certain
+ // kinds of network routes. By default we do not allow cluster CIDR
+ // ranges to
+ // intersect with any user declared routes. With allow_route_overlap ==
+ // true,
+ // we allow overlapping with CIDR ranges that are larger than the
+ // cluster CIDR
+ // range.
+ //
+ // If this field is set to true, then cluster and services CIDRs must
+ // be
+ // fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+ // 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+ // `services_ipv4_cidr_block` must be fully-specified.
+ // 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse
+ // be
+ // fully-specified.
+ AllowRouteOverlap bool `json:"allowRouteOverlap,omitempty"`
+
// ClusterIpv4Cidr: This field is deprecated, use
// cluster_ipv4_cidr_block.
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
@@ -1201,15 +1393,15 @@ type IPAllocationPolicy struct {
// 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
+ // ForceSendFields is a list of field names (e.g. "AllowRouteOverlap")
+ // 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
+ // NullFields is a list of field names (e.g. "AllowRouteOverlap") 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
@@ -1220,8 +1412,8 @@ type IPAllocationPolicy struct {
}
func (s *IPAllocationPolicy) MarshalJSON() ([]byte, error) {
- type noMethod IPAllocationPolicy
- raw := noMethod(*s)
+ type NoMethod IPAllocationPolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1249,8 +1441,44 @@ type KubernetesDashboard struct {
}
func (s *KubernetesDashboard) MarshalJSON() ([]byte, error) {
- type noMethod KubernetesDashboard
- raw := noMethod(*s)
+ type NoMethod KubernetesDashboard
+ 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)
}
@@ -1289,8 +1517,51 @@ type ListClustersResponse struct {
}
func (s *ListClustersResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListClustersResponse
- raw := noMethod(*s)
+ type NoMethod ListClustersResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ListLocationsResponse: ListLocationsResponse returns the list of all
+// GKE locations and their
+// recommendation state.
+type ListLocationsResponse struct {
+ // Locations: A full list of GKE locations.
+ Locations []*Location `json:"locations,omitempty"`
+
+ // NextPageToken: Only return ListLocationsResponse that occur after the
+ // page_token. This
+ // value should be populated from the
+ // ListLocationsResponse.next_page_token if
+ // that response token was set (which happens when listing more
+ // Locations than
+ // fit in a single ListLocationsResponse).
+ NextPageToken string `json:"nextPageToken,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // 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
+ // 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. "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.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListLocationsResponse
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1322,8 +1593,8 @@ type ListNodePoolsResponse struct {
}
func (s *ListNodePoolsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListNodePoolsResponse
- raw := noMethod(*s)
+ type NoMethod ListNodePoolsResponse
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1361,8 +1632,102 @@ type ListOperationsResponse struct {
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
- type noMethod ListOperationsResponse
- raw := noMethod(*s)
+ type NoMethod ListOperationsResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ListUsableSubnetworksResponse: ListUsableSubnetworksResponse is the
+// response of
+// ListUsableSubnetworksRequest.
+type ListUsableSubnetworksResponse struct {
+ // NextPageToken: This token allows you to get the next page of results
+ // for list requests.
+ // If the number of results is larger than `page_size`, use
+ // the
+ // `next_page_token` as a value for the query parameter `page_token` in
+ // the
+ // next request. The value will become empty when there are no more
+ // pages.
+ NextPageToken string `json:"nextPageToken,omitempty"`
+
+ // Subnetworks: A list of usable subnetworks in the specified network
+ // project.
+ Subnetworks []*UsableSubnetwork `json:"subnetworks,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListUsableSubnetworksResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListUsableSubnetworksResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// Location: Location returns the location name, and if the location is
+// recommended
+// for GKE cluster scheduling.
+type Location struct {
+ // Name: Contains the name of the resource requested.
+ // Specific in the format 'projects/*/locations/*'.
+ Name string `json:"name,omitempty"`
+
+ // Recommended: Recommended is a bool combining the drain state of the
+ // location (ie- has
+ // the region been drained manually?), and the stockout status of any
+ // zone
+ // according to Zone Advisor. This will be internal only for use by
+ // pantheon.
+ Recommended bool `json:"recommended,omitempty"`
+
+ // Type: Contains the type of location this Location is for.
+ // Regional or Zonal.
+ //
+ // Possible values:
+ // "LOCATION_TYPE_UNSPECIFIED" - LOCATION_TYPE_UNSPECIFIED means the
+ // location type was not determined.
+ // "ZONE" - A GKE Location where Zonal clusters can be created.
+ // "REGION" - A GKE Location where Regional clusters can be created.
+ Type string `json:"type,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *Location) MarshalJSON() ([]byte, error) {
+ type NoMethod Location
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1391,8 +1756,8 @@ type MaintenancePolicy struct {
}
func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) {
- type noMethod MaintenancePolicy
- raw := noMethod(*s)
+ type NoMethod MaintenancePolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1423,8 +1788,8 @@ type MaintenanceWindow struct {
}
func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
- type noMethod MaintenanceWindow
- raw := noMethod(*s)
+ type NoMethod MaintenanceWindow
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1489,8 +1854,8 @@ type MasterAuth struct {
}
func (s *MasterAuth) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuth
- raw := noMethod(*s)
+ type NoMethod MasterAuth
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1528,8 +1893,101 @@ type MasterAuthorizedNetworksConfig struct {
}
func (s *MasterAuthorizedNetworksConfig) MarshalJSON() ([]byte, error) {
- type noMethod MasterAuthorizedNetworksConfig
- raw := noMethod(*s)
+ type NoMethod MasterAuthorizedNetworksConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// Metric: Progress metric is (string, int|float|string) pair.
+type Metric struct {
+ // DoubleValue: For metrics with floating point value.
+ DoubleValue float64 `json:"doubleValue,omitempty"`
+
+ // IntValue: For metrics with integer value.
+ IntValue int64 `json:"intValue,omitempty,string"`
+
+ // Name: Metric name, required.
+ // e.g., "nodes total", "percent done"
+ Name string `json:"name,omitempty"`
+
+ // StringValue: For metrics with custom values (ratios, visual progress,
+ // etc.).
+ StringValue string `json:"stringValue,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "DoubleValue") 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. "DoubleValue") 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 *Metric) MarshalJSON() ([]byte, error) {
+ type NoMethod Metric
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+func (s *Metric) UnmarshalJSON(data []byte) error {
+ type NoMethod Metric
+ var s1 struct {
+ DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
+ *NoMethod
+ }
+ s1.NoMethod = (*NoMethod)(s)
+ if err := json.Unmarshal(data, &s1); err != nil {
+ return err
+ }
+ s.DoubleValue = float64(s1.DoubleValue)
+ return nil
+}
+
+// NetworkConfig: NetworkConfig reports the relative names of network &
+// subnetwork.
+type NetworkConfig struct {
+ // Network: Output only. The name of the Google Compute
+ // Engine
+ // network(/compute/docs/networks-and-firewalls#networks).
+ // Example
+ // : projects/my-project/global/networks/my-network
+ Network string `json:"network,omitempty"`
+
+ // Subnetwork: Output only. The name of the Google Compute
+ // Engine
+ // [subnetwork](/compute/docs/vpc).
+ // Example:
+ // projects/my-project/regions/us-central1/subnetworks/my-subnet
+ Subnetwork string `json:"subnetwork,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Network") 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. "Network") 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 *NetworkConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod NetworkConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1566,8 +2024,8 @@ type NetworkPolicy struct {
}
func (s *NetworkPolicy) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicy
- raw := noMethod(*s)
+ type NoMethod NetworkPolicy
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1598,8 +2056,8 @@ type NetworkPolicyConfig struct {
}
func (s *NetworkPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod NetworkPolicyConfig
- raw := noMethod(*s)
+ type NoMethod NetworkPolicyConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1619,6 +2077,12 @@ type NodeConfig struct {
// If unspecified, the default disk size is 100GB.
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
+ // DiskType: Type of the disk attached to each node (e.g. 'pd-standard'
+ // or 'pd-ssd')
+ //
+ // If unspecified, the default disk type is 'pd-standard'
+ DiskType string `json:"diskType,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.
@@ -1669,10 +2133,17 @@ type NodeConfig struct {
// 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"
+ // metadata keys for the project or be one of the reserved keys:
+ // "cluster-location"
+ // "cluster-name"
+ // "cluster-uid"
+ // "configure-sh"
+ // "gci-update-strategy"
+ // "gci-ensure-gke-docker"
+ // "instance-template"
+ // "kube-env"
+ // "startup-script"
+ // "user-data"
//
// Values are free-form strings, and only have meaning as interpreted
// by
@@ -1692,9 +2163,10 @@ type NodeConfig struct {
// or
// minCpuPlatform: "Intel Sandy Bridge"
. For
// more
- // information, read [how to specify min CPU
- // platform](https://cloud.google.com/compute/docs/instances/specify-min-
- // cpu-platform)
+ // information, read [how to specify min
+ // CPU
+ // platform](https://cloud.google.com/compute/docs/instances/specify-
+ // min-cpu-platform)
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// OauthScopes: The set of Google API scopes to be made available on all
@@ -1750,6 +2222,10 @@ type NodeConfig struct {
// ation/
Taints []*NodeTaint `json:"taints,omitempty"`
+ // WorkloadMetadataConfig: The workload metadata configuration for this
+ // node.
+ WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"`
+
// ForceSendFields is a list of field names (e.g. "Accelerators") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1768,8 +2244,8 @@ type NodeConfig struct {
}
func (s *NodeConfig) MarshalJSON() ([]byte, error) {
- type noMethod NodeConfig
- raw := noMethod(*s)
+ type NoMethod NodeConfig
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1804,8 +2280,8 @@ type NodeManagement struct {
}
func (s *NodeManagement) MarshalJSON() ([]byte, error) {
- type noMethod NodeManagement
- raw := noMethod(*s)
+ type NoMethod NodeManagement
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1838,10 +2314,11 @@ type NodePool struct {
// 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 the [managed
+ // instance
+ // groups](/compute/docs/instance-groups/creating-groups-of-mana
+ // ged-instances)
+ // associated with this node pool.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
// Management: NodeManagement configuration for this NodePool.
@@ -1885,7 +2362,7 @@ type NodePool struct {
// node pool instance, if available.
StatusMessage string `json:"statusMessage,omitempty"`
- // Version: [Output only] The version of the Kubernetes of this node.
+ // Version: The version of the Kubernetes of this node.
Version string `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1910,8 +2387,8 @@ type NodePool struct {
}
func (s *NodePool) MarshalJSON() ([]byte, error) {
- type noMethod NodePool
- raw := noMethod(*s)
+ type NoMethod NodePool
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1919,6 +2396,9 @@ func (s *NodePool) MarshalJSON() ([]byte, error) {
// required by cluster autoscaler to
// adjust the size of the node pool to the current cluster usage.
type NodePoolAutoscaling struct {
+ // Autoprovisioned: Can this node pool be deleted automatically.
+ Autoprovisioned bool `json:"autoprovisioned,omitempty"`
+
// Enabled: Is autoscaling enabled for this node pool.
Enabled bool `json:"enabled,omitempty"`
@@ -1932,7 +2412,7 @@ type NodePoolAutoscaling struct {
// max_node_count.
MinNodeCount int64 `json:"minNodeCount,omitempty"`
- // ForceSendFields is a list of field names (e.g. "Enabled") to
+ // ForceSendFields is a list of field names (e.g. "Autoprovisioned") 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
@@ -1940,18 +2420,19 @@ type NodePoolAutoscaling struct {
// 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
- type noMethod NodePoolAutoscaling
- raw := noMethod(*s)
+ // NullFields is a list of field names (e.g. "Autoprovisioned") 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 *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
+ type NoMethod NodePoolAutoscaling
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1998,8 +2479,8 @@ type NodeTaint struct {
}
func (s *NodeTaint) MarshalJSON() ([]byte, error) {
- type noMethod NodeTaint
- raw := noMethod(*s)
+ type NoMethod NodeTaint
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2049,6 +2530,9 @@ type Operation struct {
// "SET_MAINTENANCE_POLICY" - Set the maintenance policy.
OperationType string `json:"operationType,omitempty"`
+ // Progress: [Output only] Progress information for an operation.
+ Progress *OperationProgress `json:"progress,omitempty"`
+
// SelfLink: Server-defined URL for the resource.
SelfLink string `json:"selfLink,omitempty"`
@@ -2103,8 +2587,60 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
- type noMethod Operation
- raw := noMethod(*s)
+ type NoMethod Operation
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// OperationProgress: Information about operation (or operation stage)
+// progress.
+type OperationProgress struct {
+ // Metrics: Progress metric bundle, for example:
+ // metrics: [{name: "nodes done", int_value: 15},
+ // {name: "nodes total", int_value: 32}]
+ // or
+ // metrics: [{name: "progress", double_value: 0.56},
+ // {name: "progress scale", double_value: 1.0}]
+ Metrics []*Metric `json:"metrics,omitempty"`
+
+ // Name: A non-parameterized string describing an operation stage.
+ // Unset for single-stage operations.
+ Name string `json:"name,omitempty"`
+
+ // Stages: Substages of an operation or a stage.
+ Stages []*OperationProgress `json:"stages,omitempty"`
+
+ // Status: Status of an operation stage.
+ // Unset for single-stage operations.
+ //
+ // Possible values:
+ // "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"`
+
+ // ForceSendFields is a list of field names (e.g. "Metrics") 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. "Metrics") 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 *OperationProgress) MarshalJSON() ([]byte, error) {
+ type NoMethod OperationProgress
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2134,8 +2670,44 @@ type PodSecurityPolicyConfig struct {
}
func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
- type noMethod PodSecurityPolicyConfig
- raw := noMethod(*s)
+ type NoMethod PodSecurityPolicyConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// ResourceLimit: Contains information about amount of some resource in
+// the cluster.
+// For memory, value should be in GB.
+type ResourceLimit struct {
+ // Maximum: Maximum amount of the resource in the cluster.
+ Maximum int64 `json:"maximum,omitempty,string"`
+
+ // Minimum: Minimum amount of the resource in the cluster.
+ Minimum int64 `json:"minimum,omitempty,string"`
+
+ // ResourceType: Resource name "cpu", "memory" or gpu-specific string.
+ ResourceType string `json:"resourceType,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Maximum") 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. "Maximum") 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 *ResourceLimit) MarshalJSON() ([]byte, error) {
+ type NoMethod ResourceLimit
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2145,8 +2717,8 @@ func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
// successfully
// completed.
type RollbackNodePoolUpgradeRequest struct {
- // ClusterId: The name of the cluster to rollback.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to rollback.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster, node pool id) of the node
@@ -2156,23 +2728,23 @@ type RollbackNodePoolUpgradeRequest struct {
// 'projects/*/locations/*/clusters/*/nodePools/*'.
Name string `json:"name,omitempty"`
- // NodePoolId: The name of the node pool to rollback.
- // This field is deprecated, use name instead.
+ // NodePoolId: Deprecated. The name of the node pool to rollback.
+ // This field has been deprecated and replaced by the name field.
NodePoolId string `json:"nodePoolId,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2193,12 +2765,12 @@ type RollbackNodePoolUpgradeRequest struct {
}
func (s *RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) {
- type noMethod RollbackNodePoolUpgradeRequest
- raw := noMethod(*s)
+ type NoMethod RollbackNodePoolUpgradeRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// ServerConfig: Container Engine service configuration.
+// ServerConfig: Kubernetes Engine service configuration.
type ServerConfig struct {
// DefaultClusterVersion: Version of Kubernetes the service deploys by
// default.
@@ -2240,8 +2812,63 @@ type ServerConfig struct {
}
func (s *ServerConfig) MarshalJSON() ([]byte, error) {
- type noMethod ServerConfig
- raw := noMethod(*s)
+ type NoMethod ServerConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetAddonsConfigRequest: SetAddonsRequest 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"`
+
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // addons.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // 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
+ // 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. "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)
}
@@ -2251,15 +2878,15 @@ func (s *ServerConfig) MarshalJSON() ([]byte, error) {
// Engine
// resources used by that cluster
type SetLabelsRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// 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
+ // Kubernetes Engine and changes after every request to modify or
// update
// labels. You must always provide an up-to-date fingerprint hash
// when
@@ -2273,22 +2900,22 @@ type SetLabelsRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// ResourceLabels: The labels to set for that cluster.
ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2309,8 +2936,8 @@ type SetLabelsRequest struct {
}
func (s *SetLabelsRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLabelsRequest
- raw := noMethod(*s)
+ type NoMethod SetLabelsRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2318,8 +2945,8 @@ func (s *SetLabelsRequest) MarshalJSON() ([]byte, error) {
// ABAC authorization mechanism for
// a cluster.
type SetLegacyAbacRequest struct {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Enabled: Whether ABAC authorization will be enabled in the cluster.
@@ -2330,19 +2957,19 @@ type SetLegacyAbacRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2363,8 +2990,129 @@ type SetLegacyAbacRequest struct {
}
func (s *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetLegacyAbacRequest
- raw := noMethod(*s)
+ type NoMethod SetLegacyAbacRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLocationsRequest: SetLocationsRequest sets the locations of the
+// cluster.
+type SetLocationsRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // locations.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *SetLocationsRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod SetLocationsRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLoggingServiceRequest: SetLoggingServiceRequest sets the logging
+// service of a cluster.
+type SetLoggingServiceRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // logging.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
}
@@ -2414,8 +3162,8 @@ type SetMaintenancePolicyRequest struct {
}
func (s *SetMaintenancePolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMaintenancePolicyRequest
- raw := noMethod(*s)
+ type NoMethod SetMaintenancePolicyRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2437,8 +3185,8 @@ type SetMasterAuthRequest struct {
// one.
Action string `json:"action,omitempty"`
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster) of the cluster to set
@@ -2446,22 +3194,22 @@ type SetMasterAuthRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// Update: A description of the update.
Update *MasterAuth `json:"update,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to
@@ -2482,39 +3230,44 @@ type SetMasterAuthRequest struct {
}
func (s *SetMasterAuthRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetMasterAuthRequest
- raw := noMethod(*s)
+ type NoMethod SetMasterAuthRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
-// network policy for a cluster.
-type SetNetworkPolicyRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+// SetMonitoringServiceRequest: SetMonitoringServiceRequest sets the
+// monitoring service of a cluster.
+type SetMonitoringServiceRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
- // Name: The name (project, location, cluster id) of the cluster to set
- // networking policy.
+ // 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"`
+
+ // Name: The name (project, location, cluster) of the cluster to set
+ // monitoring.
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // NetworkPolicy: Configuration options for the NetworkPolicy feature.
- NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
-
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
- // number](https://developers.google.com/console/help/new/#projec
- // tnumber).
- // This field is deprecated, use name instead.
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2534,47 +3287,40 @@ type SetNetworkPolicyRequest struct {
NullFields []string `json:"-"`
}
-func (s *SetNetworkPolicyRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetNetworkPolicyRequest
- raw := noMethod(*s)
+func (s *SetMonitoringServiceRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod SetMonitoringServiceRequest
+ 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 {
- // ClusterId: The name of the cluster to update.
- // This field is deprecated, use name instead.
+// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
+// network policy for a cluster.
+type SetNetworkPolicyRequest struct {
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
- // Management: NodeManagement configuration for the node pool.
- Management *NodeManagement `json:"management,omitempty"`
-
- // Name: The name (project, location, cluster, node pool id) of the node
- // pool to set
- // management properties. Specified in the
- // format
- // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ // Name: The name (project, location, cluster id) of the cluster to set
+ // networking
+ // policy. Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // NodePoolId: The name of the node pool to update.
- // This field is deprecated, use name instead.
- NodePoolId string `json:"nodePoolId,omitempty"`
+ // NetworkPolicy: Configuration options for the NetworkPolicy feature.
+ NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
- // number](https://support.google.com/cloud/answer/6158840).
- // This
- // field is deprecated, use name instead.
+ // number](https://developers.google.com/console/help/new/#projec
+ // tnumber).
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2594,9 +3340,188 @@ type SetNodePoolManagementRequest struct {
NullFields []string `json:"-"`
}
-func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetNodePoolManagementRequest
- raw := noMethod(*s)
+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"`
+
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool) of the node
+ // pool to set
+ // autoscaler settings. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,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 {
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Management: NodeManagement configuration for the node pool.
+ Management *NodeManagement `json:"management,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool id) of the node
+ // pool to set
+ // management properties. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to update.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 {
+ // ClusterId: Deprecated. The name of the cluster to update.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool id) of the node
+ // pool to set
+ // size.
+ // Specified in the format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodeCount: The desired node count for the pool.
+ NodeCount int64 `json:"nodeCount,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to update.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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)
}
@@ -2604,28 +3529,32 @@ func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
// the cluster and then performs
// a node upgrade on each node pool to point to the new IP.
type StartIPRotationRequest struct {
- // ClusterId: The name of the cluster.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster id) of the cluster to
- // start IP rotation.
- // Specified in the format 'projects/*/locations/*/clusters/*'.
+ // start IP
+ // rotation. Specified in the format
+ // 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://developers.google.com/console/help/new/#projec
// tnumber).
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
- // Zone: The name of the Google Compute
+ // RotateCredentials: Whether to rotate credentials during IP rotation.
+ RotateCredentials bool `json:"rotateCredentials,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2646,16 +3575,16 @@ type StartIPRotationRequest struct {
}
func (s *StartIPRotationRequest) MarshalJSON() ([]byte, error) {
- type noMethod StartIPRotationRequest
- raw := noMethod(*s)
+ type NoMethod StartIPRotationRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
// cluster.
type UpdateClusterRequest struct {
- // ClusterId: The name of the cluster to upgrade.
- // This field is deprecated, use name instead.
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
ClusterId string `json:"clusterId,omitempty"`
// Name: The name (project, location, cluster) of the cluster to
@@ -2663,22 +3592,22 @@ type UpdateClusterRequest struct {
// Specified in the format 'projects/*/locations/*/clusters/*'.
Name string `json:"name,omitempty"`
- // ProjectId: The Google Developers Console [project ID or
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
// project
// number](https://support.google.com/cloud/answer/6158840).
// This
- // field is deprecated, use name instead.
+ // field has been deprecated and replaced by the name field.
ProjectId string `json:"projectId,omitempty"`
// Update: A description of the update.
Update *ClusterUpdate `json:"update,omitempty"`
- // Zone: The name of the Google Compute
+ // Zone: Deprecated. The name of the Google Compute
// Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
- // This field is deprecated, use name instead.
+ // This field has been deprecated and replaced by the name field.
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterId") to
@@ -2699,99 +3628,2995 @@ type UpdateClusterRequest struct {
}
func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod UpdateClusterRequest
- raw := noMethod(*s)
+ type NoMethod UpdateClusterRequest
+ raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// method id "container.projects.locations.getServerConfig":
+// UpdateMasterRequest: UpdateMasterRequest updates the master of the
+// cluster.
+type UpdateMasterRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
-type ProjectsLocationsGetServerConfigCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+ // MasterVersion: The Kubernetes version to change the master to.
+ //
+ // Users may specify either explicit versions offered by
+ // Kubernetes Engine or version aliases, which have the following
+ // behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the default Kubernetes version
+ MasterVersion string `json:"masterVersion,omitempty"`
+
+ // Name: The name (project, location, cluster) of the cluster to
+ // update.
+ // Specified in the format 'projects/*/locations/*/clusters/*'.
+ Name string `json:"name,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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:"-"`
}
-// GetServerConfig: Returns configuration info about the Container
-// Engine service.
-func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
- c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
+func (s *UpdateMasterRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateMasterRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+// UpdateNodePoolRequest: SetNodePoolVersionRequest updates the version
+// of a node pool.
+type UpdateNodePoolRequest struct {
+ // ClusterId: Deprecated. The name of the cluster to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ ClusterId string `json:"clusterId,omitempty"`
+
+ // ImageType: The desired image type for the node pool.
+ ImageType string `json:"imageType,omitempty"`
+
+ // Name: The name (project, location, cluster, node pool) of the node
+ // pool to
+ // update. Specified in the
+ // format
+ // 'projects/*/locations/*/clusters/*/nodePools/*'.
+ Name string `json:"name,omitempty"`
+
+ // NodePoolId: Deprecated. The name of the node pool to upgrade.
+ // This field has been deprecated and replaced by the name field.
+ NodePoolId string `json:"nodePoolId,omitempty"`
+
+ // NodeVersion: The Kubernetes version to change the nodes to (typically
+ // an
+ // upgrade).
+ //
+ // Users may specify either explicit versions offered by Kubernetes
+ // Engine or
+ // version aliases, which have the following behavior:
+ //
+ // - "latest": picks the highest valid Kubernetes version
+ // - "1.X": picks the highest valid patch+gke.N patch in the 1.X
+ // version
+ // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ // - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ // - "-": picks the Kubernetes master version
+ NodeVersion string `json:"nodeVersion,omitempty"`
+
+ // ProjectId: Deprecated. The Google Developers Console [project ID or
+ // project
+ // number](https://support.google.com/cloud/answer/6158840).
+ // This
+ // field has been deprecated and replaced by the name field.
+ ProjectId string `json:"projectId,omitempty"`
+
+ // Zone: Deprecated. The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the
+ // cluster
+ // resides.
+ // This field has been deprecated and replaced by the name field.
+ Zone string `json:"zone,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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:"-"`
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
- c.urlParams_.Set("zone", zone)
- return c
+func (s *UpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateNodePoolRequest
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// Fields allows partial responses to be retrieved. See
-// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
-// for more information.
-func (c *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
+// UsableSubnetwork: UsableSubnetwork resource returns the subnetwork
+// name, its associated network
+// and the primary CIDR range.
+type UsableSubnetwork struct {
+ // IpCidrRange: The range of internal addresses that are owned by this
+ // subnetwork.
+ IpCidrRange string `json:"ipCidrRange,omitempty"`
+
+ // Network: Network Name.
+ // Example: projects/my-project/global/networks/my-network
+ Network string `json:"network,omitempty"`
+
+ // Subnetwork: Subnetwork Name.
+ // Example:
+ // projects/my-project/regions/us-central1/subnetworks/my-subnet
+ Subnetwork string `json:"subnetwork,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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 *UsableSubnetwork) MarshalJSON() ([]byte, error) {
+ type NoMethod UsableSubnetwork
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// WorkloadMetadataConfig: WorkloadMetadataConfig defines the metadata
+// configuration to expose to
+// workloads on the node pool.
+type WorkloadMetadataConfig struct {
+ // NodeMetadata: NodeMetadata is the configuration for how to expose the
+ // node metadata to
+ // the workload running on the node.
+ //
+ // Possible values:
+ // "UNSPECIFIED" - Not set.
+ // "SECURE" - Prevent workloads not in hostNetwork from accessing
+ // certain VM metadata,
+ // specifically kube-env, which contains Kubelet credentials, and
+ // the
+ // instance identity token.
+ //
+ // Metadata concealment is a temporary security solution available while
+ // the
+ // bootstrapping process for cluster nodes is being redesigned
+ // with
+ // significant security improvements. This feature is scheduled to
+ // be
+ // deprecated in the future and later removed.
+ // "EXPOSE" - Expose all VM metadata to pods.
+ NodeMetadata string `json:"nodeMetadata,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "NodeMetadata") 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. "NodeMetadata") 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 *WorkloadMetadataConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod WorkloadMetadataConfig
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// method id "container.projects.aggregated.usableSubnetworks.list":
+
+type ProjectsAggregatedUsableSubnetworksListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Lists subnetworks that are usable for creating clusters in a
+// project.
+func (r *ProjectsAggregatedUsableSubnetworksService) List(parent string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c := &ProjectsAggregatedUsableSubnetworksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Filter sets the optional parameter "filter": Filtering currently only
+// supports equality on the networkProjectId and must
+// be in the form: "networkProjectId=[PROJECTID]", where
+// `networkProjectId`
+// is the project which owns the listed subnetworks. This defaults to
+// the
+// parent project ID.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) Filter(filter string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("filter", filter)
+ return c
+}
+
+// PageSize sets the optional parameter "pageSize": The max number of
+// results per page that should be returned. If the number
+// of available results is larger than `page_size`, a `next_page_token`
+// is
+// returned which can be used to get the next page of results in
+// subsequent
+// requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+func (c *ProjectsAggregatedUsableSubnetworksListCall) PageSize(pageSize int64) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
+ return c
+}
+
+// PageToken sets the optional parameter "pageToken": Specifies a page
+// token to use. Set this to the nextPageToken returned by
+// previous list requests to get the next page of results.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) PageToken(pageToken string) *ProjectsAggregatedUsableSubnetworksListCall {
+ c.urlParams_.Set("pageToken", pageToken)
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Fields(s ...googleapi.Field) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) IfNoneMatch(entityTag string) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Context(ctx context.Context) *ProjectsAggregatedUsableSubnetworksListCall {
+ 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 *ProjectsAggregatedUsableSubnetworksListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsAggregatedUsableSubnetworksListCall) 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, "v1beta1/{+parent}/aggregated/usableSubnetworks")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.aggregated.usableSubnetworks.list" call.
+// Exactly one of *ListUsableSubnetworksResponse or error will be
+// non-nil. Any non-2xx status code is an error. Response headers are in
+// either *ListUsableSubnetworksResponse.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 *ProjectsAggregatedUsableSubnetworksListCall) Do(opts ...googleapi.CallOption) (*ListUsableSubnetworksResponse, 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 := &ListUsableSubnetworksResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Lists subnetworks that are usable for creating clusters in a project.",
+ // "flatPath": "v1beta1/projects/{projectsId}/aggregated/usableSubnetworks",
+ // "httpMethod": "GET",
+ // "id": "container.projects.aggregated.usableSubnetworks.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "filter": {
+ // "description": "Filtering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=[PROJECTID]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "pageSize": {
+ // "description": "The max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)",
+ // "format": "int32",
+ // "location": "query",
+ // "type": "integer"
+ // },
+ // "pageToken": {
+ // "description": "Specifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "parent": {
+ // "description": "The parent project where subnetworks are usable.\nSpecified in the format 'projects/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/aggregated/usableSubnetworks",
+ // "response": {
+ // "$ref": "ListUsableSubnetworksResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// Pages invokes f for each page of results.
+// A non-nil error returned from f will halt the iteration.
+// The provided context supersedes any context provided to the Context method.
+func (c *ProjectsAggregatedUsableSubnetworksListCall) Pages(ctx context.Context, f func(*ListUsableSubnetworksResponse) error) error {
+ c.ctx_ = ctx
+ defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
+ for {
+ x, err := c.Do()
+ if err != nil {
+ return err
+ }
+ if err := f(x); err != nil {
+ return err
+ }
+ if x.NextPageToken == "" {
+ return nil
+ }
+ c.PageToken(x.NextPageToken)
+ }
+}
+
+// method id "container.projects.locations.getServerConfig":
+
+type ProjectsLocationsGetServerConfigCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetServerConfig: Returns configuration info about the Kubernetes
+// Engine service.
+func (r *ProjectsLocationsService) GetServerConfig(name string) *ProjectsLocationsGetServerConfigCall {
+ c := &ProjectsLocationsGetServerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsGetServerConfigCall) ProjectId(projectId string) *ProjectsLocationsGetServerConfigCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) to return operations for.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsGetServerConfigCall) Zone(zone string) *ProjectsLocationsGetServerConfigCall {
+ c.urlParams_.Set("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 *ProjectsLocationsGetServerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
+ 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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsGetServerConfigCall) 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, "v1beta1/{+name}/serverConfig")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsGetServerConfigCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Returns configuration info about the Kubernetes Engine service.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.getServerConfig",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}/serverConfig",
+ // "response": {
+ // "$ref": "ServerConfig"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.list":
+
+type ProjectsLocationsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List:
+func (r *ProjectsLocationsService) List(parent string) *ProjectsLocationsListCall {
+ c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
+ 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 *ProjectsLocationsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsListCall) 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, "v1beta1/{+parent}/locations")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.list" call.
+// Exactly one of *ListLocationsResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "Contains the name of the resource requested.\nSpecific in the format 'projects/*/locations'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/locations",
+ // "response": {
+ // "$ref": "ListLocationsResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.completeIpRotation":
+
+type ProjectsLocationsClustersCompleteIpRotationCall struct {
+ s *Service
+ name string
+ completeiprotationrequest *CompleteIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// CompleteIpRotation: Completes master IP rotation.
+func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
+ c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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, "v1beta1/{+name}:completeIpRotation")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCompleteIpRotationCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Completes master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.completeIpRotation",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to complete IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:completeIpRotation",
+ // "request": {
+ // "$ref": "CompleteIPRotationRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.create":
+
+type ProjectsLocationsClustersCreateCall struct {
+ s *Service
+ parent 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
+ c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
+ 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
+ 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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersCreateCall) 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, "v1beta1/{+parent}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.create",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/clusters",
+ // "request": {
+ // "$ref": "CreateClusterRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.delete":
+
+type ProjectsLocationsClustersDeleteCall struct {
+ s *Service
+ name 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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
+ c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster to delete.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
+ 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
+ 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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersDeleteCall) 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, "v1beta1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("DELETE", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.locations.clusters.delete",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}",
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.get":
+
+type ProjectsLocationsClustersGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Gets the details for a specific cluster.
+func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
+ c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster to retrieve.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
+ 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 *ProjectsLocationsClustersGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersGetCall) 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, "v1beta1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersGetCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Gets the details for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.clusters.get",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}",
+ // "response": {
+ // "$ref": "Cluster"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.list":
+
+type ProjectsLocationsClustersListCall struct {
+ s *Service
+ parent 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 *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
+ c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the cluster
+// resides, or "-" for all zones.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
+ 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 *ProjectsLocationsClustersListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersListCall) 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, "v1beta1/{+parent}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersListCall) 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 := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.clusters.list",
+ // "parameterOrder": [
+ // "parent"
+ // ],
+ // "parameters": {
+ // "parent": {
+ // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+parent}/clusters",
+ // "response": {
+ // "$ref": "ListClustersResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setAddons":
+
+type ProjectsLocationsClustersSetAddonsCall struct {
+ s *Service
+ name string
+ setaddonsconfigrequest *SetAddonsConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetAddons: Sets the addons for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetAddons(name string, setaddonsconfigrequest *SetAddonsConfigRequest) *ProjectsLocationsClustersSetAddonsCall {
+ c := &ProjectsLocationsClustersSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetAddonsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetAddonsCall {
+ 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 *ProjectsLocationsClustersSetAddonsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetAddonsCall {
+ 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 *ProjectsLocationsClustersSetAddonsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetAddonsCall) 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, "v1beta1/{+name}:setAddons")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setAddons" 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 *ProjectsLocationsClustersSetAddonsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the addons for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setAddons",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setAddons",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set addons.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setAddons",
+ // "request": {
+ // "$ref": "SetAddonsConfigRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLegacyAbac":
+
+type ProjectsLocationsClustersSetLegacyAbacCall struct {
+ s *Service
+ name string
+ setlegacyabacrequest *SetLegacyAbacRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
+// on a cluster.
+func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
+ c := &ProjectsLocationsClustersSetLegacyAbacCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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, "v1beta1/{+name}:setLegacyAbac")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLegacyAbac" 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 *ProjectsLocationsClustersSetLegacyAbacCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLegacyAbac",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLegacyAbac",
+ // "request": {
+ // "$ref": "SetLegacyAbacRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLocations":
+
+type ProjectsLocationsClustersSetLocationsCall struct {
+ s *Service
+ name string
+ setlocationsrequest *SetLocationsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLocations: Sets the locations for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetLocations(name string, setlocationsrequest *SetLocationsRequest) *ProjectsLocationsClustersSetLocationsCall {
+ c := &ProjectsLocationsClustersSetLocationsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLocationsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLocationsCall {
+ 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 *ProjectsLocationsClustersSetLocationsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLocationsCall {
+ 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 *ProjectsLocationsClustersSetLocationsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLocationsCall) 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, "v1beta1/{+name}:setLocations")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLocations" 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 *ProjectsLocationsClustersSetLocationsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the locations for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLocations",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLocations",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set locations.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLocations",
+ // "request": {
+ // "$ref": "SetLocationsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setLogging":
+
+type ProjectsLocationsClustersSetLoggingCall struct {
+ s *Service
+ name string
+ setloggingservicerequest *SetLoggingServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetLogging: Sets the logging service for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetLogging(name string, setloggingservicerequest *SetLoggingServiceRequest) *ProjectsLocationsClustersSetLoggingCall {
+ c := &ProjectsLocationsClustersSetLoggingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetLoggingCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLoggingCall {
+ 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 *ProjectsLocationsClustersSetLoggingCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLoggingCall {
+ 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 *ProjectsLocationsClustersSetLoggingCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetLoggingCall) 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, "v1beta1/{+name}:setLogging")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setLogging" 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 *ProjectsLocationsClustersSetLoggingCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the logging service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLogging",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setLogging",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set logging.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setLogging",
+ // "request": {
+ // "$ref": "SetLoggingServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMaintenancePolicy":
+
+type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
+ s *Service
+ name string
+ setmaintenancepolicyrequest *SetMaintenancePolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
+func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) 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.setmaintenancepolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setMaintenancePolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the maintenance policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMaintenancePolicy",
+ // "request": {
+ // "$ref": "SetMaintenancePolicyRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMasterAuth":
+
+type ProjectsLocationsClustersSetMasterAuthCall struct {
+ s *Service
+ name 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 for a specific cluster.
+// This can be either via password generation or explicitly set.
+// Modify basic_auth.csv and reset the K8S API server.
+func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
+ c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMasterAuthCall) 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, "v1beta1/{+name}:setMasterAuth")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMasterAuth",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMasterAuth",
+ // "request": {
+ // "$ref": "SetMasterAuthRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setMonitoring":
+
+type ProjectsLocationsClustersSetMonitoringCall struct {
+ s *Service
+ name string
+ setmonitoringservicerequest *SetMonitoringServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetMonitoring: Sets the monitoring service for a specific cluster.
+func (r *ProjectsLocationsClustersService) SetMonitoring(name string, setmonitoringservicerequest *SetMonitoringServiceRequest) *ProjectsLocationsClustersSetMonitoringCall {
+ c := &ProjectsLocationsClustersSetMonitoringCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMonitoringCall {
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMonitoringCall {
+ 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 *ProjectsLocationsClustersSetMonitoringCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetMonitoringCall) 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, "v1beta1/{+name}:setMonitoring")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setMonitoring" 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 *ProjectsLocationsClustersSetMonitoringCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the monitoring service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMonitoring",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setMonitoring",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setMonitoring",
+ // "request": {
+ // "$ref": "SetMonitoringServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setNetworkPolicy":
+
+type ProjectsLocationsClustersSetNetworkPolicyCall struct {
+ s *Service
+ name string
+ setnetworkpolicyrequest *SetNetworkPolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
+func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetNetworkPolicyCall) 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.setnetworkpolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setNetworkPolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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
+// *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 *ProjectsLocationsClustersSetNetworkPolicyCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Enables/Disables Network Policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setNetworkPolicy",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set networking\npolicy. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setNetworkPolicy",
+ // "request": {
+ // "$ref": "SetNetworkPolicyRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.setResourceLabels":
+
+type ProjectsLocationsClustersSetResourceLabelsCall struct {
+ s *Service
+ name string
+ setlabelsrequest *SetLabelsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetResourceLabels: Sets labels on a cluster.
+func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
+ c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersSetResourceLabelsCall) 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, "v1beta1/{+name}:setResourceLabels")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.clusters.setResourceLabels" 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 *ProjectsLocationsClustersSetResourceLabelsCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets labels on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.setResourceLabels",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:setResourceLabels",
+ // "request": {
+ // "$ref": "SetLabelsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.startIpRotation":
+
+type ProjectsLocationsClustersStartIpRotationCall struct {
+ s *Service
+ name string
+ startiprotationrequest *StartIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// StartIpRotation: Start master IP rotation.
+func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
+ c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
+ 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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsClustersStartIpRotationCall) 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.startiprotationrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:startIpRotation")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) 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 := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Start master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.locations.clusters.startIpRotation",
+ // "parameterOrder": [
+ // "name"
+ // ],
+ // "parameters": {
+ // "name": {
+ // "description": "The name (project, location, cluster id) of the cluster to start IP\nrotation. Specified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "path",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1beta1/{+name}:startIpRotation",
+ // "request": {
+ // "$ref": "StartIPRotationRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.locations.clusters.update":
+
+type ProjectsLocationsClustersUpdateCall struct {
+ s *Service
+ name string
+ updateclusterrequest *UpdateClusterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Updates the settings for a specific cluster.
+func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
+ c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ 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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
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 *ProjectsLocationsGetServerConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetServerConfigCall {
- 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 *ProjectsLocationsGetServerConfigCall) Context(ctx context.Context) *ProjectsLocationsGetServerConfigCall {
+func (c *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
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 *ProjectsLocationsGetServerConfigCall) Header() http.Header {
+func (c *ProjectsLocationsClustersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersUpdateCall) 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
+ 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, "v1beta1/{+name}/serverConfig")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -2799,14 +6624,14 @@ func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Resp
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.getServerConfig" call.
-// Exactly one of *ServerConfig or error will be non-nil. Any non-2xx
+// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption) (*ServerConfig, error) {
+func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2825,47 +6650,40 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ServerConfig{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Returns configuration info about the Container Engine service.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serverConfig",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.getServerConfig",
+ // "description": "Updates the settings for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.locations.clusters.update",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
- // },
- // "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
// }
// },
- // "path": "v1beta1/{+name}/serverConfig",
+ // "path": "v1beta1/{+name}",
+ // "request": {
+ // "$ref": "UpdateClusterRequest"
+ // },
// "response": {
- // "$ref": "ServerConfig"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2874,29 +6692,29 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption)
}
-// method id "container.projects.locations.clusters.completeIpRotation":
+// method id "container.projects.locations.clusters.updateMaster":
-type ProjectsLocationsClustersCompleteIpRotationCall struct {
- s *Service
- name string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersUpdateMasterCall struct {
+ s *Service
+ name string
+ updatemasterrequest *UpdateMasterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// CompleteIpRotation: Completes master IP rotation.
-func (r *ProjectsLocationsClustersService) CompleteIpRotation(name string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsLocationsClustersCompleteIpRotationCall {
- c := &ProjectsLocationsClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// UpdateMaster: Updates the master for a specific cluster.
+func (r *ProjectsLocationsClustersService) UpdateMaster(name string, updatemasterrequest *UpdateMasterRequest) *ProjectsLocationsClustersUpdateMasterCall {
+ c := &ProjectsLocationsClustersUpdateMasterCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.completeiprotationrequest = completeiprotationrequest
+ 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 *ProjectsLocationsClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteIpRotationCall {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateMasterCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -2904,34 +6722,34 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) 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 *ProjectsLocationsClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteIpRotationCall {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateMasterCall {
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 *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersUpdateMasterCall) 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)
+ 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, "v1beta1/{+name}:completeIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:updateMaster")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -2941,14 +6759,14 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string)
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.completeIpRotation" call.
+// Do executes the "container.projects.locations.clusters.updateMaster" 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 *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersUpdateMasterCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2974,30 +6792,30 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.C
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Completes master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation",
+ // "description": "Updates the master for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:updateMaster",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.completeIpRotation",
+ // "id": "container.projects.locations.clusters.updateMaster",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to complete IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:completeIpRotation",
+ // "path": "v1beta1/{+name}:updateMaster",
// "request": {
- // "$ref": "CompleteIPRotationRequest"
+ // "$ref": "UpdateMasterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3009,45 +6827,29 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Do(opts ...googleapi.C
}
-// method id "container.projects.locations.clusters.create":
+// method id "container.projects.locations.clusters.nodePools.create":
-type ProjectsLocationsClustersCreateCall struct {
- s *Service
- parent string
- createclusterrequest *CreateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsCreateCall struct {
+ s *Service
+ parent string
+ createnodepoolrequest *CreateNodePoolRequest
+ 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 *ProjectsLocationsClustersService) Create(parent string, createclusterrequest *CreateClusterRequest) *ProjectsLocationsClustersCreateCall {
- c := &ProjectsLocationsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Create: Creates a node pool for a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
+ c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
- c.createclusterrequest = createclusterrequest
+ 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 *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3055,34 +6857,34 @@ func (c *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
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 *ProjectsLocationsClustersCreateCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) 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)
+ 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, "v1beta1/{+parent}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3092,14 +6894,14 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.create" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3125,30 +6927,30 @@ func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "description": "Creates a node pool for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.create",
+ // "id": "container.projects.locations.clusters.nodePools.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project and location) where the cluster will be created.\nSpecified in the format 'projects/*/locations/*'.",
+ // "description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/clusters",
+ // "path": "v1beta1/{+parent}/nodePools",
// "request": {
- // "$ref": "CreateClusterRequest"
+ // "$ref": "CreateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3160,9 +6962,9 @@ func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.delete":
+// method id "container.projects.locations.clusters.nodePools.delete":
-type ProjectsLocationsClustersDeleteCall struct {
+type ProjectsLocationsClustersNodePoolsDeleteCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
@@ -3170,50 +6972,47 @@ type ProjectsLocationsClustersDeleteCall struct {
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 *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall {
- c := &ProjectsLocationsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Delete: Deletes a node pool from a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
+ c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersDeleteCall {
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("clusterId", clusterId)
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// NodePoolId sets the optional parameter "nodePoolId": Deprecated. The
+// name of the node pool to delete.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
+ c.urlParams_.Set("nodePoolId", nodePoolId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersDeleteCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocationsClustersDeleteCall {
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3221,7 +7020,7 @@ func (c *ProjectsLocationsClustersDeleteCall) Zone(zone string) *ProjectsLocatio
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3229,21 +7028,21 @@ func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
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 *ProjectsLocationsClustersDeleteCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3261,14 +7060,14 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.delete" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3294,38 +7093,43 @@ func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "description": "Deletes a node pool from a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
// "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.delete",
+ // "id": "container.projects.locations.clusters.nodePools.delete",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// }
@@ -3341,9 +7145,9 @@ func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.get":
+// method id "container.projects.locations.clusters.nodePools.get":
-type ProjectsLocationsClustersGetCall struct {
+type ProjectsLocationsClustersNodePoolsGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
@@ -3352,39 +7156,47 @@ type ProjectsLocationsClustersGetCall struct {
header_ http.Header
}
-// Get: Gets the details of a specific cluster.
-func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall {
- c := &ProjectsLocationsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Get: Retrieves the node pool requested.
+func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
+ c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster to retrieve.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersGetCall {
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("clusterId", clusterId)
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// NodePoolId sets the optional parameter "nodePoolId": Deprecated. The
+// name of the node pool.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
+ c.urlParams_.Set("nodePoolId", nodePoolId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) ProjectId(projectId string) *ProjectsLocationsClustersGetCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
// [zone](/compute/docs/zones#available) in which the
// cluster
// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsClustersGetCall {
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3392,7 +7204,7 @@ func (c *ProjectsLocationsClustersGetCall) Zone(zone string) *ProjectsLocationsC
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3402,7 +7214,7 @@ func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *Project
// 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 *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -3410,21 +7222,21 @@ func (c *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *Projec
// 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 *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
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 *ProjectsLocationsClustersGetCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3445,14 +7257,14 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.get" call.
-// Exactly one of *Cluster or error will be non-nil. Any non-2xx status
+// Do executes the "container.projects.locations.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
-// *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 *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error) {
+// *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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3471,52 +7283,57 @@ func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cl
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Cluster{
+ ret := &NodePool{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the details of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
+ // "description": "Retrieves the node pool requested.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
// "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.get",
+ // "id": "container.projects.locations.clusters.nodePools.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to retrieve.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1beta1/{+name}",
// "response": {
- // "$ref": "Cluster"
+ // "$ref": "NodePool"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -3525,9 +7342,9 @@ func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cl
}
-// method id "container.projects.locations.clusters.list":
+// method id "container.projects.locations.clusters.nodePools.list":
-type ProjectsLocationsClustersListCall struct {
+type ProjectsLocationsClustersNodePoolsListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
@@ -3536,32 +7353,39 @@ type ProjectsLocationsClustersListCall struct {
header_ http.Header
}
-// List: Lists all clusters owned by a project in either the specified
-// zone or all
-// zones.
-func (r *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall {
- c := &ProjectsLocationsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// List: Lists the node pools for a cluster.
+func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
+ c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
+// ClusterId sets the optional parameter "clusterId": Deprecated. The
+// name of the cluster.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
+ c.urlParams_.Set("clusterId", clusterId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) ProjectId(projectId string) *ProjectsLocationsClustersListCall {
+// number](https://developers.google.com/console/help/new/#projec
+// tnumber).
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("projectId", projectId)
return c
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the cluster
-// resides, or "-" for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocationsClustersListCall {
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("zone", zone)
return c
}
@@ -3569,7 +7393,7 @@ func (c *ProjectsLocationsClustersListCall) Zone(zone string) *ProjectsLocations
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3579,7 +7403,7 @@ func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *Projec
// 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 *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -3587,21 +7411,21 @@ func (c *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *Proje
// 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 *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
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 *ProjectsLocationsClustersListCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -3612,7 +7436,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
@@ -3622,14 +7446,14 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.list" call.
-// Exactly one of *ListClustersResponse or error will be non-nil. Any
+// Do executes the "container.projects.locations.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
-// *ListClustersResponse.ServerResponse.Header or (if a response was
+// *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 *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error) {
+func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3648,47 +7472,52 @@ func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*L
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListClustersResponse{
+ ret := &ListNodePoolsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters",
+ // "description": "Lists the node pools for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
// "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.list",
+ // "id": "container.projects.locations.clusters.nodePools.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
// "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "location": "query",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "query",
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/clusters",
+ // "path": "v1beta1/{+parent}/nodePools",
// "response": {
- // "$ref": "ListClustersResponse"
+ // "$ref": "ListNodePoolsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -3697,30 +7526,31 @@ func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*L
}
-// method id "container.projects.locations.clusters.setLegacyAbac":
+// method id "container.projects.locations.clusters.nodePools.rollback":
-type ProjectsLocationsClustersSetLegacyAbacCall struct {
- s *Service
- name string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsRollbackCall struct {
+ s *Service
+ name string
+ rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetLegacyAbac: Enables or disables the ABAC authorization mechanism
-// on a cluster.
-func (r *ProjectsLocationsClustersService) SetLegacyAbac(name string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsLocationsClustersSetLegacyAbacCall {
- c := &ProjectsLocationsClustersSetLegacyAbacCall{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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
+ c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setlegacyabacrequest = setlegacyabacrequest
+ 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 *ProjectsLocationsClustersSetLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetLegacyAbacCall {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3728,34 +7558,34 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) 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 *ProjectsLocationsClustersSetLegacyAbacCall) Context(ctx context.Context) *ProjectsLocationsClustersSetLegacyAbacCall {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
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 *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) 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)
+ 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, "v1beta1/{+name}:setLegacyAbac")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:rollback")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3765,14 +7595,14 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*htt
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setLegacyAbac" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3798,30 +7628,30 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setLegacyAbac",
+ // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setLegacyAbac",
+ // "id": "container.projects.locations.clusters.nodePools.rollback",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set legacy abac.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setLegacyAbac",
+ // "path": "v1beta1/{+name}:rollback",
// "request": {
- // "$ref": "SetLegacyAbacRequest"
+ // "$ref": "RollbackNodePoolUpgradeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3833,29 +7663,30 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.setMaintenancePolicy":
+// method id "container.projects.locations.clusters.nodePools.setAutoscaling":
-type ProjectsLocationsClustersSetMaintenancePolicyCall struct {
- s *Service
- name string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetAutoscalingCall struct {
+ s *Service
+ name string
+ setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetMaintenancePolicy(name string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsLocationsClustersSetMaintenancePolicyCall {
- c := &ProjectsLocationsClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetAutoscaling: Sets the autoscaling settings of a specific node
+// pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetAutoscaling(name string, setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
+ c := &ProjectsLocationsClustersNodePoolsSetAutoscalingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -3863,34 +7694,34 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Fields(s ...googleap
// 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMaintenancePolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetAutoscalingCall {
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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) 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.setmaintenancepolicyrequest)
+ 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, "v1beta1/{+name}:setMaintenancePolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setAutoscaling")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -3900,14 +7731,14 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setMaintenancePolicy" call.
+// Do executes the "container.projects.locations.clusters.nodePools.setAutoscaling" 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 *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3933,30 +7764,30 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the maintenance policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMaintenancePolicy",
+ // "description": "Sets the autoscaling settings of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setAutoscaling",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMaintenancePolicy",
+ // "id": "container.projects.locations.clusters.nodePools.setAutoscaling",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set maintenance\npolicy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool) of the node pool to set\nautoscaler settings. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setMaintenancePolicy",
+ // "path": "v1beta1/{+name}:setAutoscaling",
// "request": {
- // "$ref": "SetMaintenancePolicyRequest"
+ // "$ref": "SetNodePoolAutoscalingRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3968,33 +7799,29 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Do(opts ...googleapi
}
-// method id "container.projects.locations.clusters.setMasterAuth":
+// method id "container.projects.locations.clusters.nodePools.setManagement":
-type ProjectsLocationsClustersSetMasterAuthCall struct {
- s *Service
- name string
- setmasterauthrequest *SetMasterAuthRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
+ s *Service
+ name string
+ setnodepoolmanagementrequest *SetNodePoolManagementRequest
+ 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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsLocationsClustersService) SetMasterAuth(name string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsLocationsClustersSetMasterAuthCall {
- c := &ProjectsLocationsClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetManagement: Sets the NodeManagement options for a node pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+ c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setmasterauthrequest = setmasterauthrequest
+ 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 *ProjectsLocationsClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetMasterAuthCall {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4002,34 +7829,34 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) 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 *ProjectsLocationsClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsLocationsClustersSetMasterAuthCall {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
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 *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) 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)
+ 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, "v1beta1/{+name}:setMasterAuth")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setManagement")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4039,14 +7866,14 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*htt
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setMasterAuth" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4072,30 +7899,30 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setMasterAuth",
+ // "description": "Sets the NodeManagement options for a node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setMasterAuth",
+ // "id": "container.projects.locations.clusters.nodePools.setManagement",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to set auth.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setMasterAuth",
+ // "path": "v1beta1/{+name}:setManagement",
// "request": {
- // "$ref": "SetMasterAuthRequest"
+ // "$ref": "SetNodePoolManagementRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4107,29 +7934,29 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.setNetworkPolicy":
+// method id "container.projects.locations.clusters.nodePools.setSize":
-type ProjectsLocationsClustersSetNetworkPolicyCall struct {
- s *Service
- name string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsSetSizeCall struct {
+ s *Service
+ name string
+ setnodepoolsizerequest *SetNodePoolSizeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
-func (r *ProjectsLocationsClustersService) SetNetworkPolicy(name string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsLocationsClustersSetNetworkPolicyCall {
- c := &ProjectsLocationsClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetSize: Sets the size for a specific node pool.
+func (r *ProjectsLocationsClustersNodePoolsService) SetSize(name string, setnodepoolsizerequest *SetNodePoolSizeRequest) *ProjectsLocationsClustersNodePoolsSetSizeCall {
+ c := &ProjectsLocationsClustersNodePoolsSetSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setnetworkpolicyrequest = setnetworkpolicyrequest
+ 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetNetworkPolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetSizeCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4137,34 +7964,34 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Fields(s ...googleapi.Fi
// 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 *ProjectsLocationsClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsLocationsClustersSetNetworkPolicyCall {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetSizeCall {
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 *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) 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.setnetworkpolicyrequest)
+ 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, "v1beta1/{+name}:setNetworkPolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4174,14 +8001,14 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setNetworkPolicy" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4207,30 +8034,30 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.Cal
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables/Disables Network Policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setNetworkPolicy",
+ // "description": "Sets the size for a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setSize",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setNetworkPolicy",
+ // "id": "container.projects.locations.clusters.nodePools.setSize",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set networking policy.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nsize.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setNetworkPolicy",
+ // "path": "v1beta1/{+name}:setSize",
// "request": {
- // "$ref": "SetNetworkPolicyRequest"
+ // "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4242,29 +8069,30 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Do(opts ...googleapi.Cal
}
-// method id "container.projects.locations.clusters.setResourceLabels":
+// method id "container.projects.locations.clusters.nodePools.update":
-type ProjectsLocationsClustersSetResourceLabelsCall struct {
- s *Service
- name string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsClustersNodePoolsUpdateCall struct {
+ s *Service
+ name string
+ updatenodepoolrequest *UpdateNodePoolRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetResourceLabels: Sets labels on a cluster.
-func (r *ProjectsLocationsClustersService) SetResourceLabels(name string, setlabelsrequest *SetLabelsRequest) *ProjectsLocationsClustersSetResourceLabelsCall {
- c := &ProjectsLocationsClustersSetResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the version and/or image type of a specific node
+// pool.
+func (r *ProjectsLocationsClustersNodePoolsService) Update(name string, updatenodepoolrequest *UpdateNodePoolRequest) *ProjectsLocationsClustersNodePoolsUpdateCall {
+ c := &ProjectsLocationsClustersNodePoolsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.setlabelsrequest = setlabelsrequest
+ 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 *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersSetResourceLabelsCall {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4272,36 +8100,36 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Fields(s ...googleapi.F
// 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 *ProjectsLocationsClustersSetResourceLabelsCall) Context(ctx context.Context) *ProjectsLocationsClustersSetResourceLabelsCall {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsUpdateCall {
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 *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) 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)
+ 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, "v1beta1/{+name}:setResourceLabels")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -4309,14 +8137,14 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.setResourceLabels" call.
+// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4342,30 +8170,30 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.Ca
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets labels on a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:setResourceLabels",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.setResourceLabels",
+ // "description": "Updates the version and/or image type of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.locations.clusters.nodePools.update",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to set labels.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, cluster, node pool) of the node pool to\nupdate. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setResourceLabels",
+ // "path": "v1beta1/{+name}",
// "request": {
- // "$ref": "SetLabelsRequest"
+ // "$ref": "UpdateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -4377,29 +8205,29 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Do(opts ...googleapi.Ca
}
-// method id "container.projects.locations.clusters.startIpRotation":
+// method id "container.projects.locations.operations.cancel":
-type ProjectsLocationsClustersStartIpRotationCall struct {
+type ProjectsLocationsOperationsCancelCall struct {
s *Service
name string
- startiprotationrequest *StartIPRotationRequest
+ canceloperationrequest *CancelOperationRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
-// StartIpRotation: Start master IP rotation.
-func (r *ProjectsLocationsClustersService) StartIpRotation(name string, startiprotationrequest *StartIPRotationRequest) *ProjectsLocationsClustersStartIpRotationCall {
- c := &ProjectsLocationsClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Cancel: Cancels the specified operation.
+func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
+ c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.startiprotationrequest = startiprotationrequest
+ c.canceloperationrequest = canceloperationrequest
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 *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersStartIpRotationCall {
+func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -4407,34 +8235,34 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Fields(s ...googleapi.Fie
// 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 *ProjectsLocationsClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsLocationsClustersStartIpRotationCall {
+func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
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 *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsCancelCall) 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.startiprotationrequest)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:startIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -4444,14 +8272,14 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*h
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+// Do executes the "container.projects.locations.operations.cancel" call.
+// Exactly one of *Empty or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4470,40 +8298,40 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Start master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:startIpRotation",
+ // "description": "Cancels the specified operation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.startIpRotation",
+ // "id": "container.projects.locations.operations.cancel",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster id) of the cluster to start IP rotation.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:startIpRotation",
+ // "path": "v1beta1/{+name}:cancel",
// "request": {
- // "$ref": "StartIPRotationRequest"
+ // "$ref": "CancelOperationRequest"
// },
// "response": {
- // "$ref": "Operation"
+ // "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4512,66 +8340,103 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.update":
+// method id "container.projects.locations.operations.get":
-type ProjectsLocationsClustersUpdateCall struct {
- s *Service
- name string
- updateclusterrequest *UpdateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsOperationsGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Update: Updates the settings of a specific cluster.
-func (r *ProjectsLocationsClustersService) Update(name string, updateclusterrequest *UpdateClusterRequest) *ProjectsLocationsClustersUpdateCall {
- c := &ProjectsLocationsClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Get: Gets the specified operation.
+func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
+ c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
- c.updateclusterrequest = updateclusterrequest
+ return c
+}
+
+// OperationId sets the optional parameter "operationId": Deprecated.
+// The server-assigned `name` of the operation.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("operationId", operationId)
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) in which the
+// cluster
+// resides.
+// This field has been deprecated and replaced by the name field.
+func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersUpdateCall {
+func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
+ 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 *ProjectsLocationsClustersUpdateCall) Context(ctx context.Context) *ProjectsLocationsClustersUpdateCall {
+func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
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 *ProjectsLocationsClustersUpdateCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsGetCall) 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.updateclusterrequest)
- 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, "v1beta1/{+name}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", urls, body)
+ req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
@@ -4579,14 +8444,14 @@ func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.update" call.
+// Do executes the "container.projects.locations.operations.get" 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 *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4612,31 +8477,43 @@ func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Updates the settings of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.locations.clusters.update",
+ // "description": "Gets the specified operation.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.operations.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
- // "description": "The name (project, location, cluster) of the cluster to update.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
+ // },
+ // "operationId": {
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "query",
+ // "type": "string"
// }
// },
// "path": "v1beta1/{+name}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
// "response": {
// "$ref": "Operation"
// },
@@ -4647,66 +8524,96 @@ func (c *ProjectsLocationsClustersUpdateCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.locations.clusters.nodePools.create":
+// method id "container.projects.locations.operations.list":
-type ProjectsLocationsClustersNodePoolsCreateCall struct {
- s *Service
- parent string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsLocationsOperationsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Create: Creates a node pool for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Create(parent string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsLocationsClustersNodePoolsCreateCall {
- c := &ProjectsLocationsClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// List: Lists all operations in a project in a specific zone or all
+// zones.
+func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
+ c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
- c.createnodepoolrequest = createnodepoolrequest
+ return c
+}
+
+// ProjectId sets the optional parameter "projectId": Deprecated. The
+// Google Developers Console [project ID or
+// project
+// number](https://support.google.com/cloud/answer/6158840).
+// This
+// field has been deprecated and replaced by the parent field.
+func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
+ c.urlParams_.Set("projectId", projectId)
+ return c
+}
+
+// Zone sets the optional parameter "zone": Deprecated. The name of the
+// Google Compute Engine
+// [zone](/compute/docs/zones#available) to return operations for, or
+// `-` for
+// all zones. This field has been deprecated and replaced by the parent
+// field.
+func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
+ c.urlParams_.Set("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 *ProjectsLocationsClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsCreateCall {
+func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
+ 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 *ProjectsLocationsClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsCreateCall {
+func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
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 *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header {
+func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsLocationsOperationsListCall) 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.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, "v1beta1/{+parent}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/operations")
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{
"parent": c.parent,
@@ -4714,14 +8621,14 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*h
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+// Do executes the "container.projects.locations.operations.list" call.
+// Exactly one of *ListOperationsResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -4740,40 +8647,47 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &ListOperationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Creates a node pool for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.create",
+ // "description": "Lists all operations in a project in a specific zone or all zones.",
+ // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ // "httpMethod": "GET",
+ // "id": "container.projects.locations.operations.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project, location, cluster id) where the node pool will be created.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
+ // "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
+ // "location": "query",
+ // "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
+ // "path": "v1beta1/{+parent}/operations",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ListOperationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4782,112 +8696,100 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.nodePools.delete":
-
-type ProjectsLocationsClustersNodePoolsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
-}
-
-// Delete: Deletes a node pool from a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) Delete(name string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c := &ProjectsLocationsClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
+// method id "container.projects.zones.getServerconfig":
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool to delete.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
+type ProjectsZonesGetServerconfigCall struct {
+ s *Service
+ projectId string
+ zone string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("projectId", projectId)
+// GetServerconfig: Returns configuration info about the Kubernetes
+// 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
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsDeleteCall {
- c.urlParams_.Set("zone", zone)
+// Name sets the optional parameter "name": The name (project and
+// location) of the server config to get
+// Specified in the format 'projects/*/locations/*'.
+func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsDeleteCall {
+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 *ProjectsLocationsClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsDeleteCall {
+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 *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header {
+func (c *ProjectsZonesGetServerconfigCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
+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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/serverconfig")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.delete" call.
-// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// 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
-// *Operation.ServerResponse.Header or (if a response was returned at
+// *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 *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -4906,57 +8808,48 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.Call
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &ServerConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Deletes a node pool from a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.locations.clusters.nodePools.delete",
+ // "description": "Returns configuration info about the Kubernetes Engine service.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.getServerconfig",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
- // "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
+ // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
// "location": "query",
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ServerConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -4965,126 +8858,87 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Do(opts ...googleapi.Call
}
-// method id "container.projects.locations.clusters.nodePools.get":
-
-type ProjectsLocationsClustersNodePoolsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// Get: Retrieves the node pool requested.
-func (r *ProjectsLocationsClustersNodePoolsService) Get(name string) *ProjectsLocationsClustersNodePoolsGetCall {
- c := &ProjectsLocationsClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
-
-// NodePoolId sets the optional parameter "nodePoolId": The name of the
-// node pool.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) NodePoolId(nodePoolId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("nodePoolId", nodePoolId)
- return c
-}
+// method id "container.projects.zones.clusters.addons":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersAddonsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setaddonsconfigrequest *SetAddonsConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsClustersNodePoolsGetCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsGetCall {
- c.urlParams_.Set("zone", zone)
+// Addons: Sets the addons for 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 *ProjectsLocationsClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsGetCall {
+func (c *ProjectsZonesClustersAddonsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersAddonsCall {
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 *ProjectsLocationsClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsGetCall {
- 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 *ProjectsLocationsClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsGetCall {
+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 *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersAddonsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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.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 *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
+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 {
@@ -5103,57 +8957,53 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOpt
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &NodePool{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Retrieves the node pool requested.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.get",
+ // "description": "Sets the addons for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.addons",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// },
- // "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "request": {
+ // "$ref": "SetAddonsConfigRequest"
+ // },
// "response": {
- // "$ref": "NodePool"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -5162,118 +9012,87 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Do(opts ...googleapi.CallOpt
}
-// method id "container.projects.locations.clusters.nodePools.list":
-
-type ProjectsLocationsClustersNodePoolsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
-
-// List: Lists the node pools for a cluster.
-func (r *ProjectsLocationsClustersNodePoolsService) List(parent string) *ProjectsLocationsClustersNodePoolsListCall {
- c := &ProjectsLocationsClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ClusterId sets the optional parameter "clusterId": The name of the
-// cluster.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ClusterId(clusterId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("clusterId", clusterId)
- return c
-}
+// method id "container.projects.zones.clusters.completeIpRotation":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://developers.google.com/console/help/new/#projec
-// tnumber).
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) ProjectId(projectId string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersCompleteIpRotationCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ completeiprotationrequest *CompleteIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsClustersNodePoolsListCall) Zone(zone string) *ProjectsLocationsClustersNodePoolsListCall {
- c.urlParams_.Set("zone", zone)
+// 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 *ProjectsLocationsClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsListCall {
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteIpRotationCall {
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 *ProjectsLocationsClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersNodePoolsListCall {
- 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 *ProjectsLocationsClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsListCall {
+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 *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header {
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+parent}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation")
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{
- "parent": c.parent,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.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 *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
+// 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 {
@@ -5292,52 +9111,53 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOp
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListNodePoolsResponse{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists the node pools for a cluster.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.clusters.nodePools.list",
+ // "description": "Completes master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.completeIpRotation",
// "parameterOrder": [
- // "parent"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
- // "location": "query",
- // "type": "string"
- // },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/nodePools",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "request": {
+ // "$ref": "CompleteIPRotationRequest"
+ // },
// "response": {
- // "$ref": "ListNodePoolsResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -5346,31 +9166,47 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.locations.clusters.nodePools.rollback":
+// method id "container.projects.zones.clusters.create":
-type ProjectsLocationsClustersNodePoolsRollbackCall struct {
- s *Service
- name string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersCreateCall struct {
+ s *Service
+ projectId string
+ zone string
+ createclusterrequest *CreateClusterRequest
+ 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 *ProjectsLocationsClustersNodePoolsService) Rollback(name string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsLocationsClustersNodePoolsRollbackCall {
- c := &ProjectsLocationsClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.rollbacknodepoolupgraderequest = rollbacknodepoolupgraderequest
+// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsRollbackCall {
+func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5378,51 +9214,52 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Fields(s ...googleapi.F
// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsRollbackCall {
+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 *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header {
+func (c *ProjectsZonesClustersCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) {
+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.rollbacknodepoolupgraderequest)
+ 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, "v1beta1/{+name}:rollback")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.rollback" call.
+// 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 *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5448,30 +9285,36 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.Ca
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:rollback",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.rollback",
+ // "id": "container.projects.zones.clusters.create",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node poll to\nrollback upgrade.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:rollback",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
+ // "$ref": "CreateClusterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -5483,29 +9326,50 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Do(opts ...googleapi.Ca
}
-// method id "container.projects.locations.clusters.nodePools.setManagement":
+// method id "container.projects.zones.clusters.delete":
-type ProjectsLocationsClustersNodePoolsSetManagementCall struct {
- s *Service
- name string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersDeleteCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetManagement: Sets the NodeManagement options for a node pool.
-func (r *ProjectsLocationsClustersNodePoolsService) SetManagement(name string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsLocationsClustersNodePoolsSetManagementCall {
- c := &ProjectsLocationsClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.setnodepoolmanagementrequest = setnodepoolmanagementrequest
+// 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster) of the cluster to delete.
+// Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5513,51 +9377,48 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Fields(s ...google
// 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsLocationsClustersNodePoolsSetManagementCall {
+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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Header {
+func (c *ProjectsZonesClustersDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) {
+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
- 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, "v1beta1/{+name}:setManagement")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("DELETE", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.clusters.nodePools.setManagement" call.
+// 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 *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5583,31 +9444,46 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googlea
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the NodeManagement options for a node pool.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/nodePools/{nodePoolsId}:setManagement",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.clusters.nodePools.setManagement",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.zones.clusters.delete",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to delete.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to set\nmanagement properties. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}:setManagement",
- // "request": {
- // "$ref": "SetNodePoolManagementRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
// "response": {
// "$ref": "Operation"
// },
@@ -5618,81 +9494,102 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Do(opts ...googlea
}
-// method id "container.projects.locations.operations.cancel":
+// method id "container.projects.zones.clusters.get":
-type ProjectsLocationsOperationsCancelCall struct {
- s *Service
- name string
- canceloperationrequest *CancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersGetCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Cancel: Cancels the specified operation.
-func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
- c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.canceloperationrequest = canceloperationrequest
+// Get: Gets the details for 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster) of the cluster to retrieve.
+// Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
+ c.urlParams_.Set("name", name)
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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
+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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
+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 *ProjectsLocationsOperationsCancelCall) Header() http.Header {
+func (c *ProjectsZonesClustersGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
+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())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
- 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, "v1beta1/{+name}:cancel")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.cancel" call.
-// Exactly one of *Empty or error will be non-nil. Any non-2xx status
+// 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
-// *Empty.ServerResponse.Header or (if a response was returned at all)
+// *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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
+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 {
@@ -5711,160 +9608,145 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Empty{
+ ret := &Cluster{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Cancels the specified operation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "container.projects.locations.operations.cancel",
+ // "description": "Gets the details for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.get",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to retrieve.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "name": {
- // "description": "The name (project, location, operation id) of the operation to cancel.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// }
- // },
- // "path": "v1beta1/{+name}:cancel",
- // "request": {
- // "$ref": "CancelOperationRequest"
- // },
- // "response": {
- // "$ref": "Empty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
-}
-
-// method id "container.projects.locations.operations.get":
-
-type ProjectsLocationsOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
+ // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "response": {
+ // "$ref": "Cluster"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
-// Get: Gets the specified operation.
-func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
- c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
}
-// OperationId sets the optional parameter "operationId": The
-// server-assigned `name` of the operation.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) OperationId(operationId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("operationId", operationId)
- return c
-}
+// method id "container.projects.zones.clusters.legacyAbac":
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) ProjectId(projectId string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("projectId", projectId)
- return c
+type ProjectsZonesClustersLegacyAbacCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlegacyabacrequest *SetLegacyAbacRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine
-// [zone](/compute/docs/zones#available) in which the
-// cluster
-// resides.
-// This field is deprecated, use name instead.
-func (c *ProjectsLocationsOperationsGetCall) Zone(zone string) *ProjectsLocationsOperationsGetCall {
- c.urlParams_.Set("zone", zone)
+// 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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
+func (c *ProjectsZonesClustersLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLegacyAbacCall {
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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
- 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
+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 *ProjectsLocationsOperationsGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersLegacyAbacCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
+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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/{+name}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac")
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{
- "name": c.name,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.get" call.
+// 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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -5890,43 +9772,44 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the specified operation.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "container.projects.locations.operations.get",
+ // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.legacyAbac",
// "parameterOrder": [
- // "name"
+ // "projectId",
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project, location, operation id) of the operation to get.\nSpecified in the format 'projects/*/locations/*/operations/*'.",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
// "required": true,
// "type": "string"
// },
- // "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
+ // "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.\nThis field is deprecated, use name instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+name}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "request": {
+ // "$ref": "SetLegacyAbacRequest"
+ // },
// "response": {
// "$ref": "Operation"
// },
@@ -5937,49 +9820,41 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
}
-// method id "container.projects.locations.operations.list":
+// method id "container.projects.zones.clusters.list":
-type ProjectsLocationsOperationsListCall struct {
+type ProjectsZonesClustersListCall struct {
s *Service
- parent string
+ projectId string
+ zone string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
-// List: Lists all operations in a project in a specific zone or all
+// List: Lists all clusters owned by a project in either the specified
+// zone or all
// zones.
-func (r *ProjectsLocationsOperationsService) List(parent string) *ProjectsLocationsOperationsListCall {
- c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
-}
-
-// ProjectId sets the optional parameter "projectId": The Google
-// Developers Console [project ID or
-// project
-// number](https://support.google.com/cloud/answer/6158840).
-// This
-// field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) ProjectId(projectId string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("projectId", projectId)
+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
}
-// Zone sets the optional parameter "zone": The name of the Google
-// Compute Engine [zone](/compute/docs/zones#available)
-// to return operations for, or `-` for all zones.
-// This field is deprecated, use parent instead.
-func (c *ProjectsLocationsOperationsListCall) Zone(zone string) *ProjectsLocationsOperationsListCall {
- c.urlParams_.Set("zone", zone)
+// Parent sets the optional parameter "parent": The parent (project and
+// location) where the clusters will be listed.
+// Specified in the format 'projects/*/locations/*'.
+// Location "-" matches all zones and all regions.
+func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
+ c.urlParams_.Set("parent", parent)
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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
+func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -5989,7 +9864,7 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj
// 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
+func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall {
c.ifNoneMatch_ = entityTag
return c
}
@@ -5997,21 +9872,21 @@ func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Pro
// 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
+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 *ProjectsLocationsOperationsListCall) Header() http.Header {
+func (c *ProjectsZonesClustersListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -6022,24 +9897,25 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/operations")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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{
- "parent": c.parent,
+ "projectId": c.projectId,
+ "zone": c.zone,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.locations.operations.list" call.
-// Exactly one of *ListOperationsResponse or error will be non-nil. Any
+// 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
-// *ListOperationsResponse.ServerResponse.Header or (if a response was
+// *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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
+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 {
@@ -6058,47 +9934,48 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListOperationsResponse{
+ ret := &ListClustersResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists all operations in a project in a specific zone or all zones.",
- // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations",
+ // "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "httpMethod": "GET",
- // "id": "container.projects.locations.operations.list",
+ // "id": "container.projects.zones.clusters.list",
// "parameterOrder": [
- // "parent"
+ // "projectId",
+ // "zone"
// ],
// "parameters": {
// "parent": {
- // "description": "The parent (project and location) where the operations will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/locations/[^/]+$",
- // "required": true,
+ // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
+ // "location": "query",
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
- // "location": "query",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.\nThis field has been deprecated and replaced by the parent field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/{+parent}/operations",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
// "response": {
- // "$ref": "ListOperationsResponse"
+ // "$ref": "ListClustersResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6107,100 +9984,87 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.zones.getServerconfig":
+// method id "container.projects.zones.clusters.locations":
-type ProjectsZonesGetServerconfigCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersLocationsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlocationsrequest *SetLocationsRequest
+ urlParams_ gensupport.URLParams
+ 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)}
+// Locations: Sets the locations for 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project and
-// location) of the server config to get
-// Specified in the format 'projects/*/locations/*'.
-func (c *ProjectsZonesGetServerconfigCall) Name(name string) *ProjectsZonesGetServerconfigCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall {
+func (c *ProjectsZonesClustersLocationsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLocationsCall {
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 {
+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 *ProjectsZonesGetServerconfigCall) Header() http.Header {
+func (c *ProjectsZonesClustersLocationsCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/serverconfig")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations")
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.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
-// *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 *ProjectsZonesClustersLocationsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -6219,48 +10083,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Returns configuration info about the Container Engine service.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.getServerconfig",
+ // "description": "Sets the locations for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.locations",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "name": {
- // "description": "The name (project and location) of the server config to get\nSpecified in the format 'projects/*/locations/*'.",
- // "location": "query",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "request": {
+ // "$ref": "SetLocationsRequest"
+ // },
// "response": {
- // "$ref": "ServerConfig"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6269,33 +10138,33 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
-// method id "container.projects.zones.clusters.completeIpRotation":
+// method id "container.projects.zones.clusters.logging":
-type ProjectsZonesClustersCompleteIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- completeiprotationrequest *CompleteIPRotationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersLoggingCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setloggingservicerequest *SetLoggingServiceRequest
+ 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)}
+// Logging: Sets the logging service for 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.completeiprotationrequest = completeiprotationrequest
+ 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 *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteIpRotationCall {
+func (c *ProjectsZonesClustersLoggingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLoggingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6303,34 +10172,34 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Fiel
// 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 {
+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 *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header {
+func (c *ProjectsZonesClustersLoggingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) {
+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.completeiprotationrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -6342,14 +10211,14 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*ht
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.completeIpRotation" call.
+// 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 *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6375,15 +10244,15 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Completes master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "description": "Sets the logging service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.completeIpRotation",
+ // "id": "container.projects.zones.clusters.logging",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -6391,27 +10260,27 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
// "request": {
- // "$ref": "CompleteIPRotationRequest"
+ // "$ref": "SetLoggingServiceRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -6423,47 +10292,33 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallO
}
-// method id "container.projects.zones.clusters.create":
+// method id "container.projects.zones.clusters.master":
-type ProjectsZonesClustersCreateCall struct {
- s *Service
- projectId string
- zone string
- createclusterrequest *CreateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersMasterCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ updatemasterrequest *UpdateMasterRequest
+ 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)}
+// Master: Updates the master for 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.createclusterrequest = createclusterrequest
+ 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 *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
+func (c *ProjectsZonesClustersMasterCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMasterCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6471,52 +10326,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 *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 *ProjectsZonesClustersCreateCall) Header() http.Header {
+func (c *ProjectsZonesClustersMasterCall) 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 *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.createclusterrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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.create" call.
+// 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 *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6542,36 +10398,43 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "description": "Updates the master for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.create",
+ // "id": "container.projects.zones.clusters.master",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
// "request": {
- // "$ref": "CreateClusterRequest"
+ // "$ref": "UpdateMasterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -6583,50 +10446,33 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.delete":
+// method id "container.projects.zones.clusters.monitoring":
-type ProjectsZonesClustersDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersMonitoringCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmonitoringservicerequest *SetMonitoringServiceRequest
+ 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)}
+// Monitoring: Sets the monitoring service for 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to delete.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersDeleteCall) Name(name string) *ProjectsZonesClustersDeleteCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
+func (c *ProjectsZonesClustersMonitoringCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMonitoringCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6634,31 +10480,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 *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 *ProjectsZonesClustersDeleteCall) Header() http.Header {
+func (c *ProjectsZonesClustersMonitoringCall) 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 *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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -6668,14 +10519,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.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 *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -6701,15 +10552,15 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.delete",
+ // "description": "Sets the monitoring service for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.monitoring",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -6717,30 +10568,28 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to delete.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "request": {
+ // "$ref": "SetMonitoringServiceRequest"
+ // },
// "response": {
// "$ref": "Operation"
// },
@@ -6751,85 +10600,70 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.get":
+// method id "container.projects.zones.clusters.resourceLabels":
-type ProjectsZonesClustersGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersResourceLabelsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlabelsrequest *SetLabelsRequest
+ 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)}
+// 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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster) of the cluster to retrieve.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersGetCall) Name(name string) *ProjectsZonesClustersGetCall {
- c.urlParams_.Set("name", name)
+ 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 *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall {
+func (c *ProjectsZonesClustersResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersResourceLabelsCall {
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 *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 *ProjectsZonesClustersGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersResourceLabelsCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels")
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,
@@ -6839,14 +10673,14 @@ func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, er
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.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 {
@@ -6865,55 +10699,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Gets the details of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.get",
+ // "description": "Sets labels on a cluster.",
+ // "flatPath": "v1beta1/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 to retrieve.\nThis field is deprecated, use name instead.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
- // "name": {
- // "description": "The name (project, location, cluster) of the cluster to retrieve.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
+ // "parameters": {
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "request": {
+ // "$ref": "SetLabelsRequest"
+ // },
// "response": {
- // "$ref": "Cluster"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -6922,34 +10754,33 @@ func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluste
}
-// method id "container.projects.zones.clusters.legacyAbac":
+// method id "container.projects.zones.clusters.setMaintenancePolicy":
-type ProjectsZonesClustersLegacyAbacCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setlegacyabacrequest *SetLegacyAbacRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetMaintenancePolicyCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmaintenancepolicyrequest *SetMaintenancePolicyRequest
+ 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)}
+// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
+func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
+ c := &ProjectsZonesClustersSetMaintenancePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
- c.setlegacyabacrequest = setlegacyabacrequest
+ c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -6957,34 +10788,34 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Fields(s ...googleapi.Field) *Proj
// 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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
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 {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmaintenancepolicyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -6996,14 +10827,14 @@ func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Respo
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.legacyAbac" call.
+// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" 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) {
+func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -7029,15 +10860,15 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "description": "Sets the maintenance policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.legacyAbac",
+ // "id": "container.projects.zones.clusters.setMaintenancePolicy",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7045,27 +10876,27 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
+ // "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).\nThis field is deprecated, use name instead.",
+ // "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.\nThis field is deprecated, use name instead.",
+ // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
// "request": {
- // "$ref": "SetLegacyAbacRequest"
+ // "$ref": "SetMaintenancePolicyRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7077,102 +10908,91 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (
}
-// method id "container.projects.zones.clusters.list":
+// method id "container.projects.zones.clusters.setMasterAuth":
-type ProjectsZonesClustersListCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetMasterAuthCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmasterauthrequest *SetMasterAuthRequest
+ 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)}
+// SetMasterAuth: Used to set master auth materials. Currently supports
+// :-
+// Changing the admin password for a specific cluster.
+// This can be either via password generation or explicitly set.
+// Modify basic_auth.csv and reset the K8S API server.
+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
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project and
-// location) where the clusters will be listed.
-// Specified in the format 'projects/*/locations/*'.
-// Location "-" matches all zones and all regions.
-func (c *ProjectsZonesClustersListCall) Parent(parent string) *ProjectsZonesClustersListCall {
- c.urlParams_.Set("parent", parent)
+ 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 *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
+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 *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 *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 *ProjectsZonesClustersListCall) Header() http.Header {
+func (c *ProjectsZonesClustersSetMasterAuthCall) 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 *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())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth")
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.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 {
@@ -7191,48 +11011,53 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.list",
+ // "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password for a specific cluster.\nThis can be either via password generation or explicitly set.\nModify basic_auth.csv and reset the K8S API server.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.setMasterAuth",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
- // "parent": {
- // "description": "The parent (project and location) where the clusters will be listed.\nSpecified in the format 'projects/*/locations/*'.\nLocation \"-\" matches all zones and all regions.",
- // "location": "query",
+ // "clusterId": {
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "request": {
+ // "$ref": "SetMasterAuthRequest"
+ // },
// "response": {
- // "$ref": "ListClustersResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -7241,33 +11066,33 @@ func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListC
}
-// method id "container.projects.zones.clusters.resourceLabels":
+// method id "container.projects.zones.clusters.setNetworkPolicy":
-type ProjectsZonesClustersResourceLabelsCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setlabelsrequest *SetLabelsRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersSetNetworkPolicyCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setnetworkpolicyrequest *SetNetworkPolicyRequest
+ 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)}
+// 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.setlabelsrequest = setlabelsrequest
+ 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 *ProjectsZonesClustersResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersResourceLabelsCall {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetNetworkPolicyCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7275,34 +11100,34 @@ func (c *ProjectsZonesClustersResourceLabelsCall) 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 *ProjectsZonesClustersResourceLabelsCall) Context(ctx context.Context) *ProjectsZonesClustersResourceLabelsCall {
+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 *ProjectsZonesClustersResourceLabelsCall) Header() http.Header {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersResourceLabelsCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setlabelsrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7314,14 +11139,14 @@ func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.R
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.resourceLabels" call.
+// 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
// *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) {
+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 {
@@ -7347,15 +11172,15 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets labels on a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "description": "Enables/Disables Network Policy for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.resourceLabels",
+ // "id": "container.projects.zones.clusters.setNetworkPolicy",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7363,27 +11188,27 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
// "request": {
- // "$ref": "SetLabelsRequest"
+ // "$ref": "SetNetworkPolicyRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7395,33 +11220,33 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOptio
}
-// method id "container.projects.zones.clusters.setMaintenancePolicy":
+// method id "container.projects.zones.clusters.startIpRotation":
-type ProjectsZonesClustersSetMaintenancePolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setmaintenancepolicyrequest *SetMaintenancePolicyRequest
- 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
}
-// SetMaintenancePolicy: Sets the maintenance policy for a cluster.
-func (r *ProjectsZonesClustersService) SetMaintenancePolicy(projectId string, zone string, clusterId string, setmaintenancepolicyrequest *SetMaintenancePolicyRequest) *ProjectsZonesClustersSetMaintenancePolicyCall {
- c := &ProjectsZonesClustersSetMaintenancePolicyCall{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.clusterId = clusterId
- c.setmaintenancepolicyrequest = setmaintenancepolicyrequest
+ 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMaintenancePolicyCall {
+func (c *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7429,34 +11254,34 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Fields(s ...googleapi.Fi
// 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 *ProjectsZonesClustersSetMaintenancePolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetMaintenancePolicyCall {
+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 *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header {
+func (c *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetMaintenancePolicyCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmaintenancepolicyrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7468,14 +11293,14 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (*
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.setMaintenancePolicy" 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 *ProjectsZonesClustersSetMaintenancePolicyCall) 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 {
@@ -7501,15 +11326,15 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the maintenance policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ // "description": "Start master IP rotation.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMaintenancePolicy",
+ // "id": "container.projects.zones.clusters.startIpRotation",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7517,27 +11342,27 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "request": {
- // "$ref": "SetMaintenancePolicyRequest"
+ // "$ref": "StartIPRotationRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7549,37 +11374,33 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Do(opts ...googleapi.Cal
}
-// method id "container.projects.zones.clusters.setMasterAuth":
+// method id "container.projects.zones.clusters.update":
-type ProjectsZonesClustersSetMasterAuthCall struct {
+type ProjectsZonesClustersUpdateCall struct {
s *Service
projectId string
zone string
clusterId string
- setmasterauthrequest *SetMasterAuthRequest
+ updateclusterrequest *UpdateClusterRequest
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.
-// Modify basic_auth.csv and reset the K8S API server.
-func (r *ProjectsZonesClustersService) SetMasterAuth(projectId string, zone string, clusterId string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsZonesClustersSetMasterAuthCall {
- c := &ProjectsZonesClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the settings for 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.setmasterauthrequest = setmasterauthrequest
+ 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 *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMasterAuthCall {
+func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7587,36 +11408,36 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *P
// 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 {
+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 *ProjectsZonesClustersSetMasterAuthCall) Header() http.Header {
+func (c *ProjectsZonesClustersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetMasterAuthCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmasterauthrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -7626,14 +11447,14 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Re
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.setMasterAuth" 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 *ProjectsZonesClustersSetMasterAuthCall) 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 {
@@ -7659,15 +11480,15 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); 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.\nModify basic_auth.csv and reset the K8S API server.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setMasterAuth",
+ // "description": "Updates the settings for a specific cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.zones.clusters.update",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7675,27 +11496,27 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to upgrade.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
// "request": {
- // "$ref": "SetMasterAuthRequest"
+ // "$ref": "UpdateClusterRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7707,33 +11528,35 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption
}
-// method id "container.projects.zones.clusters.setNetworkPolicy":
+// method id "container.projects.zones.clusters.nodePools.autoscaling":
-type ProjectsZonesClustersSetNetworkPolicyCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- setnetworkpolicyrequest *SetNetworkPolicyRequest
- urlParams_ gensupport.URLParams
- 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
}
-// 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)}
+// 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.setnetworkpolicyrequest = setnetworkpolicyrequest
+ 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 *ProjectsZonesClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetNetworkPolicyCall {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsAutoscalingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7741,53 +11564,54 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) 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 *ProjectsZonesClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetNetworkPolicyCall {
+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 *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersSetNetworkPolicyCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnetworkpolicyrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling")
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,
+ "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.setNetworkPolicy" call.
+// 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 *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -7813,43 +11637,50 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOpt
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Enables/Disables Network Policy for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "description": "Sets the autoscaling settings of a specific node pool.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.setNetworkPolicy",
+ // "id": "container.projects.zones.clusters.nodePools.autoscaling",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
// "request": {
- // "$ref": "SetNetworkPolicyRequest"
+ // "$ref": "SetNodePoolAutoscalingRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -7861,33 +11692,33 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOpt
}
-// method id "container.projects.zones.clusters.startIpRotation":
+// method id "container.projects.zones.clusters.nodePools.create":
-type ProjectsZonesClustersStartIpRotationCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- startiprotationrequest *StartIPRotationRequest
- urlParams_ gensupport.URLParams
- 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
}
-// 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)}
+// 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.startiprotationrequest = startiprotationrequest
+ 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 *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -7895,34 +11726,34 @@ func (c *ProjectsZonesClustersStartIpRotationCall) 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 *ProjectsZonesClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsZonesClustersStartIpRotationCall {
+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 *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersStartIpRotationCall) 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())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.startiprotationrequest)
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -7934,14 +11765,14 @@ func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http.
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.startIpRotation" call.
+// 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 *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+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 {
@@ -7967,15 +11798,15 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Start master IP rotation.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ // "description": "Creates a node pool for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.startIpRotation",
+ // "id": "container.projects.zones.clusters.nodePools.create",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -7983,27 +11814,27 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "request": {
- // "$ref": "StartIPRotationRequest"
+ // "$ref": "CreateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -8015,33 +11846,43 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOpti
}
-// 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster, node pool id) of the node pool to
+// delete. Specified in the
+// format
+// 'projects/*/locations/*/clusters/*/nodePools/*'.
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
+ c.urlParams_.Set("name", name)
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
}
@@ -8049,53 +11890,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8121,44 +11958,53 @@ func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Ope
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Updates the settings of a specific cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "httpMethod": "PUT",
- // "id": "container.projects.zones.clusters.update",
+ // "description": "Deletes a node pool from a cluster.",
+ // "flatPath": "v1beta1/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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\ndelete. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to delete.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
// "$ref": "Operation"
// },
@@ -8169,87 +12015,107 @@ 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
+}
+
+// Name sets the optional parameter "name": The name (project, location,
+// cluster, node pool id) of the node pool to
+// get. Specified in the
+// format
+// 'projects/*/locations/*/clusters/*/nodePools/*'.
+func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
+ c.urlParams_.Set("name", name)
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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8268,53 +12134,62 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Creates a node pool for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.create",
+ // "description": "Retrieves the node pool requested.",
+ // "flatPath": "v1beta1/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": {
- // "description": "The name of the cluster.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the name field.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "name": {
+ // "description": "The name (project, location, cluster, node pool id) of the node pool to\nget. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "NodePool"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -8323,92 +12198,102 @@ 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
}
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to delete.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Name(name string) *ProjectsZonesClustersNodePoolsDeleteCall {
- c.urlParams_.Set("name", name)
+// Parent sets the optional parameter "parent": The parent (project,
+// location, cluster id) where the node pools will be
+// listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
+ c.urlParams_.Set("parent", parent)
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())
+ 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8427,62 +12312,55 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Deletes a node pool from a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.nodePools.delete",
+ // "description": "Lists the node pools for a cluster.",
+ // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.nodePools.list",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId",
- // "nodePoolId"
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to delete.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
+ // "parent": {
+ // "description": "The parent (project, location, cluster id) where the node pools will be\nlisted. Specified in the format 'projects/*/locations/*/clusters/*'.",
// "location": "query",
// "type": "string"
// },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.\nThis field is deprecated, use name instead.",
- // "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).\nThis field has been deprecated and replaced by the parent field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ListNodePoolsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -8491,88 +12369,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
- return c
-}
-
-// Name sets the optional parameter "name": The name (project, location,
-// cluster, node pool id) of the node pool to get.
-// Specified in the format
-// 'projects/*/locations/*/clusters/*/nodePools/*'.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Name(name string) *ProjectsZonesClustersNodePoolsGetCall {
- c.urlParams_.Set("name", name)
+ 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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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,
@@ -8583,14 +12447,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 {
@@ -8609,22 +12473,22 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Retrieves the node pool requested.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- // "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": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.rollback",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -8633,38 +12497,36 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to rollback.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "name": {
- // "description": "The name (project, location, cluster, node pool id) of the node pool to get.\nSpecified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.",
- // "location": "query",
- // "type": "string"
- // },
// "nodePoolId": {
- // "description": "The name of the node pool.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to rollback.\nThis field has been deprecated and replaced by the name field.",
// "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).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1beta1/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"
@@ -8673,102 +12535,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
- return c
-}
-
-// Parent sets the optional parameter "parent": The parent (project,
-// location, cluster id) where the node pools will be listed.
-// Specified in the format 'projects/*/locations/*/clusters/*'.
-func (c *ProjectsZonesClustersNodePoolsListCall) Parent(parent string) *ProjectsZonesClustersNodePoolsListCall {
- c.urlParams_.Set("parent", parent)
+ 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())
- 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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/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 {
@@ -8787,55 +12637,60 @@ 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,
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Lists the node pools for a cluster.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.list",
+ // "description": "Sets the NodeManagement options for a node pool.",
+ // "flatPath": "v1beta1/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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
- // "parent": {
- // "description": "The parent (project, location, cluster id) where the node pools will be listed.\nSpecified in the format 'projects/*/locations/*/clusters/*'.",
- // "location": "query",
+ // "nodePoolId": {
+ // "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
+ // "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).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "path": "v1beta1/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"
@@ -8844,37 +12699,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 for 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
}
@@ -8882,34 +12735,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -8922,14 +12775,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 {
@@ -8955,15 +12808,15 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "description": "Sets the size for a specific node pool.",
+ // "flatPath": "v1beta1/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",
@@ -8972,33 +12825,33 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to rollback.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to rollback.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to update.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
+ // "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -9010,35 +12863,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
}
@@ -9046,34 +12900,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())
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, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -9086,14 +12940,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 {
@@ -9119,15 +12973,15 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
- // "description": "Sets the NodeManagement options for a node pool.",
- // "flatPath": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "description": "Updates the version and/or image type of a specific node pool.",
+ // "flatPath": "v1beta1/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",
@@ -9136,33 +12990,33 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to update.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the node pool to upgrade.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "path": "v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
// "request": {
- // "$ref": "SetNodePoolManagementRequest"
+ // "$ref": "UpdateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -9280,7 +13134,7 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9296,19 +13150,19 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
// ],
// "parameters": {
// "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -9449,7 +13303,7 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9470,19 +13324,19 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
// "type": "string"
// },
// "operationId": {
- // "description": "The server-assigned `name` of the operation.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The server-assigned `name` of the operation.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the name field.",
// "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.\nThis field is deprecated, use name instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.\nThis field has been deprecated and replaced by the name field.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -9619,7 +13473,7 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
},
}
target := &ret
- if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -9639,13 +13493,13 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).\nThis field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.\nThis field is deprecated, use parent instead.",
+ // "description": "Deprecated. The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) to return operations for, or `-` for\nall zones. This field has been deprecated and replaced by the parent field.",
// "location": "path",
// "required": true,
// "type": "string"