blob: 6c2adf9f5539b9f2e4e9d2730493d188fc97c9fd [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.debug.html">debug</a> . <a href="cloudsearch_v1.debug.datasources.html">datasources</a> . <a href="cloudsearch_v1.debug.datasources.items.html">items</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudsearch_v1.debug.datasources.items.unmappedids.html">unmappedids()</a></code>
79</p>
80<p class="firstline">Returns the unmappedids Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#checkAccess">checkAccess(name, body=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Checks whether an item is accessible by specified principal.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#searchByViewUrl">searchByViewUrl(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Fetches the item whose viewUrl exactly matches that of the URL provided</p>
88<p class="toc_element">
89 <code><a href="#searchByViewUrl_next">searchByViewUrl_next(previous_request, previous_response)</a></code></p>
90<p class="firstline">Retrieves the next page of results.</p>
91<h3>Method Details</h3>
92<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code class="details" id="checkAccess">checkAccess(name, body=None, debugOptions_enableDebugging=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094 <pre>Checks whether an item is accessible by specified principal.
95
Dan O'Mearadd494642020-05-01 07:42:23 -070096**Note:** This API requires an admin account to execute.
97
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098Args:
99 name: string, Item name, format:
100datasources/{source_id}/items/{item_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 The object takes the form of:
103
104{ # Reference to a user, group, or domain.
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 # The name field must specify the user resource name with this format:
107 # identitysources/{source_id}/users/{ID}
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
109 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
110 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
111 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
112 # customer.
113 },
114 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 # The name field must specify the group resource name with this format:
116 # identitysources/{source_id}/groups/{ID}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117}
118
119 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
120Otherwise, ignore this field.
121 x__xgafv: string, V1 error format.
122 Allowed values
123 1 - v1 error format
124 2 - v2 error format
125
126Returns:
127 An object of the form:
128
129 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;hasAccess&quot;: True or False, # Returns true if principal has access. Returns false otherwise.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 }</pre>
132</div>
133
134<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code class="details" id="searchByViewUrl">searchByViewUrl(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 <pre>Fetches the item whose viewUrl exactly matches that of the URL provided
137in the request.
138
Dan O'Mearadd494642020-05-01 07:42:23 -0700139**Note:** This API requires an admin account to execute.
140
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141Args:
142 name: string, Source name, format:
143datasources/{source_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 The object takes the form of:
146
147{
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;debugOptions&quot;: { # Shared request debug options for all cloudsearch RPC methods. # Common debug options.
149 &quot;enableDebugging&quot;: True or False, # If you are asked by Google to help with debugging, set this field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 # Otherwise, ignore this field.
151 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;pageToken&quot;: &quot;A String&quot;, # The next_page_token value returned from a previous request, if any.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;viewUrl&quot;: &quot;A String&quot;, # Specify the full view URL to find the corresponding item.
154 # The maximum length is 2048 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 }
156
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162Returns:
163 An object of the form:
164
165 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;items&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 { # Represents a single object that is an item in the search index, such as a
168 # file, folder, or a database record.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700169 &quot;itemType&quot;: &quot;A String&quot;, # Type for this item.
170 &quot;structuredData&quot;: { # Available structured data fields for the item. # The structured data for the item that should conform to a registered
171 # object definition in the schema for the data source.
172 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
173 # This can be used with the
174 # items.push
175 # method to calculate modified state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 # The maximum length is 2048 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &quot;object&quot;: { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object
178 # definition in the schema for the data source.
179 &quot;properties&quot;: [ # The properties for the object.
180 # The maximum number of elements is 1000.
181 { # A typed name-value pair for structured data. The type of the value should
182 # be the same as the registered type for the `name` property in the object
183 # definition of `objectType`.
184 &quot;integerValues&quot;: { # List of integer values.
185 &quot;values&quot;: [
186 &quot;A String&quot;,
187 ],
188 },
189 &quot;name&quot;: &quot;A String&quot;, # The name of the property. This name should correspond to the name of the
190 # property that was registered for object definition in the schema.
191 # The maximum allowable length for this property is 256 characters.
192 &quot;doubleValues&quot;: { # List of double values.
193 &quot;values&quot;: [
194 3.14,
195 ],
196 },
197 &quot;booleanValue&quot;: True or False,
198 &quot;htmlValues&quot;: { # List of html values.
199 &quot;values&quot;: [ # The maximum allowable length for html values is 2048 characters.
200 &quot;A String&quot;,
201 ],
202 },
203 &quot;textValues&quot;: { # List of text values.
204 &quot;values&quot;: [ # The maximum allowable length for text values is 2048 characters.
205 &quot;A String&quot;,
206 ],
207 },
208 &quot;timestampValues&quot;: { # List of timestamp values.
209 &quot;values&quot;: [
210 &quot;A String&quot;,
211 ],
212 },
213 &quot;objectValues&quot;: { # List of object values.
214 &quot;values&quot;: [
215 # Object with schema name: StructuredDataObject
216 ],
217 },
218 &quot;dateValues&quot;: { # List of date values.
219 &quot;values&quot;: [
220 { # 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.
221 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
222 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
223 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
224 },
225 ],
226 },
227 &quot;enumValues&quot;: { # List of enum values.
228 &quot;values&quot;: [ # The maximum allowable length for string values is 32 characters.
229 &quot;A String&quot;,
230 ],
231 },
232 },
233 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700235 },
236 &quot;status&quot;: { # This contains item&#x27;s status and any errors. # Status of the item.
237 # Output only field.
238 &quot;processingErrors&quot;: [ # Error details in case the item is in ERROR state.
239 {
240 &quot;fieldViolations&quot;: [ # In case the item fields are invalid, this field contains the details
241 # about the validation errors.
242 {
243 &quot;description&quot;: &quot;A String&quot;, # Description of the error.
244 &quot;field&quot;: &quot;A String&quot;, # Path of field with violation.
245 },
246 ],
247 &quot;errorMessage&quot;: &quot;A String&quot;, # Description of the error.
248 &quot;code&quot;: &quot;A String&quot;, # Error code indicating the nature of the error.
249 },
250 ],
251 &quot;code&quot;: &quot;A String&quot;, # Status code.
252 &quot;repositoryErrors&quot;: [ # Repository error reported by connector.
253 { # Errors when the connector is communicating to the source repository.
254 &quot;httpStatusCode&quot;: 42, # Error codes. Matches the definition of HTTP status codes.
255 &quot;errorMessage&quot;: &quot;A String&quot;, # Message that describes the error. The maximum allowable length
256 # of the message is 8192 characters.
257 &quot;type&quot;: &quot;A String&quot;, # Type of error.
258 },
259 ],
260 },
261 &quot;name&quot;: &quot;A String&quot;, # Name of the Item. Format:
262 # datasources/{source_id}/items/{item_id}
263 # &lt;br /&gt;This is a required field.
264 # The maximum length is 1536 characters.
265 &quot;payload&quot;: &quot;A String&quot;, # Additional state connector can store for this item.
266 # The maximum length is 10000 bytes.
267 &quot;acl&quot;: { # Access control list information for the item. For more information see # Access control list for this item.
268 # [Map ACLs](/cloud-search/docs/guides/acls).
269 &quot;owners&quot;: [ # Optional. List of owners for the item. This field has no bearing on
270 # document access permissions. It does, however, offer
271 # a slight ranking boosts items where the querying user is an owner.
272 # The maximum number of elements is 5.
273 { # Reference to a user, group, or domain.
274 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
275 # The name field must specify the user resource name with this format:
276 # identitysources/{source_id}/users/{ID}
277 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
278 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
279 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
280 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
281 # customer.
282 },
283 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
284 # The name field must specify the group resource name with this format:
285 # identitysources/{source_id}/groups/{ID}
286 },
287 ],
288 &quot;aclInheritanceType&quot;: &quot;A String&quot;, # Sets the type of access rules to apply when an item inherits its ACL from a
289 # parent. This should always be set in tandem with the
290 # inheritAclFrom
291 # field. Also, when the
292 # inheritAclFrom field
293 # is set, this field should be set to a valid AclInheritanceType.
294 &quot;deniedReaders&quot;: [ # List of principals who are explicitly denied access to the item in search
295 # results. While principals are denied access by default, use denied readers
296 # to handle exceptions and override the list allowed readers.
297 # The maximum number of elements is 100.
298 { # Reference to a user, group, or domain.
299 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
300 # The name field must specify the user resource name with this format:
301 # identitysources/{source_id}/users/{ID}
302 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
303 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
304 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
305 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
306 # customer.
307 },
308 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
309 # The name field must specify the group resource name with this format:
310 # identitysources/{source_id}/groups/{ID}
311 },
312 ],
313 &quot;inheritAclFrom&quot;: &quot;A String&quot;, # Name of the item to inherit the Access Permission List (ACL) from.
314 # Note: ACL inheritance *only* provides access permissions
315 # to child items and does not define structural relationships, nor does it
316 # provide convenient ways to delete large groups of items.
317 # Deleting an ACL parent from the index only alters the access permissions of
318 # child items that reference the parent in the
319 # inheritAclFrom
320 # field. The item is still in the index, but may not
321 # visible in search results. By contrast, deletion of a container item
322 # also deletes all items that reference the container via the
323 # containerName
324 # field.
325 # The maximum length for this field is 1536 characters.
326 &quot;readers&quot;: [ # List of principals who are allowed to see the item in search results.
327 # Optional if inheriting permissions from another item or if the item
328 # is not intended to be visible, such as
329 # virtual
330 # containers.
331 # The maximum number of elements is 1000.
332 { # Reference to a user, group, or domain.
333 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
334 # The name field must specify the user resource name with this format:
335 # identitysources/{source_id}/users/{ID}
336 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
337 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
338 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
339 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
340 # customer.
341 },
342 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
343 # The name field must specify the group resource name with this format:
344 # identitysources/{source_id}/groups/{ID}
345 },
346 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 },
348 &quot;metadata&quot;: { # Available metadata fields for the item. # Metadata information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;objectType&quot;: &quot;A String&quot;, # The type of the item. This should correspond to the name of an object
350 # definition in the schema registered for the data source. For example, if
351 # the schema for the data source contains an object definition with name
352 # &#x27;document&#x27;, then item indexing requests for objects of that type should set
353 # objectType to &#x27;document&#x27;.
354 # The maximum length is 256 characters.
355 &quot;searchQualityMetadata&quot;: { # Additional search quality metadata of the item. # Additional search quality metadata of the item
356 &quot;quality&quot;: 3.14, # An indication of the quality of the item, used to influence search quality.
357 # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
358 # default value is 0.0.
359 },
360 &quot;hash&quot;: &quot;A String&quot;, # Hashing value provided by the API caller.
361 # This can be used with the
362 # items.push
363 # method to calculate modified state.
364 # The maximum length is 2048 characters.
365 &quot;interactions&quot;: [ # A list of interactions for the item. Interactions are used to improve
366 # Search quality, but are not exposed to end users.
367 # The maximum number of elements is 1000.
368 { # Represents an interaction between a user and an item.
369 &quot;interactionTime&quot;: &quot;A String&quot;, # The time when the user acted on the item. If multiple actions of the same
370 # type exist for a single user, only the most recent action is recorded.
371 &quot;principal&quot;: { # Reference to a user, group, or domain. # The user that acted on the item.
372 &quot;userResourceName&quot;: &quot;A String&quot;, # This principal is a user identified using an external identity.
373 # The name field must specify the user resource name with this format:
374 # identitysources/{source_id}/users/{ID}
375 &quot;gsuitePrincipal&quot;: { # This principal is a GSuite user, group or domain.
376 &quot;gsuiteGroupEmail&quot;: &quot;A String&quot;, # This principal references a G Suite group account
377 &quot;gsuiteUserEmail&quot;: &quot;A String&quot;, # This principal references a G Suite user account
378 &quot;gsuiteDomain&quot;: True or False, # This principal represents all users of the G Suite domain of the
379 # customer.
380 },
381 &quot;groupResourceName&quot;: &quot;A String&quot;, # This principal is a group identified using an external identity.
382 # The name field must specify the group resource name with this format:
383 # identitysources/{source_id}/groups/{ID}
384 },
385 &quot;type&quot;: &quot;A String&quot;,
386 },
387 ],
388 &quot;keywords&quot;: [ # Additional keywords or phrases that should match the item.
389 # Used internally for user generated content.
390 # The maximum number of elements is 100.
391 # The maximum length is 8192 characters.
392 &quot;A String&quot;,
393 ],
394 &quot;mimeType&quot;: &quot;A String&quot;, # The original mime-type of
395 # ItemContent.content
396 # in the source repository.
397 # The maximum length is 256 characters.
398 &quot;title&quot;: &quot;A String&quot;, # The title of the item. If given, this will be the displayed title of the
399 # Search result.
400 # The maximum length is 2048 characters.
401 &quot;createTime&quot;: &quot;A String&quot;, # The time when the item was created in the source repository.
402 &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
403 # more information, see
404 # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
405 # The maximum length is 32 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700406 &quot;updateTime&quot;: &quot;A String&quot;, # The time when the item was last modified in the source repository.
407 &quot;sourceRepositoryUrl&quot;: &quot;A String&quot;, # Link to the source repository serving the data. &amp;#83;earch results apply
408 # this link to the title.
409 # Whitespace or special characters may cause Cloud &amp;#83;earch result links to
410 # trigger a redirect notice; to avoid this, encode the URL.
411 # The maximum length is 2048 characters.
412 &quot;containerName&quot;: &quot;A String&quot;, # The name of the container for this item.
413 # Deletion of the container item leads to automatic deletion of this
414 # item. Note: ACLs are not inherited from a container item.
415 # To provide ACL inheritance for an item, use the
416 # inheritAclFrom
417 # field. The maximum length is 1536 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700419 &quot;content&quot;: { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable.
420 &quot;contentDataRef&quot;: { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method.
421 # This reference is created via upload
422 # method.
423 # Updating of item content may refer to this uploaded content via
424 # contentDataRef.
425 &quot;name&quot;: &quot;A String&quot;, # Name of the content reference.
426 # The maximum length is 2048 characters.
427 },
428 &quot;inlineContent&quot;: &quot;A String&quot;, # Content that is supplied inlined within the update method.
429 # The maximum length is 102400 bytes (100 KiB).
430 &quot;hash&quot;: &quot;A String&quot;, # Hashing info calculated and provided by the API client for content.
431 # Can be used with the items.push method to calculate modified state.
432 # The maximum length is 2048 characters.
433 &quot;contentFormat&quot;: &quot;A String&quot;,
434 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;version&quot;: &quot;A String&quot;, # Required. The indexing system stores the version from the datasource as a
436 # byte string and compares the Item version in the index
437 # to the version of the queued Item using lexical ordering.
438 # &lt;br /&gt;&lt;br /&gt;
439 # Cloud Search Indexing won&#x27;t index or delete any queued item with
440 # a version value that is less than or equal to the version of the
441 # currently indexed item.
442 # The maximum length for this field is 1024 bytes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700443 &quot;queue&quot;: &quot;A String&quot;, # Queue this item belongs to.
444 # The maximum length is 100 characters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 },
446 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700447 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
448 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 }</pre>
450</div>
451
452<div class="method">
453 <code class="details" id="searchByViewUrl_next">searchByViewUrl_next(previous_request, previous_response)</code>
454 <pre>Retrieves the next page of results.
455
456Args:
457 previous_request: The request for the previous page. (required)
458 previous_response: The response from the request for the previous page. (required)
459
460Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 page. Returns None if there are no more items in the collection.
463 </pre>
464</div>
465
466</body></html>