Skip to content

Commit

Permalink
fix(customsearch): update the API
Browse files Browse the repository at this point in the history
#### customsearch:v1
The following keys were changed:
- resources.cse.methods.list.parameters.sort.description
- resources.cse.resources.siterestrict.methods.list.parameters.sort.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 17, 2020
1 parent 84f2be8 commit ae136da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions discovery/customsearch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
"type": "string"
},
"sort": {
"description": "The sort expression to apply to the results.",
"description": "The sort expression to apply to the results. The sort parameter specifies\nthat the results be sorted according to the specified expression i.e. sort\nby date.\n[Example:\nsort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -538,7 +538,7 @@
"type": "string"
},
"sort": {
"description": "The sort expression to apply to the results.",
"description": "The sort expression to apply to the results. The sort parameter specifies\nthat the results be sorted according to the specified expression i.e. sort\nby date.\n[Example:\nsort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).",
"location": "query",
"type": "string"
},
Expand All @@ -559,7 +559,7 @@
}
}
},
"revision": "20200511",
"revision": "20200715",
"rootUrl": "https://customsearch.googleapis.com/",
"schemas": {
"Promotion": {
Expand Down
20 changes: 14 additions & 6 deletions src/apis/customsearch/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,11 @@ export namespace customsearch_v1 {
* //
* // * `"i"`: include
* siteSearchFilter: 'placeholder-value',
* // The sort expression to apply to the results.
* // The sort expression to apply to the results. The sort parameter specifies
* // that the results be sorted according to the specified expression i.e. sort
* // by date.
* // [Example:
* // sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
* sort: 'placeholder-value',
* // The index of the first result to return. The default number of results per
* // page is 10, so `&start=11` would start at the top of the second page of
Expand Down Expand Up @@ -787,7 +791,7 @@ export namespace customsearch_v1 {
* @param {string=} params.searchType Specifies the search type: `image`. If unspecified, results are limited to webpages. Acceptable values are: * `"image"`: custom image search.
* @param {string=} params.siteSearch Specifies a given site which should always be included or excluded from results (see `siteSearchFilter` parameter, below).
* @param {string=} params.siteSearchFilter Controls whether to include or exclude results from the site named in the `siteSearch` parameter. Acceptable values are: * `"e"`: exclude * `"i"`: include
* @param {string=} params.sort The sort expression to apply to the results.
* @param {string=} params.sort The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
* @param {integer=} params.start The index of the first result to return. The default number of results per page is 10, so `&start=11` would start at the top of the second page of results. **Note**: The JSON API will never return more than 100 results, even if more than 100 documents match the query, so setting the sum of `start + num` to a number greater than 100 will produce an error. Also note that the maximum value for `num` is 10.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -987,7 +991,7 @@ export namespace customsearch_v1 {
*/
siteSearchFilter?: string;
/**
* The sort expression to apply to the results.
* The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
*/
sort?: string;
/**
Expand Down Expand Up @@ -1322,7 +1326,11 @@ export namespace customsearch_v1 {
* //
* // * `"i"`: include
* siteSearchFilter: 'placeholder-value',
* // The sort expression to apply to the results.
* // The sort expression to apply to the results. The sort parameter specifies
* // that the results be sorted according to the specified expression i.e. sort
* // by date.
* // [Example:
* // sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
* sort: 'placeholder-value',
* // The index of the first result to return. The default number of results per
* // page is 10, so `&start=11` would start at the top of the second page of
Expand Down Expand Up @@ -1385,7 +1393,7 @@ export namespace customsearch_v1 {
* @param {string=} params.searchType Specifies the search type: `image`. If unspecified, results are limited to webpages. Acceptable values are: * `"image"`: custom image search.
* @param {string=} params.siteSearch Specifies a given site which should always be included or excluded from results (see `siteSearchFilter` parameter, below).
* @param {string=} params.siteSearchFilter Controls whether to include or exclude results from the site named in the `siteSearch` parameter. Acceptable values are: * `"e"`: exclude * `"i"`: include
* @param {string=} params.sort The sort expression to apply to the results.
* @param {string=} params.sort The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
* @param {integer=} params.start The index of the first result to return. The default number of results per page is 10, so `&start=11` would start at the top of the second page of results. **Note**: The JSON API will never return more than 100 results, even if more than 100 documents match the query, so setting the sum of `start + num` to a number greater than 100 will produce an error. Also note that the maximum value for `num` is 10.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -1590,7 +1598,7 @@ export namespace customsearch_v1 {
*/
siteSearchFilter?: string;
/**
* The sort expression to apply to the results.
* The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).
*/
sort?: string;
/**
Expand Down

0 comments on commit ae136da

Please # to comment.