Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Side by Side Diff: discovery/googleapis/customsearch__v1.json

Issue 559053002: Generate 0.1.0 version of googleapis/googleapis_beta (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "basePath": "/customsearch/",
3 "baseUrl": "https://www.googleapis.com/customsearch/",
4 "batchPath": "batch",
5 "description": "Lets you search over a website or collection of websites",
6 "discoveryVersion": "v1",
7 "documentationLink": "https://developers.google.com/custom-search/v1/using_r est",
8 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/KsgpNVP8dzFmgPzAjDdH7uBJP_M\"",
9 "icons": {
10 "x16": "http://www.google.com/images/icons/product/search-16.gif",
11 "x32": "http://www.google.com/images/icons/product/search-32.gif"
12 },
13 "id": "customsearch:v1",
14 "kind": "discovery#restDescription",
15 "name": "customsearch",
16 "ownerDomain": "google.com",
17 "ownerName": "Google",
18 "parameters": {
19 "alt": {
20 "default": "json",
21 "description": "Data format for the response.",
22 "enum": [
23 "atom",
24 "json"
25 ],
26 "enumDescriptions": [
27 "Responses with Content-Type of application/atom+xml",
28 "Responses with Content-Type of application/json"
29 ],
30 "location": "query",
31 "type": "string"
32 },
33 "fields": {
34 "description": "Selector specifying which fields to include in a par tial response.",
35 "location": "query",
36 "type": "string"
37 },
38 "key": {
39 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
40 "location": "query",
41 "type": "string"
42 },
43 "oauth_token": {
44 "description": "OAuth 2.0 token for the current user.",
45 "location": "query",
46 "type": "string"
47 },
48 "prettyPrint": {
49 "default": "true",
50 "description": "Returns response with indentations and line breaks." ,
51 "location": "query",
52 "type": "boolean"
53 },
54 "quotaUser": {
55 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters. Overrides userIp if both are provided.",
56 "location": "query",
57 "type": "string"
58 },
59 "userIp": {
60 "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
61 "location": "query",
62 "type": "string"
63 }
64 },
65 "protocol": "rest",
66 "resources": {
67 "cse": {
68 "methods": {
69 "list": {
70 "description": "Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search res ults.",
71 "httpMethod": "GET",
72 "id": "search.cse.list",
73 "parameterOrder": [
74 "q"
75 ],
76 "parameters": {
77 "c2coff": {
78 "description": "Turns off the translation between zh -CN and zh-TW.",
79 "location": "query",
80 "type": "string"
81 },
82 "cr": {
83 "description": "Country restrict(s).",
84 "location": "query",
85 "type": "string"
86 },
87 "cref": {
88 "description": "The URL of a linked custom search en gine",
89 "location": "query",
90 "type": "string"
91 },
92 "cx": {
93 "description": "The custom search engine ID to scope this search query",
94 "location": "query",
95 "type": "string"
96 },
97 "dateRestrict": {
98 "description": "Specifies all search results are fro m a time period",
99 "location": "query",
100 "type": "string"
101 },
102 "exactTerms": {
103 "description": "Identifies a phrase that all documen ts in the search results must contain",
104 "location": "query",
105 "type": "string"
106 },
107 "excludeTerms": {
108 "description": "Identifies a word or phrase that sho uld not appear in any documents in the search results",
109 "location": "query",
110 "type": "string"
111 },
112 "fileType": {
113 "description": "Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...",
114 "location": "query",
115 "type": "string"
116 },
117 "filter": {
118 "description": "Controls turning on or off the dupli cate content filter.",
119 "enum": [
120 "0",
121 "1"
122 ],
123 "enumDescriptions": [
124 "Turns off duplicate content filter.",
125 "Turns on duplicate content filter."
126 ],
127 "location": "query",
128 "type": "string"
129 },
130 "gl": {
131 "description": "Geolocation of end user.",
132 "location": "query",
133 "type": "string"
134 },
135 "googlehost": {
136 "description": "The local Google domain to use to pe rform the search.",
137 "location": "query",
138 "type": "string"
139 },
140 "highRange": {
141 "description": "Creates a range in form as_nlo value ..as_nhi value and attempts to append it to query",
142 "location": "query",
143 "type": "string"
144 },
145 "hl": {
146 "description": "Sets the user interface language.",
147 "location": "query",
148 "type": "string"
149 },
150 "hq": {
151 "description": "Appends the extra query terms to the query.",
152 "location": "query",
153 "type": "string"
154 },
155 "imgColorType": {
156 "description": "Returns black and white, grayscale, or color images: mono, gray, and color.",
157 "enum": [
158 "color",
159 "gray",
160 "mono"
161 ],
162 "enumDescriptions": [
163 "color",
164 "gray",
165 "mono"
166 ],
167 "location": "query",
168 "type": "string"
169 },
170 "imgDominantColor": {
171 "description": "Returns images of a specific dominan t color: yellow, green, teal, blue, purple, pink, white, gray, black and brown." ,
172 "enum": [
173 "black",
174 "blue",
175 "brown",
176 "gray",
177 "green",
178 "pink",
179 "purple",
180 "teal",
181 "white",
182 "yellow"
183 ],
184 "enumDescriptions": [
185 "black",
186 "blue",
187 "brown",
188 "gray",
189 "green",
190 "pink",
191 "purple",
192 "teal",
193 "white",
194 "yellow"
195 ],
196 "location": "query",
197 "type": "string"
198 },
199 "imgSize": {
200 "description": "Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge. ",
201 "enum": [
202 "huge",
203 "icon",
204 "large",
205 "medium",
206 "small",
207 "xlarge",
208 "xxlarge"
209 ],
210 "enumDescriptions": [
211 "huge",
212 "icon",
213 "large",
214 "medium",
215 "small",
216 "xlarge",
217 "xxlarge"
218 ],
219 "location": "query",
220 "type": "string"
221 },
222 "imgType": {
223 "description": "Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.",
224 "enum": [
225 "clipart",
226 "face",
227 "lineart",
228 "news",
229 "photo"
230 ],
231 "enumDescriptions": [
232 "clipart",
233 "face",
234 "lineart",
235 "news",
236 "photo"
237 ],
238 "location": "query",
239 "type": "string"
240 },
241 "linkSite": {
242 "description": "Specifies that all search results sh ould contain a link to a particular URL",
243 "location": "query",
244 "type": "string"
245 },
246 "lowRange": {
247 "description": "Creates a range in form as_nlo value ..as_nhi value and attempts to append it to query",
248 "location": "query",
249 "type": "string"
250 },
251 "lr": {
252 "description": "The language restriction for the sea rch results",
253 "enum": [
254 "lang_ar",
255 "lang_bg",
256 "lang_ca",
257 "lang_cs",
258 "lang_da",
259 "lang_de",
260 "lang_el",
261 "lang_en",
262 "lang_es",
263 "lang_et",
264 "lang_fi",
265 "lang_fr",
266 "lang_hr",
267 "lang_hu",
268 "lang_id",
269 "lang_is",
270 "lang_it",
271 "lang_iw",
272 "lang_ja",
273 "lang_ko",
274 "lang_lt",
275 "lang_lv",
276 "lang_nl",
277 "lang_no",
278 "lang_pl",
279 "lang_pt",
280 "lang_ro",
281 "lang_ru",
282 "lang_sk",
283 "lang_sl",
284 "lang_sr",
285 "lang_sv",
286 "lang_tr",
287 "lang_zh-CN",
288 "lang_zh-TW"
289 ],
290 "enumDescriptions": [
291 "Arabic",
292 "Bulgarian",
293 "Catalan",
294 "Czech",
295 "Danish",
296 "German",
297 "Greek",
298 "English",
299 "Spanish",
300 "Estonian",
301 "Finnish",
302 "French",
303 "Croatian",
304 "Hungarian",
305 "Indonesian",
306 "Icelandic",
307 "Italian",
308 "Hebrew",
309 "Japanese",
310 "Korean",
311 "Lithuanian",
312 "Latvian",
313 "Dutch",
314 "Norwegian",
315 "Polish",
316 "Portuguese",
317 "Romanian",
318 "Russian",
319 "Slovak",
320 "Slovenian",
321 "Serbian",
322 "Swedish",
323 "Turkish",
324 "Chinese (Simplified)",
325 "Chinese (Traditional)"
326 ],
327 "location": "query",
328 "type": "string"
329 },
330 "num": {
331 "default": "10",
332 "description": "Number of search results to return",
333 "format": "uint32",
334 "location": "query",
335 "type": "integer"
336 },
337 "orTerms": {
338 "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",
339 "location": "query",
340 "type": "string"
341 },
342 "q": {
343 "description": "Query",
344 "location": "query",
345 "required": true,
346 "type": "string"
347 },
348 "relatedSite": {
349 "description": "Specifies that all search results sh ould be pages that are related to the specified URL",
350 "location": "query",
351 "type": "string"
352 },
353 "rights": {
354 "description": "Filters based on licensing. Supporte d values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial , cc_nonderived and combinations of these.",
355 "location": "query",
356 "type": "string"
357 },
358 "safe": {
359 "default": "off",
360 "description": "Search safety level",
361 "enum": [
362 "high",
363 "medium",
364 "off"
365 ],
366 "enumDescriptions": [
367 "Enables highest level of safe search filtering. ",
368 "Enables moderate safe search filtering.",
369 "Disables safe search filtering."
370 ],
371 "location": "query",
372 "type": "string"
373 },
374 "searchType": {
375 "description": "Specifies the search type: image.",
376 "enum": [
377 "image"
378 ],
379 "enumDescriptions": [
380 "custom image search"
381 ],
382 "location": "query",
383 "type": "string"
384 },
385 "siteSearch": {
386 "description": "Specifies all search results should be pages from a given site",
387 "location": "query",
388 "type": "string"
389 },
390 "siteSearchFilter": {
391 "description": "Controls whether to include or exclu de results from the site named in the as_sitesearch parameter",
392 "enum": [
393 "e",
394 "i"
395 ],
396 "enumDescriptions": [
397 "exclude",
398 "include"
399 ],
400 "location": "query",
401 "type": "string"
402 },
403 "sort": {
404 "description": "The sort expression to apply to the results",
405 "location": "query",
406 "type": "string"
407 },
408 "start": {
409 "description": "The index of the first result to ret urn",
410 "format": "uint32",
411 "location": "query",
412 "type": "integer"
413 }
414 },
415 "path": "v1",
416 "response": {
417 "$ref": "Search"
418 }
419 }
420 }
421 }
422 },
423 "revision": "20131205",
424 "rootUrl": "https://www.googleapis.com/",
425 "schemas": {
426 "Context": {
427 "id": "Context",
428 "properties": {
429 "facets": {
430 "items": {
431 "items": {
432 "properties": {
433 "anchor": {
434 "type": "string"
435 },
436 "label": {
437 "type": "string"
438 },
439 "label_with_op": {
440 "type": "string"
441 }
442 },
443 "type": "object"
444 },
445 "type": "array"
446 },
447 "type": "array"
448 },
449 "title": {
450 "type": "string"
451 }
452 },
453 "type": "object"
454 },
455 "Promotion": {
456 "id": "Promotion",
457 "properties": {
458 "bodyLines": {
459 "items": {
460 "properties": {
461 "htmlTitle": {
462 "type": "string"
463 },
464 "link": {
465 "type": "string"
466 },
467 "title": {
468 "type": "string"
469 },
470 "url": {
471 "type": "string"
472 }
473 },
474 "type": "object"
475 },
476 "type": "array"
477 },
478 "displayLink": {
479 "type": "string"
480 },
481 "htmlTitle": {
482 "type": "string"
483 },
484 "image": {
485 "properties": {
486 "height": {
487 "format": "int32",
488 "type": "integer"
489 },
490 "source": {
491 "type": "string"
492 },
493 "width": {
494 "format": "int32",
495 "type": "integer"
496 }
497 },
498 "type": "object"
499 },
500 "link": {
501 "type": "string"
502 },
503 "title": {
504 "type": "string"
505 }
506 },
507 "type": "object"
508 },
509 "Query": {
510 "id": "Query",
511 "properties": {
512 "count": {
513 "format": "int32",
514 "type": "integer"
515 },
516 "cr": {
517 "type": "string"
518 },
519 "cref": {
520 "type": "string"
521 },
522 "cx": {
523 "type": "string"
524 },
525 "dateRestrict": {
526 "type": "string"
527 },
528 "disableCnTwTranslation": {
529 "type": "string"
530 },
531 "exactTerms": {
532 "type": "string"
533 },
534 "excludeTerms": {
535 "type": "string"
536 },
537 "fileType": {
538 "type": "string"
539 },
540 "filter": {
541 "type": "string"
542 },
543 "gl": {
544 "type": "string"
545 },
546 "googleHost": {
547 "type": "string"
548 },
549 "highRange": {
550 "type": "string"
551 },
552 "hl": {
553 "type": "string"
554 },
555 "hq": {
556 "type": "string"
557 },
558 "imgColorType": {
559 "type": "string"
560 },
561 "imgDominantColor": {
562 "type": "string"
563 },
564 "imgSize": {
565 "type": "string"
566 },
567 "imgType": {
568 "type": "string"
569 },
570 "inputEncoding": {
571 "type": "string"
572 },
573 "language": {
574 "type": "string"
575 },
576 "linkSite": {
577 "type": "string"
578 },
579 "lowRange": {
580 "type": "string"
581 },
582 "orTerms": {
583 "type": "string"
584 },
585 "outputEncoding": {
586 "type": "string"
587 },
588 "relatedSite": {
589 "type": "string"
590 },
591 "rights": {
592 "type": "string"
593 },
594 "safe": {
595 "type": "string"
596 },
597 "searchTerms": {
598 "type": "string"
599 },
600 "searchType": {
601 "type": "string"
602 },
603 "siteSearch": {
604 "type": "string"
605 },
606 "siteSearchFilter": {
607 "type": "string"
608 },
609 "sort": {
610 "type": "string"
611 },
612 "startIndex": {
613 "format": "int32",
614 "type": "integer"
615 },
616 "startPage": {
617 "format": "int32",
618 "type": "integer"
619 },
620 "title": {
621 "type": "string"
622 },
623 "totalResults": {
624 "format": "int64",
625 "type": "string"
626 }
627 },
628 "type": "object"
629 },
630 "Result": {
631 "id": "Result",
632 "properties": {
633 "cacheId": {
634 "type": "string"
635 },
636 "displayLink": {
637 "type": "string"
638 },
639 "fileFormat": {
640 "type": "string"
641 },
642 "formattedUrl": {
643 "type": "string"
644 },
645 "htmlFormattedUrl": {
646 "type": "string"
647 },
648 "htmlSnippet": {
649 "type": "string"
650 },
651 "htmlTitle": {
652 "type": "string"
653 },
654 "image": {
655 "properties": {
656 "byteSize": {
657 "format": "int32",
658 "type": "integer"
659 },
660 "contextLink": {
661 "type": "string"
662 },
663 "height": {
664 "format": "int32",
665 "type": "integer"
666 },
667 "thumbnailHeight": {
668 "format": "int32",
669 "type": "integer"
670 },
671 "thumbnailLink": {
672 "type": "string"
673 },
674 "thumbnailWidth": {
675 "format": "int32",
676 "type": "integer"
677 },
678 "width": {
679 "format": "int32",
680 "type": "integer"
681 }
682 },
683 "type": "object"
684 },
685 "kind": {
686 "default": "customsearch#result",
687 "type": "string"
688 },
689 "labels": {
690 "items": {
691 "properties": {
692 "displayName": {
693 "type": "string"
694 },
695 "label_with_op": {
696 "type": "string"
697 },
698 "name": {
699 "type": "string"
700 }
701 },
702 "type": "object"
703 },
704 "type": "array"
705 },
706 "link": {
707 "type": "string"
708 },
709 "mime": {
710 "type": "string"
711 },
712 "pagemap": {
713 "additionalProperties": {
714 "items": {
715 "additionalProperties": {
716 "type": "any"
717 },
718 "type": "object"
719 },
720 "type": "array"
721 },
722 "type": "object"
723 },
724 "snippet": {
725 "type": "string"
726 },
727 "title": {
728 "type": "string"
729 }
730 },
731 "type": "object"
732 },
733 "Search": {
734 "id": "Search",
735 "properties": {
736 "context": {
737 "$ref": "Context"
738 },
739 "items": {
740 "items": {
741 "$ref": "Result"
742 },
743 "type": "array"
744 },
745 "kind": {
746 "default": "customsearch#search",
747 "type": "string"
748 },
749 "promotions": {
750 "items": {
751 "$ref": "Promotion"
752 },
753 "type": "array"
754 },
755 "queries": {
756 "additionalProperties": {
757 "items": {
758 "$ref": "Query"
759 },
760 "type": "array"
761 },
762 "type": "object"
763 },
764 "searchInformation": {
765 "properties": {
766 "formattedSearchTime": {
767 "type": "string"
768 },
769 "formattedTotalResults": {
770 "type": "string"
771 },
772 "searchTime": {
773 "format": "double",
774 "type": "number"
775 },
776 "totalResults": {
777 "format": "int64",
778 "type": "string"
779 }
780 },
781 "type": "object"
782 },
783 "spelling": {
784 "properties": {
785 "correctedQuery": {
786 "type": "string"
787 },
788 "htmlCorrectedQuery": {
789 "type": "string"
790 }
791 },
792 "type": "object"
793 },
794 "url": {
795 "properties": {
796 "template": {
797 "default": "https://www.googleapis.com/customsearch/ v1?q={searchTerms}&num={count?}&start={startIndex?}&lr={language?}&safe={safe?}& cx={cx?}&cref={cref?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost ={googleHost?}&c2coff={disableCnTwTranslation?}&hq={hq?}&hl={hl?}&siteSearch={si teSearch?}&siteSearchFilter={siteSearchFilter?}&exactTerms={exactTerms?}&exclude Terms={excludeTerms?}&linkSite={linkSite?}&orTerms={orTerms?}&relatedSite={relat edSite?}&dateRestrict={dateRestrict?}&lowRange={lowRange?}&highRange={highRange? }&searchType={searchType}&fileType={fileType?}&rights={rights?}&imgSize={imgSize ?}&imgType={imgType?}&imgColorType={imgColorType?}&imgDominantColor={imgDominant Color?}&alt=json",
798 "type": "string"
799 },
800 "type": {
801 "default": "application/json",
802 "type": "string"
803 }
804 },
805 "type": "object"
806 }
807 },
808 "type": "object"
809 }
810 },
811 "servicePath": "customsearch/",
812 "title": "CustomSearch API",
813 "version": "v1"
814 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698