blob: 5d33bfcb681626c6a6b0ae8a7d6991075ba32886 [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 Kim4ed7d3f2020-05-27 12:20:54 -070090 <code><a href="#list">list(name, debugOptions_enableDebugging=None, connectorName=None, brief=None, pageToken=None, pageSize=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;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 # method returns no data on success, such as `Delete`, the response is
144 # `google.protobuf.Empty`. If the original method is standard
145 # `Get`/`Create`/`Update`, the response should be the resource. For other
146 # methods, the response should have the type `XxxResponse`, where `Xxx`
147 # is the original method name. For example, if the original method name
148 # is `TakeSnapshot()`, the inferred response type is
149 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700151 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &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 -0700153 # originally returns it. If you use the default HTTP mapping, the
154 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &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 -0700156 # different programming environments, including REST APIs and RPC APIs. It is
157 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
158 # three pieces of data: error code, error message, and error details.
159 #
160 # You can find out more about this error model and how to work with it in the
161 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &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 -0700163 # message types for APIs to use.
164 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 },
167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
169 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
170 # user-facing error message should be localized and sent in the
171 # google.rpc.Status.details field, or localized by the client.
172 },
173 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
174 # contains progress information and common metadata such as create time.
175 # Some services might not provide such metadata. Any method that returns a
176 # long-running operation should document the metadata type, if any.
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
180 # If `true`, the operation is completed, and either `error` or `response` is
181 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 }</pre>
183</div>
184
185<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 <code class="details" id="deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 <pre>Deletes all items in a queue. This method is useful for deleting stale
188items.
189
Dan O'Mearadd494642020-05-01 07:42:23 -0700190This API requires an admin or service account to execute. The service
191account used is the one whitelisted in the corresponding data source.
192
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193Args:
194 name: string, Name of the Data Source to delete items in a queue.
195Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 The object takes the form of:
198
199{
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
201 &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 -0700202 # Otherwise, ignore this field.
203 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700204 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
205 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
206 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to delete items from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 }
208
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214Returns:
215 An object of the form:
216
217 { # This resource represents a long-running operation that is the result of a
218 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 # method returns no data on success, such as `Delete`, the response is
221 # `google.protobuf.Empty`. If the original method is standard
222 # `Get`/`Create`/`Update`, the response should be the resource. For other
223 # methods, the response should have the type `XxxResponse`, where `Xxx`
224 # is the original method name. For example, if the original method name
225 # is `TakeSnapshot()`, the inferred response type is
226 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &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 -0700230 # originally returns it. If you use the default HTTP mapping, the
231 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &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 -0700233 # different programming environments, including REST APIs and RPC APIs. It is
234 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
235 # three pieces of data: error code, error message, and error details.
236 #
237 # You can find out more about this error model and how to work with it in the
238 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 &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 -0700240 # message types for APIs to use.
241 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 },
244 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
246 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
247 # user-facing error message should be localized and sent in the
248 # google.rpc.Status.details field, or localized by the client.
249 },
250 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
251 # contains progress information and common metadata such as create time.
252 # Some services might not provide such metadata. Any method that returns a
253 # long-running operation should document the metadata type, if any.
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
257 # If `true`, the operation is completed, and either `error` or `response` is
258 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 }</pre>
260</div>
261
262<div class="method">
263 <code class="details" id="get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</code>
264 <pre>Gets Item resource by item name.
265
Dan O'Mearadd494642020-05-01 07:42:23 -0700266This API requires an admin or service account to execute. The service
267account used is the one whitelisted in the corresponding data source.
268
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269Args:
270 name: string, Name of the item to get info.
271Format: datasources/{source_id}/items/{item_id} (required)
272 connectorName: string, Name of connector making this call.
Dan O'Mearadd494642020-05-01 07:42:23 -0700273&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
275Otherwise, ignore this field.
276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281Returns:
282 An object of the form:
283
284 { # Represents a single object that is an item in the search index, such as a
285 # file, folder, or a database record.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700286 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
287 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
288 # object definition in the schema for the data source.
289 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
290 # This can be used with the
291 # items.push
292 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700294 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
295 # definition in the schema for the data source.
296 &quot;properties&quot;: [ # The properties for the object.
297 # The maximum number of elements is 1000.
298 { # A typed name-value pair for structured data. The type of the value should
299 # be the same as the registered type for the `name` property in the object
300 # definition of `objectType`.
301 &quot;integerValues&quot;: { # List of integer values.
302 &quot;values&quot;: [
303 &quot;A String&quot;,
304 ],
305 },
306 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
307 # property that was registered for object definition in the schema.
308 # The maximum allowable length for this property is 256 characters.
309 &quot;doubleValues&quot;: { # List of double values.
310 &quot;values&quot;: [
311 3.14,
312 ],
313 },
314 &quot;booleanValue&quot;: True or False,
315 &quot;htmlValues&quot;: { # List of html values.
316 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
317 &quot;A String&quot;,
318 ],
319 },
320 &quot;textValues&quot;: { # List of text values.
321 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
322 &quot;A String&quot;,
323 ],
324 },
325 &quot;timestampValues&quot;: { # List of timestamp values.
326 &quot;values&quot;: [
327 &quot;A String&quot;,
328 ],
329 },
330 &quot;objectValues&quot;: { # List of object values.
331 &quot;values&quot;: [
332 # Object with schema name: StructuredDataObject
333 ],
334 },
335 &quot;dateValues&quot;: { # List of date values.
336 &quot;values&quot;: [
337 { # 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.
338 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
339 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
340 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
341 },
342 ],
343 },
344 &quot;enumValues&quot;: { # List of enum values.
345 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
346 &quot;A String&quot;,
347 ],
348 },
349 },
350 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700352 },
353 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
354 # Output only field.
355 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
356 {
357 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
358 # about the validation errors.
359 {
360 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
361 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
362 },
363 ],
364 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
365 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
366 },
367 ],
368 &quot;code&quot;: &quot;A String&quot;, # Status code.
369 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
370 { # Errors when the connector is communicating to the source repository.
371 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
372 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
373 # of the message is 8192 characters.
374 &quot;type&quot;: &quot;A String&quot;, # Type of error.
375 },
376 ],
377 },
378 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
379 # datasources/{source_id}/items/{item_id}
380 # &lt;br /&gt;This is a required field.
381 # The maximum length is 1536 characters.
382 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
383 # The maximum length is 10000 bytes.
384 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
385 # [Map ACLs](/cloud-search/docs/guides/acls).
386 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
387 # document access permissions. It does, however, offer
388 # a slight ranking boosts items where the querying user is an owner.
389 # The maximum number of elements is 5.
390 { # Reference to a user, group, or domain.
391 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
392 # The name field must specify the user resource name with this format:
393 # identitysources/{source_id}/users/{ID}
394 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
395 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
396 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
397 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
398 # customer.
399 },
400 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
401 # The name field must specify the group resource name with this format:
402 # identitysources/{source_id}/groups/{ID}
403 },
404 ],
405 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
406 # parent. This should always be set in tandem with the
407 # inheritAclFrom
408 # field. Also, when the
409 # inheritAclFrom field
410 # is set, this field should be set to a valid AclInheritanceType.
411 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
412 # results. While principals are denied access by default, use denied readers
413 # to handle exceptions and override the list allowed readers.
414 # The maximum number of elements is 100.
415 { # Reference to a user, group, or domain.
416 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
417 # The name field must specify the user resource name with this format:
418 # identitysources/{source_id}/users/{ID}
419 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
420 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
421 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
422 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
423 # customer.
424 },
425 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
426 # The name field must specify the group resource name with this format:
427 # identitysources/{source_id}/groups/{ID}
428 },
429 ],
430 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
431 # Note: ACL inheritance *only* provides access permissions
432 # to child items and does not define structural relationships, nor does it
433 # provide convenient ways to delete large groups of items.
434 # Deleting an ACL parent from the index only alters the access permissions of
435 # child items that reference the parent in the
436 # inheritAclFrom
437 # field. The item is still in the index, but may not
438 # visible in search results. By contrast, deletion of a container item
439 # also deletes all items that reference the container via the
440 # containerName
441 # field.
442 # The maximum length for this field is 1536 characters.
443 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
444 # Optional if inheriting permissions from another item or if the item
445 # is not intended to be visible, such as
446 # virtual
447 # containers.
448 # The maximum number of elements is 1000.
449 { # Reference to a user, group, or domain.
450 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
451 # The name field must specify the user resource name with this format:
452 # identitysources/{source_id}/users/{ID}
453 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
454 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
455 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
456 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
457 # customer.
458 },
459 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
460 # The name field must specify the group resource name with this format:
461 # identitysources/{source_id}/groups/{ID}
462 },
463 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 },
465 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
467 # definition in the schema registered for the data source. For example, if
468 # the schema for the data source contains an object definition with name
469 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
470 # objectType to &#x27;document&#x27;.
471 # The maximum length is 256 characters.
472 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
473 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
474 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
475 # default value is 0.0.
476 },
477 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
478 # This can be used with the
479 # items.push
480 # method to calculate modified state.
481 # The maximum length is 2048 characters.
482 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
483 # Search quality, but are not exposed to end users.
484 # The maximum number of elements is 1000.
485 { # Represents an interaction between a user and an item.
486 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
487 # type exist for a single user, only the most recent action is recorded.
488 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
489 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
490 # The name field must specify the user resource name with this format:
491 # identitysources/{source_id}/users/{ID}
492 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
493 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
494 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
495 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
496 # customer.
497 },
498 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
499 # The name field must specify the group resource name with this format:
500 # identitysources/{source_id}/groups/{ID}
501 },
502 &quot;type&quot;: &quot;A String&quot;,
503 },
504 ],
505 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
506 # Used internally for user generated content.
507 # The maximum number of elements is 100.
508 # The maximum length is 8192 characters.
509 &quot;A String&quot;,
510 ],
511 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
512 # ItemContent.content
513 # in the source repository.
514 # The maximum length is 256 characters.
515 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
516 # Search result.
517 # The maximum length is 2048 characters.
518 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
519 &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
520 # more information, see
521 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
522 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700523 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
524 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
525 # this link to the title.
526 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
527 # trigger a redirect notice; to avoid this, encode the URL.
528 # The maximum length is 2048 characters.
529 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
530 # Deletion of the container item leads to automatic deletion of this
531 # item. Note: ACLs are not inherited from a container item.
532 # To provide ACL inheritance for an item, use the
533 # inheritAclFrom
534 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
537 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
538 # This reference is created via upload
539 # method.
540 # Updating of item content may refer to this uploaded content via
541 # contentDataRef.
542 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
543 # The maximum length is 2048 characters.
544 },
545 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
546 # The maximum length is 102400 bytes (100 KiB).
547 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
548 # Can be used with the items.push method to calculate modified state.
549 # The maximum length is 2048 characters.
550 &quot;contentFormat&quot;: &quot;A String&quot;,
551 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
553 # byte string and compares the Item version in the index
554 # to the version of the queued Item using lexical ordering.
555 # &lt;br /&gt;&lt;br /&gt;
556 # Cloud Search Indexing won&#x27;t index or delete any queued item with
557 # a version value that is less than or equal to the version of the
558 # currently indexed item.
559 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700560 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
561 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 }</pre>
563</div>
564
565<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 <code class="details" id="index">index(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567 <pre>Updates Item ACL, metadata, and
568content. It will insert the Item if it
569does not exist.
570This method does not support partial updates. Fields with no provided
571values are cleared out in the Cloud Search index.
572
Dan O'Mearadd494642020-05-01 07:42:23 -0700573This API requires an admin or service account to execute. The service
574account used is the one whitelisted in the corresponding data source.
575
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576Args:
577 name: string, Name of the Item. Format:
578datasources/{source_id}/items/{item_id}
Dan O'Mearadd494642020-05-01 07:42:23 -0700579&lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 The object takes the form of:
583
584{
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
586 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 # Otherwise, ignore this field.
588 },
Bu Sun 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 Kim4ed7d3f2020-05-27 12:20:54 -0700592 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
593 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
594 # object definition in the schema for the data source.
595 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
596 # This can be used with the
597 # items.push
598 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
601 # definition in the schema for the data source.
602 &quot;properties&quot;: [ # The properties for the object.
603 # The maximum number of elements is 1000.
604 { # A typed name-value pair for structured data. The type of the value should
605 # be the same as the registered type for the `name` property in the object
606 # definition of `objectType`.
607 &quot;integerValues&quot;: { # List of integer values.
608 &quot;values&quot;: [
609 &quot;A String&quot;,
610 ],
611 },
612 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
613 # property that was registered for object definition in the schema.
614 # The maximum allowable length for this property is 256 characters.
615 &quot;doubleValues&quot;: { # List of double values.
616 &quot;values&quot;: [
617 3.14,
618 ],
619 },
620 &quot;booleanValue&quot;: True or False,
621 &quot;htmlValues&quot;: { # List of html values.
622 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
623 &quot;A String&quot;,
624 ],
625 },
626 &quot;textValues&quot;: { # List of text values.
627 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
628 &quot;A String&quot;,
629 ],
630 },
631 &quot;timestampValues&quot;: { # List of timestamp values.
632 &quot;values&quot;: [
633 &quot;A String&quot;,
634 ],
635 },
636 &quot;objectValues&quot;: { # List of object values.
637 &quot;values&quot;: [
638 # Object with schema name: StructuredDataObject
639 ],
640 },
641 &quot;dateValues&quot;: { # List of date values.
642 &quot;values&quot;: [
643 { # 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.
644 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
645 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
646 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
647 },
648 ],
649 },
650 &quot;enumValues&quot;: { # List of enum values.
651 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
652 &quot;A String&quot;,
653 ],
654 },
655 },
656 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700658 },
659 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
660 # Output only field.
661 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
662 {
663 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
664 # about the validation errors.
665 {
666 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
667 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
668 },
669 ],
670 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
671 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
672 },
673 ],
674 &quot;code&quot;: &quot;A String&quot;, # Status code.
675 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
676 { # Errors when the connector is communicating to the source repository.
677 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
678 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
679 # of the message is 8192 characters.
680 &quot;type&quot;: &quot;A String&quot;, # Type of error.
681 },
682 ],
683 },
684 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
685 # datasources/{source_id}/items/{item_id}
686 # &lt;br /&gt;This is a required field.
687 # The maximum length is 1536 characters.
688 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
689 # The maximum length is 10000 bytes.
690 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
691 # [Map ACLs](/cloud-search/docs/guides/acls).
692 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
693 # document access permissions. It does, however, offer
694 # a slight ranking boosts items where the querying user is an owner.
695 # The maximum number of elements is 5.
696 { # Reference to a user, group, or domain.
697 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
698 # The name field must specify the user resource name with this format:
699 # identitysources/{source_id}/users/{ID}
700 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
701 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
702 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
703 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
704 # customer.
705 },
706 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
707 # The name field must specify the group resource name with this format:
708 # identitysources/{source_id}/groups/{ID}
709 },
710 ],
711 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
712 # parent. This should always be set in tandem with the
713 # inheritAclFrom
714 # field. Also, when the
715 # inheritAclFrom field
716 # is set, this field should be set to a valid AclInheritanceType.
717 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
718 # results. While principals are denied access by default, use denied readers
719 # to handle exceptions and override the list allowed readers.
720 # The maximum number of elements is 100.
721 { # Reference to a user, group, or domain.
722 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
723 # The name field must specify the user resource name with this format:
724 # identitysources/{source_id}/users/{ID}
725 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
726 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
727 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
728 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
729 # customer.
730 },
731 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
732 # The name field must specify the group resource name with this format:
733 # identitysources/{source_id}/groups/{ID}
734 },
735 ],
736 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
737 # Note: ACL inheritance *only* provides access permissions
738 # to child items and does not define structural relationships, nor does it
739 # provide convenient ways to delete large groups of items.
740 # Deleting an ACL parent from the index only alters the access permissions of
741 # child items that reference the parent in the
742 # inheritAclFrom
743 # field. The item is still in the index, but may not
744 # visible in search results. By contrast, deletion of a container item
745 # also deletes all items that reference the container via the
746 # containerName
747 # field.
748 # The maximum length for this field is 1536 characters.
749 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
750 # Optional if inheriting permissions from another item or if the item
751 # is not intended to be visible, such as
752 # virtual
753 # containers.
754 # The maximum number of elements is 1000.
755 { # Reference to a user, group, or domain.
756 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
757 # The name field must specify the user resource name with this format:
758 # identitysources/{source_id}/users/{ID}
759 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
760 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
761 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
762 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
763 # customer.
764 },
765 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
766 # The name field must specify the group resource name with this format:
767 # identitysources/{source_id}/groups/{ID}
768 },
769 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 },
771 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
773 # definition in the schema registered for the data source. For example, if
774 # the schema for the data source contains an object definition with name
775 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
776 # objectType to &#x27;document&#x27;.
777 # The maximum length is 256 characters.
778 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
779 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
780 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
781 # default value is 0.0.
782 },
783 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
784 # This can be used with the
785 # items.push
786 # method to calculate modified state.
787 # The maximum length is 2048 characters.
788 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
789 # Search quality, but are not exposed to end users.
790 # The maximum number of elements is 1000.
791 { # Represents an interaction between a user and an item.
792 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
793 # type exist for a single user, only the most recent action is recorded.
794 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
795 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
796 # The name field must specify the user resource name with this format:
797 # identitysources/{source_id}/users/{ID}
798 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
799 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
800 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
801 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
802 # customer.
803 },
804 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
805 # The name field must specify the group resource name with this format:
806 # identitysources/{source_id}/groups/{ID}
807 },
808 &quot;type&quot;: &quot;A String&quot;,
809 },
810 ],
811 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
812 # Used internally for user generated content.
813 # The maximum number of elements is 100.
814 # The maximum length is 8192 characters.
815 &quot;A String&quot;,
816 ],
817 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
818 # ItemContent.content
819 # in the source repository.
820 # The maximum length is 256 characters.
821 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
822 # Search result.
823 # The maximum length is 2048 characters.
824 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
825 &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
826 # more information, see
827 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
828 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700829 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
830 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
831 # this link to the title.
832 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
833 # trigger a redirect notice; to avoid this, encode the URL.
834 # The maximum length is 2048 characters.
835 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
836 # Deletion of the container item leads to automatic deletion of this
837 # item. Note: ACLs are not inherited from a container item.
838 # To provide ACL inheritance for an item, use the
839 # inheritAclFrom
840 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700841 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700842 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
843 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
844 # This reference is created via upload
845 # method.
846 # Updating of item content may refer to this uploaded content via
847 # contentDataRef.
848 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
849 # The maximum length is 2048 characters.
850 },
851 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
852 # The maximum length is 102400 bytes (100 KiB).
853 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
854 # Can be used with the items.push method to calculate modified state.
855 # The maximum length is 2048 characters.
856 &quot;contentFormat&quot;: &quot;A String&quot;,
857 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
859 # byte string and compares the Item version in the index
860 # to the version of the queued Item using lexical ordering.
861 # &lt;br /&gt;&lt;br /&gt;
862 # Cloud Search Indexing won&#x27;t index or delete any queued item with
863 # a version value that is less than or equal to the version of the
864 # currently indexed item.
865 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700866 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
867 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700868 },
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;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 # method returns no data on success, such as `Delete`, the response is
890 # `google.protobuf.Empty`. If the original method is standard
891 # `Get`/`Create`/`Update`, the response should be the resource. For other
892 # methods, the response should have the type `XxxResponse`, where `Xxx`
893 # is the original method name. For example, if the original method name
894 # is `TakeSnapshot()`, the inferred response type is
895 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700897 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 &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 -0700899 # originally returns it. If you use the default HTTP mapping, the
900 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 &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 -0700902 # different programming environments, including REST APIs and RPC APIs. It is
903 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
904 # three pieces of data: error code, error message, and error details.
905 #
906 # You can find out more about this error model and how to work with it in the
907 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &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 -0700909 # message types for APIs to use.
910 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 },
913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700914 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
915 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
916 # user-facing error message should be localized and sent in the
917 # google.rpc.Status.details field, or localized by the client.
918 },
919 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
920 # contains progress information and common metadata such as create time.
921 # Some services might not provide such metadata. Any method that returns a
922 # long-running operation should document the metadata type, if any.
923 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
926 # If `true`, the operation is completed, and either `error` or `response` is
927 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 }</pre>
929</div>
930
931<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700932 <code class="details" id="list">list(name, debugOptions_enableDebugging=None, connectorName=None, brief=None, pageToken=None, pageSize=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 Kim4ed7d3f2020-05-27 12:20:54 -0700941 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
942Otherwise, ignore this field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 connectorName: string, Name of connector making this call.
944&lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700945 brief: boolean, When set to true, the indexing system only populates the following fields:
946name,
947version,
Dan O'Mearadd494642020-05-01 07:42:23 -0700948queue.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700949metadata.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700950metadata.title,
951metadata.sourceRepositoryURL,
952metadata.objectType,
953metadata.createTime,
954metadata.updateTime,
955metadata.contentLanguage,
956metadata.mimeType,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700957structured_data.hash,
Dan O'Mearadd494642020-05-01 07:42:23 -0700958content.hash,
959itemType,
960itemStatus.code,
961itemStatus.processingError.code,
962itemStatus.repositoryError.type,
963&lt;br /&gt;If this value is false, then all the fields are populated in Item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 pageToken: string, The next_page_token value returned from a previous List request, if any.
965 pageSize: integer, Maximum number of items to fetch in a request.
966The max value is 1000 when brief is true. The max value is 10 if brief
967is false.
968&lt;br /&gt;The default value is 10
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 x__xgafv: string, V1 error format.
970 Allowed values
971 1 - v1 error format
972 2 - v2 error format
973
974Returns:
975 An object of the form:
976
977 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 &quot;items&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 { # Represents a single object that is an item in the search index, such as a
980 # file, folder, or a database record.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700981 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
982 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
983 # object definition in the schema for the data source.
984 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
985 # This can be used with the
986 # items.push
987 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700989 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
990 # definition in the schema for the data source.
991 &quot;properties&quot;: [ # The properties for the object.
992 # The maximum number of elements is 1000.
993 { # A typed name-value pair for structured data. The type of the value should
994 # be the same as the registered type for the `name` property in the object
995 # definition of `objectType`.
996 &quot;integerValues&quot;: { # List of integer values.
997 &quot;values&quot;: [
998 &quot;A String&quot;,
999 ],
1000 },
1001 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1002 # property that was registered for object definition in the schema.
1003 # The maximum allowable length for this property is 256 characters.
1004 &quot;doubleValues&quot;: { # List of double values.
1005 &quot;values&quot;: [
1006 3.14,
1007 ],
1008 },
1009 &quot;booleanValue&quot;: True or False,
1010 &quot;htmlValues&quot;: { # List of html values.
1011 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1012 &quot;A String&quot;,
1013 ],
1014 },
1015 &quot;textValues&quot;: { # List of text values.
1016 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1017 &quot;A String&quot;,
1018 ],
1019 },
1020 &quot;timestampValues&quot;: { # List of timestamp values.
1021 &quot;values&quot;: [
1022 &quot;A String&quot;,
1023 ],
1024 },
1025 &quot;objectValues&quot;: { # List of object values.
1026 &quot;values&quot;: [
1027 # Object with schema name: StructuredDataObject
1028 ],
1029 },
1030 &quot;dateValues&quot;: { # List of date values.
1031 &quot;values&quot;: [
1032 { # 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.
1033 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1034 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1035 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1036 },
1037 ],
1038 },
1039 &quot;enumValues&quot;: { # List of enum values.
1040 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1041 &quot;A String&quot;,
1042 ],
1043 },
1044 },
1045 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001047 },
1048 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1049 # Output only field.
1050 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1051 {
1052 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1053 # about the validation errors.
1054 {
1055 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1056 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1057 },
1058 ],
1059 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1060 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1061 },
1062 ],
1063 &quot;code&quot;: &quot;A String&quot;, # Status code.
1064 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1065 { # Errors when the connector is communicating to the source repository.
1066 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1067 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1068 # of the message is 8192 characters.
1069 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1070 },
1071 ],
1072 },
1073 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1074 # datasources/{source_id}/items/{item_id}
1075 # &lt;br /&gt;This is a required field.
1076 # The maximum length is 1536 characters.
1077 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1078 # The maximum length is 10000 bytes.
1079 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1080 # [Map ACLs](/cloud-search/docs/guides/acls).
1081 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1082 # document access permissions. It does, however, offer
1083 # a slight ranking boosts items where the querying user is an owner.
1084 # The maximum number of elements is 5.
1085 { # Reference to a user, group, or domain.
1086 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1087 # The name field must specify the user resource name with this format:
1088 # identitysources/{source_id}/users/{ID}
1089 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1090 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1091 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1092 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1093 # customer.
1094 },
1095 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1096 # The name field must specify the group resource name with this format:
1097 # identitysources/{source_id}/groups/{ID}
1098 },
1099 ],
1100 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1101 # parent. This should always be set in tandem with the
1102 # inheritAclFrom
1103 # field. Also, when the
1104 # inheritAclFrom field
1105 # is set, this field should be set to a valid AclInheritanceType.
1106 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1107 # results. While principals are denied access by default, use denied readers
1108 # to handle exceptions and override the list allowed readers.
1109 # The maximum number of elements is 100.
1110 { # Reference to a user, group, or domain.
1111 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1112 # The name field must specify the user resource name with this format:
1113 # identitysources/{source_id}/users/{ID}
1114 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1115 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1116 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1117 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1118 # customer.
1119 },
1120 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1121 # The name field must specify the group resource name with this format:
1122 # identitysources/{source_id}/groups/{ID}
1123 },
1124 ],
1125 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1126 # Note: ACL inheritance *only* provides access permissions
1127 # to child items and does not define structural relationships, nor does it
1128 # provide convenient ways to delete large groups of items.
1129 # Deleting an ACL parent from the index only alters the access permissions of
1130 # child items that reference the parent in the
1131 # inheritAclFrom
1132 # field. The item is still in the index, but may not
1133 # visible in search results. By contrast, deletion of a container item
1134 # also deletes all items that reference the container via the
1135 # containerName
1136 # field.
1137 # The maximum length for this field is 1536 characters.
1138 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1139 # Optional if inheriting permissions from another item or if the item
1140 # is not intended to be visible, such as
1141 # virtual
1142 # containers.
1143 # The maximum number of elements is 1000.
1144 { # Reference to a user, group, or domain.
1145 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1146 # The name field must specify the user resource name with this format:
1147 # identitysources/{source_id}/users/{ID}
1148 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1149 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1150 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1151 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1152 # customer.
1153 },
1154 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1155 # The name field must specify the group resource name with this format:
1156 # identitysources/{source_id}/groups/{ID}
1157 },
1158 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 },
1160 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1162 # definition in the schema registered for the data source. For example, if
1163 # the schema for the data source contains an object definition with name
1164 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1165 # objectType to &#x27;document&#x27;.
1166 # The maximum length is 256 characters.
1167 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1168 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1169 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1170 # default value is 0.0.
1171 },
1172 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1173 # This can be used with the
1174 # items.push
1175 # method to calculate modified state.
1176 # The maximum length is 2048 characters.
1177 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1178 # Search quality, but are not exposed to end users.
1179 # The maximum number of elements is 1000.
1180 { # Represents an interaction between a user and an item.
1181 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1182 # type exist for a single user, only the most recent action is recorded.
1183 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1184 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1185 # The name field must specify the user resource name with this format:
1186 # identitysources/{source_id}/users/{ID}
1187 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1188 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1189 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1190 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1191 # customer.
1192 },
1193 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1194 # The name field must specify the group resource name with this format:
1195 # identitysources/{source_id}/groups/{ID}
1196 },
1197 &quot;type&quot;: &quot;A String&quot;,
1198 },
1199 ],
1200 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1201 # Used internally for user generated content.
1202 # The maximum number of elements is 100.
1203 # The maximum length is 8192 characters.
1204 &quot;A String&quot;,
1205 ],
1206 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1207 # ItemContent.content
1208 # in the source repository.
1209 # The maximum length is 256 characters.
1210 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1211 # Search result.
1212 # The maximum length is 2048 characters.
1213 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1214 &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
1215 # more information, see
1216 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1217 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001218 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1219 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1220 # this link to the title.
1221 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1222 # trigger a redirect notice; to avoid this, encode the URL.
1223 # The maximum length is 2048 characters.
1224 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1225 # Deletion of the container item leads to automatic deletion of this
1226 # item. Note: ACLs are not inherited from a container item.
1227 # To provide ACL inheritance for an item, use the
1228 # inheritAclFrom
1229 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001231 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
1232 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1233 # This reference is created via upload
1234 # method.
1235 # Updating of item content may refer to this uploaded content via
1236 # contentDataRef.
1237 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1238 # The maximum length is 2048 characters.
1239 },
1240 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1241 # The maximum length is 102400 bytes (100 KiB).
1242 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1243 # Can be used with the items.push method to calculate modified state.
1244 # The maximum length is 2048 characters.
1245 &quot;contentFormat&quot;: &quot;A String&quot;,
1246 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001247 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1248 # byte string and compares the Item version in the index
1249 # to the version of the queued Item using lexical ordering.
1250 # &lt;br /&gt;&lt;br /&gt;
1251 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1252 # a version value that is less than or equal to the version of the
1253 # currently indexed item.
1254 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001255 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1256 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001257 },
1258 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001259 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
1260 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001261 }</pre>
1262</div>
1263
1264<div class="method">
1265 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1266 <pre>Retrieves the next page of results.
1267
1268Args:
1269 previous_request: The request for the previous page. (required)
1270 previous_response: The response from the request for the previous page. (required)
1271
1272Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001274 page. Returns None if there are no more items in the collection.
1275 </pre>
1276</div>
1277
1278<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001279 <code class="details" id="poll">poll(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001280 <pre>Polls for unreserved items from the indexing queue and marks a
1281set as reserved, starting with items that have
1282the oldest timestamp from the highest priority
1283ItemStatus.
Dan O'Mearadd494642020-05-01 07:42:23 -07001284The priority order is as follows: &lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001285ERROR
Dan O'Mearadd494642020-05-01 07:42:23 -07001286&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287MODIFIED
Dan O'Mearadd494642020-05-01 07:42:23 -07001288&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001289NEW_ITEM
Dan O'Mearadd494642020-05-01 07:42:23 -07001290&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291ACCEPTED
Dan O'Mearadd494642020-05-01 07:42:23 -07001292&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293Reserving items ensures that polling from other threads
1294cannot create overlapping sets.
1295
1296After handling the reserved items, the client should put items back
1297into the unreserved state, either by calling
1298index,
1299or by calling
1300push with
1301the type REQUEUE.
1302
1303Items automatically become available (unreserved) after 4 hours even if no
1304update or push method is called.
1305
Dan O'Mearadd494642020-05-01 07:42:23 -07001306This API requires an admin or service account to execute. The service
1307account used is the one whitelisted in the corresponding data source.
1308
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309Args:
1310 name: string, Name of the Data Source to poll items.
1311Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001312 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001313 The object takes the form of:
1314
1315{
Bu Sun Kim65020912020-05-20 12:08:20 -07001316 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1317 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001318 # Otherwise, ignore this field.
1319 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001320 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
1321 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
1322 &quot;queue&quot;: &quot;A String&quot;, # Queue name to fetch items from. If unspecified, PollItems will
1323 # fetch from &#x27;default&#x27; queue.
1324 # The maximum length is 100 characters.
1325 &quot;limit&quot;: 42, # Maximum number of items to return.
1326 # &lt;br /&gt;The maximum value is 100 and the default value is 20.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001327 &quot;statusCodes&quot;: [ # Limit the items polled to the ones with these statuses.
1328 &quot;A String&quot;,
1329 ],
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 Kim4ed7d3f2020-05-27 12:20:54 -07001352 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1353 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1354 # object definition in the schema for the data source.
1355 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1356 # This can be used with the
1357 # items.push
1358 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -07001359 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001360 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1361 # definition in the schema for the data source.
1362 &quot;properties&quot;: [ # The properties for the object.
1363 # The maximum number of elements is 1000.
1364 { # A typed name-value pair for structured data. The type of the value should
1365 # be the same as the registered type for the `name` property in the object
1366 # definition of `objectType`.
1367 &quot;integerValues&quot;: { # List of integer values.
1368 &quot;values&quot;: [
1369 &quot;A String&quot;,
1370 ],
1371 },
1372 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1373 # property that was registered for object definition in the schema.
1374 # The maximum allowable length for this property is 256 characters.
1375 &quot;doubleValues&quot;: { # List of double values.
1376 &quot;values&quot;: [
1377 3.14,
1378 ],
1379 },
1380 &quot;booleanValue&quot;: True or False,
1381 &quot;htmlValues&quot;: { # List of html values.
1382 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1383 &quot;A String&quot;,
1384 ],
1385 },
1386 &quot;textValues&quot;: { # List of text values.
1387 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1388 &quot;A String&quot;,
1389 ],
1390 },
1391 &quot;timestampValues&quot;: { # List of timestamp values.
1392 &quot;values&quot;: [
1393 &quot;A String&quot;,
1394 ],
1395 },
1396 &quot;objectValues&quot;: { # List of object values.
1397 &quot;values&quot;: [
1398 # Object with schema name: StructuredDataObject
1399 ],
1400 },
1401 &quot;dateValues&quot;: { # List of date values.
1402 &quot;values&quot;: [
1403 { # 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.
1404 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1405 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1406 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1407 },
1408 ],
1409 },
1410 &quot;enumValues&quot;: { # List of enum values.
1411 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1412 &quot;A String&quot;,
1413 ],
1414 },
1415 },
1416 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001418 },
1419 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1420 # Output only field.
1421 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1422 {
1423 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1424 # about the validation errors.
1425 {
1426 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1427 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1428 },
1429 ],
1430 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1431 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1432 },
1433 ],
1434 &quot;code&quot;: &quot;A String&quot;, # Status code.
1435 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1436 { # Errors when the connector is communicating to the source repository.
1437 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1438 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1439 # of the message is 8192 characters.
1440 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1441 },
1442 ],
1443 },
1444 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1445 # datasources/{source_id}/items/{item_id}
1446 # &lt;br /&gt;This is a required field.
1447 # The maximum length is 1536 characters.
1448 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1449 # The maximum length is 10000 bytes.
1450 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1451 # [Map ACLs](/cloud-search/docs/guides/acls).
1452 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1453 # document access permissions. It does, however, offer
1454 # a slight ranking boosts items where the querying user is an owner.
1455 # The maximum number of elements is 5.
1456 { # Reference to a user, group, or domain.
1457 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1458 # The name field must specify the user resource name with this format:
1459 # identitysources/{source_id}/users/{ID}
1460 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1461 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1462 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1463 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1464 # customer.
1465 },
1466 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1467 # The name field must specify the group resource name with this format:
1468 # identitysources/{source_id}/groups/{ID}
1469 },
1470 ],
1471 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1472 # parent. This should always be set in tandem with the
1473 # inheritAclFrom
1474 # field. Also, when the
1475 # inheritAclFrom field
1476 # is set, this field should be set to a valid AclInheritanceType.
1477 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1478 # results. While principals are denied access by default, use denied readers
1479 # to handle exceptions and override the list allowed readers.
1480 # The maximum number of elements is 100.
1481 { # Reference to a user, group, or domain.
1482 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1483 # The name field must specify the user resource name with this format:
1484 # identitysources/{source_id}/users/{ID}
1485 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1486 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1487 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1488 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1489 # customer.
1490 },
1491 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1492 # The name field must specify the group resource name with this format:
1493 # identitysources/{source_id}/groups/{ID}
1494 },
1495 ],
1496 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1497 # Note: ACL inheritance *only* provides access permissions
1498 # to child items and does not define structural relationships, nor does it
1499 # provide convenient ways to delete large groups of items.
1500 # Deleting an ACL parent from the index only alters the access permissions of
1501 # child items that reference the parent in the
1502 # inheritAclFrom
1503 # field. The item is still in the index, but may not
1504 # visible in search results. By contrast, deletion of a container item
1505 # also deletes all items that reference the container via the
1506 # containerName
1507 # field.
1508 # The maximum length for this field is 1536 characters.
1509 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1510 # Optional if inheriting permissions from another item or if the item
1511 # is not intended to be visible, such as
1512 # virtual
1513 # containers.
1514 # The maximum number of elements is 1000.
1515 { # Reference to a user, group, or domain.
1516 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1517 # The name field must specify the user resource name with this format:
1518 # identitysources/{source_id}/users/{ID}
1519 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1520 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1521 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1522 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1523 # customer.
1524 },
1525 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1526 # The name field must specify the group resource name with this format:
1527 # identitysources/{source_id}/groups/{ID}
1528 },
1529 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 },
1531 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001532 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1533 # definition in the schema registered for the data source. For example, if
1534 # the schema for the data source contains an object definition with name
1535 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1536 # objectType to &#x27;document&#x27;.
1537 # The maximum length is 256 characters.
1538 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1539 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1540 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1541 # default value is 0.0.
1542 },
1543 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1544 # This can be used with the
1545 # items.push
1546 # method to calculate modified state.
1547 # The maximum length is 2048 characters.
1548 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1549 # Search quality, but are not exposed to end users.
1550 # The maximum number of elements is 1000.
1551 { # Represents an interaction between a user and an item.
1552 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1553 # type exist for a single user, only the most recent action is recorded.
1554 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1555 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1556 # The name field must specify the user resource name with this format:
1557 # identitysources/{source_id}/users/{ID}
1558 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1559 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1560 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1561 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1562 # customer.
1563 },
1564 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1565 # The name field must specify the group resource name with this format:
1566 # identitysources/{source_id}/groups/{ID}
1567 },
1568 &quot;type&quot;: &quot;A String&quot;,
1569 },
1570 ],
1571 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1572 # Used internally for user generated content.
1573 # The maximum number of elements is 100.
1574 # The maximum length is 8192 characters.
1575 &quot;A String&quot;,
1576 ],
1577 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1578 # ItemContent.content
1579 # in the source repository.
1580 # The maximum length is 256 characters.
1581 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1582 # Search result.
1583 # The maximum length is 2048 characters.
1584 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1585 &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
1586 # more information, see
1587 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1588 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001589 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1590 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1591 # this link to the title.
1592 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1593 # trigger a redirect notice; to avoid this, encode the URL.
1594 # The maximum length is 2048 characters.
1595 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1596 # Deletion of the container item leads to automatic deletion of this
1597 # item. Note: ACLs are not inherited from a container item.
1598 # To provide ACL inheritance for an item, use the
1599 # inheritAclFrom
1600 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001601 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001602 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
1603 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1604 # This reference is created via upload
1605 # method.
1606 # Updating of item content may refer to this uploaded content via
1607 # contentDataRef.
1608 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1609 # The maximum length is 2048 characters.
1610 },
1611 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1612 # The maximum length is 102400 bytes (100 KiB).
1613 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1614 # Can be used with the items.push method to calculate modified state.
1615 # The maximum length is 2048 characters.
1616 &quot;contentFormat&quot;: &quot;A String&quot;,
1617 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1619 # byte string and compares the Item version in the index
1620 # to the version of the queued Item using lexical ordering.
1621 # &lt;br /&gt;&lt;br /&gt;
1622 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1623 # a version value that is less than or equal to the version of the
1624 # currently indexed item.
1625 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001626 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1627 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001628 },
1629 ],
1630 }</pre>
1631</div>
1632
1633<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001634 <code class="details" id="push">push(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001635 <pre>Pushes an item onto a queue for later polling and updating.
1636
Dan O'Mearadd494642020-05-01 07:42:23 -07001637This API requires an admin or service account to execute. The service
1638account used is the one whitelisted in the corresponding data source.
1639
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640Args:
1641 name: string, Name of the item to
Dan O'Mearadd494642020-05-01 07:42:23 -07001642push into the indexing queue.&lt;br /&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001643Format: datasources/{source_id}/items/{ID}
Dan O'Mearadd494642020-05-01 07:42:23 -07001644&lt;br /&gt;This is a required field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001646 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001647 The object takes the form of:
1648
1649{
Bu Sun Kim65020912020-05-20 12:08:20 -07001650 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
1651 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001657 &quot;contentHash&quot;: &quot;A String&quot;, # Content hash of the item according to the repository. If specified, this is
1658 # used to determine how to modify this
1659 # item&#x27;s status. Setting this field and the
1660 # type field results in argument
1661 # error.
1662 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001663 &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 -07001664 # is used to determine how to modify this
Bu Sun Kim65020912020-05-20 12:08:20 -07001665 # item&#x27;s status. Setting this field and the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001666 # type field results in argument
1667 # error.
1668 # The maximum length is 2048 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 &quot;payload&quot;: &quot;A String&quot;, # Provides additional document state information for the connector,
1670 # such as an alternate repository ID and other metadata.
1671 # The maximum length is 8192 bytes.
1672 &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 -07001673 # This information is displayed in the Admin Console.
1674 # This field may only be populated when the
1675 # Type is
1676 # REPOSITORY_ERROR.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001677 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001679 # of the message is 8192 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001680 &quot;type&quot;: &quot;A String&quot;, # Type of error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001681 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 &quot;type&quot;: &quot;A String&quot;, # The type of the push operation that defines the push behavior.
1683 &quot;queue&quot;: &quot;A String&quot;, # Queue to which this item belongs to. The &lt;code&gt;default&lt;/code&gt; queue is
1684 # chosen if this field is not specified. The maximum length is
1685 # 512 characters.
1686 &quot;structuredDataHash&quot;: &quot;A String&quot;, # Structured data hash of the item according to the repository. If specified,
1687 # this is used to determine how to modify this item&#x27;s status. Setting this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 # field and the type field
1689 # results in argument 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 Kim4ed7d3f2020-05-27 12:20:54 -07001704 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1705 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
1706 # object definition in the schema for the data source.
1707 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1708 # This can be used with the
1709 # items.push
1710 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001712 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
1713 # definition in the schema for the data source.
1714 &quot;properties&quot;: [ # The properties for the object.
1715 # The maximum number of elements is 1000.
1716 { # A typed name-value pair for structured data. The type of the value should
1717 # be the same as the registered type for the `name` property in the object
1718 # definition of `objectType`.
1719 &quot;integerValues&quot;: { # List of integer values.
1720 &quot;values&quot;: [
1721 &quot;A String&quot;,
1722 ],
1723 },
1724 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
1725 # property that was registered for object definition in the schema.
1726 # The maximum allowable length for this property is 256 characters.
1727 &quot;doubleValues&quot;: { # List of double values.
1728 &quot;values&quot;: [
1729 3.14,
1730 ],
1731 },
1732 &quot;booleanValue&quot;: True or False,
1733 &quot;htmlValues&quot;: { # List of html values.
1734 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1735 &quot;A String&quot;,
1736 ],
1737 },
1738 &quot;textValues&quot;: { # List of text values.
1739 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1740 &quot;A String&quot;,
1741 ],
1742 },
1743 &quot;timestampValues&quot;: { # List of timestamp values.
1744 &quot;values&quot;: [
1745 &quot;A String&quot;,
1746 ],
1747 },
1748 &quot;objectValues&quot;: { # List of object values.
1749 &quot;values&quot;: [
1750 # Object with schema name: StructuredDataObject
1751 ],
1752 },
1753 &quot;dateValues&quot;: { # List of date values.
1754 &quot;values&quot;: [
1755 { # 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.
1756 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1757 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1758 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1759 },
1760 ],
1761 },
1762 &quot;enumValues&quot;: { # List of enum values.
1763 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1764 &quot;A String&quot;,
1765 ],
1766 },
1767 },
1768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001769 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001770 },
1771 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
1772 # Output only field.
1773 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1774 {
1775 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
1776 # about the validation errors.
1777 {
1778 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1779 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
1780 },
1781 ],
1782 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1783 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1784 },
1785 ],
1786 &quot;code&quot;: &quot;A String&quot;, # Status code.
1787 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1788 { # Errors when the connector is communicating to the source repository.
1789 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1790 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
1791 # of the message is 8192 characters.
1792 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1793 },
1794 ],
1795 },
1796 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
1797 # datasources/{source_id}/items/{item_id}
1798 # &lt;br /&gt;This is a required field.
1799 # The maximum length is 1536 characters.
1800 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
1801 # The maximum length is 10000 bytes.
1802 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
1803 # [Map ACLs](/cloud-search/docs/guides/acls).
1804 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
1805 # document access permissions. It does, however, offer
1806 # a slight ranking boosts items where the querying user is an owner.
1807 # The maximum number of elements is 5.
1808 { # Reference to a user, group, or domain.
1809 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1810 # The name field must specify the user resource name with this format:
1811 # identitysources/{source_id}/users/{ID}
1812 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1813 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1814 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1815 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1816 # customer.
1817 },
1818 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1819 # The name field must specify the group resource name with this format:
1820 # identitysources/{source_id}/groups/{ID}
1821 },
1822 ],
1823 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
1824 # parent. This should always be set in tandem with the
1825 # inheritAclFrom
1826 # field. Also, when the
1827 # inheritAclFrom field
1828 # is set, this field should be set to a valid AclInheritanceType.
1829 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
1830 # results. While principals are denied access by default, use denied readers
1831 # to handle exceptions and override the list allowed readers.
1832 # The maximum number of elements is 100.
1833 { # Reference to a user, group, or domain.
1834 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1835 # The name field must specify the user resource name with this format:
1836 # identitysources/{source_id}/users/{ID}
1837 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1838 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1839 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1840 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1841 # customer.
1842 },
1843 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1844 # The name field must specify the group resource name with this format:
1845 # identitysources/{source_id}/groups/{ID}
1846 },
1847 ],
1848 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
1849 # Note: ACL inheritance *only* provides access permissions
1850 # to child items and does not define structural relationships, nor does it
1851 # provide convenient ways to delete large groups of items.
1852 # Deleting an ACL parent from the index only alters the access permissions of
1853 # child items that reference the parent in the
1854 # inheritAclFrom
1855 # field. The item is still in the index, but may not
1856 # visible in search results. By contrast, deletion of a container item
1857 # also deletes all items that reference the container via the
1858 # containerName
1859 # field.
1860 # The maximum length for this field is 1536 characters.
1861 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
1862 # Optional if inheriting permissions from another item or if the item
1863 # is not intended to be visible, such as
1864 # virtual
1865 # containers.
1866 # The maximum number of elements is 1000.
1867 { # Reference to a user, group, or domain.
1868 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1869 # The name field must specify the user resource name with this format:
1870 # identitysources/{source_id}/users/{ID}
1871 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1872 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1873 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1874 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1875 # customer.
1876 },
1877 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1878 # The name field must specify the group resource name with this format:
1879 # identitysources/{source_id}/groups/{ID}
1880 },
1881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 },
1883 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
1885 # definition in the schema registered for the data source. For example, if
1886 # the schema for the data source contains an object definition with name
1887 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
1888 # objectType to &#x27;document&#x27;.
1889 # The maximum length is 256 characters.
1890 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1891 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
1892 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
1893 # default value is 0.0.
1894 },
1895 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
1896 # This can be used with the
1897 # items.push
1898 # method to calculate modified state.
1899 # The maximum length is 2048 characters.
1900 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
1901 # Search quality, but are not exposed to end users.
1902 # The maximum number of elements is 1000.
1903 { # Represents an interaction between a user and an item.
1904 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
1905 # type exist for a single user, only the most recent action is recorded.
1906 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
1907 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
1908 # The name field must specify the user resource name with this format:
1909 # identitysources/{source_id}/users/{ID}
1910 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1911 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1912 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1913 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
1914 # customer.
1915 },
1916 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
1917 # The name field must specify the group resource name with this format:
1918 # identitysources/{source_id}/groups/{ID}
1919 },
1920 &quot;type&quot;: &quot;A String&quot;,
1921 },
1922 ],
1923 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
1924 # Used internally for user generated content.
1925 # The maximum number of elements is 100.
1926 # The maximum length is 8192 characters.
1927 &quot;A String&quot;,
1928 ],
1929 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
1930 # ItemContent.content
1931 # in the source repository.
1932 # The maximum length is 256 characters.
1933 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
1934 # Search result.
1935 # The maximum length is 2048 characters.
1936 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1937 &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
1938 # more information, see
1939 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1940 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001941 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1942 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
1943 # this link to the title.
1944 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
1945 # trigger a redirect notice; to avoid this, encode the URL.
1946 # The maximum length is 2048 characters.
1947 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
1948 # Deletion of the container item leads to automatic deletion of this
1949 # item. Note: ACLs are not inherited from a container item.
1950 # To provide ACL inheritance for an item, use the
1951 # inheritAclFrom
1952 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001953 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001954 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
1955 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
1956 # This reference is created via upload
1957 # method.
1958 # Updating of item content may refer to this uploaded content via
1959 # contentDataRef.
1960 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
1961 # The maximum length is 2048 characters.
1962 },
1963 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
1964 # The maximum length is 102400 bytes (100 KiB).
1965 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
1966 # Can be used with the items.push method to calculate modified state.
1967 # The maximum length is 2048 characters.
1968 &quot;contentFormat&quot;: &quot;A String&quot;,
1969 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001970 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
1971 # byte string and compares the Item version in the index
1972 # to the version of the queued Item using lexical ordering.
1973 # &lt;br /&gt;&lt;br /&gt;
1974 # Cloud Search Indexing won&#x27;t index or delete any queued item with
1975 # a version value that is less than or equal to the version of the
1976 # currently indexed item.
1977 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001978 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
1979 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001980 }</pre>
1981</div>
1982
1983<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001984 <code class="details" id="unreserve">unreserve(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001985 <pre>Unreserves all items from a queue, making them all eligible to be
1986polled. This method is useful for resetting the indexing queue
1987after a connector has been restarted.
1988
Dan O'Mearadd494642020-05-01 07:42:23 -07001989This API requires an admin or service account to execute. The service
1990account used is the one whitelisted in the corresponding data source.
1991
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001992Args:
1993 name: string, Name of the Data Source to unreserve all items.
1994Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001995 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001996 The object takes the form of:
1997
1998{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001999 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
2000 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
2001 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to unreserve items from.
Bu Sun Kim65020912020-05-20 12:08:20 -07002002 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
2003 &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 -07002004 # Otherwise, ignore this field.
2005 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002006 }
2007
2008 x__xgafv: string, V1 error format.
2009 Allowed values
2010 1 - v1 error format
2011 2 - v2 error format
2012
2013Returns:
2014 An object of the form:
2015
2016 { # This resource represents a long-running operation that is the result of a
2017 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07002018 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07002019 # method returns no data on success, such as `Delete`, the response is
2020 # `google.protobuf.Empty`. If the original method is standard
2021 # `Get`/`Create`/`Update`, the response should be the resource. For other
2022 # methods, the response should have the type `XxxResponse`, where `Xxx`
2023 # is the original method name. For example, if the original method name
2024 # is `TakeSnapshot()`, the inferred response type is
2025 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002026 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002027 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002028 &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 -07002029 # originally returns it. If you use the default HTTP mapping, the
2030 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002031 &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 -07002032 # different programming environments, including REST APIs and RPC APIs. It is
2033 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2034 # three pieces of data: error code, error message, and error details.
2035 #
2036 # You can find out more about this error model and how to work with it in the
2037 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07002038 &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 -07002039 # message types for APIs to use.
2040 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 },
2043 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002044 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2045 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2046 # user-facing error message should be localized and sent in the
2047 # google.rpc.Status.details field, or localized by the client.
2048 },
2049 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
2050 # contains progress information and common metadata such as create time.
2051 # Some services might not provide such metadata. Any method that returns a
2052 # long-running operation should document the metadata type, if any.
2053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002054 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002055 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2056 # If `true`, the operation is completed, and either `error` or `response` is
2057 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002058 }</pre>
2059</div>
2060
2061<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002062 <code class="details" id="upload">upload(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002063 <pre>Creates an upload session for uploading item content. For items smaller
Bu Sun Kim65020912020-05-20 12:08:20 -07002064than 100 KB, it&#x27;s easier to embed the content
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002065inline within
Dan O'Mearadd494642020-05-01 07:42:23 -07002066an index request.
2067
2068This API requires an admin or service account to execute. The service
2069account used is the one whitelisted in the corresponding data source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002070
2071Args:
2072 name: string, Name of the Item to start a resumable upload.
Dan O'Mearadd494642020-05-01 07:42:23 -07002073Format: datasources/{source_id}/items/{item_id}.
2074The maximum length is 1536 bytes. (required)
2075 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002076 The object takes the form of:
2077
2078{ # Start upload file request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002079 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call.
2080 # &lt;br /&gt;Format: datasources/{source_id}/connectors/{ID}
2081 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
2082 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002083 # Otherwise, ignore this field.
2084 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002085 }
2086
2087 x__xgafv: string, V1 error format.
2088 Allowed values
2089 1 - v1 error format
2090 2 - v2 error format
2091
2092Returns:
2093 An object of the form:
2094
2095 { # Represents an upload session reference.
2096 # This reference is created via upload
2097 # method.
2098 # Updating of item content may refer to this uploaded content via
2099 # contentDataRef.
Bu Sun Kim65020912020-05-20 12:08:20 -07002100 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002101 # The maximum length is 2048 characters.
2102 }</pre>
2103</div>
2104
2105</body></html>