Debian Codegraph @

docs/dyn/cloudsearch_v1.settings.searchapplications.html

raw
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.settings.html">settings</a> . <a href="cloudsearch_v1.settings.searchapplications.html">searchapplications</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a search application. **Note:** This API requires an admin account to execute.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a search application. **Note:** This API requires an admin account to execute.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the specified search application. **Note:** This API requires an admin account to execute.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all search applications. **Note:** This API requires an admin account to execute.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a search application. **Note:** This API requires an admin account to execute.</p>
98 <p class="toc_element">
99 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.</p>
101 <p class="toc_element">
102 <code><a href="#update">update(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates a search application. **Note:** This API requires an admin account to execute.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
112 <pre>Creates a search application. **Note:** This API requires an admin account to execute.
113
114 Args:
115 body: object, The request body.
116 The object takes the form of:
117
118 { # SearchApplication
119 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
120 { # Restriction on Datasource.
121 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
122 { # Filter options to be applied on query.
123 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
124 &quot;compositeFilter&quot;: {
125 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
126 &quot;subFilters&quot;: [ # Sub filters.
127 # Object with schema name: Filter
128 ],
129 },
130 &quot;valueFilter&quot;: {
131 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
132 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
133 &quot;booleanValue&quot;: True or False,
134 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
135 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
136 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
137 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
138 },
139 &quot;doubleValue&quot;: 3.14,
140 &quot;integerValue&quot;: &quot;A String&quot;,
141 &quot;stringValue&quot;: &quot;A String&quot;,
142 &quot;timestampValue&quot;: &quot;A String&quot;,
143 },
144 },
145 },
146 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
147 },
148 ],
149 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
150 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
151 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
152 },
153 },
154 ],
155 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
156 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
157 &quot;integerFacetingOptions&quot;: { # Used to specify integer faceting options. # If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.
158 &quot;integerBuckets&quot;: [ # Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {&lt;1, [1,5), [5-10), [10-100), &gt;=100}.
159 &quot;A String&quot;,
160 ],
161 },
162 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
163 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
164 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
165 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
166 },
167 ],
168 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
169 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
170 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
171 },
172 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
173 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
174 &quot;name&quot;: &quot;A String&quot;, # The name of the Search Application. Format: searchapplications/{application_id}.
175 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
176 &quot;A String&quot;,
177 ],
178 &quot;queryInterpretationConfig&quot;: { # Default options to interpret user query. # The default options for query interpretation
179 &quot;forceDisableSupplementalResults&quot;: True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
180 &quot;forceVerbatimMode&quot;: True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
181 },
182 &quot;returnResultThumbnailUrls&quot;: True or False, # With each result we should return the URI for its thumbnail (when applicable)
183 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
184 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
185 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
186 },
187 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
188 { # Configurations for a source while processing a Search or Suggest request.
189 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
190 &quot;numResults&quot;: 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
191 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
192 },
193 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
194 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
195 },
196 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
197 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
198 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
199 },
200 },
201 ],
202 }
203
204 x__xgafv: string, V1 error format.
205 Allowed values
206 1 - v1 error format
207 2 - v2 error format
208
209 Returns:
210 An object of the form:
211
212 { # This resource represents a long-running operation that is the result of a network API call.
213 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
214 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
215 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
216 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
217 {
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
220 ],
221 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
222 },
223 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
226 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
227 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
229 },
230 }</pre>
231 </div>
232
233 <div class="method">
234 <code class="details" id="delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
235 <pre>Deletes a search application. **Note:** This API requires an admin account to execute.
236
237 Args:
238 name: string, The name of the search application to be deleted. Format: applications/{application_id}. (required)
239 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245 Returns:
246 An object of the form:
247
248 { # This resource represents a long-running operation that is the result of a network API call.
249 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
250 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
251 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
252 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
253 {
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
255 },
256 ],
257 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
258 },
259 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
261 },
262 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
263 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
265 },
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</code>
271 <pre>Gets the specified search application. **Note:** This API requires an admin account to execute.
272
273 Args:
274 name: string, The name of the search application. Format: searchapplications/{application_id}. (required)
275 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281 Returns:
282 An object of the form:
283
284 { # SearchApplication
285 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
286 { # Restriction on Datasource.
287 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
288 { # Filter options to be applied on query.
289 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
290 &quot;compositeFilter&quot;: {
291 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
292 &quot;subFilters&quot;: [ # Sub filters.
293 # Object with schema name: Filter
294 ],
295 },
296 &quot;valueFilter&quot;: {
297 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
298 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
299 &quot;booleanValue&quot;: True or False,
300 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
301 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
302 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
303 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
304 },
305 &quot;doubleValue&quot;: 3.14,
306 &quot;integerValue&quot;: &quot;A String&quot;,
307 &quot;stringValue&quot;: &quot;A String&quot;,
308 &quot;timestampValue&quot;: &quot;A String&quot;,
309 },
310 },
311 },
312 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
313 },
314 ],
315 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
316 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
317 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
318 },
319 },
320 ],
321 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
322 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
323 &quot;integerFacetingOptions&quot;: { # Used to specify integer faceting options. # If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.
324 &quot;integerBuckets&quot;: [ # Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {&lt;1, [1,5), [5-10), [10-100), &gt;=100}.
325 &quot;A String&quot;,
326 ],
327 },
328 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
329 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
330 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
331 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
332 },
333 ],
334 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
335 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
336 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
337 },
338 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
339 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
340 &quot;name&quot;: &quot;A String&quot;, # The name of the Search Application. Format: searchapplications/{application_id}.
341 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
342 &quot;A String&quot;,
343 ],
344 &quot;queryInterpretationConfig&quot;: { # Default options to interpret user query. # The default options for query interpretation
345 &quot;forceDisableSupplementalResults&quot;: True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
346 &quot;forceVerbatimMode&quot;: True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
347 },
348 &quot;returnResultThumbnailUrls&quot;: True or False, # With each result we should return the URI for its thumbnail (when applicable)
349 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
350 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
351 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
352 },
353 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
354 { # Configurations for a source while processing a Search or Suggest request.
355 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
356 &quot;numResults&quot;: 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
357 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
358 },
359 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
360 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
361 },
362 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
363 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
364 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
365 },
366 },
367 ],
368 }</pre>
369 </div>
370
371 <div class="method">
372 <code class="details" id="list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
373 <pre>Lists all search applications. **Note:** This API requires an admin account to execute.
374
375 Args:
376 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
377 pageSize: integer, The maximum number of items to return.
378 pageToken: string, The next_page_token value returned from a previous List request, if any. The default value is 10
379 x__xgafv: string, V1 error format.
380 Allowed values
381 1 - v1 error format
382 2 - v2 error format
383
384 Returns:
385 An object of the form:
386
387 {
388 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
389 &quot;searchApplications&quot;: [
390 { # SearchApplication
391 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
392 { # Restriction on Datasource.
393 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
394 { # Filter options to be applied on query.
395 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
396 &quot;compositeFilter&quot;: {
397 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
398 &quot;subFilters&quot;: [ # Sub filters.
399 # Object with schema name: Filter
400 ],
401 },
402 &quot;valueFilter&quot;: {
403 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
404 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
405 &quot;booleanValue&quot;: True or False,
406 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
407 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
408 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
409 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
410 },
411 &quot;doubleValue&quot;: 3.14,
412 &quot;integerValue&quot;: &quot;A String&quot;,
413 &quot;stringValue&quot;: &quot;A String&quot;,
414 &quot;timestampValue&quot;: &quot;A String&quot;,
415 },
416 },
417 },
418 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
419 },
420 ],
421 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
422 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
423 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
424 },
425 },
426 ],
427 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
428 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
429 &quot;integerFacetingOptions&quot;: { # Used to specify integer faceting options. # If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.
430 &quot;integerBuckets&quot;: [ # Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {&lt;1, [1,5), [5-10), [10-100), &gt;=100}.
431 &quot;A String&quot;,
432 ],
433 },
434 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
435 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
436 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
437 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
438 },
439 ],
440 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
441 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
442 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
443 },
444 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
445 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
446 &quot;name&quot;: &quot;A String&quot;, # The name of the Search Application. Format: searchapplications/{application_id}.
447 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
448 &quot;A String&quot;,
449 ],
450 &quot;queryInterpretationConfig&quot;: { # Default options to interpret user query. # The default options for query interpretation
451 &quot;forceDisableSupplementalResults&quot;: True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
452 &quot;forceVerbatimMode&quot;: True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
453 },
454 &quot;returnResultThumbnailUrls&quot;: True or False, # With each result we should return the URI for its thumbnail (when applicable)
455 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
456 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
457 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
458 },
459 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
460 { # Configurations for a source while processing a Search or Suggest request.
461 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
462 &quot;numResults&quot;: 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
463 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
464 },
465 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
466 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
467 },
468 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
469 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
470 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
471 },
472 },
473 ],
474 },
475 ],
476 }</pre>
477 </div>
478
479 <div class="method">
480 <code class="details" id="list_next">list_next()</code>
481 <pre>Retrieves the next page of results.
482
483 Args:
484 previous_request: The request for the previous page. (required)
485 previous_response: The response from the request for the previous page. (required)
486
487 Returns:
488 A request object that you can call &#x27;execute()&#x27; on to request the next
489 page. Returns None if there are no more items in the collection.
490 </pre>
491 </div>
492
493 <div class="method">
494 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
495 <pre>Updates a search application. **Note:** This API requires an admin account to execute.
496
497 Args:
498 name: string, The name of the Search Application. Format: searchapplications/{application_id}. (required)
499 body: object, The request body.
500 The object takes the form of:
501
502 { # SearchApplication
503 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
504 { # Restriction on Datasource.
505 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
506 { # Filter options to be applied on query.
507 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
508 &quot;compositeFilter&quot;: {
509 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
510 &quot;subFilters&quot;: [ # Sub filters.
511 # Object with schema name: Filter
512 ],
513 },
514 &quot;valueFilter&quot;: {
515 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
516 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
517 &quot;booleanValue&quot;: True or False,
518 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
519 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
520 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
521 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
522 },
523 &quot;doubleValue&quot;: 3.14,
524 &quot;integerValue&quot;: &quot;A String&quot;,
525 &quot;stringValue&quot;: &quot;A String&quot;,
526 &quot;timestampValue&quot;: &quot;A String&quot;,
527 },
528 },
529 },
530 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
531 },
532 ],
533 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
534 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
535 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
536 },
537 },
538 ],
539 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
540 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
541 &quot;integerFacetingOptions&quot;: { # Used to specify integer faceting options. # If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.
542 &quot;integerBuckets&quot;: [ # Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {&lt;1, [1,5), [5-10), [10-100), &gt;=100}.
543 &quot;A String&quot;,
544 ],
545 },
546 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
547 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
548 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
549 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
550 },
551 ],
552 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
553 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
554 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
555 },
556 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
557 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
558 &quot;name&quot;: &quot;A String&quot;, # The name of the Search Application. Format: searchapplications/{application_id}.
559 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
560 &quot;A String&quot;,
561 ],
562 &quot;queryInterpretationConfig&quot;: { # Default options to interpret user query. # The default options for query interpretation
563 &quot;forceDisableSupplementalResults&quot;: True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
564 &quot;forceVerbatimMode&quot;: True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
565 },
566 &quot;returnResultThumbnailUrls&quot;: True or False, # With each result we should return the URI for its thumbnail (when applicable)
567 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
568 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
569 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
570 },
571 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
572 { # Configurations for a source while processing a Search or Suggest request.
573 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
574 &quot;numResults&quot;: 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
575 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
576 },
577 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
578 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
579 },
580 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
581 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
582 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
583 },
584 },
585 ],
586 }
587
588 updateMask: string, Only applies to [`settings.searchapplications.patch`](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask to control which fields to update. Example field paths: `search_application.name`, `search_application.displayName`. * If `update_mask` is non-empty, then only the fields specified in the `update_mask` are updated. * If you specify a field in the `update_mask`, but don&#x27;t specify its value in the `search_application`, then that field is cleared. * If the `update_mask` is not present or empty or has the value `*`, then all fields are updated.
589 x__xgafv: string, V1 error format.
590 Allowed values
591 1 - v1 error format
592 2 - v2 error format
593
594 Returns:
595 An object of the form:
596
597 { # This resource represents a long-running operation that is the result of a network API call.
598 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
599 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
600 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
601 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
602 {
603 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
604 },
605 ],
606 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
607 },
608 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
609 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
610 },
611 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
612 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
613 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
614 },
615 }</pre>
616 </div>
617
618 <div class="method">
619 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
620 <pre>Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.
621
622 Args:
623 name: string, The name of the search application to be reset. Format: applications/{application_id}. (required)
624 body: object, The request body.
625 The object takes the form of:
626
627 {
628 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
629 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
630 },
631 }
632
633 x__xgafv: string, V1 error format.
634 Allowed values
635 1 - v1 error format
636 2 - v2 error format
637
638 Returns:
639 An object of the form:
640
641 { # This resource represents a long-running operation that is the result of a network API call.
642 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
643 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
644 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
645 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
646 {
647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
648 },
649 ],
650 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
651 },
652 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
653 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
654 },
655 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
656 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
657 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
658 },
659 }</pre>
660 </div>
661
662 <div class="method">
663 <code class="details" id="update">update(name, body=None, updateMask=None, x__xgafv=None)</code>
664 <pre>Updates a search application. **Note:** This API requires an admin account to execute.
665
666 Args:
667 name: string, The name of the Search Application. Format: searchapplications/{application_id}. (required)
668 body: object, The request body.
669 The object takes the form of:
670
671 { # SearchApplication
672 &quot;dataSourceRestrictions&quot;: [ # Retrictions applied to the configurations. The maximum number of elements is 10.
673 { # Restriction on Datasource.
674 &quot;filterOptions&quot;: [ # Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: &quot;objecttype&quot;, &quot;type&quot; and &quot;mimetype&quot;. For now, schema specific filters cannot be used to filter suggestions.
675 { # Filter options to be applied on query.
676 &quot;filter&quot;: { # A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. # Generic filter to restrict the search, such as `lang:en`, `site:xyz`.
677 &quot;compositeFilter&quot;: {
678 &quot;logicOperator&quot;: &quot;A String&quot;, # The logic operator of the sub filter.
679 &quot;subFilters&quot;: [ # Sub filters.
680 # Object with schema name: Filter
681 ],
682 },
683 &quot;valueFilter&quot;: {
684 &quot;operatorName&quot;: &quot;A String&quot;, # The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
685 &quot;value&quot;: { # Definition of a single value with generic type. # The value to be compared with.
686 &quot;booleanValue&quot;: True or False,
687 &quot;dateValue&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
688 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
689 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
690 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
691 },
692 &quot;doubleValue&quot;: 3.14,
693 &quot;integerValue&quot;: &quot;A String&quot;,
694 &quot;stringValue&quot;: &quot;A String&quot;,
695 &quot;timestampValue&quot;: &quot;A String&quot;,
696 },
697 },
698 },
699 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
700 },
701 ],
702 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source of restriction.
703 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
704 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
705 },
706 },
707 ],
708 &quot;defaultFacetOptions&quot;: [ # The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
709 { # Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
710 &quot;integerFacetingOptions&quot;: { # Used to specify integer faceting options. # If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.
711 &quot;integerBuckets&quot;: [ # Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {&lt;1, [1,5), [5-10), [10-100), &gt;=100}.
712 &quot;A String&quot;,
713 ],
714 },
715 &quot;numFacetBuckets&quot;: 42, # Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
716 &quot;objectType&quot;: &quot;A String&quot;, # If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
717 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
718 &quot;sourceName&quot;: &quot;A String&quot;, # Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
719 },
720 ],
721 &quot;defaultSortOptions&quot;: { # The default options for sorting the search results
722 &quot;operatorName&quot;: &quot;A String&quot;, # The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
723 &quot;sortOrder&quot;: &quot;A String&quot;, # Ascending is the default sort order
724 },
725 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the Search Application. The maximum length is 300 characters.
726 &quot;enableAuditLog&quot;: True or False, # Indicates whether audit logging is on/off for requests made for the search application in query APIs.
727 &quot;name&quot;: &quot;A String&quot;, # The name of the Search Application. Format: searchapplications/{application_id}.
728 &quot;operationIds&quot;: [ # Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
729 &quot;A String&quot;,
730 ],
731 &quot;queryInterpretationConfig&quot;: { # Default options to interpret user query. # The default options for query interpretation
732 &quot;forceDisableSupplementalResults&quot;: True or False, # Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
733 &quot;forceVerbatimMode&quot;: True or False, # Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
734 },
735 &quot;returnResultThumbnailUrls&quot;: True or False, # With each result we should return the URI for its thumbnail (when applicable)
736 &quot;scoringConfig&quot;: { # Scoring configurations for a source while processing a Search or Suggest request. # Configuration for ranking results.
737 &quot;disableFreshness&quot;: True or False, # Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
738 &quot;disablePersonalization&quot;: True or False, # Whether to personalize the results. By default, personal signals will be used to boost results.
739 },
740 &quot;sourceConfig&quot;: [ # Configuration for a sources specified in data_source_restrictions.
741 { # Configurations for a source while processing a Search or Suggest request.
742 &quot;crowdingConfig&quot;: { # Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host &quot;crowd out&quot; other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. # The crowding configuration for the source.
743 &quot;numResults&quot;: 42, # Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
744 &quot;numSuggestions&quot;: 42, # Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
745 },
746 &quot;scoringConfig&quot;: { # Set the scoring configuration. This allows modifying the ranking of results for a source. # The scoring configuration for the source.
747 &quot;sourceImportance&quot;: &quot;A String&quot;, # Importance of the source.
748 },
749 &quot;source&quot;: { # Defines sources for the suggest/search APIs. # The source for which this configuration is to be used.
750 &quot;name&quot;: &quot;A String&quot;, # Source name for content indexed by the Indexing API.
751 &quot;predefinedSource&quot;: &quot;A String&quot;, # Predefined content source for Google Apps.
752 },
753 },
754 ],
755 }
756
757 updateMask: string, Only applies to [`settings.searchapplications.patch`](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask to control which fields to update. Example field paths: `search_application.name`, `search_application.displayName`. * If `update_mask` is non-empty, then only the fields specified in the `update_mask` are updated. * If you specify a field in the `update_mask`, but don&#x27;t specify its value in the `search_application`, then that field is cleared. * If the `update_mask` is not present or empty or has the value `*`, then all fields are updated.
758 x__xgafv: string, V1 error format.
759 Allowed values
760 1 - v1 error format
761 2 - v2 error format
762
763 Returns:
764 An object of the form:
765
766 { # This resource represents a long-running operation that is the result of a network API call.
767 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
768 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
769 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
770 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
771 {
772 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
773 },
774 ],
775 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
776 },
777 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
779 },
780 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
781 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
782 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
783 },
784 }</pre>
785 </div>
786
787 </body></html>