blob: 1f40dd144b3214aa5c98a2523d159c1ce65d843c [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.indexing.html">indexing</a> . <a href="cloudsearch_v1.indexing.datasources.html">datasources</a> . <a href="cloudsearch_v1.indexing.datasources.items.html">items</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#delete">delete(name, version=None, mode=None, debugOptions_enableDebugging=None, connectorName=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes Item resource for the</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes all items in a queue. This method is useful for deleting stale</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets Item resource by item name.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#index">index(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Updates Item ACL, metadata, and</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(name, connectorName=None, pageSize=None, debugOptions_enableDebugging=None, pageToken=None, brief=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists all or a subset of Item resources.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#poll">poll(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Polls for unreserved items from the indexing queue and marks a</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#push">push(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Pushes an item onto a queue for later polling and updating.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#unreserve">unreserve(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Unreserves all items from a queue, making them all eligible to be</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#upload">upload(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Creates an upload session for uploading item content. For items smaller</p>
107<h3>Method Details</h3>
108<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 <code class="details" id="delete">delete(name, version=None, mode=None, debugOptions_enableDebugging=None, connectorName=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 <pre>Deletes Item resource for the
Dan O'Mearadd494642020-05-01 07:42:23 -0700111specified resource name. This API requires an admin or service account
112to execute. The service account used is the one whitelisted in the
113corresponding data source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114
115Args:
116 name: string, Required. Name of the item to delete.
117Format: datasources/{source_id}/items/{item_id} (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 version: string, Required. The incremented version of the item to delete from the index.
119The indexing system stores the version from the datasource as a
120byte string and compares the Item version in the index
121to the version of the queued Item using lexical ordering.
Dan O'Mearadd494642020-05-01 07:42:23 -0700122&lt;br /&gt;&lt;br /&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700123Cloud Search Indexing won&#x27;t delete any queued item with
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124a version value that is less than or equal to
125the version of the currently indexed item.
126The maximum length for this field is 1024 bytes.
127 mode: string, Required. The RequestMode for this request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700128 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
129Otherwise, ignore this field.
130 connectorName: string, Name of connector making this call.
131&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
136
137Returns:
138 An object of the form:
139
140 { # This resource represents a long-running operation that is the result of a
141 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 # method returns no data on success, such as `Delete`, the response is
144 # `google.protobuf.Empty`. If the original method is standard
145 # `Get`/`Create`/`Update`, the response should be the resource. For other
146 # methods, the response should have the type `XxxResponse`, where `Xxx`
147 # is the original method name. For example, if the original method name
148 # is `TakeSnapshot()`, the inferred response type is
149 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700151 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
153 # contains progress information and common metadata such as create time.
154 # Some services might not provide such metadata. Any method that returns a
155 # long-running operation should document the metadata type, if any.
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
157 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 # different programming environments, including REST APIs and RPC APIs. It is
160 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
161 # three pieces of data: error code, error message, and error details.
162 #
163 # You can find out more about this error model and how to work with it in the
164 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 # message types for APIs to use.
167 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169 },
170 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
172 # user-facing error message should be localized and sent in the
173 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700174 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
177 # originally returns it. If you use the default HTTP mapping, the
178 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
180 # If `true`, the operation is completed, and either `error` or `response` is
181 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 }</pre>
183</div>
184
185<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 <code class="details" id="deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 <pre>Deletes all items in a queue. This method is useful for deleting stale
188items.
189
Dan O'Mearadd494642020-05-01 07:42:23 -0700190This API requires an admin or service account to execute. The service
191account used is the one whitelisted in the corresponding data source.
192
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193Args:
194 name: string, Name of the Data Source to delete items in a queue.
195Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 The object takes the form of:
198
199{
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to delete items from.
201 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
202 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
204 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 # Otherwise, ignore this field.
206 },
207 }
208
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214Returns:
215 An object of the form:
216
217 { # This resource represents a long-running operation that is the result of a
218 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 # method returns no data on success, such as `Delete`, the response is
221 # `google.protobuf.Empty`. If the original method is standard
222 # `Get`/`Create`/`Update`, the response should be the resource. For other
223 # methods, the response should have the type `XxxResponse`, where `Xxx`
224 # is the original method name. For example, if the original method name
225 # is `TakeSnapshot()`, the inferred response type is
226 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
230 # contains progress information and common metadata such as create time.
231 # Some services might not provide such metadata. Any method that returns a
232 # long-running operation should document the metadata type, if any.
233 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
234 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 # different programming environments, including REST APIs and RPC APIs. It is
237 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
238 # three pieces of data: error code, error message, and error details.
239 #
240 # You can find out more about this error model and how to work with it in the
241 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 # message types for APIs to use.
244 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 },
247 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
249 # user-facing error message should be localized and sent in the
250 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700251 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700253 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
254 # originally returns it. If you use the default HTTP mapping, the
255 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
257 # If `true`, the operation is completed, and either `error` or `response` is
258 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 }</pre>
260</div>
261
262<div class="method">
263 <code class="details" id="get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</code>
264 <pre>Gets Item resource by item name.
265
Dan O'Mearadd494642020-05-01 07:42:23 -0700266This API requires an admin or service account to execute. The service
267account used is the one whitelisted in the corresponding data source.
268
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269Args:
270 name: string, Name of the item to get info.
271Format: datasources/{source_id}/items/{item_id} (required)
272 connectorName: string, Name of connector making this call.
Dan O'Mearadd494642020-05-01 07:42:23 -0700273&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
275Otherwise, ignore this field.
276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281Returns:
282 An object of the form:
283
284 { # Represents a single object that is an item in the search index, such as a
285 # file, folder, or a database record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700286 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
287 # The maximum length is 100 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700288 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
289 # object definition in the schema for the data source.
290 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
291 # This can be used with the
292 # items.push
293 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700295 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
296 # definition in the schema for the data source.
297 &quot;properties&quot;: [ # The properties for the object.
298 # The maximum number of elements is 1000.
299 { # A typed name-value pair for structured data. The type of the value should
300 # be the same as the registered type for the `name` property in the object
301 # definition of `objectType`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700302 &quot;timestampValues&quot;: { # List of timestamp values.
303 &quot;values&quot;: [
304 &quot;A String&quot;,
305 ],
306 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700307 &quot;doubleValues&quot;: { # List of double values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700308 &quot;values&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700309 3.14,
310 ],
311 },
312 &quot;integerValues&quot;: { # List of integer values.
313 &quot;values&quot;: [
314 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700315 ],
316 },
317 &quot;dateValues&quot;: { # List of date values.
318 &quot;values&quot;: [
319 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700320 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700321 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
322 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 },
324 ],
325 },
326 &quot;enumValues&quot;: { # List of enum values.
327 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
328 &quot;A String&quot;,
329 ],
330 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700331 &quot;textValues&quot;: { # List of text values.
332 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
333 &quot;A String&quot;,
334 ],
335 },
336 &quot;booleanValue&quot;: True or False,
337 &quot;htmlValues&quot;: { # List of html values.
338 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
339 &quot;A String&quot;,
340 ],
341 },
342 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
343 # property that was registered for object definition in the schema.
344 # The maximum allowable length for this property is 256 characters.
345 &quot;objectValues&quot;: { # List of object values.
346 &quot;values&quot;: [
347 # Object with schema name: StructuredDataObject
348 ],
349 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700350 },
351 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700353 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700354 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
355 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
356 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
357 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
358 # default value is 0.0.
359 },
360 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
361 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
362 # ItemContent.content
363 # in the source repository.
364 # The maximum length is 256 characters.
365 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
366 # definition in the schema registered for the data source. For example, if
367 # the schema for the data source contains an object definition with name
368 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
369 # objectType to &#x27;document&#x27;.
370 # The maximum length is 256 characters.
371 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
372 # this link to the title.
373 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
374 # trigger a redirect notice; to avoid this, encode the URL.
375 # The maximum length is 2048 characters.
376 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
377 # Search quality, but are not exposed to end users.
378 # The maximum number of elements is 1000.
379 { # Represents an interaction between a user and an item.
380 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
381 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
382 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
383 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
384 # customer.
385 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700386 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700387 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
388 # The name field must specify the group resource name with this format:
389 # identitysources/{source_id}/groups/{ID}
390 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
391 # The name field must specify the user resource name with this format:
392 # identitysources/{source_id}/users/{ID}
393 },
394 &quot;type&quot;: &quot;A String&quot;,
395 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
396 # type exist for a single user, only the most recent action is recorded.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700397 },
398 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
400 # Deletion of the container item leads to automatic deletion of this
401 # item. Note: ACLs are not inherited from a container item.
402 # To provide ACL inheritance for an item, use the
403 # inheritAclFrom
404 # field. The maximum length is 1536 characters.
405 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
406 # Used internally for user generated content.
407 # The maximum number of elements is 100.
408 # The maximum length is 8192 characters.
409 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700411 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
412 # Search result.
413 # The maximum length is 2048 characters.
414 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
415 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
416 # This can be used with the
417 # items.push
418 # method to calculate modified state.
419 # The maximum length is 2048 characters.
420 &quot;contentLanguage&quot;: &quot;A String&quot;, # The BCP-47 language code for the item, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For
421 # more information, see
422 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
423 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700424 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
426 # byte string and compares the Item version in the index
427 # to the version of the queued Item using lexical ordering.
428 # &lt;br /&gt;&lt;br /&gt;
429 # Cloud Search Indexing won&#x27;t index or delete any queued item with
430 # a version value that is less than or equal to the version of the
431 # currently indexed item.
432 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700433 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
434 # [Map ACLs](/cloud-search/docs/guides/acls).
435 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
436 # document access permissions. It does, however, offer
437 # a slight ranking boosts items where the querying user is an owner.
438 # The maximum number of elements is 5.
439 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700440 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
441 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700442 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
443 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700444 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700445 },
446 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
447 # The name field must specify the group resource name with this format:
448 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
450 # The name field must specify the user resource name with this format:
451 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700452 },
453 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
455 # results. While principals are denied access by default, use denied readers
456 # to handle exceptions and override the list allowed readers.
457 # The maximum number of elements is 100.
458 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700459 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
460 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700461 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
462 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700463 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700464 },
465 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
466 # The name field must specify the group resource name with this format:
467 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700468 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
469 # The name field must specify the user resource name with this format:
470 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700471 },
472 ],
473 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
474 # Note: ACL inheritance *only* provides access permissions
475 # to child items and does not define structural relationships, nor does it
476 # provide convenient ways to delete large groups of items.
477 # Deleting an ACL parent from the index only alters the access permissions of
478 # child items that reference the parent in the
479 # inheritAclFrom
480 # field. The item is still in the index, but may not
481 # visible in search results. By contrast, deletion of a container item
482 # also deletes all items that reference the container via the
483 # containerName
484 # field.
485 # The maximum length for this field is 1536 characters.
486 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
487 # Optional if inheriting permissions from another item or if the item
488 # is not intended to be visible, such as
489 # virtual
490 # containers.
491 # The maximum number of elements is 1000.
492 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700493 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
494 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700495 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
496 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700497 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700498 },
499 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
500 # The name field must specify the group resource name with this format:
501 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700502 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
503 # The name field must specify the user resource name with this format:
504 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700505 },
506 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700507 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
508 # parent. This should always be set in tandem with the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700509 # inheritAclFrom
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700510 # field. Also, when the
511 # inheritAclFrom field
512 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700514 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700515 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
516 # Can be used with the items.push method to calculate modified state.
517 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
519 # This reference is created via upload
520 # method.
521 # Updating of item content may refer to this uploaded content via
522 # contentDataRef.
523 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
524 # The maximum length is 2048 characters.
525 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700526 &quot;contentFormat&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700527 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
528 # The maximum length is 102400 bytes (100 KiB).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700529 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700530 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
531 # The maximum length is 10000 bytes.
532 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
533 # Output only field.
534 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
535 { # Errors when the connector is communicating to the source repository.
536 &quot;type&quot;: &quot;A String&quot;, # Type of error.
537 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
538 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
539 # of the message is 8192 characters.
540 },
541 ],
542 &quot;code&quot;: &quot;A String&quot;, # Status code.
543 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
544 {
545 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
546 # about the validation errors.
547 {
548 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
549 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
550 },
551 ],
552 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
553 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
554 },
555 ],
556 },
557 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
558 # datasources/{source_id}/items/{item_id}
559 # &lt;br /&gt;This is a required field.
560 # The maximum length is 1536 characters.
561 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 }</pre>
563</div>
564
565<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 <code class="details" id="index">index(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567 <pre>Updates Item ACL, metadata, and
568content. It will insert the Item if it
569does not exist.
570This method does not support partial updates. Fields with no provided
571values are cleared out in the Cloud Search index.
572
Dan O'Mearadd494642020-05-01 07:42:23 -0700573This API requires an admin or service account to execute. The service
574account used is the one whitelisted in the corresponding data source.
575
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576Args:
577 name: string, Name of the Item. Format:
578datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -0700579&lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 The object takes the form of:
583
584{
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
586 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 # Otherwise, ignore this field.
588 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700589 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
590 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
591 &quot;indexItemOptions&quot;: {
592 &quot;allowUnknownGsuitePrincipals&quot;: True or False, # Specifies if the index request should allow gsuite principals that do not
593 # exist or are deleted in the index request.
594 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;item&quot;: { # Represents a single object that is an item in the search index, such as a # Name of the item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700596 # datasources/{source_id}/items/{item_id}
597 # file, folder, or a database record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700598 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
599 # The maximum length is 100 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
601 # object definition in the schema for the data source.
602 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
603 # This can be used with the
604 # items.push
605 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700607 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
608 # definition in the schema for the data source.
609 &quot;properties&quot;: [ # The properties for the object.
610 # The maximum number of elements is 1000.
611 { # A typed name-value pair for structured data. The type of the value should
612 # be the same as the registered type for the `name` property in the object
613 # definition of `objectType`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700614 &quot;timestampValues&quot;: { # List of timestamp values.
615 &quot;values&quot;: [
616 &quot;A String&quot;,
617 ],
618 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700619 &quot;doubleValues&quot;: { # List of double values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700620 &quot;values&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700621 3.14,
622 ],
623 },
624 &quot;integerValues&quot;: { # List of integer values.
625 &quot;values&quot;: [
626 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700627 ],
628 },
629 &quot;dateValues&quot;: { # List of date values.
630 &quot;values&quot;: [
631 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700632 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700633 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
634 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700635 },
636 ],
637 },
638 &quot;enumValues&quot;: { # List of enum values.
639 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
640 &quot;A String&quot;,
641 ],
642 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700643 &quot;textValues&quot;: { # List of text values.
644 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
645 &quot;A String&quot;,
646 ],
647 },
648 &quot;booleanValue&quot;: True or False,
649 &quot;htmlValues&quot;: { # List of html values.
650 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
651 &quot;A String&quot;,
652 ],
653 },
654 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
655 # property that was registered for object definition in the schema.
656 # The maximum allowable length for this property is 256 characters.
657 &quot;objectValues&quot;: { # List of object values.
658 &quot;values&quot;: [
659 # Object with schema name: StructuredDataObject
660 ],
661 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700662 },
663 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700665 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700666 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
667 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
668 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
669 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
670 # default value is 0.0.
671 },
672 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
673 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
674 # ItemContent.content
675 # in the source repository.
676 # The maximum length is 256 characters.
677 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
678 # definition in the schema registered for the data source. For example, if
679 # the schema for the data source contains an object definition with name
680 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
681 # objectType to &#x27;document&#x27;.
682 # The maximum length is 256 characters.
683 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
684 # this link to the title.
685 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
686 # trigger a redirect notice; to avoid this, encode the URL.
687 # The maximum length is 2048 characters.
688 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
689 # Search quality, but are not exposed to end users.
690 # The maximum number of elements is 1000.
691 { # Represents an interaction between a user and an item.
692 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
693 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
694 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
695 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
696 # customer.
697 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700698 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700699 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
700 # The name field must specify the group resource name with this format:
701 # identitysources/{source_id}/groups/{ID}
702 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
703 # The name field must specify the user resource name with this format:
704 # identitysources/{source_id}/users/{ID}
705 },
706 &quot;type&quot;: &quot;A String&quot;,
707 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
708 # type exist for a single user, only the most recent action is recorded.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700709 },
710 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700711 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
712 # Deletion of the container item leads to automatic deletion of this
713 # item. Note: ACLs are not inherited from a container item.
714 # To provide ACL inheritance for an item, use the
715 # inheritAclFrom
716 # field. The maximum length is 1536 characters.
717 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
718 # Used internally for user generated content.
719 # The maximum number of elements is 100.
720 # The maximum length is 8192 characters.
721 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700723 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
724 # Search result.
725 # The maximum length is 2048 characters.
726 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
727 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
728 # This can be used with the
729 # items.push
730 # method to calculate modified state.
731 # The maximum length is 2048 characters.
732 &quot;contentLanguage&quot;: &quot;A String&quot;, # The BCP-47 language code for the item, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For
733 # more information, see
734 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
735 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700736 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700737 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
738 # byte string and compares the Item version in the index
739 # to the version of the queued Item using lexical ordering.
740 # &lt;br /&gt;&lt;br /&gt;
741 # Cloud Search Indexing won&#x27;t index or delete any queued item with
742 # a version value that is less than or equal to the version of the
743 # currently indexed item.
744 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700745 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
746 # [Map ACLs](/cloud-search/docs/guides/acls).
747 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
748 # document access permissions. It does, however, offer
749 # a slight ranking boosts items where the querying user is an owner.
750 # The maximum number of elements is 5.
751 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700752 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
753 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700754 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
755 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700756 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 },
758 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
759 # The name field must specify the group resource name with this format:
760 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700761 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
762 # The name field must specify the user resource name with this format:
763 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700764 },
765 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700766 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
767 # results. While principals are denied access by default, use denied readers
768 # to handle exceptions and override the list allowed readers.
769 # The maximum number of elements is 100.
770 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700771 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
772 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700773 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
774 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700775 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700776 },
777 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
778 # The name field must specify the group resource name with this format:
779 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700780 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
781 # The name field must specify the user resource name with this format:
782 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700783 },
784 ],
785 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
786 # Note: ACL inheritance *only* provides access permissions
787 # to child items and does not define structural relationships, nor does it
788 # provide convenient ways to delete large groups of items.
789 # Deleting an ACL parent from the index only alters the access permissions of
790 # child items that reference the parent in the
791 # inheritAclFrom
792 # field. The item is still in the index, but may not
793 # visible in search results. By contrast, deletion of a container item
794 # also deletes all items that reference the container via the
795 # containerName
796 # field.
797 # The maximum length for this field is 1536 characters.
798 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
799 # Optional if inheriting permissions from another item or if the item
800 # is not intended to be visible, such as
801 # virtual
802 # containers.
803 # The maximum number of elements is 1000.
804 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700805 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
806 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700807 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
808 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700809 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700810 },
811 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
812 # The name field must specify the group resource name with this format:
813 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700814 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
815 # The name field must specify the user resource name with this format:
816 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700817 },
818 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700819 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
820 # parent. This should always be set in tandem with the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700821 # inheritAclFrom
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700822 # field. Also, when the
823 # inheritAclFrom field
824 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700826 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700827 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
828 # Can be used with the items.push method to calculate modified state.
829 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700830 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
831 # This reference is created via upload
832 # method.
833 # Updating of item content may refer to this uploaded content via
834 # contentDataRef.
835 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
836 # The maximum length is 2048 characters.
837 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700838 &quot;contentFormat&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700839 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
840 # The maximum length is 102400 bytes (100 KiB).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700841 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700842 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
843 # The maximum length is 10000 bytes.
844 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
845 # Output only field.
846 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
847 { # Errors when the connector is communicating to the source repository.
848 &quot;type&quot;: &quot;A String&quot;, # Type of error.
849 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
850 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
851 # of the message is 8192 characters.
852 },
853 ],
854 &quot;code&quot;: &quot;A String&quot;, # Status code.
855 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
856 {
857 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
858 # about the validation errors.
859 {
860 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
861 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
862 },
863 ],
864 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
865 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
866 },
867 ],
868 },
869 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
870 # datasources/{source_id}/items/{item_id}
871 # &lt;br /&gt;This is a required field.
872 # The maximum length is 1536 characters.
873 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 &quot;mode&quot;: &quot;A String&quot;, # Required. The RequestMode for this request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 }
877
878 x__xgafv: string, V1 error format.
879 Allowed values
880 1 - v1 error format
881 2 - v2 error format
882
883Returns:
884 An object of the form:
885
886 { # This resource represents a long-running operation that is the result of a
887 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700888 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 # method returns no data on success, such as `Delete`, the response is
890 # `google.protobuf.Empty`. If the original method is standard
891 # `Get`/`Create`/`Update`, the response should be the resource. For other
892 # methods, the response should have the type `XxxResponse`, where `Xxx`
893 # is the original method name. For example, if the original method name
894 # is `TakeSnapshot()`, the inferred response type is
895 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700897 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700898 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
899 # contains progress information and common metadata such as create time.
900 # Some services might not provide such metadata. Any method that returns a
901 # long-running operation should document the metadata type, if any.
902 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
903 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905 # different programming environments, including REST APIs and RPC APIs. It is
906 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
907 # three pieces of data: error code, error message, and error details.
908 #
909 # You can find out more about this error model and how to work with it in the
910 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 # message types for APIs to use.
913 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700914 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700915 },
916 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
918 # user-facing error message should be localized and sent in the
919 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700920 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700922 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
923 # originally returns it. If you use the default HTTP mapping, the
924 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
926 # If `true`, the operation is completed, and either `error` or `response` is
927 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 }</pre>
929</div>
930
931<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700932 <code class="details" id="list">list(name, connectorName=None, pageSize=None, debugOptions_enableDebugging=None, pageToken=None, brief=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700933 <pre>Lists all or a subset of Item resources.
934
Dan O'Mearadd494642020-05-01 07:42:23 -0700935This API requires an admin or service account to execute. The service
936account used is the one whitelisted in the corresponding data source.
937
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700938Args:
939 name: string, Name of the Data Source to list Items. Format:
940datasources/{source_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 connectorName: string, Name of connector making this call.
942&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700943 pageSize: integer, Maximum number of items to fetch in a request.
944The max value is 1000 when brief is true. The max value is 10 if brief
945is false.
946&lt;br /&gt;The default value is 10
947 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
948Otherwise, ignore this field.
949 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700950 brief: boolean, When set to true, the indexing system only populates the following fields:
951name,
952version,
Dan O'Mearadd494642020-05-01 07:42:23 -0700953queue.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700954metadata.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700955metadata.title,
956metadata.sourceRepositoryURL,
957metadata.objectType,
958metadata.createTime,
959metadata.updateTime,
960metadata.contentLanguage,
961metadata.mimeType,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962structured_data.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700963content.hash,
964itemType,
965itemStatus.code,
966itemStatus.processingError.code,
967itemStatus.repositoryError.type,
968&lt;br /&gt;If this value is false, then all the fields are populated in Item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 x__xgafv: string, V1 error format.
970 Allowed values
971 1 - v1 error format
972 2 - v2 error format
973
974Returns:
975 An object of the form:
976
977 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 &quot;items&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 { # Represents a single object that is an item in the search index, such as a
980 # file, folder, or a database record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700981 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
982 # The maximum length is 100 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700983 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
984 # object definition in the schema for the data source.
985 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
986 # This can be used with the
987 # items.push
988 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700989 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700990 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
991 # definition in the schema for the data source.
992 &quot;properties&quot;: [ # The properties for the object.
993 # The maximum number of elements is 1000.
994 { # A typed name-value pair for structured data. The type of the value should
995 # be the same as the registered type for the `name` property in the object
996 # definition of `objectType`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700997 &quot;timestampValues&quot;: { # List of timestamp values.
998 &quot;values&quot;: [
999 &quot;A String&quot;,
1000 ],
1001 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001002 &quot;doubleValues&quot;: { # List of double values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001003 &quot;values&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001004 3.14,
1005 ],
1006 },
1007 &quot;integerValues&quot;: { # List of integer values.
1008 &quot;values&quot;: [
1009 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001010 ],
1011 },
1012 &quot;dateValues&quot;: { # List of date values.
1013 &quot;values&quot;: [
1014 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001015 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001016 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1017 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001018 },
1019 ],
1020 },
1021 &quot;enumValues&quot;: { # List of enum values.
1022 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1023 &quot;A String&quot;,
1024 ],
1025 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001026 &quot;textValues&quot;: { # List of text values.
1027 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1028 &quot;A String&quot;,
1029 ],
1030 },
1031 &quot;booleanValue&quot;: True or False,
1032 &quot;htmlValues&quot;: { # List of html values.
1033 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1034 &quot;A String&quot;,
1035 ],
1036 },
1037 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1038 # property that was registered for object definition in the schema.
1039 # The maximum allowable length for this property is 256 characters.
1040 &quot;objectValues&quot;: { # List of object values.
1041 &quot;values&quot;: [
1042 # Object with schema name: StructuredDataObject
1043 ],
1044 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001045 },
1046 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001049 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1050 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1051 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1052 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1053 # default value is 0.0.
1054 },
1055 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1056 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1057 # ItemContent.content
1058 # in the source repository.
1059 # The maximum length is 256 characters.
1060 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1061 # definition in the schema registered for the data source. For example, if
1062 # the schema for the data source contains an object definition with name
1063 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1064 # objectType to &#x27;document&#x27;.
1065 # The maximum length is 256 characters.
1066 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1067 # this link to the title.
1068 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1069 # trigger a redirect notice; to avoid this, encode the URL.
1070 # The maximum length is 2048 characters.
1071 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1072 # Search quality, but are not exposed to end users.
1073 # The maximum number of elements is 1000.
1074 { # Represents an interaction between a user and an item.
1075 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1076 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1077 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1078 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1079 # customer.
1080 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001081 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001082 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1083 # The name field must specify the group resource name with this format:
1084 # identitysources/{source_id}/groups/{ID}
1085 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1086 # The name field must specify the user resource name with this format:
1087 # identitysources/{source_id}/users/{ID}
1088 },
1089 &quot;type&quot;: &quot;A String&quot;,
1090 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1091 # type exist for a single user, only the most recent action is recorded.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001092 },
1093 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001094 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1095 # Deletion of the container item leads to automatic deletion of this
1096 # item. Note: ACLs are not inherited from a container item.
1097 # To provide ACL inheritance for an item, use the
1098 # inheritAclFrom
1099 # field. The maximum length is 1536 characters.
1100 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1101 # Used internally for user generated content.
1102 # The maximum number of elements is 100.
1103 # The maximum length is 8192 characters.
1104 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001105 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001106 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1107 # Search result.
1108 # The maximum length is 2048 characters.
1109 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1110 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1111 # This can be used with the
1112 # items.push
1113 # method to calculate modified state.
1114 # The maximum length is 2048 characters.
1115 &quot;contentLanguage&quot;: &quot;A String&quot;, # The BCP-47 language code for the item, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For
1116 # more information, see
1117 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1118 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001119 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001120 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1121 # byte string and compares the Item version in the index
1122 # to the version of the queued Item using lexical ordering.
1123 # &lt;br /&gt;&lt;br /&gt;
1124 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1125 # a version value that is less than or equal to the version of the
1126 # currently indexed item.
1127 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001128 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1129 # [Map ACLs](/cloud-search/docs/guides/acls).
1130 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1131 # document access permissions. It does, however, offer
1132 # a slight ranking boosts items where the querying user is an owner.
1133 # The maximum number of elements is 5.
1134 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001135 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1136 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001137 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1138 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001139 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001140 },
1141 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1142 # The name field must specify the group resource name with this format:
1143 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001144 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1145 # The name field must specify the user resource name with this format:
1146 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001147 },
1148 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001149 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1150 # results. While principals are denied access by default, use denied readers
1151 # to handle exceptions and override the list allowed readers.
1152 # The maximum number of elements is 100.
1153 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001154 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1155 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001156 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1157 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001158 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001159 },
1160 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1161 # The name field must specify the group resource name with this format:
1162 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001163 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1164 # The name field must specify the user resource name with this format:
1165 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001166 },
1167 ],
1168 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1169 # Note: ACL inheritance *only* provides access permissions
1170 # to child items and does not define structural relationships, nor does it
1171 # provide convenient ways to delete large groups of items.
1172 # Deleting an ACL parent from the index only alters the access permissions of
1173 # child items that reference the parent in the
1174 # inheritAclFrom
1175 # field. The item is still in the index, but may not
1176 # visible in search results. By contrast, deletion of a container item
1177 # also deletes all items that reference the container via the
1178 # containerName
1179 # field.
1180 # The maximum length for this field is 1536 characters.
1181 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1182 # Optional if inheriting permissions from another item or if the item
1183 # is not intended to be visible, such as
1184 # virtual
1185 # containers.
1186 # The maximum number of elements is 1000.
1187 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001188 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1189 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001190 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1191 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001192 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001193 },
1194 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1195 # The name field must specify the group resource name with this format:
1196 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001197 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1198 # The name field must specify the user resource name with this format:
1199 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001200 },
1201 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001202 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1203 # parent. This should always be set in tandem with the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001204 # inheritAclFrom
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001205 # field. Also, when the
1206 # inheritAclFrom field
1207 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001209 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001210 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1211 # Can be used with the items.push method to calculate modified state.
1212 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001213 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1214 # This reference is created via upload
1215 # method.
1216 # Updating of item content may refer to this uploaded content via
1217 # contentDataRef.
1218 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1219 # The maximum length is 2048 characters.
1220 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001221 &quot;contentFormat&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001222 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1223 # The maximum length is 102400 bytes (100 KiB).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001224 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001225 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1226 # The maximum length is 10000 bytes.
1227 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1228 # Output only field.
1229 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1230 { # Errors when the connector is communicating to the source repository.
1231 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1232 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1233 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1234 # of the message is 8192 characters.
1235 },
1236 ],
1237 &quot;code&quot;: &quot;A String&quot;, # Status code.
1238 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1239 {
1240 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1241 # about the validation errors.
1242 {
1243 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1244 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1245 },
1246 ],
1247 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1248 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1249 },
1250 ],
1251 },
1252 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1253 # datasources/{source_id}/items/{item_id}
1254 # &lt;br /&gt;This is a required field.
1255 # The maximum length is 1536 characters.
1256 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001257 },
1258 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001259 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
1260 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001261 }</pre>
1262</div>
1263
1264<div class="method">
1265 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1266 <pre>Retrieves the next page of results.
1267
1268Args:
1269 previous_request: The request for the previous page. (required)
1270 previous_response: The response from the request for the previous page. (required)
1271
1272Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001274 page. Returns None if there are no more items in the collection.
1275 </pre>
1276</div>
1277
1278<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001279 <code class="details" id="poll">poll(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001280 <pre>Polls for unreserved items from the indexing queue and marks a
1281set as reserved, starting with items that have
1282the oldest timestamp from the highest priority
1283ItemStatus.
Dan O'Mearadd494642020-05-01 07:42:23 -07001284The priority order is as follows: &lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001285ERROR
Dan O'Mearadd494642020-05-01 07:42:23 -07001286&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287MODIFIED
Dan O'Mearadd494642020-05-01 07:42:23 -07001288&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001289NEW_ITEM
Dan O'Mearadd494642020-05-01 07:42:23 -07001290&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291ACCEPTED
Dan O'Mearadd494642020-05-01 07:42:23 -07001292&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293Reserving items ensures that polling from other threads
1294cannot create overlapping sets.
1295
1296After handling the reserved items, the client should put items back
1297into the unreserved state, either by calling
1298index,
1299or by calling
1300push with
1301the type REQUEUE.
1302
1303Items automatically become available (unreserved) after 4 hours even if no
1304update or push method is called.
1305
Dan O'Mearadd494642020-05-01 07:42:23 -07001306This API requires an admin or service account to execute. The service
1307account used is the one whitelisted in the corresponding data source.
1308
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309Args:
1310 name: string, Name of the Data Source to poll items.
1311Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001312 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001313 The object takes the form of:
1314
1315{
Bu Sun Kim65020912020-05-20 12:08:20 -07001316 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1317 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001318 # Otherwise, ignore this field.
1319 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001320 &quot;limit&quot;: 42, # Maximum number of items to return.
1321 # &lt;br /&gt;The maximum value is 100 and the default value is 20.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001322 &quot;statusCodes&quot;: [ # Limit the items polled to the ones with these statuses.
1323 &quot;A String&quot;,
1324 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001325 &quot;queue&quot;: &quot;A String&quot;, # Queue name to fetch items from. If unspecified, PollItems will
1326 # fetch from &#x27;default&#x27; queue.
1327 # The maximum length is 100 characters.
1328 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
1329 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001330 }
1331
1332 x__xgafv: string, V1 error format.
1333 Allowed values
1334 1 - v1 error format
1335 2 - v2 error format
1336
1337Returns:
1338 An object of the form:
1339
1340 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001341 &quot;items&quot;: [ # Set of items from the queue available for connector to process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001342 # &lt;br /&gt;These items have the following subset of fields populated: &lt;br /&gt;
1343 # &lt;br /&gt;version
1344 # &lt;br /&gt;metadata.hash
1345 # &lt;br /&gt;structured_data.hash
1346 # &lt;br /&gt;content.hash
1347 # &lt;br /&gt;payload
1348 # &lt;br /&gt;status
1349 # &lt;br /&gt;queue
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001350 { # Represents a single object that is an item in the search index, such as a
1351 # file, folder, or a database record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001352 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1353 # The maximum length is 100 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001354 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1355 # object definition in the schema for the data source.
1356 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1357 # This can be used with the
1358 # items.push
1359 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001361 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1362 # definition in the schema for the data source.
1363 &quot;properties&quot;: [ # The properties for the object.
1364 # The maximum number of elements is 1000.
1365 { # A typed name-value pair for structured data. The type of the value should
1366 # be the same as the registered type for the `name` property in the object
1367 # definition of `objectType`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001368 &quot;timestampValues&quot;: { # List of timestamp values.
1369 &quot;values&quot;: [
1370 &quot;A String&quot;,
1371 ],
1372 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001373 &quot;doubleValues&quot;: { # List of double values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001374 &quot;values&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001375 3.14,
1376 ],
1377 },
1378 &quot;integerValues&quot;: { # List of integer values.
1379 &quot;values&quot;: [
1380 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001381 ],
1382 },
1383 &quot;dateValues&quot;: { # List of date values.
1384 &quot;values&quot;: [
1385 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001386 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001387 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1388 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001389 },
1390 ],
1391 },
1392 &quot;enumValues&quot;: { # List of enum values.
1393 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1394 &quot;A String&quot;,
1395 ],
1396 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001397 &quot;textValues&quot;: { # List of text values.
1398 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1399 &quot;A String&quot;,
1400 ],
1401 },
1402 &quot;booleanValue&quot;: True or False,
1403 &quot;htmlValues&quot;: { # List of html values.
1404 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1405 &quot;A String&quot;,
1406 ],
1407 },
1408 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1409 # property that was registered for object definition in the schema.
1410 # The maximum allowable length for this property is 256 characters.
1411 &quot;objectValues&quot;: { # List of object values.
1412 &quot;values&quot;: [
1413 # Object with schema name: StructuredDataObject
1414 ],
1415 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001416 },
1417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001419 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001420 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1421 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1422 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1423 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1424 # default value is 0.0.
1425 },
1426 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1427 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1428 # ItemContent.content
1429 # in the source repository.
1430 # The maximum length is 256 characters.
1431 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1432 # definition in the schema registered for the data source. For example, if
1433 # the schema for the data source contains an object definition with name
1434 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1435 # objectType to &#x27;document&#x27;.
1436 # The maximum length is 256 characters.
1437 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1438 # this link to the title.
1439 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1440 # trigger a redirect notice; to avoid this, encode the URL.
1441 # The maximum length is 2048 characters.
1442 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1443 # Search quality, but are not exposed to end users.
1444 # The maximum number of elements is 1000.
1445 { # Represents an interaction between a user and an item.
1446 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1447 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1448 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1449 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1450 # customer.
1451 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001452 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001453 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1454 # The name field must specify the group resource name with this format:
1455 # identitysources/{source_id}/groups/{ID}
1456 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1457 # The name field must specify the user resource name with this format:
1458 # identitysources/{source_id}/users/{ID}
1459 },
1460 &quot;type&quot;: &quot;A String&quot;,
1461 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1462 # type exist for a single user, only the most recent action is recorded.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001463 },
1464 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001465 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1466 # Deletion of the container item leads to automatic deletion of this
1467 # item. Note: ACLs are not inherited from a container item.
1468 # To provide ACL inheritance for an item, use the
1469 # inheritAclFrom
1470 # field. The maximum length is 1536 characters.
1471 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1472 # Used internally for user generated content.
1473 # The maximum number of elements is 100.
1474 # The maximum length is 8192 characters.
1475 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001476 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001477 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1478 # Search result.
1479 # The maximum length is 2048 characters.
1480 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1481 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1482 # This can be used with the
1483 # items.push
1484 # method to calculate modified state.
1485 # The maximum length is 2048 characters.
1486 &quot;contentLanguage&quot;: &quot;A String&quot;, # The BCP-47 language code for the item, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For
1487 # more information, see
1488 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1489 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001490 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001491 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1492 # byte string and compares the Item version in the index
1493 # to the version of the queued Item using lexical ordering.
1494 # &lt;br /&gt;&lt;br /&gt;
1495 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1496 # a version value that is less than or equal to the version of the
1497 # currently indexed item.
1498 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001499 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1500 # [Map ACLs](/cloud-search/docs/guides/acls).
1501 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1502 # document access permissions. It does, however, offer
1503 # a slight ranking boosts items where the querying user is an owner.
1504 # The maximum number of elements is 5.
1505 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001506 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1507 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001508 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1509 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001510 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001511 },
1512 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1513 # The name field must specify the group resource name with this format:
1514 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001515 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1516 # The name field must specify the user resource name with this format:
1517 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001518 },
1519 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001520 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1521 # results. While principals are denied access by default, use denied readers
1522 # to handle exceptions and override the list allowed readers.
1523 # The maximum number of elements is 100.
1524 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001525 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1526 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001527 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1528 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001529 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001530 },
1531 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1532 # The name field must specify the group resource name with this format:
1533 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001534 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1535 # The name field must specify the user resource name with this format:
1536 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001537 },
1538 ],
1539 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1540 # Note: ACL inheritance *only* provides access permissions
1541 # to child items and does not define structural relationships, nor does it
1542 # provide convenient ways to delete large groups of items.
1543 # Deleting an ACL parent from the index only alters the access permissions of
1544 # child items that reference the parent in the
1545 # inheritAclFrom
1546 # field. The item is still in the index, but may not
1547 # visible in search results. By contrast, deletion of a container item
1548 # also deletes all items that reference the container via the
1549 # containerName
1550 # field.
1551 # The maximum length for this field is 1536 characters.
1552 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1553 # Optional if inheriting permissions from another item or if the item
1554 # is not intended to be visible, such as
1555 # virtual
1556 # containers.
1557 # The maximum number of elements is 1000.
1558 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001559 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1560 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001561 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1562 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001563 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001564 },
1565 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1566 # The name field must specify the group resource name with this format:
1567 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001568 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1569 # The name field must specify the user resource name with this format:
1570 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001571 },
1572 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001573 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1574 # parent. This should always be set in tandem with the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001575 # inheritAclFrom
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001576 # field. Also, when the
1577 # inheritAclFrom field
1578 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001580 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001581 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1582 # Can be used with the items.push method to calculate modified state.
1583 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001584 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1585 # This reference is created via upload
1586 # method.
1587 # Updating of item content may refer to this uploaded content via
1588 # contentDataRef.
1589 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1590 # The maximum length is 2048 characters.
1591 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001592 &quot;contentFormat&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001593 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1594 # The maximum length is 102400 bytes (100 KiB).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001595 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001596 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1597 # The maximum length is 10000 bytes.
1598 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1599 # Output only field.
1600 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1601 { # Errors when the connector is communicating to the source repository.
1602 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1603 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1604 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1605 # of the message is 8192 characters.
1606 },
1607 ],
1608 &quot;code&quot;: &quot;A String&quot;, # Status code.
1609 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1610 {
1611 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1612 # about the validation errors.
1613 {
1614 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1615 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1616 },
1617 ],
1618 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1619 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1620 },
1621 ],
1622 },
1623 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1624 # datasources/{source_id}/items/{item_id}
1625 # &lt;br /&gt;This is a required field.
1626 # The maximum length is 1536 characters.
1627 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001628 },
1629 ],
1630 }</pre>
1631</div>
1632
1633<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001634 <code class="details" id="push">push(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001635 <pre>Pushes an item onto a queue for later polling and updating.
1636
Dan O'Mearadd494642020-05-01 07:42:23 -07001637This API requires an admin or service account to execute. The service
1638account used is the one whitelisted in the corresponding data source.
1639
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640Args:
1641 name: string, Name of the item to
Dan O'Mearadd494642020-05-01 07:42:23 -07001642push into the indexing queue.&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001643Format: datasources/{source_id}/items/{ID}
Dan O'Mearadd494642020-05-01 07:42:23 -07001644&lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001646 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001647 The object takes the form of:
1648
1649{
Bu Sun Kim65020912020-05-20 12:08:20 -07001650 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
1651 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -07001652 &quot;item&quot;: { # Represents an item to be pushed to the indexing queue. # Item to push onto the queue.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001653 &quot;repositoryError&quot;: { # Errors when the connector is communicating to the source repository. # Populate this field to store Connector or repository error details.
1654 # This information is displayed in the Admin Console.
1655 # This field may only be populated when the
1656 # Type is
1657 # REPOSITORY_ERROR.
1658 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1659 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1660 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1661 # of the message is 8192 characters.
1662 },
1663 &quot;payload&quot;: &quot;A String&quot;, # Provides additional document state information for the connector,
1664 # such as an alternate repository ID and other metadata.
1665 # The maximum length is 8192 bytes.
1666 &quot;type&quot;: &quot;A String&quot;, # The type of the push operation that defines the push behavior.
1667 &quot;queue&quot;: &quot;A String&quot;, # Queue to which this item belongs to. The &lt;code&gt;default&lt;/code&gt; queue is
1668 # chosen if this field is not specified. The maximum length is
1669 # 512 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001670 &quot;contentHash&quot;: &quot;A String&quot;, # Content hash of the item according to the repository. If specified, this is
1671 # used to determine how to modify this
1672 # item&#x27;s status. Setting this field and the
1673 # type field results in argument
1674 # error.
1675 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 &quot;metadataHash&quot;: &quot;A String&quot;, # Metadata hash of the item according to the repository. If specified, this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001677 # is used to determine how to modify this
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 # item&#x27;s status. Setting this field and the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001679 # type field results in argument
1680 # error.
1681 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 &quot;structuredDataHash&quot;: &quot;A String&quot;, # Structured data hash of the item according to the repository. If specified,
1683 # this is used to determine how to modify this item&#x27;s status. Setting this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001684 # field and the type field
1685 # results in argument error.
1686 # The maximum length is 2048 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001687 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001688 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1689 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
1690 # Otherwise, ignore this field.
1691 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001692 }
1693
1694 x__xgafv: string, V1 error format.
1695 Allowed values
1696 1 - v1 error format
1697 2 - v2 error format
1698
1699Returns:
1700 An object of the form:
1701
1702 { # Represents a single object that is an item in the search index, such as a
1703 # file, folder, or a database record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001704 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1705 # The maximum length is 100 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001706 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1707 # object definition in the schema for the data source.
1708 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1709 # This can be used with the
1710 # items.push
1711 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -07001712 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001713 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1714 # definition in the schema for the data source.
1715 &quot;properties&quot;: [ # The properties for the object.
1716 # The maximum number of elements is 1000.
1717 { # A typed name-value pair for structured data. The type of the value should
1718 # be the same as the registered type for the `name` property in the object
1719 # definition of `objectType`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001720 &quot;timestampValues&quot;: { # List of timestamp values.
1721 &quot;values&quot;: [
1722 &quot;A String&quot;,
1723 ],
1724 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001725 &quot;doubleValues&quot;: { # List of double values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001726 &quot;values&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001727 3.14,
1728 ],
1729 },
1730 &quot;integerValues&quot;: { # List of integer values.
1731 &quot;values&quot;: [
1732 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001733 ],
1734 },
1735 &quot;dateValues&quot;: { # List of date values.
1736 &quot;values&quot;: [
1737 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001738 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001739 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1740 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001741 },
1742 ],
1743 },
1744 &quot;enumValues&quot;: { # List of enum values.
1745 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1746 &quot;A String&quot;,
1747 ],
1748 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001749 &quot;textValues&quot;: { # List of text values.
1750 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1751 &quot;A String&quot;,
1752 ],
1753 },
1754 &quot;booleanValue&quot;: True or False,
1755 &quot;htmlValues&quot;: { # List of html values.
1756 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1757 &quot;A String&quot;,
1758 ],
1759 },
1760 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1761 # property that was registered for object definition in the schema.
1762 # The maximum allowable length for this property is 256 characters.
1763 &quot;objectValues&quot;: { # List of object values.
1764 &quot;values&quot;: [
1765 # Object with schema name: StructuredDataObject
1766 ],
1767 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001768 },
1769 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001771 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001772 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1773 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1774 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1775 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1776 # default value is 0.0.
1777 },
1778 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1779 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1780 # ItemContent.content
1781 # in the source repository.
1782 # The maximum length is 256 characters.
1783 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1784 # definition in the schema registered for the data source. For example, if
1785 # the schema for the data source contains an object definition with name
1786 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1787 # objectType to &#x27;document&#x27;.
1788 # The maximum length is 256 characters.
1789 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1790 # this link to the title.
1791 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1792 # trigger a redirect notice; to avoid this, encode the URL.
1793 # The maximum length is 2048 characters.
1794 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1795 # Search quality, but are not exposed to end users.
1796 # The maximum number of elements is 1000.
1797 { # Represents an interaction between a user and an item.
1798 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1799 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1800 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1801 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1802 # customer.
1803 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001804 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001805 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1806 # The name field must specify the group resource name with this format:
1807 # identitysources/{source_id}/groups/{ID}
1808 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1809 # The name field must specify the user resource name with this format:
1810 # identitysources/{source_id}/users/{ID}
1811 },
1812 &quot;type&quot;: &quot;A String&quot;,
1813 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1814 # type exist for a single user, only the most recent action is recorded.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001815 },
1816 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001817 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1818 # Deletion of the container item leads to automatic deletion of this
1819 # item. Note: ACLs are not inherited from a container item.
1820 # To provide ACL inheritance for an item, use the
1821 # inheritAclFrom
1822 # field. The maximum length is 1536 characters.
1823 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1824 # Used internally for user generated content.
1825 # The maximum number of elements is 100.
1826 # The maximum length is 8192 characters.
1827 &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001828 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001829 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1830 # Search result.
1831 # The maximum length is 2048 characters.
1832 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1833 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1834 # This can be used with the
1835 # items.push
1836 # method to calculate modified state.
1837 # The maximum length is 2048 characters.
1838 &quot;contentLanguage&quot;: &quot;A String&quot;, # The BCP-47 language code for the item, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For
1839 # more information, see
1840 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1841 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001842 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001843 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1844 # byte string and compares the Item version in the index
1845 # to the version of the queued Item using lexical ordering.
1846 # &lt;br /&gt;&lt;br /&gt;
1847 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1848 # a version value that is less than or equal to the version of the
1849 # currently indexed item.
1850 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001851 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1852 # [Map ACLs](/cloud-search/docs/guides/acls).
1853 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1854 # document access permissions. It does, however, offer
1855 # a slight ranking boosts items where the querying user is an owner.
1856 # The maximum number of elements is 5.
1857 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001858 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1859 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001860 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1861 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001862 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001863 },
1864 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1865 # The name field must specify the group resource name with this format:
1866 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001867 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1868 # The name field must specify the user resource name with this format:
1869 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001870 },
1871 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001872 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1873 # results. While principals are denied access by default, use denied readers
1874 # to handle exceptions and override the list allowed readers.
1875 # The maximum number of elements is 100.
1876 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001877 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1878 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001879 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1880 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001881 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001882 },
1883 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1884 # The name field must specify the group resource name with this format:
1885 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001886 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1887 # The name field must specify the user resource name with this format:
1888 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001889 },
1890 ],
1891 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1892 # Note: ACL inheritance *only* provides access permissions
1893 # to child items and does not define structural relationships, nor does it
1894 # provide convenient ways to delete large groups of items.
1895 # Deleting an ACL parent from the index only alters the access permissions of
1896 # child items that reference the parent in the
1897 # inheritAclFrom
1898 # field. The item is still in the index, but may not
1899 # visible in search results. By contrast, deletion of a container item
1900 # also deletes all items that reference the container via the
1901 # containerName
1902 # field.
1903 # The maximum length for this field is 1536 characters.
1904 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1905 # Optional if inheriting permissions from another item or if the item
1906 # is not intended to be visible, such as
1907 # virtual
1908 # containers.
1909 # The maximum number of elements is 1000.
1910 { # Reference to a user, group, or domain.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001911 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1912 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001913 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1914 # customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001915 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001916 },
1917 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1918 # The name field must specify the group resource name with this format:
1919 # identitysources/{source_id}/groups/{ID}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001920 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1921 # The name field must specify the user resource name with this format:
1922 # identitysources/{source_id}/users/{ID}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001923 },
1924 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001925 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1926 # parent. This should always be set in tandem with the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001927 # inheritAclFrom
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001928 # field. Also, when the
1929 # inheritAclFrom field
1930 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim65020912020-05-20 12:08:20 -07001931 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001932 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001933 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1934 # Can be used with the items.push method to calculate modified state.
1935 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001936 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1937 # This reference is created via upload
1938 # method.
1939 # Updating of item content may refer to this uploaded content via
1940 # contentDataRef.
1941 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1942 # The maximum length is 2048 characters.
1943 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001944 &quot;contentFormat&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001945 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1946 # The maximum length is 102400 bytes (100 KiB).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001947 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001948 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1949 # The maximum length is 10000 bytes.
1950 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1951 # Output only field.
1952 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1953 { # Errors when the connector is communicating to the source repository.
1954 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1955 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1956 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1957 # of the message is 8192 characters.
1958 },
1959 ],
1960 &quot;code&quot;: &quot;A String&quot;, # Status code.
1961 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1962 {
1963 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1964 # about the validation errors.
1965 {
1966 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1967 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1968 },
1969 ],
1970 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1971 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1972 },
1973 ],
1974 },
1975 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1976 # datasources/{source_id}/items/{item_id}
1977 # &lt;br /&gt;This is a required field.
1978 # The maximum length is 1536 characters.
1979 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001980 }</pre>
1981</div>
1982
1983<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001984 <code class="details" id="unreserve">unreserve(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001985 <pre>Unreserves all items from a queue, making them all eligible to be
1986polled. This method is useful for resetting the indexing queue
1987after a connector has been restarted.
1988
Dan O'Mearadd494642020-05-01 07:42:23 -07001989This API requires an admin or service account to execute. The service
1990account used is the one whitelisted in the corresponding data source.
1991
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001992Args:
1993 name: string, Name of the Data Source to unreserve all items.
1994Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001995 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001996 The object takes the form of:
1997
1998{
Bu Sun Kim65020912020-05-20 12:08:20 -07001999 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
2000 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002001 # Otherwise, ignore this field.
2002 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002003 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
2004 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
2005 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to unreserve items from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002006 }
2007
2008 x__xgafv: string, V1 error format.
2009 Allowed values
2010 1 - v1 error format
2011 2 - v2 error format
2012
2013Returns:
2014 An object of the form:
2015
2016 { # This resource represents a long-running operation that is the result of a
2017 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07002018 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07002019 # method returns no data on success, such as `Delete`, the response is
2020 # `google.protobuf.Empty`. If the original method is standard
2021 # `Get`/`Create`/`Update`, the response should be the resource. For other
2022 # methods, the response should have the type `XxxResponse`, where `Xxx`
2023 # is the original method name. For example, if the original method name
2024 # is `TakeSnapshot()`, the inferred response type is
2025 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002026 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002027 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002028 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
2029 # contains progress information and common metadata such as create time.
2030 # Some services might not provide such metadata. Any method that returns a
2031 # long-running operation should document the metadata type, if any.
2032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2033 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002034 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002035 # different programming environments, including REST APIs and RPC APIs. It is
2036 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2037 # three pieces of data: error code, error message, and error details.
2038 #
2039 # You can find out more about this error model and how to work with it in the
2040 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 # message types for APIs to use.
2043 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002045 },
2046 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002047 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2048 # user-facing error message should be localized and sent in the
2049 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002050 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -07002051 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002052 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
2053 # originally returns it. If you use the default HTTP mapping, the
2054 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002055 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2056 # If `true`, the operation is completed, and either `error` or `response` is
2057 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002058 }</pre>
2059</div>
2060
2061<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002062 <code class="details" id="upload">upload(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002063 <pre>Creates an upload session for uploading item content. For items smaller
Bu Sun Kim65020912020-05-20 12:08:20 -07002064than 100 KB, it&#x27;s easier to embed the content
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002065inline within
Dan O'Mearadd494642020-05-01 07:42:23 -07002066an index request.
2067
2068This API requires an admin or service account to execute. The service
2069account used is the one whitelisted in the corresponding data source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002070
2071Args:
2072 name: string, Name of the Item to start a resumable upload.
Dan O'Mearadd494642020-05-01 07:42:23 -07002073Format: datasources/{source_id}/items/{item_id}.
2074The maximum length is 1536 bytes. (required)
2075 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002076 The object takes the form of:
2077
2078{ # Start upload file request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002079 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
2080 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
2081 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
2082 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002083 # Otherwise, ignore this field.
2084 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002085 }
2086
2087 x__xgafv: string, V1 error format.
2088 Allowed values
2089 1 - v1 error format
2090 2 - v2 error format
2091
2092Returns:
2093 An object of the form:
2094
2095 { # Represents an upload session reference.
2096 # This reference is created via upload
2097 # method.
2098 # Updating of item content may refer to this uploaded content via
2099 # contentDataRef.
Bu Sun Kim65020912020-05-20 12:08:20 -07002100 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002101 # The maximum length is 2048 characters.
2102 }</pre>
2103</div>
2104
2105</body></html>