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

revendor GCE API Go client

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