mirror of
https://github.com/restic/restic.git
synced 2025-12-14 12:01:49 +00:00
Update dependenciess
Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
172
vendor/google.golang.org/api/kgsearch/v1/kgsearch-api.json
generated
vendored
172
vendor/google.golang.org/api/kgsearch/v1/kgsearch-api.json
generated
vendored
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "kgsearch",
|
||||
"batchPath": "batch",
|
||||
"id": "kgsearch:v1",
|
||||
"documentationLink": "https://developers.google.com/knowledge-graph/",
|
||||
"revision": "20170925",
|
||||
"title": "Knowledge Graph Search API",
|
||||
"discoveryVersion": "v1",
|
||||
"ownerName": "Google",
|
||||
"version_module": true,
|
||||
@@ -14,19 +6,43 @@
|
||||
"entities": {
|
||||
"methods": {
|
||||
"search": {
|
||||
"id": "kgsearch.entities.search",
|
||||
"path": "v1/entities:search",
|
||||
"description": "Searches Knowledge Graph for entities that match the constraints.\nA list of matched entities will be returned in response, which will be in\nJSON-LD format and compatible with http://schema.org",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [],
|
||||
"response": {
|
||||
"$ref": "SearchResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"types": {
|
||||
"ids": {
|
||||
"description": "The list of entity id to be used for search instead of query string.\nTo specify multiple ids in the HTTP request, repeat the parameter in the\nURL as in ...?ids=A&ids=B",
|
||||
"type": "string",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"limit": {
|
||||
"location": "query",
|
||||
"description": "Restricts returned entities with these types, e.g. Person\n(as defined in http://schema.org/Person). If multiple types are specified,\nreturned entities will contain one or more of these types.",
|
||||
"description": "Limits the number of entities to be returned.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "Enables prefix match against names and aliases of entities",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"query": {
|
||||
"location": "query",
|
||||
"description": "The literal query string for search.",
|
||||
"type": "string"
|
||||
},
|
||||
"types": {
|
||||
"description": "Restricts returned entities with these types, e.g. Person\n(as defined in http://schema.org/Person). If multiple types are specified,\nreturned entities will contain one or more of these types.",
|
||||
"type": "string",
|
||||
"repeated": true,
|
||||
"location": "query"
|
||||
},
|
||||
"indent": {
|
||||
"location": "query",
|
||||
"description": "Enables indenting of json results.",
|
||||
@@ -37,63 +53,18 @@
|
||||
"location": "query",
|
||||
"description": "The list of language codes (defined in ISO 693) to run the query with,\ne.g. 'en'.",
|
||||
"type": "string"
|
||||
},
|
||||
"ids": {
|
||||
"repeated": true,
|
||||
"location": "query",
|
||||
"description": "The list of entity id to be used for search instead of query string.\nTo specify multiple ids in the HTTP request, repeat the parameter in the\nURL as in ...?ids=A&ids=B",
|
||||
"type": "string"
|
||||
},
|
||||
"limit": {
|
||||
"format": "int32",
|
||||
"description": "Limits the number of entities to be returned.",
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "Enables prefix match against names and aliases of entities",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"query": {
|
||||
"location": "query",
|
||||
"description": "The literal query string for search.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/entities:search",
|
||||
"id": "kgsearch.entities.search",
|
||||
"path": "v1/entities:search"
|
||||
"flatPath": "v1/entities:search"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"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": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
@@ -101,22 +72,22 @@
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
]
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
@@ -134,13 +105,13 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"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.",
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"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.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -151,9 +122,30 @@
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
@@ -161,34 +153,42 @@
|
||||
"description": "Response message includes the context and a list of matching results\nwhich contain the detail of associated entities.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"itemListElement": {
|
||||
"description": "The item list of search results.",
|
||||
"items": {
|
||||
"type": "any"
|
||||
},
|
||||
"type": "array"
|
||||
"@type": {
|
||||
"description": "The schema type of top-level JSON-LD object, e.g. ItemList.",
|
||||
"type": "any"
|
||||
},
|
||||
"@context": {
|
||||
"description": "The local context applicable for the response. See more details at\nhttp://www.w3.org/TR/json-ld/#context-definitions.",
|
||||
"type": "any"
|
||||
},
|
||||
"@type": {
|
||||
"description": "The schema type of top-level JSON-LD object, e.g. ItemList.",
|
||||
"type": "any"
|
||||
"itemListElement": {
|
||||
"description": "The item list of search results.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "SearchResponse"
|
||||
}
|
||||
},
|
||||
"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://kgsearch.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Searches the Google Knowledge Graph for entities.",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://kgsearch.googleapis.com/"
|
||||
"description": "Searches the Google Knowledge Graph for entities.",
|
||||
"kind": "discovery#restDescription",
|
||||
"rootUrl": "https://kgsearch.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "kgsearch",
|
||||
"batchPath": "batch",
|
||||
"revision": "20171103",
|
||||
"documentationLink": "https://developers.google.com/knowledge-graph/",
|
||||
"id": "kgsearch:v1",
|
||||
"title": "Knowledge Graph Search API"
|
||||
}
|
||||
|
||||
6
vendor/google.golang.org/api/kgsearch/v1/kgsearch-gen.go
generated
vendored
6
vendor/google.golang.org/api/kgsearch/v1/kgsearch-gen.go
generated
vendored
@@ -109,8 +109,8 @@ type SearchResponse struct {
|
||||
}
|
||||
|
||||
func (s *SearchResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ func (c *EntitiesSearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
||||
Reference in New Issue
Block a user