Upgrade to latest API versions + code regen

This commit is contained in:
Sebastian Thiel
2017-12-12 14:30:54 +01:00
parent dc30217711
commit 357a0e650e
776 changed files with 356718 additions and 104442 deletions

View File

@@ -1,4 +1,17 @@
{
"canonicalName": "Search Console",
"kind": "discovery#restDescription",
"description": "Provides tools for running validation tests against single URLs",
"servicePath": "",
"rootUrl": "https://searchconsole.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "searchconsole",
"batchPath": "batch",
"revision": "20171211",
"documentationLink": "https://developers.google.com/webmaster-tools/search-console-api/",
"id": "searchconsole:v1",
"title": "Google Search Console URL Testing Tools API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": true,
@@ -8,10 +21,6 @@
"mobileFriendlyTest": {
"methods": {
"run": {
"request": {
"$ref": "RunMobileFriendlyTestRequest"
},
"description": "Runs Mobile-Friendly Test for a given URL.",
"response": {
"$ref": "RunMobileFriendlyTestResponse"
},
@@ -20,7 +29,11 @@
"parameters": {},
"flatPath": "v1/urlTestingTools/mobileFriendlyTest:run",
"path": "v1/urlTestingTools/mobileFriendlyTest:run",
"id": "searchconsole.urlTestingTools.mobileFriendlyTest.run"
"id": "searchconsole.urlTestingTools.mobileFriendlyTest.run",
"description": "Runs Mobile-Friendly Test for a given URL.",
"request": {
"$ref": "RunMobileFriendlyTestRequest"
}
}
}
}
@@ -28,6 +41,17 @@
}
},
"parameters": {
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
@@ -52,16 +76,11 @@
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
"type": "string",
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
@@ -70,7 +89,12 @@
],
"location": "query",
"description": "Data format for response.",
"default": "json"
"default": "json",
"enum": [
"json",
"media",
"proto"
]
},
"access_token": {
"location": "query",
@@ -88,39 +112,66 @@
"type": "string"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
"default": "true"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
"type": "string"
},
"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": {
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true",
"location": "query"
}
},
"schemas": {
"RunMobileFriendlyTestRequest": {
"properties": {
"url": {
"description": "URL for inspection.",
"type": "string"
},
"requestScreenshot": {
"description": "Whether or not screenshot is requested. Default is false.",
"type": "boolean"
}
},
"id": "RunMobileFriendlyTestRequest",
"description": "Mobile-friendly test request.",
"type": "object"
},
"Image": {
"properties": {
"mimeType": {
"description": "The mime-type of the image data.",
"type": "string"
},
"data": {
"description": "Image data in format determined by the mime type. Currently, the format\nwill always be \"image/png\", but this might change in the future.",
"format": "byte",
"type": "string"
}
},
"id": "Image",
"description": "Describe image data.",
"type": "object"
},
"MobileFriendlyIssue": {
"description": "Mobile-friendly issue.",
"type": "object",
"properties": {
"rule": {
"enumDescriptions": [
"Unknown rule. Sorry, we don't have any description for the rule that was\nbroken.",
"Plugins incompatible with mobile devices are being used. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#flash_usage).",
"Viewsport is not specified using the meta viewport tag. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#viewport_not_configured).",
"Viewport defined to a fixed width. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#fixed-width_viewport).",
"Content not sized to viewport. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).",
"Font size is too small for easy reading on a small screen. [Learn More]\n(https://support.google.com/webmasters/answer/6352293#small_font_size).",
"Touch elements are too close to each other. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#touch_elements_too_close)."
],
"enum": [
"MOBILE_FRIENDLY_RULE_UNSPECIFIED",
"USES_INCOMPATIBLE_PLUGINS",
@@ -131,25 +182,22 @@
"TAP_TARGETS_TOO_CLOSE"
],
"description": "Rule violated.",
"type": "string",
"enumDescriptions": [
"Unknown rule. Sorry, we don't have any description for the rule that was\nbroken.",
"Plugins incompatible with mobile devices are being used. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#flash_usage).",
"Viewsport is not specified using the meta viewport tag. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#viewport_not_configured).",
"Viewport defined to a fixed width. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#fixed-width_viewport).",
"Content not sized to viewport. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).",
"Font size is too small for easy reading on a small screen. [Learn More]\n(https://support.google.com/webmasters/answer/6352293#small_font_size).",
"Touch elements are too close to each other. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#touch_elements_too_close)."
]
"type": "string"
}
},
"id": "MobileFriendlyIssue"
"id": "MobileFriendlyIssue",
"description": "Mobile-friendly issue.",
"type": "object"
},
"RunMobileFriendlyTestResponse": {
"properties": {
"screenshot": {
"$ref": "Image",
"description": "Screenshot of the requested URL."
},
"testStatus": {
"$ref": "TestStatus",
"description": "Final state of the test, can be either complete or an error."
"description": "Final state of the test, can be either complete or an error.",
"$ref": "TestStatus"
},
"resourceIssues": {
"description": "Information about embedded resources issues.",
@@ -159,18 +207,18 @@
}
},
"mobileFriendliness": {
"enumDescriptions": [
"Internal error when running this test. Please try running the test again.",
"The page is mobile friendly.",
"The page is not mobile friendly."
],
"enum": [
"MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED",
"MOBILE_FRIENDLY",
"NOT_MOBILE_FRIENDLY"
],
"description": "Test verdict, whether the page is mobile friendly or not.",
"type": "string",
"enumDescriptions": [
"Internal error when running this test. Please try running the test again.",
"The page is mobile friendly.",
"The page is not mobile friendly."
]
"type": "string"
},
"mobileFriendlyIssues": {
"description": "List of mobile-usability issues.",
@@ -178,10 +226,6 @@
"items": {
"$ref": "MobileFriendlyIssue"
}
},
"screenshot": {
"description": "Screenshot of the requested URL.",
"$ref": "Image"
}
},
"id": "RunMobileFriendlyTestResponse",
@@ -193,8 +237,8 @@
"type": "object",
"properties": {
"blockedResource": {
"description": "Describes a blocked resource issue.",
"$ref": "BlockedResource"
"$ref": "BlockedResource",
"description": "Describes a blocked resource issue."
}
},
"id": "ResourceIssue"
@@ -236,57 +280,13 @@
}
},
"id": "TestStatus"
},
"Image": {
"description": "Describe image data.",
"type": "object",
"properties": {
"data": {
"description": "Image data in format determined by the mime type. Currently, the format\nwill always be \"image/png\", but this might change in the future.",
"format": "byte",
"type": "string"
},
"mimeType": {
"description": "The mime-type of the image data.",
"type": "string"
}
},
"id": "Image"
},
"RunMobileFriendlyTestRequest": {
"properties": {
"url": {
"description": "URL for inspection.",
"type": "string"
},
"requestScreenshot": {
"description": "Whether or not screenshot is requested. Default is false.",
"type": "boolean"
}
},
"id": "RunMobileFriendlyTestRequest",
"description": "Mobile-friendly test request.",
"type": "object"
}
},
"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://searchconsole.googleapis.com/",
"canonicalName": "Search Console",
"kind": "discovery#restDescription",
"description": "Provides tools for running validation tests against single URLs",
"servicePath": "",
"rootUrl": "https://searchconsole.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "searchconsole",
"batchPath": "batch",
"id": "searchconsole:v1",
"documentationLink": "https://developers.google.com/webmaster-tools/search-console-api/",
"revision": "20170926",
"title": "Google Search Console URL Testing Tools API"
"baseUrl": "https://searchconsole.googleapis.com/"
}