blob: 8c3abe10195e95708b7c2ac3ad62aff1377fcb1f [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080081 <code><a href="#delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, mode=None, version=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Deletes Item resource for the specified resource name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080087 <code><a href="#get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#index">index(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code><a href="#list">list(name, brief=None, connectorName=None, debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Lists all or a subset of Item resources. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#poll">poll(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads cannot create overlapping sets. After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE. Items automatically become available (unreserved) after 4 hours even if no update or push method is called. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#push">push(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<p class="firstline">Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#unreserve">unreserve(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been restarted. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#upload">upload(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<h3>Method Details</h3>
111<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 <code class="details" id="close">close()</code>
113 <pre>Close httplib2 connections.</pre>
114</div>
115
116<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 <code class="details" id="delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, mode=None, version=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 <pre>Deletes Item resource for the specified resource name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119
120Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 name: string, Required. Name of the item to delete. Format: datasources/{source_id}/items/{item_id} (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800122 connectorName: string, Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800123 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 mode: string, Required. The RequestMode for this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 Allowed values
126 UNSPECIFIED - Priority is not specified in the update request. Leaving priority unspecified results in an update failure.
127 SYNCHRONOUS - For real-time updates.
128 ASYNCHRONOUS - For changes that are executed after the response is sent back to the caller.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800129 version: string, Required. The incremented version of the item to delete from the index. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 x__xgafv: string, V1 error format.
131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
134
135Returns:
136 An object of the form:
137
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800139 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
140 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
141 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
142 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
143 {
144 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
145 },
146 ],
147 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
148 },
149 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
151 },
152 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
153 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
155 },
156}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157</div>
158
159<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700160 <code class="details" id="deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 <pre>Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700162
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700164 name: string, Name of the Data Source to delete items in a queue. Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700165 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 The object takes the form of:
167
168{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800169 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
170 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
171 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
172 },
173 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to delete items from.
174}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175
176 x__xgafv: string, V1 error format.
177 Allowed values
178 1 - v1 error format
179 2 - v2 error format
180
181Returns:
182 An object of the form:
183
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800185 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
186 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
187 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
188 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
189 {
190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
191 },
192 ],
193 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
194 },
195 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
196 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
197 },
198 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
199 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203</div>
204
205<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800206 <code class="details" id="get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700207 <pre>Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700208
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 name: string, Name of the item to get info. Format: datasources/{source_id}/items/{item_id} (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800211 connectorName: string, Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800212 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 x__xgafv: string, V1 error format.
214 Allowed values
215 1 - v1 error format
216 2 - v2 error format
217
218Returns:
219 An object of the form:
220
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 { # Represents a single object that is an item in the search index, such as a file, folder, or a database record.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800222 &quot;acl&quot;: { # Access control list information for the item. For more information see [Map ACLs](/cloud-search/docs/guides/acls). # Access control list for this item.
223 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.
224 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.
225 { # Reference to a user, group, or domain.
226 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
227 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
228 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
229 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
230 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
231 },
232 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800233 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 ],
235 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.
236 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.
237 { # Reference to a user, group, or domain.
238 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
239 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
240 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
241 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
242 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800243 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800245 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800246 ],
247 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.
248 { # Reference to a user, group, or domain.
249 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
250 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
251 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
252 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
253 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
254 },
255 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
256 },
257 ],
258 },
259 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. # Item content to be indexed and made text searchable.
260 &quot;contentDataRef&quot;: { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef. # Upload reference ID of a previously uploaded content via write method.
261 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800262 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800263 &quot;contentFormat&quot;: &quot;A String&quot;,
264 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
265 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).
266 },
267 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
268 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
269 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.
270 &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 more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.
271 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
272 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
273 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.
274 { # Represents an interaction between a user and an item.
275 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.
276 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800277 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
278 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800279 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800280 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800281 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
282 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800283 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800284 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800285 &quot;type&quot;: &quot;A String&quot;,
286 },
287 ],
288 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.
289 &quot;A String&quot;,
290 ],
291 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.
292 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name &#x27;document&#x27;, then item indexing requests for objects of that type should set objectType to &#x27;document&#x27;. The maximum length is 256 characters.
293 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
294 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800295 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800296 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. Search results apply this link to the title. Whitespace or special characters may cause Cloud Search result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.
297 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.
298 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
299 },
300 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
301 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item. The maximum length is 10000 bytes.
302 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to. The maximum length is 100 characters.
303 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item. Output only field.
304 &quot;code&quot;: &quot;A String&quot;, # Status code.
305 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
306 {
307 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
308 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
309 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details about the validation errors.
310 {
311 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
312 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 },
314 ],
315 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 ],
317 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
318 { # Errors when the connector is communicating to the source repository.
319 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
320 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
321 &quot;type&quot;: &quot;A String&quot;, # Type of error.
322 },
323 ],
324 },
325 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered object definition in the schema for the data source.
326 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
327 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object definition in the schema for the data source.
328 &quot;properties&quot;: [ # The properties for the object. The maximum number of elements is 1000.
329 { # A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.
330 &quot;booleanValue&quot;: True or False,
331 &quot;dateValues&quot;: { # List of date values.
332 &quot;values&quot;: [
333 { # 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.
334 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
335 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
336 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
337 },
338 ],
339 },
340 &quot;doubleValues&quot;: { # List of double values.
341 &quot;values&quot;: [
342 3.14,
343 ],
344 },
345 &quot;enumValues&quot;: { # List of enum values.
346 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
347 &quot;A String&quot;,
348 ],
349 },
350 &quot;htmlValues&quot;: { # List of html values.
351 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
352 &quot;A String&quot;,
353 ],
354 },
355 &quot;integerValues&quot;: { # List of integer values.
356 &quot;values&quot;: [
357 &quot;A String&quot;,
358 ],
359 },
360 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.
361 &quot;objectValues&quot;: { # List of object values.
362 &quot;values&quot;: [
363 # Object with schema name: StructuredDataObject
364 ],
365 },
366 &quot;textValues&quot;: { # List of text values.
367 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
368 &quot;A String&quot;,
369 ],
370 },
371 &quot;timestampValues&quot;: { # List of timestamp values.
372 &quot;values&quot;: [
373 &quot;A String&quot;,
374 ],
375 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800376 },
377 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800379 },
380 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
381}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382</div>
383
384<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700385 <code class="details" id="index">index(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700386 <pre>Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700387
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 name: string, Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700390 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 The object takes the form of:
392
393{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800394 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
395 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
396 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
397 },
398 &quot;indexItemOptions&quot;: {
399 &quot;allowUnknownGsuitePrincipals&quot;: True or False, # Specifies if the index request should allow gsuite principals that do not exist or are deleted in the index request.
400 },
401 &quot;item&quot;: { # Represents a single object that is an item in the search index, such as a file, folder, or a database record. # Name of the item. Format: datasources/{source_id}/items/{item_id}
402 &quot;acl&quot;: { # Access control list information for the item. For more information see [Map ACLs](/cloud-search/docs/guides/acls). # Access control list for this item.
403 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.
404 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.
405 { # Reference to a user, group, or domain.
406 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
407 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
408 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
409 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
410 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
411 },
412 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800413 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800414 ],
415 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.
416 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.
417 { # Reference to a user, group, or domain.
418 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
419 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
420 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
421 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
422 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800423 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800424 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800425 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 ],
427 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.
428 { # Reference to a user, group, or domain.
429 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
430 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
431 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
432 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
433 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
434 },
435 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
436 },
437 ],
438 },
439 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. # Item content to be indexed and made text searchable.
440 &quot;contentDataRef&quot;: { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef. # Upload reference ID of a previously uploaded content via write method.
441 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800442 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800443 &quot;contentFormat&quot;: &quot;A String&quot;,
444 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
445 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).
446 },
447 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
448 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
449 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.
450 &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 more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.
451 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
452 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
453 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.
454 { # Represents an interaction between a user and an item.
455 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.
456 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800457 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
458 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800459 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800460 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800461 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
462 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800463 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800464 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800465 &quot;type&quot;: &quot;A String&quot;,
466 },
467 ],
468 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.
469 &quot;A String&quot;,
470 ],
471 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.
472 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name &#x27;document&#x27;, then item indexing requests for objects of that type should set objectType to &#x27;document&#x27;. The maximum length is 256 characters.
473 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
474 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800475 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800476 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. Search results apply this link to the title. Whitespace or special characters may cause Cloud Search result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.
477 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.
478 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
479 },
480 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
481 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item. The maximum length is 10000 bytes.
482 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to. The maximum length is 100 characters.
483 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item. Output only field.
484 &quot;code&quot;: &quot;A String&quot;, # Status code.
485 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
486 {
487 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
488 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
489 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details about the validation errors.
490 {
491 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
492 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700493 },
494 ],
495 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800496 ],
497 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
498 { # Errors when the connector is communicating to the source repository.
499 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
500 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
501 &quot;type&quot;: &quot;A String&quot;, # Type of error.
502 },
503 ],
504 },
505 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered object definition in the schema for the data source.
506 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
507 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object definition in the schema for the data source.
508 &quot;properties&quot;: [ # The properties for the object. The maximum number of elements is 1000.
509 { # A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.
510 &quot;booleanValue&quot;: True or False,
511 &quot;dateValues&quot;: { # List of date values.
512 &quot;values&quot;: [
513 { # 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.
514 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
515 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
516 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
517 },
518 ],
519 },
520 &quot;doubleValues&quot;: { # List of double values.
521 &quot;values&quot;: [
522 3.14,
523 ],
524 },
525 &quot;enumValues&quot;: { # List of enum values.
526 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
527 &quot;A String&quot;,
528 ],
529 },
530 &quot;htmlValues&quot;: { # List of html values.
531 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
532 &quot;A String&quot;,
533 ],
534 },
535 &quot;integerValues&quot;: { # List of integer values.
536 &quot;values&quot;: [
537 &quot;A String&quot;,
538 ],
539 },
540 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.
541 &quot;objectValues&quot;: { # List of object values.
542 &quot;values&quot;: [
543 # Object with schema name: StructuredDataObject
544 ],
545 },
546 &quot;textValues&quot;: { # List of text values.
547 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
548 &quot;A String&quot;,
549 ],
550 },
551 &quot;timestampValues&quot;: { # List of timestamp values.
552 &quot;values&quot;: [
553 &quot;A String&quot;,
554 ],
555 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800556 },
557 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700558 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800559 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800560 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
561 },
562 &quot;mode&quot;: &quot;A String&quot;, # Required. The RequestMode for this request.
563}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564
565 x__xgafv: string, V1 error format.
566 Allowed values
567 1 - v1 error format
568 2 - v2 error format
569
570Returns:
571 An object of the form:
572
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700573 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800574 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
575 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
576 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
577 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
578 {
579 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
580 },
581 ],
582 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
583 },
584 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
585 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
586 },
587 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
588 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
589 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
590 },
591}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592</div>
593
594<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800595 <code class="details" id="list">list(name, brief=None, connectorName=None, debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700596 <pre>Lists all or a subset of Item resources. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700597
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700598Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 name: string, Name of the Data Source to list Items. Format: datasources/{source_id} (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800600 brief: boolean, When set to true, the indexing system only populates the following fields: name, version, queue. metadata.hash, metadata.title, metadata.sourceRepositoryURL, metadata.objectType, metadata.createTime, metadata.updateTime, metadata.contentLanguage, metadata.mimeType, structured_data.hash, content.hash, itemType, itemStatus.code, itemStatus.processingError.code, itemStatus.repositoryError.type, If this value is false, then all the fields are populated in Item.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800601 connectorName: string, Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800602 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
603 pageSize: integer, Maximum number of items to fetch in a request. The max value is 1000 when brief is true. The max value is 10 if brief is false. The default value is 10
604 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700605 x__xgafv: string, V1 error format.
606 Allowed values
607 1 - v1 error format
608 2 - v2 error format
609
610Returns:
611 An object of the form:
612
613 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800614 &quot;items&quot;: [
615 { # Represents a single object that is an item in the search index, such as a file, folder, or a database record.
616 &quot;acl&quot;: { # Access control list information for the item. For more information see [Map ACLs](/cloud-search/docs/guides/acls). # Access control list for this item.
617 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.
618 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.
619 { # Reference to a user, group, or domain.
620 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
621 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
622 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
623 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
624 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
625 },
626 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800627 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800628 ],
629 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.
630 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.
631 { # Reference to a user, group, or domain.
632 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
633 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
634 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
635 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
636 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800637 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800638 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800639 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800640 ],
641 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.
642 { # Reference to a user, group, or domain.
643 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
644 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
645 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
646 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
647 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
648 },
649 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
650 },
651 ],
652 },
653 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. # Item content to be indexed and made text searchable.
654 &quot;contentDataRef&quot;: { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef. # Upload reference ID of a previously uploaded content via write method.
655 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800656 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800657 &quot;contentFormat&quot;: &quot;A String&quot;,
658 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
659 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).
660 },
661 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
662 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
663 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.
664 &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 more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.
665 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
666 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
667 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.
668 { # Represents an interaction between a user and an item.
669 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.
670 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800671 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
672 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800673 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800674 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800675 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
676 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800677 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800678 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800679 &quot;type&quot;: &quot;A String&quot;,
680 },
681 ],
682 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.
683 &quot;A String&quot;,
684 ],
685 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.
686 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name &#x27;document&#x27;, then item indexing requests for objects of that type should set objectType to &#x27;document&#x27;. The maximum length is 256 characters.
687 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
688 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800689 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800690 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. Search results apply this link to the title. Whitespace or special characters may cause Cloud Search result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.
691 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.
692 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
693 },
694 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
695 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item. The maximum length is 10000 bytes.
696 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to. The maximum length is 100 characters.
697 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item. Output only field.
698 &quot;code&quot;: &quot;A String&quot;, # Status code.
699 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
700 {
701 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
702 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
703 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details about the validation errors.
704 {
705 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
706 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700707 },
708 ],
709 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800710 ],
711 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
712 { # Errors when the connector is communicating to the source repository.
713 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
714 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
715 &quot;type&quot;: &quot;A String&quot;, # Type of error.
716 },
717 ],
718 },
719 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered object definition in the schema for the data source.
720 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
721 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object definition in the schema for the data source.
722 &quot;properties&quot;: [ # The properties for the object. The maximum number of elements is 1000.
723 { # A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.
724 &quot;booleanValue&quot;: True or False,
725 &quot;dateValues&quot;: { # List of date values.
726 &quot;values&quot;: [
727 { # 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.
728 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
729 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
730 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
731 },
732 ],
733 },
734 &quot;doubleValues&quot;: { # List of double values.
735 &quot;values&quot;: [
736 3.14,
737 ],
738 },
739 &quot;enumValues&quot;: { # List of enum values.
740 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
741 &quot;A String&quot;,
742 ],
743 },
744 &quot;htmlValues&quot;: { # List of html values.
745 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
746 &quot;A String&quot;,
747 ],
748 },
749 &quot;integerValues&quot;: { # List of integer values.
750 &quot;values&quot;: [
751 &quot;A String&quot;,
752 ],
753 },
754 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.
755 &quot;objectValues&quot;: { # List of object values.
756 &quot;values&quot;: [
757 # Object with schema name: StructuredDataObject
758 ],
759 },
760 &quot;textValues&quot;: { # List of text values.
761 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
762 &quot;A String&quot;,
763 ],
764 },
765 &quot;timestampValues&quot;: { # List of timestamp values.
766 &quot;values&quot;: [
767 &quot;A String&quot;,
768 ],
769 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800770 },
771 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700772 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800774 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
775 },
776 ],
777 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
778}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779</div>
780
781<div class="method">
782 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
783 <pre>Retrieves the next page of results.
784
785Args:
786 previous_request: The request for the previous page. (required)
787 previous_response: The response from the request for the previous page. (required)
788
789Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 page. Returns None if there are no more items in the collection.
792 </pre>
793</div>
794
795<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 <code class="details" id="poll">poll(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700797 <pre>Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads cannot create overlapping sets. After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE. Items automatically become available (unreserved) after 4 hours even if no update or push method is called. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700798
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700799Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700800 name: string, Name of the Data Source to poll items. Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700801 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802 The object takes the form of:
803
804{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800805 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
806 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
807 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
808 },
809 &quot;limit&quot;: 42, # Maximum number of items to return. The maximum value is 100 and the default value is 20.
810 &quot;queue&quot;: &quot;A String&quot;, # Queue name to fetch items from. If unspecified, PollItems will fetch from &#x27;default&#x27; queue. The maximum length is 100 characters.
811 &quot;statusCodes&quot;: [ # Limit the items polled to the ones with these statuses.
812 &quot;A String&quot;,
813 ],
814}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815
816 x__xgafv: string, V1 error format.
817 Allowed values
818 1 - v1 error format
819 2 - v2 error format
820
821Returns:
822 An object of the form:
823
824 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800825 &quot;items&quot;: [ # Set of items from the queue available for connector to process. These items have the following subset of fields populated: version metadata.hash structured_data.hash content.hash payload status queue
826 { # Represents a single object that is an item in the search index, such as a file, folder, or a database record.
827 &quot;acl&quot;: { # Access control list information for the item. For more information see [Map ACLs](/cloud-search/docs/guides/acls). # Access control list for this item.
828 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.
829 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.
830 { # Reference to a user, group, or domain.
831 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
832 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
833 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
834 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
835 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
836 },
837 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800838 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800839 ],
840 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.
841 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.
842 { # Reference to a user, group, or domain.
843 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
844 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
845 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
846 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
847 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800848 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800849 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800850 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800851 ],
852 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.
853 { # Reference to a user, group, or domain.
854 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
855 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
856 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
857 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
858 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
859 },
860 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
861 },
862 ],
863 },
864 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. # Item content to be indexed and made text searchable.
865 &quot;contentDataRef&quot;: { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef. # Upload reference ID of a previously uploaded content via write method.
866 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800867 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800868 &quot;contentFormat&quot;: &quot;A String&quot;,
869 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
870 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).
871 },
872 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
873 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
874 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.
875 &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 more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.
876 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
877 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
878 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.
879 { # Represents an interaction between a user and an item.
880 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.
881 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800882 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
883 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800884 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800885 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800886 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
887 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800888 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800889 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800890 &quot;type&quot;: &quot;A String&quot;,
891 },
892 ],
893 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.
894 &quot;A String&quot;,
895 ],
896 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.
897 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name &#x27;document&#x27;, then item indexing requests for objects of that type should set objectType to &#x27;document&#x27;. The maximum length is 256 characters.
898 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
899 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800900 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800901 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. Search results apply this link to the title. Whitespace or special characters may cause Cloud Search result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.
902 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.
903 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
904 },
905 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
906 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item. The maximum length is 10000 bytes.
907 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to. The maximum length is 100 characters.
908 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item. Output only field.
909 &quot;code&quot;: &quot;A String&quot;, # Status code.
910 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
911 {
912 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
913 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
914 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details about the validation errors.
915 {
916 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
917 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700918 },
919 ],
920 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800921 ],
922 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
923 { # Errors when the connector is communicating to the source repository.
924 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
925 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
926 &quot;type&quot;: &quot;A String&quot;, # Type of error.
927 },
928 ],
929 },
930 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered object definition in the schema for the data source.
931 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
932 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object definition in the schema for the data source.
933 &quot;properties&quot;: [ # The properties for the object. The maximum number of elements is 1000.
934 { # A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.
935 &quot;booleanValue&quot;: True or False,
936 &quot;dateValues&quot;: { # List of date values.
937 &quot;values&quot;: [
938 { # 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.
939 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
940 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
941 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
942 },
943 ],
944 },
945 &quot;doubleValues&quot;: { # List of double values.
946 &quot;values&quot;: [
947 3.14,
948 ],
949 },
950 &quot;enumValues&quot;: { # List of enum values.
951 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
952 &quot;A String&quot;,
953 ],
954 },
955 &quot;htmlValues&quot;: { # List of html values.
956 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
957 &quot;A String&quot;,
958 ],
959 },
960 &quot;integerValues&quot;: { # List of integer values.
961 &quot;values&quot;: [
962 &quot;A String&quot;,
963 ],
964 },
965 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.
966 &quot;objectValues&quot;: { # List of object values.
967 &quot;values&quot;: [
968 # Object with schema name: StructuredDataObject
969 ],
970 },
971 &quot;textValues&quot;: { # List of text values.
972 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
973 &quot;A String&quot;,
974 ],
975 },
976 &quot;timestampValues&quot;: { # List of timestamp values.
977 &quot;values&quot;: [
978 &quot;A String&quot;,
979 ],
980 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800981 },
982 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700983 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700984 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800985 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
986 },
987 ],
988}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989</div>
990
991<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700992 <code class="details" id="push">push(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700993 <pre>Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700994
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700996 name: string, Name of the item to push into the indexing queue. Format: datasources/{source_id}/items/{ID} This is a required field. The maximum length is 1536 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700997 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 The object takes the form of:
999
1000{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001001 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
1002 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1003 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
1004 },
1005 &quot;item&quot;: { # Represents an item to be pushed to the indexing queue. # Item to push onto the queue.
1006 &quot;contentHash&quot;: &quot;A String&quot;, # Content hash of the item according to the repository. If specified, this is used to determine how to modify this item&#x27;s status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.
1007 &quot;metadataHash&quot;: &quot;A String&quot;, # Metadata hash of the item according to the repository. If specified, this is used to determine how to modify this item&#x27;s status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.
1008 &quot;payload&quot;: &quot;A String&quot;, # Provides additional document state information for the connector, such as an alternate repository ID and other metadata. The maximum length is 8192 bytes.
1009 &quot;queue&quot;: &quot;A String&quot;, # Queue to which this item belongs to. The default queue is chosen if this field is not specified. The maximum length is 512 characters.
1010 &quot;repositoryError&quot;: { # Errors when the connector is communicating to the source repository. # Populate this field to store Connector or repository error details. This information is displayed in the Admin Console. This field may only be populated when the Type is REPOSITORY_ERROR.
1011 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
1012 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1013 &quot;type&quot;: &quot;A String&quot;, # Type of error.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001014 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;structuredDataHash&quot;: &quot;A String&quot;, # Structured data hash of the item according to the repository. If specified, this is used to determine how to modify this item&#x27;s status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.
1016 &quot;type&quot;: &quot;A String&quot;, # The type of the push operation that defines the push behavior.
1017 },
1018}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001019
1020 x__xgafv: string, V1 error format.
1021 Allowed values
1022 1 - v1 error format
1023 2 - v2 error format
1024
1025Returns:
1026 An object of the form:
1027
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001028 { # Represents a single object that is an item in the search index, such as a file, folder, or a database record.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001029 &quot;acl&quot;: { # Access control list information for the item. For more information see [Map ACLs](/cloud-search/docs/guides/acls). # Access control list for this item.
1030 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.
1031 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.
1032 { # Reference to a user, group, or domain.
1033 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
1034 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1035 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
1036 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1037 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1038 },
1039 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001040 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001041 ],
1042 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.
1043 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.
1044 { # Reference to a user, group, or domain.
1045 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
1046 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1047 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
1048 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1049 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001050 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001051 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001052 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001053 ],
1054 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.
1055 { # Reference to a user, group, or domain.
1056 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
1057 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
1058 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
1059 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
1060 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1061 },
1062 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
1063 },
1064 ],
1065 },
1066 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. # Item content to be indexed and made text searchable.
1067 &quot;contentDataRef&quot;: { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef. # Upload reference ID of a previously uploaded content via write method.
1068 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001069 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001070 &quot;contentFormat&quot;: &quot;A String&quot;,
1071 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
1072 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).
1073 },
1074 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
1075 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
1076 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.
1077 &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 more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.
1078 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
1079 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
1080 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.
1081 { # Represents an interaction between a user and an item.
1082 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.
1083 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001084 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}
1085 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001086 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001087 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001088 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
1089 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001090 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001091 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001092 &quot;type&quot;: &quot;A String&quot;,
1093 },
1094 ],
1095 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.
1096 &quot;A String&quot;,
1097 ],
1098 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.
1099 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name &#x27;document&#x27;, then item indexing requests for objects of that type should set objectType to &#x27;document&#x27;. The maximum length is 256 characters.
1100 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
1101 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001102 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001103 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. Search results apply this link to the title. Whitespace or special characters may cause Cloud Search result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.
1104 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.
1105 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
1106 },
1107 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
1108 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item. The maximum length is 10000 bytes.
1109 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to. The maximum length is 100 characters.
1110 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item. Output only field.
1111 &quot;code&quot;: &quot;A String&quot;, # Status code.
1112 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
1113 {
1114 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
1115 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
1116 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details about the validation errors.
1117 {
1118 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
1119 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001120 },
1121 ],
1122 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001123 ],
1124 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
1125 { # Errors when the connector is communicating to the source repository.
1126 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length of the message is 8192 characters.
1127 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
1128 &quot;type&quot;: &quot;A String&quot;, # Type of error.
1129 },
1130 ],
1131 },
1132 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered object definition in the schema for the data source.
1133 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.
1134 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object definition in the schema for the data source.
1135 &quot;properties&quot;: [ # The properties for the object. The maximum number of elements is 1000.
1136 { # A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.
1137 &quot;booleanValue&quot;: True or False,
1138 &quot;dateValues&quot;: { # List of date values.
1139 &quot;values&quot;: [
1140 { # 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.
1141 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
1142 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
1143 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
1144 },
1145 ],
1146 },
1147 &quot;doubleValues&quot;: { # List of double values.
1148 &quot;values&quot;: [
1149 3.14,
1150 ],
1151 },
1152 &quot;enumValues&quot;: { # List of enum values.
1153 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
1154 &quot;A String&quot;,
1155 ],
1156 },
1157 &quot;htmlValues&quot;: { # List of html values.
1158 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
1159 &quot;A String&quot;,
1160 ],
1161 },
1162 &quot;integerValues&quot;: { # List of integer values.
1163 &quot;values&quot;: [
1164 &quot;A String&quot;,
1165 ],
1166 },
1167 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.
1168 &quot;objectValues&quot;: { # List of object values.
1169 &quot;values&quot;: [
1170 # Object with schema name: StructuredDataObject
1171 ],
1172 },
1173 &quot;textValues&quot;: { # List of text values.
1174 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
1175 &quot;A String&quot;,
1176 ],
1177 },
1178 &quot;timestampValues&quot;: { # List of timestamp values.
1179 &quot;values&quot;: [
1180 &quot;A String&quot;,
1181 ],
1182 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001183 },
1184 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001185 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001186 },
1187 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won&#x27;t index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.
1188}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001189</div>
1190
1191<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001192 <code class="details" id="unreserve">unreserve(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001193 <pre>Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been restarted. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Dan O'Mearadd494642020-05-01 07:42:23 -07001194
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001195Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001196 name: string, Name of the Data Source to unreserve all items. Format: datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001197 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001198 The object takes the form of:
1199
1200{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001201 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
1202 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1203 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
1204 },
1205 &quot;queue&quot;: &quot;A String&quot;, # Name of a queue to unreserve items from.
1206}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001207
1208 x__xgafv: string, V1 error format.
1209 Allowed values
1210 1 - v1 error format
1211 2 - v2 error format
1212
1213Returns:
1214 An object of the form:
1215
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001216 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001217 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1218 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1219 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1220 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1221 {
1222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1223 },
1224 ],
1225 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1226 },
1227 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1229 },
1230 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1231 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1233 },
1234}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001235</div>
1236
1237<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001238 <code class="details" id="upload">upload(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001239 <pre>Creates an upload session for uploading item content. For items smaller than 100 KB, it&#x27;s easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240
1241Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001242 name: string, Name of the Item to start a resumable upload. Format: datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001243 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001244 The object takes the form of:
1245
1246{ # Start upload file request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001247 &quot;connectorName&quot;: &quot;A String&quot;, # Name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
1248 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
1249 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
1250 },
1251}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252
1253 x__xgafv: string, V1 error format.
1254 Allowed values
1255 1 - v1 error format
1256 2 - v2 error format
1257
1258Returns:
1259 An object of the form:
1260
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001261 { # Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference. The maximum length is 2048 characters.
1263}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001264</div>
1265
1266</body></html>