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 Jul 19, 2017
1 parent 677edd9 commit 93eabf1
Show file tree
Hide file tree
Showing 435 changed files with 73,349 additions and 74,052 deletions.
214 changes: 107 additions & 107 deletions DiscoveryJson/acceleratedmobilepageurl_v1.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,30 @@
{
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20170504",
"title": "Accelerated Mobile Pages (AMP) URL API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": "True",
"resources": {
"ampUrls": {
"methods": {
"batchGet": {
"parameters": {},
"flatPath": "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).",
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"path": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet"
"parameterOrder": [],
"httpMethod": "POST"
}
}
}
},
"parameters": {
"alt": {
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
"type": "string",
"location": "query"
},
"key": {
"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.",
Expand All @@ -61,21 +37,21 @@
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
"description": "Pretty-print response."
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
Expand All @@ -88,23 +64,16 @@
"location": "query"
},
"fields": {
"type": "string",
"location": "query",
"description": "Selector specifying which fields to include in a partial response."
"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"
},
"callback": {
"location": "query",
"description": "JSONP",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
Expand All @@ -113,57 +82,33 @@
"enum": [
"1",
"2"
]
],
"description": "V1 error format.",
"type": "string"
},
"callback": {
"type": "string",
"location": "query",
"description": "JSONP"
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query"
}
},
"schemas": {
"BatchGetAmpUrlsRequest": {
"description": "AMP URL request for a batch of URLs.",
"type": "object",
"properties": {
"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"
},
"lookupStrategy": {
"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"
],
"description": "The lookup_strategy being requested.",
"type": "string"
}
},
"id": "BatchGetAmpUrlsRequest"
},
"BatchGetAmpUrlsResponse": {
"description": "Batch AMP URL response.",
"type": "object",
"properties": {
"urlErrors": {
"items": {
"$ref": "AmpUrlError"
},
"type": "array",
"description": "The errors for requested URLs that have no AMP URL."
},
"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.",
"items": {
"$ref": "AmpUrl"
},
"type": "array"
}
},
"id": "BatchGetAmpUrlsResponse"
},
"AmpUrl": {
"description": "AMP URL response for a requested URL.",
"type": "object",
Expand All @@ -184,7 +129,6 @@
"id": "AmpUrl"
},
"AmpUrlError": {
"id": "AmpUrlError",
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
"type": "object",
"properties": {
Expand All @@ -193,10 +137,11 @@
"type": "string"
},
"errorMessage": {
"type": "string",
"description": "An optional descriptive error message."
"description": "An optional descriptive error message.",
"type": "string"
},
"errorCode": {
"description": "The error code of an API call.",
"type": "string",
"enumDescriptions": [
"Not specified error.",
Expand All @@ -213,24 +158,79 @@
"APPLICATION_ERROR",
"URL_IS_VALID_AMP",
"URL_IS_INVALID_AMP"
]
}
},
"id": "AmpUrlError"
},
"BatchGetAmpUrlsRequest": {
"type": "object",
"properties": {
"lookupStrategy": {
"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."
],
"description": "The error code of an API call."
"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",
"description": "AMP URL request for a batch of URLs."
},
"BatchGetAmpUrlsResponse": {
"description": "Batch AMP URL response.",
"type": "object",
"properties": {
"urlErrors": {
"items": {
"$ref": "AmpUrlError"
},
"type": "array",
"description": "The errors for requested URLs that have no AMP URL."
},
"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.",
"items": {
"$ref": "AmpUrl"
},
"type": "array"
}
},
"id": "BatchGetAmpUrlsResponse"
}
},
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rest",
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"kind": "discovery#restDescription",
"description": "Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list of public URL(s).\n",
"servicePath": "",
"description": "Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list of public URL(s).\n",
"kind": "discovery#restDescription",
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl"
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"revision": "20170504",
"documentationLink": "https://developers.google.com/amp/cache/",
"id": "acceleratedmobilepageurl:v1",
"title": "Accelerated Mobile Pages (AMP) URL API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": "True"
}

0 comments on commit 93eabf1

Please sign in to comment.