mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update to latest versions of API declarations
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/vjsLOntBAplI6gHuETouIyrKBJI\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/2iWcS6EAVqIO3py2_4I7tTajAB4\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "customsearch:v1",
|
||||
"name": "customsearch",
|
||||
"version": "v1",
|
||||
"revision": "20170615",
|
||||
"revision": "20181001",
|
||||
"title": "CustomSearch API",
|
||||
"description": "Searches over a website or collection of websites",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -27,11 +27,9 @@
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"atom",
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/atom+xml",
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
@@ -59,12 +57,12 @@
|
||||
},
|
||||
"quotaUser": {
|
||||
"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. Overrides userIp if both are provided.",
|
||||
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"description": "Deprecated. Please use quotaUser instead.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
@@ -550,15 +548,17 @@
|
||||
},
|
||||
"imgDominantColor": {
|
||||
"type": "string",
|
||||
"description": "Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.",
|
||||
"description": "Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.",
|
||||
"enum": [
|
||||
"black",
|
||||
"blue",
|
||||
"brown",
|
||||
"gray",
|
||||
"green",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"teal",
|
||||
"white",
|
||||
"yellow"
|
||||
@@ -569,8 +569,10 @@
|
||||
"brown",
|
||||
"gray",
|
||||
"green",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"teal",
|
||||
"white",
|
||||
"yellow"
|
||||
@@ -741,13 +743,15 @@
|
||||
"description": "Search safety level",
|
||||
"default": "off",
|
||||
"enum": [
|
||||
"active",
|
||||
"high",
|
||||
"medium",
|
||||
"off"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Enables highest level of safe search filtering.",
|
||||
"Enables moderate safe search filtering.",
|
||||
"Enables safe search filtering.",
|
||||
"(Deprecated) Same as active.",
|
||||
"(Deprecated) Same as active.",
|
||||
"Disables safe search filtering."
|
||||
],
|
||||
"location": "query"
|
||||
@@ -800,6 +804,362 @@
|
||||
"$ref": "Search"
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"siterestrict": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "search.cse.siterestrict.list",
|
||||
"path": "v1/siterestrict",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns.",
|
||||
"parameters": {
|
||||
"c2coff": {
|
||||
"type": "string",
|
||||
"description": "Turns off the translation between zh-CN and zh-TW.",
|
||||
"location": "query"
|
||||
},
|
||||
"cr": {
|
||||
"type": "string",
|
||||
"description": "Country restrict(s).",
|
||||
"location": "query"
|
||||
},
|
||||
"cx": {
|
||||
"type": "string",
|
||||
"description": "The custom search engine ID to scope this search query",
|
||||
"location": "query"
|
||||
},
|
||||
"dateRestrict": {
|
||||
"type": "string",
|
||||
"description": "Specifies all search results are from a time period",
|
||||
"location": "query"
|
||||
},
|
||||
"exactTerms": {
|
||||
"type": "string",
|
||||
"description": "Identifies a phrase that all documents in the search results must contain",
|
||||
"location": "query"
|
||||
},
|
||||
"excludeTerms": {
|
||||
"type": "string",
|
||||
"description": "Identifies a word or phrase that should not appear in any documents in the search results",
|
||||
"location": "query"
|
||||
},
|
||||
"fileType": {
|
||||
"type": "string",
|
||||
"description": "Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...",
|
||||
"location": "query"
|
||||
},
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"description": "Controls turning on or off the duplicate content filter.",
|
||||
"enum": [
|
||||
"0",
|
||||
"1"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Turns off duplicate content filter.",
|
||||
"Turns on duplicate content filter."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"gl": {
|
||||
"type": "string",
|
||||
"description": "Geolocation of end user.",
|
||||
"location": "query"
|
||||
},
|
||||
"googlehost": {
|
||||
"type": "string",
|
||||
"description": "The local Google domain to use to perform the search.",
|
||||
"location": "query"
|
||||
},
|
||||
"highRange": {
|
||||
"type": "string",
|
||||
"description": "Creates a range in form as_nlo value..as_nhi value and attempts to append it to query",
|
||||
"location": "query"
|
||||
},
|
||||
"hl": {
|
||||
"type": "string",
|
||||
"description": "Sets the user interface language.",
|
||||
"location": "query"
|
||||
},
|
||||
"hq": {
|
||||
"type": "string",
|
||||
"description": "Appends the extra query terms to the query.",
|
||||
"location": "query"
|
||||
},
|
||||
"imgColorType": {
|
||||
"type": "string",
|
||||
"description": "Returns black and white, grayscale, or color images: mono, gray, and color.",
|
||||
"enum": [
|
||||
"color",
|
||||
"gray",
|
||||
"mono"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"color",
|
||||
"gray",
|
||||
"mono"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"imgDominantColor": {
|
||||
"type": "string",
|
||||
"description": "Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.",
|
||||
"enum": [
|
||||
"black",
|
||||
"blue",
|
||||
"brown",
|
||||
"gray",
|
||||
"green",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"teal",
|
||||
"white",
|
||||
"yellow"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"black",
|
||||
"blue",
|
||||
"brown",
|
||||
"gray",
|
||||
"green",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"teal",
|
||||
"white",
|
||||
"yellow"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"imgSize": {
|
||||
"type": "string",
|
||||
"description": "Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.",
|
||||
"enum": [
|
||||
"huge",
|
||||
"icon",
|
||||
"large",
|
||||
"medium",
|
||||
"small",
|
||||
"xlarge",
|
||||
"xxlarge"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"huge",
|
||||
"icon",
|
||||
"large",
|
||||
"medium",
|
||||
"small",
|
||||
"xlarge",
|
||||
"xxlarge"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"imgType": {
|
||||
"type": "string",
|
||||
"description": "Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.",
|
||||
"enum": [
|
||||
"clipart",
|
||||
"face",
|
||||
"lineart",
|
||||
"news",
|
||||
"photo"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"clipart",
|
||||
"face",
|
||||
"lineart",
|
||||
"news",
|
||||
"photo"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"linkSite": {
|
||||
"type": "string",
|
||||
"description": "Specifies that all search results should contain a link to a particular URL",
|
||||
"location": "query"
|
||||
},
|
||||
"lowRange": {
|
||||
"type": "string",
|
||||
"description": "Creates a range in form as_nlo value..as_nhi value and attempts to append it to query",
|
||||
"location": "query"
|
||||
},
|
||||
"lr": {
|
||||
"type": "string",
|
||||
"description": "The language restriction for the search results",
|
||||
"enum": [
|
||||
"lang_ar",
|
||||
"lang_bg",
|
||||
"lang_ca",
|
||||
"lang_cs",
|
||||
"lang_da",
|
||||
"lang_de",
|
||||
"lang_el",
|
||||
"lang_en",
|
||||
"lang_es",
|
||||
"lang_et",
|
||||
"lang_fi",
|
||||
"lang_fr",
|
||||
"lang_hr",
|
||||
"lang_hu",
|
||||
"lang_id",
|
||||
"lang_is",
|
||||
"lang_it",
|
||||
"lang_iw",
|
||||
"lang_ja",
|
||||
"lang_ko",
|
||||
"lang_lt",
|
||||
"lang_lv",
|
||||
"lang_nl",
|
||||
"lang_no",
|
||||
"lang_pl",
|
||||
"lang_pt",
|
||||
"lang_ro",
|
||||
"lang_ru",
|
||||
"lang_sk",
|
||||
"lang_sl",
|
||||
"lang_sr",
|
||||
"lang_sv",
|
||||
"lang_tr",
|
||||
"lang_zh-CN",
|
||||
"lang_zh-TW"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Arabic",
|
||||
"Bulgarian",
|
||||
"Catalan",
|
||||
"Czech",
|
||||
"Danish",
|
||||
"German",
|
||||
"Greek",
|
||||
"English",
|
||||
"Spanish",
|
||||
"Estonian",
|
||||
"Finnish",
|
||||
"French",
|
||||
"Croatian",
|
||||
"Hungarian",
|
||||
"Indonesian",
|
||||
"Icelandic",
|
||||
"Italian",
|
||||
"Hebrew",
|
||||
"Japanese",
|
||||
"Korean",
|
||||
"Lithuanian",
|
||||
"Latvian",
|
||||
"Dutch",
|
||||
"Norwegian",
|
||||
"Polish",
|
||||
"Portuguese",
|
||||
"Romanian",
|
||||
"Russian",
|
||||
"Slovak",
|
||||
"Slovenian",
|
||||
"Serbian",
|
||||
"Swedish",
|
||||
"Turkish",
|
||||
"Chinese (Simplified)",
|
||||
"Chinese (Traditional)"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"num": {
|
||||
"type": "integer",
|
||||
"description": "Number of search results to return",
|
||||
"default": "10",
|
||||
"format": "uint32",
|
||||
"location": "query"
|
||||
},
|
||||
"orTerms": {
|
||||
"type": "string",
|
||||
"description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms",
|
||||
"location": "query"
|
||||
},
|
||||
"q": {
|
||||
"type": "string",
|
||||
"description": "Query",
|
||||
"required": true,
|
||||
"location": "query"
|
||||
},
|
||||
"relatedSite": {
|
||||
"type": "string",
|
||||
"description": "Specifies that all search results should be pages that are related to the specified URL",
|
||||
"location": "query"
|
||||
},
|
||||
"rights": {
|
||||
"type": "string",
|
||||
"description": "Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.",
|
||||
"location": "query"
|
||||
},
|
||||
"safe": {
|
||||
"type": "string",
|
||||
"description": "Search safety level",
|
||||
"default": "off",
|
||||
"enum": [
|
||||
"high",
|
||||
"medium",
|
||||
"off"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Enables highest level of safe search filtering.",
|
||||
"Enables moderate safe search filtering.",
|
||||
"Disables safe search filtering."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"searchType": {
|
||||
"type": "string",
|
||||
"description": "Specifies the search type: image.",
|
||||
"enum": [
|
||||
"image"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"custom image search"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"siteSearch": {
|
||||
"type": "string",
|
||||
"description": "Specifies all search results should be pages from a given site",
|
||||
"location": "query"
|
||||
},
|
||||
"siteSearchFilter": {
|
||||
"type": "string",
|
||||
"description": "Controls whether to include or exclude results from the site named in the as_sitesearch parameter",
|
||||
"enum": [
|
||||
"e",
|
||||
"i"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"exclude",
|
||||
"include"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"description": "The sort expression to apply to the results",
|
||||
"location": "query"
|
||||
},
|
||||
"start": {
|
||||
"type": "integer",
|
||||
"description": "The index of the first result to return",
|
||||
"format": "uint32",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"q"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Search"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user