2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-04 19:03:46 +00:00
restic/vendor/google.golang.org/api/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json

237 lines
8.2 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"ownerName": "Google",
"discoveryVersion": "v1",
"version_module": true,
2017-08-05 18:17:15 +00:00
"resources": {
"ampUrls": {
"methods": {
"batchGet": {
"httpMethod": "POST",
"parameterOrder": [],
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "BatchGetAmpUrlsResponse"
},
"parameters": {},
"flatPath": "v1/ampUrls:batchGet",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet",
"request": {
"$ref": "BatchGetAmpUrlsRequest"
},
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)."
2017-08-05 18:17:15 +00:00
}
}
}
},
"parameters": {
"fields": {
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "query",
"description": "Selector specifying which fields to include in a partial response."
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"callback": {
"type": "string",
2017-09-13 12:09:48 +00:00
"location": "query",
"description": "JSONP"
2017-08-05 18:17:15 +00:00
},
"$.xgafv": {
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
2017-10-22 08:07:36 +00:00
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
2017-08-05 18:17:15 +00:00
"alt": {
"type": "string",
2017-08-05 18:17:15 +00:00
"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",
2017-09-13 12:09:48 +00:00
"description": "Data format for response.",
2017-09-21 15:48:45 +00:00
"default": "json",
"enum": [
"json",
"media",
"proto"
]
2017-09-21 15:48:45 +00:00
},
"access_token": {
"type": "string",
"location": "query",
"description": "OAuth access token."
2017-08-05 18:17:15 +00:00
},
"key": {
2017-10-22 08:07:36 +00:00
"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.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"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": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
},
"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": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
2017-08-05 18:17:15 +00:00
}
},
"schemas": {
"BatchGetAmpUrlsResponse": {
"type": "object",
"properties": {
"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"
}
},
"urlErrors": {
"type": "array",
"items": {
"$ref": "AmpUrlError"
},
"description": "The errors for requested URLs that have no AMP URL."
}
},
"id": "BatchGetAmpUrlsResponse",
"description": "Batch AMP URL response."
},
"AmpUrl": {
"type": "object",
"properties": {
"cdnAmpUrl": {
"type": "string",
"description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to\nthe cached document in the Google AMP Cache."
},
"originalUrl": {
"type": "string",
"description": "The original non-AMP URL."
},
"ampUrl": {
"type": "string",
"description": "The AMP URL pointing to the publisher's web server."
}
},
"id": "AmpUrl",
"description": "AMP URL response for a requested URL."
},
2017-08-05 18:17:15 +00:00
"AmpUrlError": {
"type": "object",
"properties": {
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
2017-10-22 08:07:36 +00:00
},
"errorMessage": {
"type": "string",
"description": "An optional descriptive error message."
},
2017-08-05 18:17:15 +00:00
"errorCode": {
"enum": [
"ERROR_CODE_UNSPECIFIED",
"INPUT_URL_NOT_FOUND",
"NO_AMP_URL",
"APPLICATION_ERROR",
"URL_IS_VALID_AMP",
"URL_IS_INVALID_AMP"
2017-10-22 08:07:36 +00:00
],
"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.",
"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."
]
2017-08-05 18:17:15 +00:00
}
},
"id": "AmpUrlError",
"description": "AMP URL Error resource for a requested URL that couldn't be found."
2017-08-05 18:17:15 +00:00
},
"BatchGetAmpUrlsRequest": {
"description": "AMP URL request for a batch of URLs.",
"type": "object",
2017-08-05 18:17:15 +00:00
"properties": {
2017-10-22 08:07:36 +00:00
"urls": {
"type": "array",
2017-10-22 08:07:36 +00:00
"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))."
2017-10-22 08:07:36 +00:00
},
2017-08-05 18:17:15 +00:00
"lookupStrategy": {
"enum": [
"FETCH_LIVE_DOC",
"IN_INDEX_DOC"
2017-10-22 08:07:36 +00:00
],
"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."
]
2017-08-05 18:17:15 +00:00
}
},
"id": "BatchGetAmpUrlsRequest"
2017-08-05 18:17:15 +00:00
}
},
"protocol": "rest",
2017-08-05 18:17:15 +00:00
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
2017-08-05 18:17:15 +00:00
},
"version": "v1",
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
2017-09-21 15:48:45 +00:00
"kind": "discovery#restDescription",
2017-10-22 08:07:36 +00:00
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
"servicePath": "",
2017-09-21 15:48:45 +00:00
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20180110",
"title": "Accelerated Mobile Pages (AMP) URL API"
2017-08-05 18:17:15 +00:00
}