Skip to content

Commit

Permalink
Update discovery documents and generated code
Browse files Browse the repository at this point in the history
automatically_generated_update
  • Loading branch information
cloudsharp committed Apr 10, 2017
1 parent 4320237 commit eeb7744
Show file tree
Hide file tree
Showing 1,605 changed files with 62,155 additions and 62,302 deletions.
192 changes: 96 additions & 96 deletions DiscoveryJson/acceleratedmobilepageurl_v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"servicePath": "",
"description": "This API contains a single method, batchGet. Call this method to retrieve the AMP URL (and equivalent AMP Cache URL) for given public URL(s).\n",
"kind": "discovery#restDescription",
Expand All @@ -13,79 +11,58 @@
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20170329",
"title": "Accelerated Mobile Pages (AMP) URL API",
"discoveryVersion": "v1",
"ownerName": "Google",
"discoveryVersion": "v1",
"version_module": "True",
"resources": {
"ampUrls": {
"methods": {
"batchGet": {
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"path": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet",
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)."
}
}
}
}
},
"parameters": {
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"upload_protocol": {
"uploadType": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true",
"location": "query"
},
"fields": {
"type": "string",
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
"description": "Selector specifying which fields to include in a partial response."
},
"uploadType": {
"callback": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format."
},
"callback": {
"description": "JSONP",
"description": "V1 error format.",
"type": "string",
"location": "query"
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
"alt": {
"default": "json",
Expand All @@ -103,66 +80,51 @@
"location": "query",
"description": "Data format for response."
},
"access_token": {
"type": "string",
"key": {
"location": "query",
"description": "OAuth access token."
"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"
},
"key": {
"access_token": {
"type": "string",
"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."
"description": "OAuth access token."
},
"quotaUser": {
"type": "string",
"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"
"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."
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"bearer_token": {
"type": "string",
"location": "query",
"description": "OAuth bearer token."
},
"oauth_token": {
"type": "string",
"location": "query",
"description": "OAuth 2.0 token for the current user."
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"type": "boolean",
"default": "true",
"location": "query",
"description": "Returns response with indentations and line breaks."
}
},
"schemas": {
"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": {
"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.",
"Indicates no AMP URL has been found that corresponds to the requested\nURL.",
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
],
"enum": [
"ERROR_CODE_UNSPECIFIED",
"INPUT_URL_NOT_FOUND",
"NO_AMP_URL",
"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"
}
},
"id": "AmpUrlError"
},
"BatchGetAmpUrlsRequest": {
"description": "AMP URL request for a batch of URLs.",
"type": "object",
"properties": {
"urls": {
Expand All @@ -173,6 +135,7 @@
}
},
"lookupStrategy": {
"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."
Expand All @@ -181,11 +144,11 @@
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
],
"description": "The lookup_strategy being requested.",
"type": "string"
"description": "The lookup_strategy being requested."
}
},
"id": "BatchGetAmpUrlsRequest"
"id": "BatchGetAmpUrlsRequest",
"description": "AMP URL request for a batch of URLs."
},
"BatchGetAmpUrlsResponse": {
"description": "Batch AMP URL response.",
Expand All @@ -199,38 +162,75 @@
}
},
"urlErrors": {
"description": "The errors for requested URLs that have no AMP URL.",
"type": "array",
"items": {
"$ref": "AmpUrlError"
}
},
"description": "The errors for requested URLs that have no AMP URL."
}
},
"id": "BatchGetAmpUrlsResponse"
},
"AmpUrl": {
"description": "AMP URL response for a requested URL.",
"type": "object",
"properties": {
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"ampUrl": {
"type": "string",
"description": "The AMP URL pointing to the publisher's web server."
},
"cdnAmpUrl": {
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
"type": "string"
},
}
},
"id": "AmpUrl",
"description": "AMP URL response for a requested URL."
},
"AmpUrlError": {
"type": "object",
"properties": {
"originalUrl": {
"type": "string",
"description": "The original non-AMP URL."
},
"ampUrl": {
"description": "The AMP URL pointing to the publisher's web server.",
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
},
"errorCode": {
"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.",
"Indicates no AMP URL has been found that corresponds to the requested\nURL.",
"Indicates some kind of application error occurred at the server.\nClient advised to retry.",
"DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a\nnon-error state, should not be relied upon as a sign of success or\nfailure. It will be removed in future versions of the API.",
"Indicates that an AMP URL has been found that corresponds to the request\nURL, but it is not valid AMP HTML."
],
"enum": [
"ERROR_CODE_UNSPECIFIED",
"INPUT_URL_NOT_FOUND",
"NO_AMP_URL",
"APPLICATION_ERROR",
"URL_IS_VALID_AMP",
"URL_IS_INVALID_AMP"
],
"description": "The error code of an API call."
}
},
"id": "AmpUrl"
"id": "AmpUrlError",
"description": "AMP URL Error resource for a requested URL that couldn't be found."
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"protocol": "rest"
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/"
}

0 comments on commit eeb7744

Please sign in to comment.