| Index: generated/googleapis/lib/kgsearch/v1.dart
|
| diff --git a/generated/googleapis/lib/kgsearch/v1.dart b/generated/googleapis/lib/kgsearch/v1.dart
|
| index 32c48646362b71c0fe7e0e9f962c1732e0d35999..ce51ade8d521b4be17f30b7676d6f2201797f528 100644
|
| --- a/generated/googleapis/lib/kgsearch/v1.dart
|
| +++ b/generated/googleapis/lib/kgsearch/v1.dart
|
| @@ -39,10 +39,6 @@ class EntitiesResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [prefix] - Enables prefix match against names and aliases of entities
|
| - *
|
| - * [query] - The literal query string for search.
|
| - *
|
| * [types] - Restricts returned entities with these types, e.g. Person
|
| * (as defined in http://schema.org/Person). If multiple types are specified,
|
| * returned entities will contain one or more of these types.
|
| @@ -60,6 +56,10 @@ class EntitiesResourceApi {
|
| *
|
| * [limit] - Limits the number of entities to be returned.
|
| *
|
| + * [prefix] - Enables prefix match against names and aliases of entities
|
| + *
|
| + * [query] - The literal query string for search.
|
| + *
|
| * Completes with a [SearchResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -68,7 +68,7 @@ class EntitiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SearchResponse> search({core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit}) {
|
| + async.Future<SearchResponse> search({core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit, core.bool prefix, core.String query}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -76,12 +76,6 @@ class EntitiesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (prefix != null) {
|
| - _queryParams["prefix"] = ["${prefix}"];
|
| - }
|
| - if (query != null) {
|
| - _queryParams["query"] = [query];
|
| - }
|
| if (types != null) {
|
| _queryParams["types"] = types;
|
| }
|
| @@ -97,6 +91,12 @@ class EntitiesResourceApi {
|
| if (limit != null) {
|
| _queryParams["limit"] = ["${limit}"];
|
| }
|
| + if (prefix != null) {
|
| + _queryParams["prefix"] = ["${prefix}"];
|
| + }
|
| + if (query != null) {
|
| + _queryParams["query"] = [query];
|
| + }
|
|
|
| _url = 'v1/entities:search';
|
|
|
| @@ -156,8 +156,8 @@ class SearchResponse {
|
| }
|
| }
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| if (P_context != null) {
|
| _json["@context"] = P_context;
|
| }
|
|
|