Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="cloudsearch_v1.html">Cloud Search API</a> . <a href="cloudsearch_v1.query.html">query</a> . <a href="cloudsearch_v1.query.sources.html">sources</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 78 | <code><a href="#list">list(pageToken=None, requestOptions_timeZone=None, requestOptions_debugOptions_enableDebugging=None, requestOptions_languageCode=None, requestOptions_searchApplicationId=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Returns list of sources that user can use for Search and Suggest APIs.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 82 | <p class="firstline">Retrieves the next page of results.</p> |
| 83 | <h3>Method Details</h3> |
| 84 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 85 | <code class="details" id="list">list(pageToken=None, requestOptions_timeZone=None, requestOptions_debugOptions_enableDebugging=None, requestOptions_languageCode=None, requestOptions_searchApplicationId=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 86 | <pre>Returns list of sources that user can use for Search and Suggest APIs. |
| 87 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 88 | **Note:** This API requires a standard end user account to execute. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 89 | A service account can't perform Query API requests directly; to use a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 90 | service account to perform queries, set up [G Suite domain-wide delegation |
| 91 | of |
| 92 | authority](https://developers.google.com/cloud-search/docs/guides/delegation/). |
| 93 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 95 | pageToken: string, Number of sources to return in the response. |
| 96 | requestOptions_timeZone: string, Current user's time zone id, such as "America/Los_Angeles" or |
| 97 | "Australia/Sydney". These IDs are defined by |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) |
| 99 | project, and currently available in the file |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 100 | [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). |
| 101 | This field is used to correctly interpret date and time queries. |
| 102 | If this field is not specified, the default time zone (UTC) is used. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | requestOptions_debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. |
| 104 | Otherwise, ignore this field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 105 | requestOptions_languageCode: string, The BCP-47 language code, such as "en-US" or "sr-Latn". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 106 | For more information, see |
| 107 | http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 108 | For translations. |
| 109 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 110 | Set this field using the language set in browser or for the page. In the |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 111 | event that the user's language preference is known, set this field to the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 112 | known user language. |
| 113 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 114 | When specified, the documents in search results are biased towards the |
| 115 | specified language. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 116 | |
| 117 | The suggest API does not use this parameter. Instead, suggest autocompletes |
| 118 | only based on characters in the query. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 119 | requestOptions_searchApplicationId: string, The ID generated when you create a search application using the |
| 120 | [admin console](https://support.google.com/a/answer/9043922). |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 121 | x__xgafv: string, V1 error format. |
| 122 | Allowed values |
| 123 | 1 - v1 error format |
| 124 | 2 - v2 error format |
| 125 | |
| 126 | Returns: |
| 127 | An object of the form: |
| 128 | |
| 129 | { # List sources response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 130 | "nextPageToken": "A String", |
| 131 | "sources": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 132 | { # List of sources that the user can search using the query API. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 133 | "operators": [ # List of all operators applicable for this source. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 134 | { # The definition of a operator that can be used in a Search/Suggest request. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 135 | "operatorName": "A String", # The name of the operator. |
| 136 | "isSortable": True or False, # Can this operator be used to sort results. |
| 137 | "isFacetable": True or False, # Can this operator be used to get facets. |
| 138 | "isReturnable": True or False, # Will the property associated with this facet be returned as part of search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 139 | # results. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 140 | "greaterThanOperatorName": "A String", # Indicates the operator name that can be used to isolate the property using |
| 141 | # the greater-than operator. |
| 142 | "displayName": "A String", # Display name of the operator |
| 143 | "isRepeatable": True or False, # Indicates if multiple values can be set for this property. |
| 144 | "enumValues": [ # Potential list of values for the opeatror field. This field is only filled |
| 145 | # when we can safely enumerate all the possible values of this operator. |
| 146 | "A String", |
| 147 | ], |
| 148 | "lessThanOperatorName": "A String", # Indicates the operator name that can be used to isolate the property using |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 149 | # the less-than operator. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 150 | "isSuggestable": True or False, # Can get suggestions for this field. |
| 151 | "type": "A String", # Type of the operator. |
| 152 | "objectType": "A String", # Name of the object corresponding to the operator. This field is only filled |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 153 | # for schema-specific operators, and is unset for common operators. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 154 | }, |
| 155 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 156 | "shortName": "A String", # A short name or alias for the source. This value can be used with the |
| 157 | # 'source' operator. |
| 158 | "displayName": "A String", # Display name of the data source. |
| 159 | "source": { # Defines sources for the suggest/search APIs. # Name of the source |
| 160 | "predefinedSource": "A String", # Predefined content source for Google Apps. |
| 161 | "name": "A String", # Source name for content indexed by the |
| 162 | # Indexing API. |
| 163 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 164 | }, |
| 165 | ], |
| 166 | }</pre> |
| 167 | </div> |
| 168 | |
| 169 | <div class="method"> |
| 170 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 171 | <pre>Retrieves the next page of results. |
| 172 | |
| 173 | Args: |
| 174 | previous_request: The request for the previous page. (required) |
| 175 | previous_response: The response from the request for the previous page. (required) |
| 176 | |
| 177 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 178 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 179 | page. Returns None if there are no more items in the collection. |
| 180 | </pre> |
| 181 | </div> |
| 182 | |
| 183 | </body></html> |