Commit 9e45bb82 authored by Minhan Xia's avatar Minhan Xia

revendor GCE API Go client

parent 0d9c4325
......@@ -3111,47 +3111,47 @@
},
{
"ImportPath": "google.golang.org/api/compute/v0.alpha",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/compute/v0.beta",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/compute/v1",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/container/v1",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/gensupport",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/googleapi",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/logging/v2beta1",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/monitoring/v3",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/pubsub/v1",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/api/tpu/v1",
"Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
},
{
"ImportPath": "google.golang.org/genproto/googleapis/api/annotations",
......
......@@ -48,6 +48,7 @@ Kunpei Sakai <namusyaka@gmail.com>
Matthew Whisenhunt <matt.whisenhunt@gmail.com>
Michael McGreevy <mcgreevy@golang.org>
Nick Craig-Wood <nickcw@gmail.com>
Robbie Trencheny <me@robbiet.us>
Ross Light <light@google.com>
Sarah Adams <shadams@google.com>
Scott Van Woudenberg <scottvw@google.com>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -60,11 +60,6 @@
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
......@@ -85,12 +80,6 @@
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
......@@ -2372,7 +2361,7 @@
}
}
},
"revision": "20180504",
"revision": "20180607",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
......
......@@ -270,11 +270,20 @@ func ProcessMediaOptions(opts []MediaOption) *MediaOptions {
func ResolveRelative(basestr, relstr string) string {
u, _ := url.Parse(basestr)
afterColonPath := ""
if i := strings.IndexRune(relstr, ':'); i > 0 {
afterColonPath = relstr[i+1:]
relstr = relstr[:i]
}
rel, _ := url.Parse(relstr)
u = u.ResolveReference(rel)
us := u.String()
if afterColonPath != "" {
us = fmt.Sprintf("%s:%s", us, afterColonPath)
}
us = strings.Replace(us, "%7B", "{", -1)
us = strings.Replace(us, "%7D", "}", -1)
us = strings.Replace(us, "%2A", "*", -1)
return us
}
......
......@@ -72,11 +72,6 @@
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
......@@ -97,12 +92,6 @@
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
......@@ -755,7 +744,7 @@
}
}
},
"revision": "20180424",
"revision": "20180604",
"rootUrl": "https://logging.googleapis.com/",
"schemas": {
"BucketOptions": {
......
......@@ -69,11 +69,6 @@
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
......@@ -94,12 +89,6 @@
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
......@@ -1463,7 +1452,7 @@
}
}
},
"revision": "20180529",
"revision": "20180603",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
......@@ -1894,7 +1883,7 @@
"type": "string"
},
"exemplars": {
"description": "Must be in increasing order of |value| field. The current requirement enforced by the backend is that at most one Exemplar will fall into any bucket.",
"description": "Must be in increasing order of value field.",
"items": {
"$ref": "Exemplar"
},
......
......@@ -1068,9 +1068,7 @@ type Distribution struct {
// histogram is provided.
Count int64 `json:"count,omitempty,string"`
// Exemplars: Must be in increasing order of |value| field. The current
// requirement enforced by the backend is that at most one Exemplar will
// fall into any bucket.
// Exemplars: Must be in increasing order of value field.
Exemplars []*Exemplar `json:"exemplars,omitempty"`
// Mean: The arithmetic mean of the values in the population. If count
......
......@@ -62,11 +62,6 @@
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
......@@ -87,12 +82,6 @@
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
......@@ -1056,7 +1045,7 @@
}
}
},
"revision": "20180522",
"revision": "20180604",
"rootUrl": "https://pubsub.googleapis.com/",
"schemas": {
"AcknowledgeRequest": {
......
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