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 May 24, 2017
1 parent 8cd1313 commit d8f1388
Show file tree
Hide file tree
Showing 2,664 changed files with 105,463 additions and 161,945 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -25,3 +25,6 @@ TestResult.xml

# Ignore the testrunner directory.
testrunner/*

# Ignore the generated Generated.sln solution file
Generated.sln
306 changes: 153 additions & 153 deletions DiscoveryJson/acceleratedmobilepageurl_v1.json
@@ -1,117 +1,26 @@
{
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": "True",
"resources": {
"ampUrls": {
"methods": {
"batchGet": {
"httpMethod": "POST",
"parameterOrder": [],
"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)."
"schemas": {
"BatchGetAmpUrlsResponse": {
"description": "Batch AMP URL response.",
"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": {
"description": "The errors for requested URLs that have no AMP URL.",
"type": "array",
"items": {
"$ref": "AmpUrlError"
}
}
}
}
},
"parameters": {
"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"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"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"
},
"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"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
]
},
"alt": {
"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",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
]
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"id": "BatchGetAmpUrlsResponse"
},
"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"
}
},
"schemas": {
"AmpUrl": {
"description": "AMP URL response for a requested URL.",
"type": "object",
Expand All @@ -132,14 +41,9 @@
"id": "AmpUrl"
},
"AmpUrlError": {
"id": "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",
Expand All @@ -163,14 +67,25 @@
"originalUrl": {
"description": "The original non-AMP URL.",
"type": "string"
},
"errorMessage": {
"description": "An optional descriptive error message.",
"type": "string"
}
}
},
"id": "AmpUrlError"
},
"BatchGetAmpUrlsRequest": {
"id": "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)).",
"type": "array",
"items": {
"type": "string"
}
},
"lookupStrategy": {
"description": "The lookup_strategy being requested.",
"type": "string",
Expand All @@ -182,43 +97,16 @@
"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)).",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"BatchGetAmpUrlsResponse": {
"id": "BatchGetAmpUrlsResponse",
"description": "Batch AMP URL response.",
"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": {
"description": "The errors for requested URLs that have no AMP URL.",
"type": "array",
"items": {
"$ref": "AmpUrlError"
}
}
}
},
"id": "BatchGetAmpUrlsRequest"
}
},
"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"
"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",
Expand All @@ -229,8 +117,120 @@
"ownerDomain": "google.com",
"name": "acceleratedmobilepageurl",
"batchPath": "batch",
"id": "acceleratedmobilepageurl:v1",
"documentationLink": "https://developers.google.com/amp/cache/",
"revision": "20170504",
"title": "Accelerated Mobile Pages (AMP) URL API"
"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": {
"methods": {
"batchGet": {
"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",
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
"path": "v1/ampUrls:batchGet"
}
}
}
},
"parameters": {
"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\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"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": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string"
},
"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"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"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"
},
"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"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true"
}
}
}

0 comments on commit d8f1388

Please sign in to comment.