Godeps update of google.golang.org/api
- version supporting needed container/v1beta1 api - removal of override Change-Id: I1409577301580e9f3e3451e485d76baf62904118
This commit is contained in:
parent
cb34758afd
commit
1d45d0bd59
|
|
@ -2197,39 +2197,34 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v0.alpha",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v0.beta",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v1",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/container/v1",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/container/v1beta1",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/gensupport",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/googleapi",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/tpu/v1",
|
||||
"Rev": "37bb4d78b7a75f522ce9a0490d508bde4fbbfa4b"
|
||||
"Rev": "e21acd801f91da814261b938941d193bb036441a"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/genproto/googleapis/rpc/status",
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
# This is the official list of authors for copyright purposes.
|
||||
# This file is distinct from the CONTRIBUTORS files.
|
||||
# See the latter for an explanation.
|
||||
|
||||
# Names should be added to this file as
|
||||
# Name or Organization <email address>
|
||||
# The email address is not required for organizations.
|
||||
|
||||
# Please keep the list sorted.
|
||||
Google Inc.
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
# This is the official list of people who can contribute
|
||||
# (and typically have contributed) code to the repository.
|
||||
# The AUTHORS file lists the copyright holders; this file
|
||||
# lists people. For example, Google employees are listed here
|
||||
# but not in AUTHORS, because Google holds the copyright.
|
||||
#
|
||||
# The submission process automatically checks to make sure
|
||||
# that people submitting code are listed in this file (by email address).
|
||||
#
|
||||
# Names should be added to this file only after verifying that
|
||||
# the individual or the individual's organization has agreed to
|
||||
# the appropriate Contributor License Agreement, found here:
|
||||
#
|
||||
# https://cla.developers.google.com/about/google-individual
|
||||
# https://cla.developers.google.com/about/google-corporate
|
||||
#
|
||||
# The CLA can be filled out on the web:
|
||||
#
|
||||
# https://cla.developers.google.com/
|
||||
#
|
||||
# When adding J Random Contributor's name to this file,
|
||||
# either J's name or J's organization's name should be
|
||||
# added to the AUTHORS file, depending on whether the
|
||||
# individual or corporate CLA was used.
|
||||
|
||||
# Names should be added to this file like so:
|
||||
# Name <email address>
|
||||
#
|
||||
# An entry with two email addresses specifies that the
|
||||
# first address should be used in the submit logs and
|
||||
# that the second address should be recognized as the
|
||||
# same person when interacting with Rietveld.
|
||||
|
||||
# Please keep the list sorted.
|
||||
|
||||
Alain Vongsouvanhalainv <alainv@google.com>
|
||||
Andrew Gerrand <adg@golang.org>
|
||||
Brad Fitzpatrick <bradfitz@golang.org>
|
||||
Eric Koleda <ekoleda+devrel@googlers.com>
|
||||
Francesc Campoy <campoy@golang.org>
|
||||
Garrick Evans <garrick@google.com>
|
||||
Glenn Lewis <gmlewis@google.com>
|
||||
Ivan Krasin <krasin@golang.org>
|
||||
Jason Hall <jasonhall@google.com>
|
||||
Johan Euphrosine <proppy@google.com>
|
||||
Kostik Shtoyk <kostik@google.com>
|
||||
Michael McGreevy <mcgreevy@golang.org>
|
||||
Nick Craig-Wood <nickcw@gmail.com>
|
||||
Ross Light <light@google.com>
|
||||
Sarah Adams <shadams@google.com>
|
||||
Scott Van Woudenberg <scottvw@google.com>
|
||||
Takashi Matsuo <tmatsuo@google.com>
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
Copyright (c) 2011 Google Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -23,13 +23,6 @@ for item in $with_vendor; do
|
|||
git commit -a -m no_vendor
|
||||
done
|
||||
|
||||
echo Overriding GKE API
|
||||
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/
|
||||
git add .
|
||||
git commit -a -m "Api override for NAP"
|
||||
|
||||
echo Overriding AKS API
|
||||
mkdir -p $GOPATH/src/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice
|
||||
cp $GOPATH/src/k8s.io/autoscaler/cluster-autoscaler/_override/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/* $GOPATH/src/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/
|
||||
|
|
@ -41,4 +34,4 @@ echo Overriding Azure autorest
|
|||
cp -r $GOPATH/src/k8s.io/autoscaler/cluster-autoscaler/_override/github.com/Azure/go-autorest/* $GOPATH/src/github.com/Azure/go-autorest/
|
||||
cd $GOPATH/src/github.com/Azure/go-autorest/
|
||||
git add .
|
||||
git commit -a -m "Api override for autorest"
|
||||
git commit -a -m "Api override for autorest"
|
||||
|
|
|
|||
4177
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
4177
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
13269
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
13269
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
3251
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
3251
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
9832
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
9832
cluster-autoscaler/vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
148
cluster-autoscaler/vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
148
cluster-autoscaler/vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
|
|
@ -12,7 +12,7 @@
|
|||
"baseUrl": "https://container.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Container",
|
||||
"description": "Builds and manages container-based applications, powered by the open source Kubernetes technology.",
|
||||
"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,
|
||||
|
|
@ -2361,7 +2361,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20181109",
|
||||
"revision": "20180807",
|
||||
"rootUrl": "https://container.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
|
@ -2479,13 +2479,6 @@
|
|||
"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"
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Which conditions caused the current cluster state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"createTime": {
|
||||
"description": "[Output only] The time the cluster was created, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
|
||||
"type": "string"
|
||||
|
|
@ -2495,12 +2488,12 @@
|
|||
"type": "string"
|
||||
},
|
||||
"currentNodeCount": {
|
||||
"description": "[Output only] The number of nodes currently in the cluster. Deprecated.\nCall Kubernetes API directly to retrieve node information.",
|
||||
"description": "[Output only] The number of nodes currently in the cluster.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"currentNodeVersion": {
|
||||
"description": "[Output only] Deprecated, use\n[NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)\ninstead. The current version of the node software components. If they are\ncurrently at multiple versions because they're in the process of being\nupgraded, this reflects the minimum version of all nodes.",
|
||||
"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": {
|
||||
|
|
@ -2552,7 +2545,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "The list of Google Compute Engine\n[zones](/compute/docs/zones#available) in which the cluster's nodes\nshould be located.",
|
||||
"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"
|
||||
},
|
||||
|
|
@ -2568,7 +2561,7 @@
|
|||
},
|
||||
"masterAuth": {
|
||||
"$ref": "MasterAuth",
|
||||
"description": "The authentication information for accessing the master endpoint.\nIf unspecified, the defaults are used:\nFor clusters before v1.12, if master_auth is unspecified, `username` will\nbe set to \"admin\", a random password will be generated, and a client\ncertificate will be issued."
|
||||
"description": "The authentication information for accessing the master endpoint."
|
||||
},
|
||||
"masterAuthorizedNetworksConfig": {
|
||||
"$ref": "MasterAuthorizedNetworksConfig",
|
||||
|
|
@ -2610,10 +2603,6 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"privateClusterConfig": {
|
||||
"$ref": "PrivateClusterConfig",
|
||||
"description": "Configuration for private cluster."
|
||||
},
|
||||
"resourceLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
|
|
@ -2679,7 +2668,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"desiredLocations": {
|
||||
"description": "The desired list of Google Compute Engine\n[zones](/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.",
|
||||
"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"
|
||||
},
|
||||
|
|
@ -2989,7 +2978,7 @@
|
|||
},
|
||||
"clientCertificateConfig": {
|
||||
"$ref": "ClientCertificateConfig",
|
||||
"description": "Configuration for client certificate authentication on the cluster. For\nclusters before v1.12, if no configuration is specified, a client\ncertificate is issued."
|
||||
"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.",
|
||||
|
|
@ -3004,7 +2993,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"description": "The username to use for HTTP basic authentication to the master endpoint.\nFor clusters v1.6.0 and later, basic authentication can be disabled by\nleaving username unspecified (or setting it to the empty string).",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
|
|
@ -3121,7 +3110,7 @@
|
|||
"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 \"enable-os-login\"\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.",
|
||||
"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": {
|
||||
|
|
@ -3149,13 +3138,6 @@
|
|||
"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"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
@ -3187,13 +3169,6 @@
|
|||
"$ref": "NodePoolAutoscaling",
|
||||
"description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present."
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Which conditions caused the current node pool state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"config": {
|
||||
"$ref": "NodeConfig",
|
||||
"description": "The node configuration of the pool."
|
||||
|
|
@ -3276,48 +3251,10 @@
|
|||
},
|
||||
"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": {
|
||||
"clusterConditions": {
|
||||
"description": "Which conditions caused the current cluster state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"detail": {
|
||||
"description": "Detailed operation progress, if available.",
|
||||
"type": "string"
|
||||
|
|
@ -3334,13 +3271,6 @@
|
|||
"description": "The server-assigned ID for the operation.",
|
||||
"type": "string"
|
||||
},
|
||||
"nodepoolConditions": {
|
||||
"description": "Which conditions caused the current node pool state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"operationType": {
|
||||
"description": "The operation type.",
|
||||
"enum": [
|
||||
|
|
@ -3424,33 +3354,6 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PrivateClusterConfig": {
|
||||
"description": "Configuration options for private clusters.",
|
||||
"id": "PrivateClusterConfig",
|
||||
"properties": {
|
||||
"enablePrivateEndpoint": {
|
||||
"description": "Whether the master's internal IP address is used as the cluster endpoint.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enablePrivateNodes": {
|
||||
"description": "Whether nodes have internal IP addresses only. If enabled, all nodes are\ngiven only RFC 1918 private addresses and communicate with the master via\nprivate networking.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"masterIpv4CidrBlock": {
|
||||
"description": "The IP range in CIDR notation to use for the hosted master network. This\nrange will be used for assigning internal IP addresses to the master or\nset of masters, as well as the ILB VIP. This range must not overlap with\nany other ranges in use within the cluster's network.",
|
||||
"type": "string"
|
||||
},
|
||||
"privateEndpoint": {
|
||||
"description": "Output only. The internal IP address of this cluster's master endpoint.",
|
||||
"type": "string"
|
||||
},
|
||||
"publicEndpoint": {
|
||||
"description": "Output only. The external IP address of this cluster's master endpoint.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"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.",
|
||||
"id": "RollbackNodePoolUpgradeRequest",
|
||||
|
|
@ -3611,7 +3514,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "The desired list of Google Compute Engine\n[zones](/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.",
|
||||
"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"
|
||||
},
|
||||
|
|
@ -3904,35 +3807,6 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"StatusCondition": {
|
||||
"description": "StatusCondition describes why a cluster or a node pool has a certain status\n(e.g., ERROR or DEGRADED).",
|
||||
"id": "StatusCondition",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "Machine-friendly representation of the condition",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"GCE_STOCKOUT",
|
||||
"GKE_SERVICE_ACCOUNT_DELETED",
|
||||
"GCE_QUOTA_EXCEEDED",
|
||||
"SET_BY_OPERATOR"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"UNKNOWN indicates a generic condition.",
|
||||
"GCE_STOCKOUT indicates a Google Compute Engine stockout.",
|
||||
"GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot\nservice account.",
|
||||
"Google Compute Engine quota was exceeded.",
|
||||
"Cluster state was manually changed by an SRE due to a system logic error.\nMore codes TBA"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"description": "Human-friendly representation of the condition",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateClusterRequest": {
|
||||
"description": "UpdateClusterRequest updates the settings of a cluster.",
|
||||
"id": "UpdateClusterRequest",
|
||||
|
|
|
|||
608
cluster-autoscaler/vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
608
cluster-autoscaler/vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
4309
cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json
generated
vendored
4309
cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
13517
cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go
generated
vendored
13517
cluster-autoscaler/vendor/google.golang.org/api/container/v1beta1/container-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
|
|
@ -9,8 +9,6 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// BackoffStrategy defines the set of functions that a backoff-er must
|
||||
// implement.
|
||||
type BackoffStrategy interface {
|
||||
// Pause returns the duration of the next pause and true if the operation should be
|
||||
// retried, or false if no further retries should be attempted.
|
||||
|
|
@ -30,7 +28,6 @@ type ExponentialBackoff struct {
|
|||
n uint
|
||||
}
|
||||
|
||||
// Pause returns the amount of time the caller should wait.
|
||||
func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
||||
if eb.total > eb.Max {
|
||||
return 0, false
|
||||
|
|
@ -43,8 +40,6 @@ func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
|||
return d, true
|
||||
}
|
||||
|
||||
// Reset resets the backoff strategy such that the next Pause call will begin
|
||||
// counting from the start. It is not safe to call concurrently with Pause.
|
||||
func (eb *ExponentialBackoff) Reset() {
|
||||
eb.n = 0
|
||||
eb.total = 0
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ import (
|
|||
"google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in
|
||||
// retryable chunks. It should be created with NewMediaBuffer.
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in retryable chunks.
|
||||
type MediaBuffer struct {
|
||||
media io.Reader
|
||||
|
||||
|
|
@ -23,7 +22,6 @@ type MediaBuffer struct {
|
|||
off int64
|
||||
}
|
||||
|
||||
// NewMediaBuffer initializes a MediaBuffer.
|
||||
func NewMediaBuffer(media io.Reader, chunkSize int) *MediaBuffer {
|
||||
return &MediaBuffer{media: media, chunk: make([]byte, 0, chunkSize)}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2016 Google LLC
|
||||
// Copyright 2016 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -242,7 +242,6 @@ func NewInfoFromResumableMedia(r io.ReaderAt, size int64, mediaType string) *Med
|
|||
}
|
||||
}
|
||||
|
||||
// SetProgressUpdater sets the progress updater for the media info.
|
||||
func (mi *MediaInfo) SetProgressUpdater(pu googleapi.ProgressUpdater) {
|
||||
if mi != nil {
|
||||
mi.progressUpdater = pu
|
||||
|
|
@ -335,8 +334,3 @@ func (mi *MediaInfo) ResumableUpload(locURI string) *ResumableUpload {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
// SetGetBody sets the GetBody field of req to f.
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {
|
||||
req.GetBody = f
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ func (u URLParams) Encode() string {
|
|||
return url.Values(u).Encode()
|
||||
}
|
||||
|
||||
// SetOptions sets the URL params and any additional call options.
|
||||
func SetOptions(u URLParams, opts ...googleapi.CallOption) {
|
||||
for _, o := range opts {
|
||||
u.Set(o.Get())
|
||||
|
|
|
|||
|
|
@ -5,13 +5,14 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2017 Google LLC
|
||||
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -15,11 +15,12 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Retry invokes the given function, retrying it multiple times if the connection failed or
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/net/context/ctxhttp"
|
||||
)
|
||||
|
||||
// Hook is the type of a function that is called once before each HTTP request
|
||||
|
|
@ -30,8 +32,7 @@ func RegisterHook(h Hook) {
|
|||
|
||||
// SendRequest sends a single HTTP request using the given client.
|
||||
// If ctx is non-nil, it calls all hooks, then sends the request with
|
||||
// req.WithContext, then calls any functions returned by the hooks in
|
||||
// reverse order.
|
||||
// ctxhttp.Do, then calls any functions returned by the hooks in reverse order.
|
||||
func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
// Disallow Accept-Encoding because it interferes with the automatic gzip handling
|
||||
// done by the default http.Transport. See https://github.com/google/google-api-go-client/issues/219.
|
||||
|
|
@ -49,7 +50,7 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
}
|
||||
|
||||
// Send request.
|
||||
resp, err := send(ctx, client, req)
|
||||
resp, err := ctxhttp.Do(ctx, client, req)
|
||||
|
||||
// Call returned funcs in reverse order.
|
||||
for i := len(post) - 1; i >= 0; i-- {
|
||||
|
|
@ -60,23 +61,6 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
return resp, err
|
||||
}
|
||||
|
||||
func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
if client == nil {
|
||||
client = http.DefaultClient
|
||||
}
|
||||
resp, err := client.Do(req.WithContext(ctx))
|
||||
// If we got an error, and the context has been canceled,
|
||||
// the context's error is probably more useful.
|
||||
if err != nil {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
err = ctx.Err()
|
||||
default:
|
||||
}
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// DecodeResponse decodes the body of res into target. If there is no body,
|
||||
// target is unchanged.
|
||||
func DecodeResponse(target interface{}, res *http.Response) error {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Package googleapi contains the common code shared by all Google API
|
||||
// libraries.
|
||||
package googleapi
|
||||
package googleapi // import "google.golang.org/api/googleapi"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
@ -37,28 +37,24 @@ type SizeReaderAt interface {
|
|||
// ServerResponse is embedded in each Do response and
|
||||
// provides the HTTP status code and header sent by the server.
|
||||
type ServerResponse struct {
|
||||
// HTTPStatusCode is the server's response status code. When using a
|
||||
// resource method's Do call, this will always be in the 2xx range.
|
||||
// HTTPStatusCode is the server's response status code.
|
||||
// When using a resource method's Do call, this will always be in the 2xx range.
|
||||
HTTPStatusCode int
|
||||
// Header contains the response header fields from the server.
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
const (
|
||||
// Version defines the gax version being used. This is typically sent
|
||||
// in an HTTP header to services.
|
||||
Version = "0.5"
|
||||
|
||||
// UserAgent is the header string used to identify this package.
|
||||
UserAgent = "google-api-go-client/" + Version
|
||||
|
||||
// DefaultUploadChunkSize is the default chunk size to use for resumable
|
||||
// uploads if not specified by the user.
|
||||
// The default chunk size to use for resumable uploads if not specified by the user.
|
||||
DefaultUploadChunkSize = 8 * 1024 * 1024
|
||||
|
||||
// MinUploadChunkSize is the minimum chunk size that can be used for
|
||||
// resumable uploads. All user-specified chunk sizes must be multiple of
|
||||
// this value.
|
||||
// The minimum chunk size that can be used for resumable uploads. All
|
||||
// user-specified chunk sizes must be multiple of this value.
|
||||
MinUploadChunkSize = 256 * 1024
|
||||
)
|
||||
|
||||
|
|
@ -165,13 +161,9 @@ func CheckMediaResponse(res *http.Response) error {
|
|||
}
|
||||
}
|
||||
|
||||
// MarshalStyle defines whether to marshal JSON with a {"data": ...} wrapper.
|
||||
type MarshalStyle bool
|
||||
|
||||
// WithDataWrapper marshals JSON with a {"data": ...} wrapper.
|
||||
var WithDataWrapper = MarshalStyle(true)
|
||||
|
||||
// WithoutDataWrapper marshals JSON without a {"data": ...} wrapper.
|
||||
var WithoutDataWrapper = MarshalStyle(false)
|
||||
|
||||
func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error) {
|
||||
|
|
@ -220,7 +212,6 @@ func (w countingWriter) Write(p []byte) (int, error) {
|
|||
// The remaining usable pieces of resumable uploads is exposed in each auto-generated API.
|
||||
type ProgressUpdater func(current, total int64)
|
||||
|
||||
// MediaOption defines the interface for setting media options.
|
||||
type MediaOption interface {
|
||||
setOptions(o *MediaOptions)
|
||||
}
|
||||
|
|
@ -277,11 +268,6 @@ func ProcessMediaOptions(opts []MediaOption) *MediaOptions {
|
|||
return mo
|
||||
}
|
||||
|
||||
// ResolveRelative resolves relatives such as "http://www.golang.org/" and
|
||||
// "topics/myproject/mytopic" into a single string, such as
|
||||
// "http://www.golang.org/topics/myproject/mytopic". It strips all parent
|
||||
// references (e.g. ../..) as well as anything after the host
|
||||
// (e.g. /bar/gaz gets stripped out of foo.com/bar/gaz).
|
||||
func ResolveRelative(basestr, relstr string) string {
|
||||
u, _ := url.Parse(basestr)
|
||||
afterColonPath := ""
|
||||
|
|
|
|||
|
|
@ -120,33 +120,33 @@ func quotedList(n int, fn func(dst []byte, i int) []byte) ([]byte, error) {
|
|||
return dst, nil
|
||||
}
|
||||
|
||||
func (q Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, q[i], 10)
|
||||
func (s Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, s[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (q Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(q[i]), 10)
|
||||
func (s Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(s[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (q Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, q[i], 10)
|
||||
func (s Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, s[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (q Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(q[i]), 10)
|
||||
func (s Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(s[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (q Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, q[i], 'g', -1, 64)
|
||||
func (s Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, s[i], 'g', -1, 64)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -658,7 +658,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20181010",
|
||||
"revision": "20180807",
|
||||
"rootUrl": "https://tpu.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorType": {
|
||||
|
|
@ -732,13 +732,6 @@
|
|||
"$ref": "Node"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"unreachable": {
|
||||
"description": "Locations that could not be reached.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
@ -920,8 +913,7 @@
|
|||
"STOPPED",
|
||||
"STOPPING",
|
||||
"STARTING",
|
||||
"PREEMPTED",
|
||||
"TERMINATED"
|
||||
"PREEMPTED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"TPU node state is not known/set.",
|
||||
|
|
@ -934,8 +926,7 @@
|
|||
"7 - Reserved. Was SUSPENDED.\nTPU node is stopped.",
|
||||
"TPU node is currently stopping.",
|
||||
"TPU node is currently starting.",
|
||||
"TPU node has been preempted. Only applies to Preemptible TPU Nodes.",
|
||||
"TPU node has been terminated due to maintenance or has reached the end of\nits life cycle (for preemptible nodes)."
|
||||
"TPU node has been preempted. Only applies to Preemptible TPU Nodes."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Code generated file. DO NOT EDIT.
|
||||
|
||||
// Package tpu provides access to the Cloud TPU API.
|
||||
//
|
||||
// See https://cloud.google.com/tpu/
|
||||
|
|
@ -13,22 +7,22 @@
|
|||
// import "google.golang.org/api/tpu/v1"
|
||||
// ...
|
||||
// tpuService, err := tpu.New(oauthHttpClient)
|
||||
package tpu
|
||||
package tpu // import "google.golang.org/api/tpu/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"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"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
|
|
@ -44,6 +38,7 @@ var _ = googleapi.Version
|
|||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "tpu:v1"
|
||||
const apiName = "tpu"
|
||||
|
|
@ -284,9 +279,6 @@ type ListNodesResponse struct {
|
|||
// Nodes: The listed nodes.
|
||||
Nodes []*Node `json:"nodes,omitempty"`
|
||||
|
||||
// Unreachable: Locations that could not be reached.
|
||||
Unreachable []string `json:"unreachable,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
|
@ -585,9 +577,6 @@ type Node struct {
|
|||
// "STARTING" - TPU node is currently starting.
|
||||
// "PREEMPTED" - TPU node has been preempted. Only applies to
|
||||
// Preemptible TPU Nodes.
|
||||
// "TERMINATED" - TPU node has been terminated due to maintenance or
|
||||
// has reached the end of
|
||||
// its life cycle (for preemptible nodes).
|
||||
State string `json:"state,omitempty"`
|
||||
|
||||
// TensorflowVersion: The version of Tensorflow running in the
|
||||
|
|
@ -1035,13 +1024,9 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error)
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -1200,13 +1185,9 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -1380,13 +1361,9 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -1549,13 +1526,9 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/acceleratorTypes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
|
@ -1734,13 +1707,9 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
|
@ -1871,13 +1840,9 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("DELETE", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2014,13 +1979,9 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2171,13 +2132,9 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
|
@ -2339,13 +2296,9 @@ func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Respons
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reimage")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2478,13 +2431,9 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2617,13 +2566,9 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2766,13 +2711,9 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -2901,13 +2842,9 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("DELETE", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -3048,13 +2985,9 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -3228,13 +3161,9 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -3408,13 +3337,9 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*htt
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
|
@ -3577,13 +3502,9 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*ht
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tensorflowVersions")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
|
|
|||
Loading…
Reference in New Issue