blob: 4d33a8996da692400839768956f96a4cd2de7f92 [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 Kim65020912020-05-20 12:08:20 -070078 <code><a href="#delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, version=None, mode=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 Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(name, connectorName=None, brief=None, pageToken=None, pageSize=None, debugOptions_enableDebugging=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 Kim65020912020-05-20 12:08:20 -0700109 <code class="details" id="delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, version=None, mode=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)
118 connectorName: string, Name of connector making this call.
Dan O'Mearadd494642020-05-01 07:42:23 -0700119&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
121Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 version: string, Required. The incremented version of the item to delete from the index.
123The indexing system stores the version from the datasource as a
124byte string and compares the Item version in the index
125to the version of the queued Item using lexical ordering.
Dan O'Mearadd494642020-05-01 07:42:23 -0700126&lt;br /&gt;&lt;br /&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700127Cloud Search Indexing won&#x27;t delete any queued item with
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128a version value that is less than or equal to
129the version of the currently indexed item.
130The maximum length for this field is 1024 bytes.
131 mode: string, Required. The RequestMode for this request.
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;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 # If `true`, the operation is completed, and either `error` or `response` is
144 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700146 # method returns no data on success, such as `Delete`, the response is
147 # `google.protobuf.Empty`. If the original method is standard
148 # `Get`/`Create`/`Update`, the response should be the resource. For other
149 # methods, the response should have the type `XxxResponse`, where `Xxx`
150 # is the original method name. For example, if the original method name
151 # is `TakeSnapshot()`, the inferred response type is
152 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700156 # originally returns it. If you use the default HTTP mapping, the
157 # `name` should be a resource name ending with `operations/{unique_id}`.
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;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
172 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
173 # user-facing error message should be localized and sent in the
174 # google.rpc.Status.details field, or localized by the client.
175 },
176 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
177 # contains progress information and common metadata such as create time.
178 # Some services might not provide such metadata. Any method that returns a
179 # long-running operation should document the metadata type, if any.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 },
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 Kim65020912020-05-20 12:08:20 -0700200 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
201 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
202 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to delete items from.
203 &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;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 # If `true`, the operation is completed, and either `error` or `response` is
221 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700223 # method returns no data on success, such as `Delete`, the response is
224 # `google.protobuf.Empty`. If the original method is standard
225 # `Get`/`Create`/`Update`, the response should be the resource. For other
226 # methods, the response should have the type `XxxResponse`, where `Xxx`
227 # is the original method name. For example, if the original method name
228 # is `TakeSnapshot()`, the inferred response type is
229 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700231 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700233 # originally returns it. If you use the default HTTP mapping, the
234 # `name` should be a resource name ending with `operations/{unique_id}`.
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;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
249 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
250 # user-facing error message should be localized and sent in the
251 # google.rpc.Status.details field, or localized by the client.
252 },
253 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
254 # contains progress information and common metadata such as create time.
255 # Some services might not provide such metadata. Any method that returns a
256 # long-running operation should document the metadata type, if any.
257 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258 },
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 Kim65020912020-05-20 12:08:20 -0700286 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
287 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
288 # Can be used with the items.push method to calculate modified state.
289 # The maximum length is 2048 characters.
290 &quot;contentFormat&quot;: &quot;A String&quot;,
291 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
292 # This reference is created via upload
293 # method.
294 # Updating of item content may refer to this uploaded content via
295 # contentDataRef.
296 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
297 # The maximum length is 2048 characters.
298 },
299 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
300 # The maximum length is 102400 bytes (100 KiB).
301 },
302 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
303 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
304 # this link to the title.
305 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
306 # trigger a redirect notice; to avoid this, encode the URL.
307 # The maximum length is 2048 characters.
308 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
309 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
310 # Deletion of the container item leads to automatic deletion of this
311 # item. Note: ACLs are not inherited from a container item.
312 # To provide ACL inheritance for an item, use the
313 # inheritAclFrom
314 # field. The maximum length is 1536 characters.
315 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
316 # definition in the schema registered for the data source. For example, if
317 # the schema for the data source contains an object definition with name
318 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
319 # objectType to &#x27;document&#x27;.
320 # The maximum length is 256 characters.
321 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
322 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
323 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
324 # default value is 0.0.
325 },
326 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
327 # This can be used with the
328 # items.push
329 # method to calculate modified state.
330 # The maximum length is 2048 characters.
331 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
332 # Search quality, but are not exposed to end users.
333 # The maximum number of elements is 1000.
334 { # Represents an interaction between a user and an item.
335 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
336 # type exist for a single user, only the most recent action is recorded.
337 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
338 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
339 # The name field must specify the user resource name with this format:
340 # identitysources/{source_id}/users/{ID}
341 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
342 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
343 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
344 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
345 # customer.
346 },
347 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
348 # The name field must specify the group resource name with this format:
349 # identitysources/{source_id}/groups/{ID}
350 },
351 &quot;type&quot;: &quot;A String&quot;,
352 },
353 ],
354 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
355 # Used internally for user generated content.
356 # The maximum number of elements is 100.
357 # The maximum length is 8192 characters.
358 &quot;A String&quot;,
359 ],
360 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
361 # ItemContent.content
362 # in the source repository.
363 # The maximum length is 256 characters.
364 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
365 # Search result.
366 # The maximum length is 2048 characters.
367 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
368 &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
369 # more information, see
370 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
371 # The maximum length is 32 characters.
372 },
373 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
374 # The maximum length is 100 characters.
375 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
376 # byte string and compares the Item version in the index
377 # to the version of the queued Item using lexical ordering.
378 # &lt;br /&gt;&lt;br /&gt;
379 # Cloud Search Indexing won&#x27;t index or delete any queued item with
380 # a version value that is less than or equal to the version of the
381 # currently indexed item.
382 # The maximum length for this field is 1024 bytes.
383 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
384 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
385 # object definition in the schema for the data source.
386 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
387 # This can be used with the
388 # items.push
389 # method to calculate modified state.
390 # The maximum length is 2048 characters.
391 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
392 # definition in the schema for the data source.
393 &quot;properties&quot;: [ # The properties for the object.
394 # The maximum number of elements is 1000.
395 { # A typed name-value pair for structured data. The type of the value should
396 # be the same as the registered type for the `name` property in the object
397 # definition of `objectType`.
398 &quot;objectValues&quot;: { # List of object values.
399 &quot;values&quot;: [
400 # Object with schema name: StructuredDataObject
401 ],
402 },
403 &quot;enumValues&quot;: { # List of enum values.
404 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
405 &quot;A String&quot;,
406 ],
407 },
408 &quot;dateValues&quot;: { # List of date values.
409 &quot;values&quot;: [
410 { # 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.
411 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
412 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
413 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
414 },
415 ],
416 },
417 &quot;integerValues&quot;: { # List of integer values.
418 &quot;values&quot;: [
419 &quot;A String&quot;,
420 ],
421 },
422 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
423 # property that was registered for object definition in the schema.
424 # The maximum allowable length for this property is 256 characters.
425 &quot;doubleValues&quot;: { # List of double values.
426 &quot;values&quot;: [
427 3.14,
428 ],
429 },
430 &quot;booleanValue&quot;: True or False,
431 &quot;textValues&quot;: { # List of text values.
432 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
433 &quot;A String&quot;,
434 ],
435 },
436 &quot;htmlValues&quot;: { # List of html values.
437 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
438 &quot;A String&quot;,
439 ],
440 },
441 &quot;timestampValues&quot;: { # List of timestamp values.
442 &quot;values&quot;: [
443 &quot;A String&quot;,
444 ],
445 },
446 },
447 ],
448 },
449 },
450 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 # Output only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
453 { # Errors when the connector is communicating to the source repository.
454 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
455 # of the message is 8192 characters.
456 &quot;type&quot;: &quot;A String&quot;, # Type of error.
457 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
458 },
459 ],
460 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
463 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
464 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 # about the validation errors.
466 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
468 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700469 },
470 ],
471 },
472 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;code&quot;: &quot;A String&quot;, # Status code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
476 # The maximum length is 10000 bytes.
477 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 # datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -0700479 # &lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480 # The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700482 # [Map ACLs](/cloud-search/docs/guides/acls).
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700484 # results. While principals are denied access by default, use denied readers
485 # to handle exceptions and override the list allowed readers.
486 # The maximum number of elements is 100.
487 { # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 # The name field must specify the user resource name with this format:
490 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
492 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
493 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
494 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
495 # customer.
496 },
497 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 # The name field must specify the group resource name with this format:
499 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 },
501 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 # Note: ACL inheritance *only* provides access permissions
504 # to child items and does not define structural relationships, nor does it
505 # provide convenient ways to delete large groups of items.
506 # Deleting an ACL parent from the index only alters the access permissions of
507 # child items that reference the parent in the
508 # inheritAclFrom
509 # field. The item is still in the index, but may not
510 # visible in search results. By contrast, deletion of a container item
511 # also deletes all items that reference the container via the
512 # containerName
513 # field.
514 # The maximum length for this field is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
516 # Optional if inheriting permissions from another item or if the item
517 # is not intended to be visible, such as
518 # virtual
519 # containers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520 # The maximum number of elements is 1000.
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 { # Reference to a user, group, or domain.
522 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
523 # The name field must specify the user resource name with this format:
524 # identitysources/{source_id}/users/{ID}
525 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
526 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
527 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
528 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
529 # customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700530 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
532 # The name field must specify the group resource name with this format:
533 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534 },
535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
537 # document access permissions. It does, however, offer
538 # a slight ranking boosts items where the querying user is an owner.
539 # The maximum number of elements is 5.
540 { # Reference to a user, group, or domain.
541 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
542 # The name field must specify the user resource name with this format:
543 # identitysources/{source_id}/users/{ID}
544 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
545 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
546 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
547 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
548 # customer.
549 },
550 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
551 # The name field must specify the group resource name with this format:
552 # identitysources/{source_id}/groups/{ID}
553 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700554 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
556 # parent. This should always be set in tandem with the
557 # inheritAclFrom
558 # field. Also, when the
559 # inheritAclFrom field
560 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700561 },
562 }</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 Kim65020912020-05-20 12:08:20 -0700589 &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 -0700590 # datasources/{source_id}/items/{item_id}
591 # file, folder, or a database record.
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
593 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
594 # Can be used with the items.push method to calculate modified state.
595 # The maximum length is 2048 characters.
596 &quot;contentFormat&quot;: &quot;A String&quot;,
597 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
598 # This reference is created via upload
599 # method.
600 # Updating of item content may refer to this uploaded content via
601 # contentDataRef.
602 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
603 # The maximum length is 2048 characters.
604 },
605 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
606 # The maximum length is 102400 bytes (100 KiB).
607 },
608 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
609 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
610 # this link to the title.
611 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
612 # trigger a redirect notice; to avoid this, encode the URL.
613 # The maximum length is 2048 characters.
614 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
615 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
616 # Deletion of the container item leads to automatic deletion of this
617 # item. Note: ACLs are not inherited from a container item.
618 # To provide ACL inheritance for an item, use the
619 # inheritAclFrom
620 # field. The maximum length is 1536 characters.
621 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
622 # definition in the schema registered for the data source. For example, if
623 # the schema for the data source contains an object definition with name
624 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
625 # objectType to &#x27;document&#x27;.
626 # The maximum length is 256 characters.
627 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
628 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
629 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
630 # default value is 0.0.
631 },
632 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
633 # This can be used with the
634 # items.push
635 # method to calculate modified state.
636 # The maximum length is 2048 characters.
637 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
638 # Search quality, but are not exposed to end users.
639 # The maximum number of elements is 1000.
640 { # Represents an interaction between a user and an item.
641 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
642 # type exist for a single user, only the most recent action is recorded.
643 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
644 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
645 # The name field must specify the user resource name with this format:
646 # identitysources/{source_id}/users/{ID}
647 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
648 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
649 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
650 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
651 # customer.
652 },
653 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
654 # The name field must specify the group resource name with this format:
655 # identitysources/{source_id}/groups/{ID}
656 },
657 &quot;type&quot;: &quot;A String&quot;,
658 },
659 ],
660 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
661 # Used internally for user generated content.
662 # The maximum number of elements is 100.
663 # The maximum length is 8192 characters.
664 &quot;A String&quot;,
665 ],
666 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
667 # ItemContent.content
668 # in the source repository.
669 # The maximum length is 256 characters.
670 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
671 # Search result.
672 # The maximum length is 2048 characters.
673 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
674 &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
675 # more information, see
676 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
677 # The maximum length is 32 characters.
678 },
679 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
680 # The maximum length is 100 characters.
681 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
682 # byte string and compares the Item version in the index
683 # to the version of the queued Item using lexical ordering.
684 # &lt;br /&gt;&lt;br /&gt;
685 # Cloud Search Indexing won&#x27;t index or delete any queued item with
686 # a version value that is less than or equal to the version of the
687 # currently indexed item.
688 # The maximum length for this field is 1024 bytes.
689 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
690 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
691 # object definition in the schema for the data source.
692 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
693 # This can be used with the
694 # items.push
695 # method to calculate modified state.
696 # The maximum length is 2048 characters.
697 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
698 # definition in the schema for the data source.
699 &quot;properties&quot;: [ # The properties for the object.
700 # The maximum number of elements is 1000.
701 { # A typed name-value pair for structured data. The type of the value should
702 # be the same as the registered type for the `name` property in the object
703 # definition of `objectType`.
704 &quot;objectValues&quot;: { # List of object values.
705 &quot;values&quot;: [
706 # Object with schema name: StructuredDataObject
707 ],
708 },
709 &quot;enumValues&quot;: { # List of enum values.
710 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
711 &quot;A String&quot;,
712 ],
713 },
714 &quot;dateValues&quot;: { # List of date values.
715 &quot;values&quot;: [
716 { # 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.
717 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
718 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
719 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
720 },
721 ],
722 },
723 &quot;integerValues&quot;: { # List of integer values.
724 &quot;values&quot;: [
725 &quot;A String&quot;,
726 ],
727 },
728 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
729 # property that was registered for object definition in the schema.
730 # The maximum allowable length for this property is 256 characters.
731 &quot;doubleValues&quot;: { # List of double values.
732 &quot;values&quot;: [
733 3.14,
734 ],
735 },
736 &quot;booleanValue&quot;: True or False,
737 &quot;textValues&quot;: { # List of text values.
738 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
739 &quot;A String&quot;,
740 ],
741 },
742 &quot;htmlValues&quot;: { # List of html values.
743 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
744 &quot;A String&quot;,
745 ],
746 },
747 &quot;timestampValues&quot;: { # List of timestamp values.
748 &quot;values&quot;: [
749 &quot;A String&quot;,
750 ],
751 },
752 },
753 ],
754 },
755 },
756 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700757 # Output only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
759 { # Errors when the connector is communicating to the source repository.
760 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
761 # of the message is 8192 characters.
762 &quot;type&quot;: &quot;A String&quot;, # Type of error.
763 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
764 },
765 ],
766 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
769 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
770 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 # about the validation errors.
772 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
774 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700775 },
776 ],
777 },
778 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;code&quot;: &quot;A String&quot;, # Status code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700780 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700781 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
782 # The maximum length is 10000 bytes.
783 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 # datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -0700785 # &lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 # The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700788 # [Map ACLs](/cloud-search/docs/guides/acls).
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 # results. While principals are denied access by default, use denied readers
791 # to handle exceptions and override the list allowed readers.
792 # The maximum number of elements is 100.
793 { # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700795 # The name field must specify the user resource name with this format:
796 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -0700797 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
798 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
799 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
800 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
801 # customer.
802 },
803 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 # The name field must specify the group resource name with this format:
805 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700806 },
807 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 # Note: ACL inheritance *only* provides access permissions
810 # to child items and does not define structural relationships, nor does it
811 # provide convenient ways to delete large groups of items.
812 # Deleting an ACL parent from the index only alters the access permissions of
813 # child items that reference the parent in the
814 # inheritAclFrom
815 # field. The item is still in the index, but may not
816 # visible in search results. By contrast, deletion of a container item
817 # also deletes all items that reference the container via the
818 # containerName
819 # field.
820 # The maximum length for this field is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
822 # Optional if inheriting permissions from another item or if the item
823 # is not intended to be visible, such as
824 # virtual
825 # containers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 # The maximum number of elements is 1000.
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 { # Reference to a user, group, or domain.
828 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
829 # The name field must specify the user resource name with this format:
830 # identitysources/{source_id}/users/{ID}
831 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
832 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
833 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
834 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
835 # customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
838 # The name field must specify the group resource name with this format:
839 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 },
841 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
843 # document access permissions. It does, however, offer
844 # a slight ranking boosts items where the querying user is an owner.
845 # The maximum number of elements is 5.
846 { # Reference to a user, group, or domain.
847 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
848 # The name field must specify the user resource name with this format:
849 # identitysources/{source_id}/users/{ID}
850 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
851 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
852 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
853 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
854 # customer.
855 },
856 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
857 # The name field must specify the group resource name with this format:
858 # identitysources/{source_id}/groups/{ID}
859 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
862 # parent. This should always be set in tandem with the
863 # inheritAclFrom
864 # field. Also, when the
865 # inheritAclFrom field
866 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 },
868 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;indexItemOptions&quot;: {
870 &quot;allowUnknownGsuitePrincipals&quot;: True or False, # Specifies if the index request should allow gsuite principals that do not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 # exist or are deleted in the index request.
872 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
874 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
875 &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;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 # If `true`, the operation is completed, and either `error` or `response` is
890 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700891 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700892 # method returns no data on success, such as `Delete`, the response is
893 # `google.protobuf.Empty`. If the original method is standard
894 # `Get`/`Create`/`Update`, the response should be the resource. For other
895 # methods, the response should have the type `XxxResponse`, where `Xxx`
896 # is the original method name. For example, if the original method name
897 # is `TakeSnapshot()`, the inferred response type is
898 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700900 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700902 # originally returns it. If you use the default HTTP mapping, the
903 # `name` should be a resource name ending with `operations/{unique_id}`.
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;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
918 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
919 # user-facing error message should be localized and sent in the
920 # google.rpc.Status.details field, or localized by the client.
921 },
922 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
923 # contains progress information and common metadata such as create time.
924 # Some services might not provide such metadata. Any method that returns a
925 # long-running operation should document the metadata type, if any.
926 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700927 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 }</pre>
929</div>
930
931<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 <code class="details" id="list">list(name, connectorName=None, brief=None, pageToken=None, pageSize=None, debugOptions_enableDebugging=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 Kim715bd7f2019-06-14 16:50:42 -0700943 brief: boolean, When set to true, the indexing system only populates the following fields:
944name,
945version,
Dan O'Mearadd494642020-05-01 07:42:23 -0700946queue.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700947metadata.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700948metadata.title,
949metadata.sourceRepositoryURL,
950metadata.objectType,
951metadata.createTime,
952metadata.updateTime,
953metadata.contentLanguage,
954metadata.mimeType,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955structured_data.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700956content.hash,
957itemType,
958itemStatus.code,
959itemStatus.processingError.code,
960itemStatus.repositoryError.type,
961&lt;br /&gt;If this value is false, then all the fields are populated in Item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 pageToken: string, The next_page_token value returned from a previous List request, if any.
963 pageSize: integer, Maximum number of items to fetch in a request.
964The max value is 1000 when brief is true. The max value is 10 if brief
965is false.
966&lt;br /&gt;The default value is 10
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700967 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
968Otherwise, ignore this field.
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;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700980 &quot;items&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700981 { # Represents a single object that is an item in the search index, such as a
982 # file, folder, or a database record.
Bu Sun Kim65020912020-05-20 12:08:20 -0700983 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
984 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
985 # Can be used with the items.push method to calculate modified state.
986 # The maximum length is 2048 characters.
987 &quot;contentFormat&quot;: &quot;A String&quot;,
988 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
989 # This reference is created via upload
990 # method.
991 # Updating of item content may refer to this uploaded content via
992 # contentDataRef.
993 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
994 # The maximum length is 2048 characters.
995 },
996 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
997 # The maximum length is 102400 bytes (100 KiB).
998 },
999 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1000 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1001 # this link to the title.
1002 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1003 # trigger a redirect notice; to avoid this, encode the URL.
1004 # The maximum length is 2048 characters.
1005 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1006 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1007 # Deletion of the container item leads to automatic deletion of this
1008 # item. Note: ACLs are not inherited from a container item.
1009 # To provide ACL inheritance for an item, use the
1010 # inheritAclFrom
1011 # field. The maximum length is 1536 characters.
1012 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1013 # definition in the schema registered for the data source. For example, if
1014 # the schema for the data source contains an object definition with name
1015 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1016 # objectType to &#x27;document&#x27;.
1017 # The maximum length is 256 characters.
1018 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1019 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1020 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1021 # default value is 0.0.
1022 },
1023 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1024 # This can be used with the
1025 # items.push
1026 # method to calculate modified state.
1027 # The maximum length is 2048 characters.
1028 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1029 # Search quality, but are not exposed to end users.
1030 # The maximum number of elements is 1000.
1031 { # Represents an interaction between a user and an item.
1032 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1033 # type exist for a single user, only the most recent action is recorded.
1034 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1035 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1036 # The name field must specify the user resource name with this format:
1037 # identitysources/{source_id}/users/{ID}
1038 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1039 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1040 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1041 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1042 # customer.
1043 },
1044 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1045 # The name field must specify the group resource name with this format:
1046 # identitysources/{source_id}/groups/{ID}
1047 },
1048 &quot;type&quot;: &quot;A String&quot;,
1049 },
1050 ],
1051 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1052 # Used internally for user generated content.
1053 # The maximum number of elements is 100.
1054 # The maximum length is 8192 characters.
1055 &quot;A String&quot;,
1056 ],
1057 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1058 # ItemContent.content
1059 # in the source repository.
1060 # The maximum length is 256 characters.
1061 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1062 # Search result.
1063 # The maximum length is 2048 characters.
1064 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1065 &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
1066 # more information, see
1067 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1068 # The maximum length is 32 characters.
1069 },
1070 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1071 # The maximum length is 100 characters.
1072 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1073 # byte string and compares the Item version in the index
1074 # to the version of the queued Item using lexical ordering.
1075 # &lt;br /&gt;&lt;br /&gt;
1076 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1077 # a version value that is less than or equal to the version of the
1078 # currently indexed item.
1079 # The maximum length for this field is 1024 bytes.
1080 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1081 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1082 # object definition in the schema for the data source.
1083 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1084 # This can be used with the
1085 # items.push
1086 # method to calculate modified state.
1087 # The maximum length is 2048 characters.
1088 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1089 # definition in the schema for the data source.
1090 &quot;properties&quot;: [ # The properties for the object.
1091 # The maximum number of elements is 1000.
1092 { # A typed name-value pair for structured data. The type of the value should
1093 # be the same as the registered type for the `name` property in the object
1094 # definition of `objectType`.
1095 &quot;objectValues&quot;: { # List of object values.
1096 &quot;values&quot;: [
1097 # Object with schema name: StructuredDataObject
1098 ],
1099 },
1100 &quot;enumValues&quot;: { # List of enum values.
1101 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1102 &quot;A String&quot;,
1103 ],
1104 },
1105 &quot;dateValues&quot;: { # List of date values.
1106 &quot;values&quot;: [
1107 { # 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.
1108 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1109 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1110 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1111 },
1112 ],
1113 },
1114 &quot;integerValues&quot;: { # List of integer values.
1115 &quot;values&quot;: [
1116 &quot;A String&quot;,
1117 ],
1118 },
1119 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1120 # property that was registered for object definition in the schema.
1121 # The maximum allowable length for this property is 256 characters.
1122 &quot;doubleValues&quot;: { # List of double values.
1123 &quot;values&quot;: [
1124 3.14,
1125 ],
1126 },
1127 &quot;booleanValue&quot;: True or False,
1128 &quot;textValues&quot;: { # List of text values.
1129 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1130 &quot;A String&quot;,
1131 ],
1132 },
1133 &quot;htmlValues&quot;: { # List of html values.
1134 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1135 &quot;A String&quot;,
1136 ],
1137 },
1138 &quot;timestampValues&quot;: { # List of timestamp values.
1139 &quot;values&quot;: [
1140 &quot;A String&quot;,
1141 ],
1142 },
1143 },
1144 ],
1145 },
1146 },
1147 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001148 # Output only field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1150 { # Errors when the connector is communicating to the source repository.
1151 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1152 # of the message is 8192 characters.
1153 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1154 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1155 },
1156 ],
1157 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001158 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1160 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1161 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001162 # about the validation errors.
1163 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1165 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001166 },
1167 ],
1168 },
1169 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001170 &quot;code&quot;: &quot;A String&quot;, # Status code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001171 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001172 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1173 # The maximum length is 10000 bytes.
1174 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001175 # datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -07001176 # &lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001177 # The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001179 # [Map ACLs](/cloud-search/docs/guides/acls).
Bu Sun Kim65020912020-05-20 12:08:20 -07001180 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001181 # results. While principals are denied access by default, use denied readers
1182 # to handle exceptions and override the list allowed readers.
1183 # The maximum number of elements is 100.
1184 { # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -07001185 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001186 # The name field must specify the user resource name with this format:
1187 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -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
1190 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1191 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1192 # customer.
1193 },
1194 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001195 # The name field must specify the group resource name with this format:
1196 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001197 },
1198 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001199 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001200 # Note: ACL inheritance *only* provides access permissions
1201 # to child items and does not define structural relationships, nor does it
1202 # provide convenient ways to delete large groups of items.
1203 # Deleting an ACL parent from the index only alters the access permissions of
1204 # child items that reference the parent in the
1205 # inheritAclFrom
1206 # field. The item is still in the index, but may not
1207 # visible in search results. By contrast, deletion of a container item
1208 # also deletes all items that reference the container via the
1209 # containerName
1210 # field.
1211 # The maximum length for this field is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1213 # Optional if inheriting permissions from another item or if the item
1214 # is not intended to be visible, such as
1215 # virtual
1216 # containers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001217 # The maximum number of elements is 1000.
Bu Sun Kim65020912020-05-20 12:08:20 -07001218 { # Reference to a user, group, or domain.
1219 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1220 # The name field must specify the user resource name with this format:
1221 # identitysources/{source_id}/users/{ID}
1222 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1223 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1224 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1225 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1226 # customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1229 # The name field must specify the group resource name with this format:
1230 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001231 },
1232 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001233 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1234 # document access permissions. It does, however, offer
1235 # a slight ranking boosts items where the querying user is an owner.
1236 # The maximum number of elements is 5.
1237 { # Reference to a user, group, or domain.
1238 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1239 # The name field must specify the user resource name with this format:
1240 # identitysources/{source_id}/users/{ID}
1241 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1242 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1243 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1244 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1245 # customer.
1246 },
1247 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1248 # The name field must specify the group resource name with this format:
1249 # identitysources/{source_id}/groups/{ID}
1250 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001252 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1253 # parent. This should always be set in tandem with the
1254 # inheritAclFrom
1255 # field. Also, when the
1256 # inheritAclFrom field
1257 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001258 },
1259 },
1260 ],
1261 }</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;statusCodes&quot;: [ # Limit the items polled to the ones with these statuses.
1317 &quot;A String&quot;,
1318 ],
1319 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1320 &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 -07001321 # Otherwise, ignore this field.
1322 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
1324 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
1325 &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;limit&quot;: 42, # Maximum number of items to return.
1329 # &lt;br /&gt;The maximum value is 100 and the default value is 20.
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 Kim65020912020-05-20 12:08:20 -07001352 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
1353 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1354 # Can be used with the items.push method to calculate modified state.
1355 # The maximum length is 2048 characters.
1356 &quot;contentFormat&quot;: &quot;A String&quot;,
1357 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1358 # This reference is created via upload
1359 # method.
1360 # Updating of item content may refer to this uploaded content via
1361 # contentDataRef.
1362 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1363 # The maximum length is 2048 characters.
1364 },
1365 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1366 # The maximum length is 102400 bytes (100 KiB).
1367 },
1368 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1369 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1370 # this link to the title.
1371 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1372 # trigger a redirect notice; to avoid this, encode the URL.
1373 # The maximum length is 2048 characters.
1374 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1375 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1376 # Deletion of the container item leads to automatic deletion of this
1377 # item. Note: ACLs are not inherited from a container item.
1378 # To provide ACL inheritance for an item, use the
1379 # inheritAclFrom
1380 # field. The maximum length is 1536 characters.
1381 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1382 # definition in the schema registered for the data source. For example, if
1383 # the schema for the data source contains an object definition with name
1384 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1385 # objectType to &#x27;document&#x27;.
1386 # The maximum length is 256 characters.
1387 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1388 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1389 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1390 # default value is 0.0.
1391 },
1392 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1393 # This can be used with the
1394 # items.push
1395 # method to calculate modified state.
1396 # The maximum length is 2048 characters.
1397 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1398 # Search quality, but are not exposed to end users.
1399 # The maximum number of elements is 1000.
1400 { # Represents an interaction between a user and an item.
1401 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1402 # type exist for a single user, only the most recent action is recorded.
1403 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1404 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1405 # The name field must specify the user resource name with this format:
1406 # identitysources/{source_id}/users/{ID}
1407 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1408 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1409 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1410 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1411 # customer.
1412 },
1413 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1414 # The name field must specify the group resource name with this format:
1415 # identitysources/{source_id}/groups/{ID}
1416 },
1417 &quot;type&quot;: &quot;A String&quot;,
1418 },
1419 ],
1420 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1421 # Used internally for user generated content.
1422 # The maximum number of elements is 100.
1423 # The maximum length is 8192 characters.
1424 &quot;A String&quot;,
1425 ],
1426 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1427 # ItemContent.content
1428 # in the source repository.
1429 # The maximum length is 256 characters.
1430 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1431 # Search result.
1432 # The maximum length is 2048 characters.
1433 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1434 &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
1435 # more information, see
1436 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1437 # The maximum length is 32 characters.
1438 },
1439 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1440 # The maximum length is 100 characters.
1441 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1442 # byte string and compares the Item version in the index
1443 # to the version of the queued Item using lexical ordering.
1444 # &lt;br /&gt;&lt;br /&gt;
1445 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1446 # a version value that is less than or equal to the version of the
1447 # currently indexed item.
1448 # The maximum length for this field is 1024 bytes.
1449 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1450 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1451 # object definition in the schema for the data source.
1452 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1453 # This can be used with the
1454 # items.push
1455 # method to calculate modified state.
1456 # The maximum length is 2048 characters.
1457 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1458 # definition in the schema for the data source.
1459 &quot;properties&quot;: [ # The properties for the object.
1460 # The maximum number of elements is 1000.
1461 { # A typed name-value pair for structured data. The type of the value should
1462 # be the same as the registered type for the `name` property in the object
1463 # definition of `objectType`.
1464 &quot;objectValues&quot;: { # List of object values.
1465 &quot;values&quot;: [
1466 # Object with schema name: StructuredDataObject
1467 ],
1468 },
1469 &quot;enumValues&quot;: { # List of enum values.
1470 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1471 &quot;A String&quot;,
1472 ],
1473 },
1474 &quot;dateValues&quot;: { # List of date values.
1475 &quot;values&quot;: [
1476 { # 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.
1477 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1478 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1479 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1480 },
1481 ],
1482 },
1483 &quot;integerValues&quot;: { # List of integer values.
1484 &quot;values&quot;: [
1485 &quot;A String&quot;,
1486 ],
1487 },
1488 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1489 # property that was registered for object definition in the schema.
1490 # The maximum allowable length for this property is 256 characters.
1491 &quot;doubleValues&quot;: { # List of double values.
1492 &quot;values&quot;: [
1493 3.14,
1494 ],
1495 },
1496 &quot;booleanValue&quot;: True or False,
1497 &quot;textValues&quot;: { # List of text values.
1498 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1499 &quot;A String&quot;,
1500 ],
1501 },
1502 &quot;htmlValues&quot;: { # List of html values.
1503 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1504 &quot;A String&quot;,
1505 ],
1506 },
1507 &quot;timestampValues&quot;: { # List of timestamp values.
1508 &quot;values&quot;: [
1509 &quot;A String&quot;,
1510 ],
1511 },
1512 },
1513 ],
1514 },
1515 },
1516 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001517 # Output only field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001518 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1519 { # Errors when the connector is communicating to the source repository.
1520 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1521 # of the message is 8192 characters.
1522 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1523 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1524 },
1525 ],
1526 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001527 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1529 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1530 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001531 # about the validation errors.
1532 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001533 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1534 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001535 },
1536 ],
1537 },
1538 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001539 &quot;code&quot;: &quot;A String&quot;, # Status code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001540 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1542 # The maximum length is 10000 bytes.
1543 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001544 # datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -07001545 # &lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001546 # The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001548 # [Map ACLs](/cloud-search/docs/guides/acls).
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001550 # results. While principals are denied access by default, use denied readers
1551 # to handle exceptions and override the list allowed readers.
1552 # The maximum number of elements is 100.
1553 { # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001555 # The name field must specify the user resource name with this format:
1556 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1558 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1559 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1560 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1561 # customer.
1562 },
1563 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001564 # The name field must specify the group resource name with this format:
1565 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001566 },
1567 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 # Note: ACL inheritance *only* provides access permissions
1570 # to child items and does not define structural relationships, nor does it
1571 # provide convenient ways to delete large groups of items.
1572 # Deleting an ACL parent from the index only alters the access permissions of
1573 # child items that reference the parent in the
1574 # inheritAclFrom
1575 # field. The item is still in the index, but may not
1576 # visible in search results. By contrast, deletion of a container item
1577 # also deletes all items that reference the container via the
1578 # containerName
1579 # field.
1580 # The maximum length for this field is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1582 # Optional if inheriting permissions from another item or if the item
1583 # is not intended to be visible, such as
1584 # virtual
1585 # containers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001586 # The maximum number of elements is 1000.
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 { # Reference to a user, group, or domain.
1588 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1589 # The name field must specify the user resource name with this format:
1590 # identitysources/{source_id}/users/{ID}
1591 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1592 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1593 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1594 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1595 # customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001596 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001597 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1598 # The name field must specify the group resource name with this format:
1599 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001600 },
1601 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001602 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1603 # document access permissions. It does, however, offer
1604 # a slight ranking boosts items where the querying user is an owner.
1605 # The maximum number of elements is 5.
1606 { # Reference to a user, group, or domain.
1607 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1608 # The name field must specify the user resource name with this format:
1609 # identitysources/{source_id}/users/{ID}
1610 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1611 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1612 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1613 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1614 # customer.
1615 },
1616 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1617 # The name field must specify the group resource name with this format:
1618 # identitysources/{source_id}/groups/{ID}
1619 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001620 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001621 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1622 # parent. This should always be set in tandem with the
1623 # inheritAclFrom
1624 # field. Also, when the
1625 # inheritAclFrom field
1626 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 },
1628 },
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}
1652 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1653 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
1654 # Otherwise, ignore this field.
1655 },
1656 &quot;item&quot;: { # Represents an item to be pushed to the indexing queue. # Item to push onto the queue.
1657 &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 -07001658 # is used to determine how to modify this
Bu Sun Kim65020912020-05-20 12:08:20 -07001659 # item&#x27;s status. Setting this field and the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001660 # type field results in argument
1661 # error.
1662 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001663 &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;repositoryError&quot;: { # Errors when the connector is communicating to the source repository. # Populate this field to store Connector or repository error details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001667 # This information is displayed in the Admin Console.
1668 # This field may only be populated when the
1669 # Type is
1670 # REPOSITORY_ERROR.
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001672 # of the message is 8192 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1674 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 &quot;type&quot;: &quot;A String&quot;, # The type of the push operation that defines the push behavior.
1677 &quot;queue&quot;: &quot;A String&quot;, # Queue to which this item belongs to. The &lt;code&gt;default&lt;/code&gt; queue is
1678 # chosen if this field is not specified. The maximum length is
1679 # 512 characters.
1680 &quot;structuredDataHash&quot;: &quot;A String&quot;, # Structured data hash of the item according to the repository. If specified,
1681 # this is used to determine how to modify this item&#x27;s status. Setting this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 # field and the type field
1683 # results in argument error.
1684 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;contentHash&quot;: &quot;A String&quot;, # Content hash of the item according to the repository. If specified, this is
1686 # used to determine how to modify this
1687 # item&#x27;s status. Setting this field and the
1688 # type field results in argument
1689 # error.
1690 # The maximum length is 2048 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 },
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 Kim65020912020-05-20 12:08:20 -07001704 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
1705 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1706 # Can be used with the items.push method to calculate modified state.
1707 # The maximum length is 2048 characters.
1708 &quot;contentFormat&quot;: &quot;A String&quot;,
1709 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1710 # This reference is created via upload
1711 # method.
1712 # Updating of item content may refer to this uploaded content via
1713 # contentDataRef.
1714 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1715 # The maximum length is 2048 characters.
1716 },
1717 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1718 # The maximum length is 102400 bytes (100 KiB).
1719 },
1720 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1721 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1722 # this link to the title.
1723 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1724 # trigger a redirect notice; to avoid this, encode the URL.
1725 # The maximum length is 2048 characters.
1726 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1727 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1728 # Deletion of the container item leads to automatic deletion of this
1729 # item. Note: ACLs are not inherited from a container item.
1730 # To provide ACL inheritance for an item, use the
1731 # inheritAclFrom
1732 # field. The maximum length is 1536 characters.
1733 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1734 # definition in the schema registered for the data source. For example, if
1735 # the schema for the data source contains an object definition with name
1736 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1737 # objectType to &#x27;document&#x27;.
1738 # The maximum length is 256 characters.
1739 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1740 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1741 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1742 # default value is 0.0.
1743 },
1744 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1745 # This can be used with the
1746 # items.push
1747 # method to calculate modified state.
1748 # The maximum length is 2048 characters.
1749 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1750 # Search quality, but are not exposed to end users.
1751 # The maximum number of elements is 1000.
1752 { # Represents an interaction between a user and an item.
1753 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1754 # type exist for a single user, only the most recent action is recorded.
1755 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1756 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1757 # The name field must specify the user resource name with this format:
1758 # identitysources/{source_id}/users/{ID}
1759 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1760 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1761 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1762 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1763 # customer.
1764 },
1765 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1766 # The name field must specify the group resource name with this format:
1767 # identitysources/{source_id}/groups/{ID}
1768 },
1769 &quot;type&quot;: &quot;A String&quot;,
1770 },
1771 ],
1772 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1773 # Used internally for user generated content.
1774 # The maximum number of elements is 100.
1775 # The maximum length is 8192 characters.
1776 &quot;A String&quot;,
1777 ],
1778 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1779 # ItemContent.content
1780 # in the source repository.
1781 # The maximum length is 256 characters.
1782 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1783 # Search result.
1784 # The maximum length is 2048 characters.
1785 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1786 &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
1787 # more information, see
1788 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1789 # The maximum length is 32 characters.
1790 },
1791 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1792 # The maximum length is 100 characters.
1793 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1794 # byte string and compares the Item version in the index
1795 # to the version of the queued Item using lexical ordering.
1796 # &lt;br /&gt;&lt;br /&gt;
1797 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1798 # a version value that is less than or equal to the version of the
1799 # currently indexed item.
1800 # The maximum length for this field is 1024 bytes.
1801 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1802 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1803 # object definition in the schema for the data source.
1804 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1805 # This can be used with the
1806 # items.push
1807 # method to calculate modified state.
1808 # The maximum length is 2048 characters.
1809 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1810 # definition in the schema for the data source.
1811 &quot;properties&quot;: [ # The properties for the object.
1812 # The maximum number of elements is 1000.
1813 { # A typed name-value pair for structured data. The type of the value should
1814 # be the same as the registered type for the `name` property in the object
1815 # definition of `objectType`.
1816 &quot;objectValues&quot;: { # List of object values.
1817 &quot;values&quot;: [
1818 # Object with schema name: StructuredDataObject
1819 ],
1820 },
1821 &quot;enumValues&quot;: { # List of enum values.
1822 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1823 &quot;A String&quot;,
1824 ],
1825 },
1826 &quot;dateValues&quot;: { # List of date values.
1827 &quot;values&quot;: [
1828 { # 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.
1829 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1830 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1831 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1832 },
1833 ],
1834 },
1835 &quot;integerValues&quot;: { # List of integer values.
1836 &quot;values&quot;: [
1837 &quot;A String&quot;,
1838 ],
1839 },
1840 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1841 # property that was registered for object definition in the schema.
1842 # The maximum allowable length for this property is 256 characters.
1843 &quot;doubleValues&quot;: { # List of double values.
1844 &quot;values&quot;: [
1845 3.14,
1846 ],
1847 },
1848 &quot;booleanValue&quot;: True or False,
1849 &quot;textValues&quot;: { # List of text values.
1850 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1851 &quot;A String&quot;,
1852 ],
1853 },
1854 &quot;htmlValues&quot;: { # List of html values.
1855 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1856 &quot;A String&quot;,
1857 ],
1858 },
1859 &quot;timestampValues&quot;: { # List of timestamp values.
1860 &quot;values&quot;: [
1861 &quot;A String&quot;,
1862 ],
1863 },
1864 },
1865 ],
1866 },
1867 },
1868 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001869 # Output only field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1871 { # Errors when the connector is communicating to the source repository.
1872 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1873 # of the message is 8192 characters.
1874 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1875 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1876 },
1877 ],
1878 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001879 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001880 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1881 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1882 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001883 # about the validation errors.
1884 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1886 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001887 },
1888 ],
1889 },
1890 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;code&quot;: &quot;A String&quot;, # Status code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001892 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1894 # The maximum length is 10000 bytes.
1895 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001896 # datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -07001897 # &lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001898 # The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001900 # [Map ACLs](/cloud-search/docs/guides/acls).
Bu Sun Kim65020912020-05-20 12:08:20 -07001901 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001902 # results. While principals are denied access by default, use denied readers
1903 # to handle exceptions and override the list allowed readers.
1904 # The maximum number of elements is 100.
1905 { # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001907 # The name field must specify the user resource name with this format:
1908 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -07001909 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1910 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1911 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1912 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1913 # customer.
1914 },
1915 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001916 # The name field must specify the group resource name with this format:
1917 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001918 },
1919 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001921 # Note: ACL inheritance *only* provides access permissions
1922 # to child items and does not define structural relationships, nor does it
1923 # provide convenient ways to delete large groups of items.
1924 # Deleting an ACL parent from the index only alters the access permissions of
1925 # child items that reference the parent in the
1926 # inheritAclFrom
1927 # field. The item is still in the index, but may not
1928 # visible in search results. By contrast, deletion of a container item
1929 # also deletes all items that reference the container via the
1930 # containerName
1931 # field.
1932 # The maximum length for this field is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1934 # Optional if inheriting permissions from another item or if the item
1935 # is not intended to be visible, such as
1936 # virtual
1937 # containers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001938 # The maximum number of elements is 1000.
Bu Sun Kim65020912020-05-20 12:08:20 -07001939 { # Reference to a user, group, or domain.
1940 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1941 # The name field must specify the user resource name with this format:
1942 # identitysources/{source_id}/users/{ID}
1943 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1944 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1945 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1946 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1947 # customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001948 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001949 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1950 # The name field must specify the group resource name with this format:
1951 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001952 },
1953 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1955 # document access permissions. It does, however, offer
1956 # a slight ranking boosts items where the querying user is an owner.
1957 # The maximum number of elements is 5.
1958 { # Reference to a user, group, or domain.
1959 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1960 # The name field must specify the user resource name with this format:
1961 # identitysources/{source_id}/users/{ID}
1962 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1963 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1964 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1965 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1966 # customer.
1967 },
1968 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1969 # The name field must specify the group resource name with this format:
1970 # identitysources/{source_id}/groups/{ID}
1971 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001972 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1974 # parent. This should always be set in tandem with the
1975 # inheritAclFrom
1976 # field. Also, when the
1977 # inheritAclFrom field
1978 # is set, this field should be set to a valid AclInheritanceType.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 },
1980 }</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 Kim65020912020-05-20 12:08:20 -07002003 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
Dan O'Mearadd494642020-05-01 07:42:23 -07002004 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -07002005 &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;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -07002019 # If `true`, the operation is completed, and either `error` or `response` is
2020 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07002022 # method returns no data on success, such as `Delete`, the response is
2023 # `google.protobuf.Empty`. If the original method is standard
2024 # `Get`/`Create`/`Update`, the response should be the resource. For other
2025 # methods, the response should have the type `XxxResponse`, where `Xxx`
2026 # is the original method name. For example, if the original method name
2027 # is `TakeSnapshot()`, the inferred response type is
2028 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002029 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002030 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002031 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -07002032 # originally returns it. If you use the default HTTP mapping, the
2033 # `name` should be a resource name ending with `operations/{unique_id}`.
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;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2048 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2049 # user-facing error message should be localized and sent in the
2050 # google.rpc.Status.details field, or localized by the client.
2051 },
2052 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
2053 # contains progress information and common metadata such as create time.
2054 # Some services might not provide such metadata. Any method that returns a
2055 # long-running operation should document the metadata type, if any.
2056 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002057 },
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>