vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
@@ -1,4 +1,20 @@
{
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"servicePath": "",
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
"kind": "discovery#restDescription",
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"revision": "20180110",
"documentationLink": "https://developers.google.com/amp/cache/",
"id": "acceleratedmobilepageurl:v1",
"title": "Accelerated Mobile Pages (AMP) URL API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": true,
"resources": {
"ampUrls": {
@@ -8,11 +24,11 @@
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"path": "v1/ampUrls:batchGet",
@@ -22,21 +38,36 @@
}
},
"parameters": {
"pp": {
"key": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"location": "query",
@@ -45,26 +76,28 @@
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"default": "true",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
@@ -73,9 +106,7 @@
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
]
},
"alt": {
"enumDescriptions": [
@@ -92,21 +123,6 @@
"proto"
],
"type": "string"
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
}
},
"schemas": {
@@ -114,19 +130,19 @@
"description": "Batch AMP URL response.",
"type": "object",
"properties": {
"urlErrors": {
"description": "The errors for requested URLs that have no AMP URL.",
"items": {
"$ref": "AmpUrlError"
},
"type": "array"
},
"ampUrls": {
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
"type": "array",
"items": {
"$ref": "AmpUrl"
},
"type": "array"
}
},
"urlErrors": {
"description": "The errors for requested URLs that have no AMP URL.",
"type": "array",
"items": {
"$ref": "AmpUrlError"
}
}
},
"id": "BatchGetAmpUrlsResponse"
@@ -139,24 +155,25 @@
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
"type": "string"
},
"ampUrl": {
"description": "The AMP URL pointing to the publisher's web server.",
"type": "string"
},
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"ampUrl": {
"type": "string",
"description": "The AMP URL pointing to the publisher's web server."
}
},
"id": "AmpUrl"
},
"AmpUrlError": {
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
"type": "object",
"properties": {
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
},
"errorCode": {
"description": "The error code of an API call.",
"type": "string",
"enumDescriptions": [
"Not specified error.",
"Indicates the requested URL is not found in the index, possibly because\nit's unable to be found, not able to be accessed by Googlebot, or some\nother error.",
@@ -172,65 +189,48 @@
"APPLICATION_ERROR",
"URL_IS_VALID_AMP",
"URL_IS_INVALID_AMP"
]
],
"description": "The error code of an API call.",
"type": "string"
},
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
}
},
"id": "AmpUrlError"
"id": "AmpUrlError",
"description": "AMP URL Error resource for a requested URL that couldn't be found."
},
"BatchGetAmpUrlsRequest": {
"description": "AMP URL request for a batch of URLs.",
"type": "object",
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits))."
},
"lookupStrategy": {
"enum": [
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
],
"description": "The lookup_strategy being requested.",
"type": "string",
"enumDescriptions": [
"FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in\nthe index. Any request URL not found in the index is crawled in realtime\nto validate if there is a corresponding AMP URL. This strategy has higher\ncoverage but with extra latency introduced by realtime crawling. This is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
],
"enum": [
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
]
},
"urls": {
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits)).",
"items": {
"type": "string"
},
"type": "array"
}
},
"id": "BatchGetAmpUrlsRequest"
"id": "BatchGetAmpUrlsRequest",
"description": "AMP URL request for a batch of URLs."
}
},
"protocol": "rest",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"servicePath": "",
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
"kind": "discovery#restDescription",
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"revision": "20170926",
"documentationLink": "https://developers.google.com/amp/cache/",
"id": "acceleratedmobilepageurl:v1",
"title": "Accelerated Mobile Pages (AMP) URL API",
"ownerName": "Google",
"discoveryVersion": "v1"
}
}
@@ -109,8 +109,8 @@ type AmpUrl struct {
}
func (s *AmpUrl) MarshalJSON() ([]byte, error) {
type noMethod AmpUrl
raw := noMethod(*s)
type NoMethod AmpUrl
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -166,8 +166,8 @@ type AmpUrlError struct {
}
func (s *AmpUrlError) MarshalJSON() ([]byte, error) {
type noMethod AmpUrlError
raw := noMethod(*s)
type NoMethod AmpUrlError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -218,8 +218,8 @@ type BatchGetAmpUrlsRequest struct {
}
func (s *BatchGetAmpUrlsRequest) MarshalJSON() ([]byte, error) {
type noMethod BatchGetAmpUrlsRequest
raw := noMethod(*s)
type NoMethod BatchGetAmpUrlsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -258,8 +258,8 @@ type BatchGetAmpUrlsResponse struct {
}
func (s *BatchGetAmpUrlsResponse) MarshalJSON() ([]byte, error) {
type noMethod BatchGetAmpUrlsResponse
raw := noMethod(*s)
type NoMethod BatchGetAmpUrlsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -359,7 +359,7 @@ func (c *AmpUrlsBatchGetCall) Do(opts ...googleapi.CallOption) (*BatchGetAmpUrls
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil