Commit f220a170 authored by Nick Sardo's avatar Nick Sardo

Update vendor of google.golang.org/api repo

parent 3904cc78
...@@ -2874,47 +2874,47 @@ ...@@ -2874,47 +2874,47 @@
}, },
{ {
"ImportPath": "google.golang.org/api/cloudmonitoring/v2beta2", "ImportPath": "google.golang.org/api/cloudmonitoring/v2beta2",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v0.alpha", "ImportPath": "google.golang.org/api/compute/v0.alpha",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v0.beta", "ImportPath": "google.golang.org/api/compute/v0.beta",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v1", "ImportPath": "google.golang.org/api/compute/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/container/v1", "ImportPath": "google.golang.org/api/container/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/gensupport", "ImportPath": "google.golang.org/api/gensupport",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/googleapi", "ImportPath": "google.golang.org/api/googleapi",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates", "ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/logging/v2beta1", "ImportPath": "google.golang.org/api/logging/v2beta1",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/monitoring/v3", "ImportPath": "google.golang.org/api/monitoring/v3",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/api/pubsub/v1", "ImportPath": "google.golang.org/api/pubsub/v1",
"Rev": "654f863362977d69086620b5f72f13e911da2410" "Rev": "c0dae069ee96c9261a04c81efd9e0f1e55f565ac"
}, },
{ {
"ImportPath": "google.golang.org/genproto/googleapis/rpc/status", "ImportPath": "google.golang.org/genproto/googleapis/rpc/status",
......
...@@ -44,6 +44,7 @@ Ivan Krasin <krasin@golang.org> ...@@ -44,6 +44,7 @@ Ivan Krasin <krasin@golang.org>
Jason Hall <jasonhall@google.com> Jason Hall <jasonhall@google.com>
Johan Euphrosine <proppy@google.com> Johan Euphrosine <proppy@google.com>
Kostik Shtoyk <kostik@google.com> Kostik Shtoyk <kostik@google.com>
Matthew Whisenhunt <matt.whisenhunt@gmail.com>
Michael McGreevy <mcgreevy@golang.org> Michael McGreevy <mcgreevy@golang.org>
Nick Craig-Wood <nickcw@gmail.com> Nick Craig-Wood <nickcw@gmail.com>
Ross Light <light@google.com> Ross Light <light@google.com>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"basePath": "/cloudmonitoring/v2beta2/projects/", "basePath": "/cloudmonitoring/v2beta2/projects/",
"rootUrl": "https://www.googleapis.com/", "rootUrl": "https://www.googleapis.com/",
"servicePath": "cloudmonitoring/v2beta2/projects/", "servicePath": "cloudmonitoring/v2beta2/projects/",
"batchPath": "batch", "batchPath": "batch/cloudmonitoring/v2beta2",
"parameters": { "parameters": {
"alt": { "alt": {
"type": "string", "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 @@ ...@@ -5,6 +5,7 @@
package gensupport package gensupport
import ( import (
"encoding/json"
"errors" "errors"
"net/http" "net/http"
...@@ -59,3 +60,12 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (* ...@@ -59,3 +60,12 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
} }
return resp, err 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