Unverified Commit 2ec792a2 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #57520 from nicksardo/update-gce

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Update vendor of google.golang.org/api repo Update vendor of GCE **Release note**: ```release-note NONE ```
parents 1f182ae1 f220a170
......@@ -2870,47 +2870,47 @@
},
{
"ImportPath": "google.golang.org/api/cloudmonitoring/v2beta2",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/compute/v0.alpha",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/compute/v0.beta",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/compute/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/container/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/gensupport",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/googleapi",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/logging/v2beta1",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/monitoring/v3",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/api/pubsub/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410"
"Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
},
{
"ImportPath": "google.golang.org/genproto/googleapis/rpc/status",
......
......@@ -44,6 +44,7 @@ Ivan Krasin <krasin@golang.org>
Jason Hall <jasonhall@google.com>
Johan Euphrosine <proppy@google.com>
Kostik Shtoyk <kostik@google.com>
Matthew Whisenhunt <matt.whisenhunt@gmail.com>
Michael McGreevy <mcgreevy@golang.org>
Nick Craig-Wood <nickcw@gmail.com>
Ross Light <light@google.com>
......
......@@ -21,7 +21,7 @@
"basePath": "/cloudmonitoring/v2beta2/projects/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "cloudmonitoring/v2beta2/projects/",
"batchPath": "batch",
"batchPath": "batch/cloudmonitoring/v2beta2",
"parameters": {
"alt": {
"type": "string",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -5,6 +5,7 @@
package gensupport
import (
"encoding/json"
"errors"
"net/http"
......@@ -59,3 +60,12 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
}
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 {
if res.StatusCode == http.StatusNoContent {
return nil
}
return json.NewDecoder(res.Body).Decode(target)
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment