Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="cloudsearch_v1.html">Cloud Search API</a> . <a href="cloudsearch_v1.indexing.html">indexing</a> . <a href="cloudsearch_v1.indexing.datasources.html">datasources</a> . <a href="cloudsearch_v1.indexing.datasources.items.html">items</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 78 | <code><a href="#delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, version=None, mode=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Deletes Item resource for the</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 82 | <p class="firstline">Deletes all items in a queue. This method is useful for deleting stale</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Gets Item resource by item name.</p> |
| 86 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 87 | <code><a href="#index">index(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <p class="firstline">Updates Item ACL, metadata, and</p> |
| 89 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 90 | <code><a href="#list">list(name, connectorName=None, brief=None, pageToken=None, pageSize=None, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 91 | <p class="firstline">Lists all or a subset of Item resources.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
| 95 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 96 | <code><a href="#poll">poll(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <p class="firstline">Polls for unreserved items from the indexing queue and marks a</p> |
| 98 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 99 | <code><a href="#push">push(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 100 | <p class="firstline">Pushes an item onto a queue for later polling and updating.</p> |
| 101 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code><a href="#unreserve">unreserve(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | <p class="firstline">Unreserves all items from a queue, making them all eligible to be</p> |
| 104 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 105 | <code><a href="#upload">upload(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 106 | <p class="firstline">Creates an upload session for uploading item content. For items smaller</p> |
| 107 | <h3>Method Details</h3> |
| 108 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 109 | <code class="details" id="delete">delete(name, connectorName=None, debugOptions_enableDebugging=None, version=None, mode=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 110 | <pre>Deletes Item resource for the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | specified resource name. This API requires an admin or service account |
| 112 | to execute. The service account used is the one whitelisted in the |
| 113 | corresponding data source. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 114 | |
| 115 | Args: |
| 116 | name: string, Required. Name of the item to delete. |
| 117 | Format: datasources/{source_id}/items/{item_id} (required) |
| 118 | connectorName: string, Name of connector making this call. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 119 | <br />Format: datasources/{source_id}/connectors/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 120 | debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. |
| 121 | Otherwise, ignore this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 122 | version: string, Required. The incremented version of the item to delete from the index. |
| 123 | The indexing system stores the version from the datasource as a |
| 124 | byte string and compares the Item version in the index |
| 125 | to the version of the queued Item using lexical ordering. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 126 | <br /><br /> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 127 | Cloud Search Indexing won't delete any queued item with |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 128 | a version value that is less than or equal to |
| 129 | the version of the currently indexed item. |
| 130 | The maximum length for this field is 1024 bytes. |
| 131 | mode: string, Required. The RequestMode for this request. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 132 | x__xgafv: string, V1 error format. |
| 133 | Allowed values |
| 134 | 1 - v1 error format |
| 135 | 2 - v2 error format |
| 136 | |
| 137 | Returns: |
| 138 | An object of the form: |
| 139 | |
| 140 | { # This resource represents a long-running operation that is the result of a |
| 141 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 142 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 143 | # If `true`, the operation is completed, and either `error` or `response` is |
| 144 | # available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 145 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 146 | # method returns no data on success, such as `Delete`, the response is |
| 147 | # `google.protobuf.Empty`. If the original method is standard |
| 148 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 149 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 150 | # is the original method name. For example, if the original method name |
| 151 | # is `TakeSnapshot()`, the inferred response type is |
| 152 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 153 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 154 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 155 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 156 | # originally returns it. If you use the default HTTP mapping, the |
| 157 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 158 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 159 | # different programming environments, including REST APIs and RPC APIs. It is |
| 160 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 161 | # three pieces of data: error code, error message, and error details. |
| 162 | # |
| 163 | # You can find out more about this error model and how to work with it in the |
| 164 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 165 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 166 | # message types for APIs to use. |
| 167 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 168 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 169 | }, |
| 170 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 171 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 172 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 173 | # user-facing error message should be localized and sent in the |
| 174 | # google.rpc.Status.details field, or localized by the client. |
| 175 | }, |
| 176 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 177 | # contains progress information and common metadata such as create time. |
| 178 | # Some services might not provide such metadata. Any method that returns a |
| 179 | # long-running operation should document the metadata type, if any. |
| 180 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 181 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 182 | }</pre> |
| 183 | </div> |
| 184 | |
| 185 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 186 | <code class="details" id="deleteQueueItems">deleteQueueItems(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 187 | <pre>Deletes all items in a queue. This method is useful for deleting stale |
| 188 | items. |
| 189 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 190 | This API requires an admin or service account to execute. The service |
| 191 | account used is the one whitelisted in the corresponding data source. |
| 192 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 193 | Args: |
| 194 | name: string, Name of the Data Source to delete items in a queue. |
| 195 | Format: datasources/{source_id} (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 196 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 197 | The object takes the form of: |
| 198 | |
| 199 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 200 | "connectorName": "A String", # Name of connector making this call. |
| 201 | # <br />Format: datasources/{source_id}/connectors/{ID} |
| 202 | "queue": "A String", # Name of a queue to delete items from. |
| 203 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 204 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 205 | # Otherwise, ignore this field. |
| 206 | }, |
| 207 | } |
| 208 | |
| 209 | x__xgafv: string, V1 error format. |
| 210 | Allowed values |
| 211 | 1 - v1 error format |
| 212 | 2 - v2 error format |
| 213 | |
| 214 | Returns: |
| 215 | An object of the form: |
| 216 | |
| 217 | { # This resource represents a long-running operation that is the result of a |
| 218 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 219 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 220 | # If `true`, the operation is completed, and either `error` or `response` is |
| 221 | # available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 222 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 223 | # method returns no data on success, such as `Delete`, the response is |
| 224 | # `google.protobuf.Empty`. If the original method is standard |
| 225 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 226 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 227 | # is the original method name. For example, if the original method name |
| 228 | # is `TakeSnapshot()`, the inferred response type is |
| 229 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 230 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 231 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 232 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 233 | # originally returns it. If you use the default HTTP mapping, the |
| 234 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 235 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 236 | # different programming environments, including REST APIs and RPC APIs. It is |
| 237 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 238 | # three pieces of data: error code, error message, and error details. |
| 239 | # |
| 240 | # You can find out more about this error model and how to work with it in the |
| 241 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 242 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 243 | # message types for APIs to use. |
| 244 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 245 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 246 | }, |
| 247 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 248 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 249 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 250 | # user-facing error message should be localized and sent in the |
| 251 | # google.rpc.Status.details field, or localized by the client. |
| 252 | }, |
| 253 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 254 | # contains progress information and common metadata such as create time. |
| 255 | # Some services might not provide such metadata. Any method that returns a |
| 256 | # long-running operation should document the metadata type, if any. |
| 257 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 258 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 259 | }</pre> |
| 260 | </div> |
| 261 | |
| 262 | <div class="method"> |
| 263 | <code class="details" id="get">get(name, connectorName=None, debugOptions_enableDebugging=None, x__xgafv=None)</code> |
| 264 | <pre>Gets Item resource by item name. |
| 265 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 266 | This API requires an admin or service account to execute. The service |
| 267 | account used is the one whitelisted in the corresponding data source. |
| 268 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 269 | Args: |
| 270 | name: string, Name of the item to get info. |
| 271 | Format: datasources/{source_id}/items/{item_id} (required) |
| 272 | connectorName: string, Name of connector making this call. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 273 | <br />Format: datasources/{source_id}/connectors/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 274 | debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. |
| 275 | Otherwise, ignore this field. |
| 276 | x__xgafv: string, V1 error format. |
| 277 | Allowed values |
| 278 | 1 - v1 error format |
| 279 | 2 - v2 error format |
| 280 | |
| 281 | Returns: |
| 282 | An object of the form: |
| 283 | |
| 284 | { # Represents a single object that is an item in the search index, such as a |
| 285 | # file, folder, or a database record. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 286 | "content": { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable. |
| 287 | "hash": "A String", # Hashing info calculated and provided by the API client for content. |
| 288 | # Can be used with the items.push method to calculate modified state. |
| 289 | # The maximum length is 2048 characters. |
| 290 | "contentFormat": "A String", |
| 291 | "contentDataRef": { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method. |
| 292 | # This reference is created via upload |
| 293 | # method. |
| 294 | # Updating of item content may refer to this uploaded content via |
| 295 | # contentDataRef. |
| 296 | "name": "A String", # Name of the content reference. |
| 297 | # The maximum length is 2048 characters. |
| 298 | }, |
| 299 | "inlineContent": "A String", # Content that is supplied inlined within the update method. |
| 300 | # The maximum length is 102400 bytes (100 KiB). |
| 301 | }, |
| 302 | "metadata": { # Available metadata fields for the item. # Metadata information. |
| 303 | "sourceRepositoryUrl": "A String", # Link to the source repository serving the data. &#83;earch results apply |
| 304 | # this link to the title. |
| 305 | # Whitespace or special characters may cause Cloud &#83;earch result links to |
| 306 | # trigger a redirect notice; to avoid this, encode the URL. |
| 307 | # The maximum length is 2048 characters. |
| 308 | "updateTime": "A String", # The time when the item was last modified in the source repository. |
| 309 | "containerName": "A String", # The name of the container for this item. |
| 310 | # Deletion of the container item leads to automatic deletion of this |
| 311 | # item. Note: ACLs are not inherited from a container item. |
| 312 | # To provide ACL inheritance for an item, use the |
| 313 | # inheritAclFrom |
| 314 | # field. The maximum length is 1536 characters. |
| 315 | "objectType": "A String", # The type of the item. This should correspond to the name of an object |
| 316 | # definition in the schema registered for the data source. For example, if |
| 317 | # the schema for the data source contains an object definition with name |
| 318 | # 'document', then item indexing requests for objects of that type should set |
| 319 | # objectType to 'document'. |
| 320 | # The maximum length is 256 characters. |
| 321 | "searchQualityMetadata": { # Additional search quality metadata of the item. # Additional search quality metadata of the item |
| 322 | "quality": 3.14, # An indication of the quality of the item, used to influence search quality. |
| 323 | # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The |
| 324 | # default value is 0.0. |
| 325 | }, |
| 326 | "hash": "A String", # Hashing value provided by the API caller. |
| 327 | # This can be used with the |
| 328 | # items.push |
| 329 | # method to calculate modified state. |
| 330 | # The maximum length is 2048 characters. |
| 331 | "interactions": [ # A list of interactions for the item. Interactions are used to improve |
| 332 | # Search quality, but are not exposed to end users. |
| 333 | # The maximum number of elements is 1000. |
| 334 | { # Represents an interaction between a user and an item. |
| 335 | "interactionTime": "A String", # The time when the user acted on the item. If multiple actions of the same |
| 336 | # type exist for a single user, only the most recent action is recorded. |
| 337 | "principal": { # Reference to a user, group, or domain. # The user that acted on the item. |
| 338 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 339 | # The name field must specify the user resource name with this format: |
| 340 | # identitysources/{source_id}/users/{ID} |
| 341 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 342 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 343 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 344 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 345 | # customer. |
| 346 | }, |
| 347 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 348 | # The name field must specify the group resource name with this format: |
| 349 | # identitysources/{source_id}/groups/{ID} |
| 350 | }, |
| 351 | "type": "A String", |
| 352 | }, |
| 353 | ], |
| 354 | "keywords": [ # Additional keywords or phrases that should match the item. |
| 355 | # Used internally for user generated content. |
| 356 | # The maximum number of elements is 100. |
| 357 | # The maximum length is 8192 characters. |
| 358 | "A String", |
| 359 | ], |
| 360 | "mimeType": "A String", # The original mime-type of |
| 361 | # ItemContent.content |
| 362 | # in the source repository. |
| 363 | # The maximum length is 256 characters. |
| 364 | "title": "A String", # The title of the item. If given, this will be the displayed title of the |
| 365 | # Search result. |
| 366 | # The maximum length is 2048 characters. |
| 367 | "createTime": "A String", # The time when the item was created in the source repository. |
| 368 | "contentLanguage": "A String", # The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For |
| 369 | # more information, see |
| 370 | # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 371 | # The maximum length is 32 characters. |
| 372 | }, |
| 373 | "queue": "A String", # Queue this item belongs to. |
| 374 | # The maximum length is 100 characters. |
| 375 | "version": "A String", # Required. The indexing system stores the version from the datasource as a |
| 376 | # byte string and compares the Item version in the index |
| 377 | # to the version of the queued Item using lexical ordering. |
| 378 | # <br /><br /> |
| 379 | # Cloud Search Indexing won't index or delete any queued item with |
| 380 | # a version value that is less than or equal to the version of the |
| 381 | # currently indexed item. |
| 382 | # The maximum length for this field is 1024 bytes. |
| 383 | "itemType": "A String", # Type for this item. |
| 384 | "structuredData": { # Available structured data fields for the item. # The structured data for the item that should conform to a registered |
| 385 | # object definition in the schema for the data source. |
| 386 | "hash": "A String", # Hashing value provided by the API caller. |
| 387 | # This can be used with the |
| 388 | # items.push |
| 389 | # method to calculate modified state. |
| 390 | # The maximum length is 2048 characters. |
| 391 | "object": { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object |
| 392 | # definition in the schema for the data source. |
| 393 | "properties": [ # The properties for the object. |
| 394 | # The maximum number of elements is 1000. |
| 395 | { # A typed name-value pair for structured data. The type of the value should |
| 396 | # be the same as the registered type for the `name` property in the object |
| 397 | # definition of `objectType`. |
| 398 | "objectValues": { # List of object values. |
| 399 | "values": [ |
| 400 | # Object with schema name: StructuredDataObject |
| 401 | ], |
| 402 | }, |
| 403 | "enumValues": { # List of enum values. |
| 404 | "values": [ # The maximum allowable length for string values is 32 characters. |
| 405 | "A String", |
| 406 | ], |
| 407 | }, |
| 408 | "dateValues": { # List of date values. |
| 409 | "values": [ |
| 410 | { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. |
| 411 | "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. |
| 412 | "year": 42, # Year of date. Must be from 1 to 9999. |
| 413 | "month": 42, # Month of date. Must be from 1 to 12. |
| 414 | }, |
| 415 | ], |
| 416 | }, |
| 417 | "integerValues": { # List of integer values. |
| 418 | "values": [ |
| 419 | "A String", |
| 420 | ], |
| 421 | }, |
| 422 | "name": "A String", # The name of the property. This name should correspond to the name of the |
| 423 | # property that was registered for object definition in the schema. |
| 424 | # The maximum allowable length for this property is 256 characters. |
| 425 | "doubleValues": { # List of double values. |
| 426 | "values": [ |
| 427 | 3.14, |
| 428 | ], |
| 429 | }, |
| 430 | "booleanValue": True or False, |
| 431 | "textValues": { # List of text values. |
| 432 | "values": [ # The maximum allowable length for text values is 2048 characters. |
| 433 | "A String", |
| 434 | ], |
| 435 | }, |
| 436 | "htmlValues": { # List of html values. |
| 437 | "values": [ # The maximum allowable length for html values is 2048 characters. |
| 438 | "A String", |
| 439 | ], |
| 440 | }, |
| 441 | "timestampValues": { # List of timestamp values. |
| 442 | "values": [ |
| 443 | "A String", |
| 444 | ], |
| 445 | }, |
| 446 | }, |
| 447 | ], |
| 448 | }, |
| 449 | }, |
| 450 | "status": { # This contains item's status and any errors. # Status of the item. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 451 | # Output only field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 452 | "repositoryErrors": [ # Repository error reported by connector. |
| 453 | { # Errors when the connector is communicating to the source repository. |
| 454 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
| 455 | # of the message is 8192 characters. |
| 456 | "type": "A String", # Type of error. |
| 457 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
| 458 | }, |
| 459 | ], |
| 460 | "processingErrors": [ # Error details in case the item is in ERROR state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 461 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 462 | "errorMessage": "A String", # Description of the error. |
| 463 | "code": "A String", # Error code indicating the nature of the error. |
| 464 | "fieldViolations": [ # In case the item fields are invalid, this field contains the details |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 465 | # about the validation errors. |
| 466 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 467 | "description": "A String", # Description of the error. |
| 468 | "field": "A String", # Path of field with violation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 469 | }, |
| 470 | ], |
| 471 | }, |
| 472 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 473 | "code": "A String", # Status code. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 474 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 475 | "payload": "A String", # Additional state connector can store for this item. |
| 476 | # The maximum length is 10000 bytes. |
| 477 | "name": "A String", # Name of the Item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 478 | # datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 479 | # <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 480 | # The maximum length is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 481 | "acl": { # Access control list information for the item. For more information see # Access control list for this item. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 482 | # [Map ACLs](/cloud-search/docs/guides/acls). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 483 | "deniedReaders": [ # List of principals who are explicitly denied access to the item in search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 484 | # results. While principals are denied access by default, use denied readers |
| 485 | # to handle exceptions and override the list allowed readers. |
| 486 | # The maximum number of elements is 100. |
| 487 | { # Reference to a user, group, or domain. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 488 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 489 | # The name field must specify the user resource name with this format: |
| 490 | # identitysources/{source_id}/users/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 491 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 492 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 493 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 494 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 495 | # customer. |
| 496 | }, |
| 497 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 498 | # The name field must specify the group resource name with this format: |
| 499 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 500 | }, |
| 501 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 502 | "inheritAclFrom": "A String", # Name of the item to inherit the Access Permission List (ACL) from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 503 | # Note: ACL inheritance *only* provides access permissions |
| 504 | # to child items and does not define structural relationships, nor does it |
| 505 | # provide convenient ways to delete large groups of items. |
| 506 | # Deleting an ACL parent from the index only alters the access permissions of |
| 507 | # child items that reference the parent in the |
| 508 | # inheritAclFrom |
| 509 | # field. The item is still in the index, but may not |
| 510 | # visible in search results. By contrast, deletion of a container item |
| 511 | # also deletes all items that reference the container via the |
| 512 | # containerName |
| 513 | # field. |
| 514 | # The maximum length for this field is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 515 | "readers": [ # List of principals who are allowed to see the item in search results. |
| 516 | # Optional if inheriting permissions from another item or if the item |
| 517 | # is not intended to be visible, such as |
| 518 | # virtual |
| 519 | # containers. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 520 | # The maximum number of elements is 1000. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 521 | { # Reference to a user, group, or domain. |
| 522 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 523 | # The name field must specify the user resource name with this format: |
| 524 | # identitysources/{source_id}/users/{ID} |
| 525 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 526 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 527 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 528 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 529 | # customer. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 530 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 531 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 532 | # The name field must specify the group resource name with this format: |
| 533 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 534 | }, |
| 535 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 536 | "owners": [ # Optional. List of owners for the item. This field has no bearing on |
| 537 | # document access permissions. It does, however, offer |
| 538 | # a slight ranking boosts items where the querying user is an owner. |
| 539 | # The maximum number of elements is 5. |
| 540 | { # Reference to a user, group, or domain. |
| 541 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 542 | # The name field must specify the user resource name with this format: |
| 543 | # identitysources/{source_id}/users/{ID} |
| 544 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 545 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 546 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 547 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 548 | # customer. |
| 549 | }, |
| 550 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 551 | # The name field must specify the group resource name with this format: |
| 552 | # identitysources/{source_id}/groups/{ID} |
| 553 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 554 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 555 | "aclInheritanceType": "A String", # Sets the type of access rules to apply when an item inherits its ACL from a |
| 556 | # parent. This should always be set in tandem with the |
| 557 | # inheritAclFrom |
| 558 | # field. Also, when the |
| 559 | # inheritAclFrom field |
| 560 | # is set, this field should be set to a valid AclInheritanceType. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 561 | }, |
| 562 | }</pre> |
| 563 | </div> |
| 564 | |
| 565 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 566 | <code class="details" id="index">index(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 567 | <pre>Updates Item ACL, metadata, and |
| 568 | content. It will insert the Item if it |
| 569 | does not exist. |
| 570 | This method does not support partial updates. Fields with no provided |
| 571 | values are cleared out in the Cloud Search index. |
| 572 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 573 | This API requires an admin or service account to execute. The service |
| 574 | account used is the one whitelisted in the corresponding data source. |
| 575 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 576 | Args: |
| 577 | name: string, Name of the Item. Format: |
| 578 | datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 579 | <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 580 | The maximum length is 1536 characters. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 581 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 582 | The object takes the form of: |
| 583 | |
| 584 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 585 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 586 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 587 | # Otherwise, ignore this field. |
| 588 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 589 | "item": { # Represents a single object that is an item in the search index, such as a # Name of the item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 590 | # datasources/{source_id}/items/{item_id} |
| 591 | # file, folder, or a database record. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 592 | "content": { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable. |
| 593 | "hash": "A String", # Hashing info calculated and provided by the API client for content. |
| 594 | # Can be used with the items.push method to calculate modified state. |
| 595 | # The maximum length is 2048 characters. |
| 596 | "contentFormat": "A String", |
| 597 | "contentDataRef": { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method. |
| 598 | # This reference is created via upload |
| 599 | # method. |
| 600 | # Updating of item content may refer to this uploaded content via |
| 601 | # contentDataRef. |
| 602 | "name": "A String", # Name of the content reference. |
| 603 | # The maximum length is 2048 characters. |
| 604 | }, |
| 605 | "inlineContent": "A String", # Content that is supplied inlined within the update method. |
| 606 | # The maximum length is 102400 bytes (100 KiB). |
| 607 | }, |
| 608 | "metadata": { # Available metadata fields for the item. # Metadata information. |
| 609 | "sourceRepositoryUrl": "A String", # Link to the source repository serving the data. &#83;earch results apply |
| 610 | # this link to the title. |
| 611 | # Whitespace or special characters may cause Cloud &#83;earch result links to |
| 612 | # trigger a redirect notice; to avoid this, encode the URL. |
| 613 | # The maximum length is 2048 characters. |
| 614 | "updateTime": "A String", # The time when the item was last modified in the source repository. |
| 615 | "containerName": "A String", # The name of the container for this item. |
| 616 | # Deletion of the container item leads to automatic deletion of this |
| 617 | # item. Note: ACLs are not inherited from a container item. |
| 618 | # To provide ACL inheritance for an item, use the |
| 619 | # inheritAclFrom |
| 620 | # field. The maximum length is 1536 characters. |
| 621 | "objectType": "A String", # The type of the item. This should correspond to the name of an object |
| 622 | # definition in the schema registered for the data source. For example, if |
| 623 | # the schema for the data source contains an object definition with name |
| 624 | # 'document', then item indexing requests for objects of that type should set |
| 625 | # objectType to 'document'. |
| 626 | # The maximum length is 256 characters. |
| 627 | "searchQualityMetadata": { # Additional search quality metadata of the item. # Additional search quality metadata of the item |
| 628 | "quality": 3.14, # An indication of the quality of the item, used to influence search quality. |
| 629 | # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The |
| 630 | # default value is 0.0. |
| 631 | }, |
| 632 | "hash": "A String", # Hashing value provided by the API caller. |
| 633 | # This can be used with the |
| 634 | # items.push |
| 635 | # method to calculate modified state. |
| 636 | # The maximum length is 2048 characters. |
| 637 | "interactions": [ # A list of interactions for the item. Interactions are used to improve |
| 638 | # Search quality, but are not exposed to end users. |
| 639 | # The maximum number of elements is 1000. |
| 640 | { # Represents an interaction between a user and an item. |
| 641 | "interactionTime": "A String", # The time when the user acted on the item. If multiple actions of the same |
| 642 | # type exist for a single user, only the most recent action is recorded. |
| 643 | "principal": { # Reference to a user, group, or domain. # The user that acted on the item. |
| 644 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 645 | # The name field must specify the user resource name with this format: |
| 646 | # identitysources/{source_id}/users/{ID} |
| 647 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 648 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 649 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 650 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 651 | # customer. |
| 652 | }, |
| 653 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 654 | # The name field must specify the group resource name with this format: |
| 655 | # identitysources/{source_id}/groups/{ID} |
| 656 | }, |
| 657 | "type": "A String", |
| 658 | }, |
| 659 | ], |
| 660 | "keywords": [ # Additional keywords or phrases that should match the item. |
| 661 | # Used internally for user generated content. |
| 662 | # The maximum number of elements is 100. |
| 663 | # The maximum length is 8192 characters. |
| 664 | "A String", |
| 665 | ], |
| 666 | "mimeType": "A String", # The original mime-type of |
| 667 | # ItemContent.content |
| 668 | # in the source repository. |
| 669 | # The maximum length is 256 characters. |
| 670 | "title": "A String", # The title of the item. If given, this will be the displayed title of the |
| 671 | # Search result. |
| 672 | # The maximum length is 2048 characters. |
| 673 | "createTime": "A String", # The time when the item was created in the source repository. |
| 674 | "contentLanguage": "A String", # The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For |
| 675 | # more information, see |
| 676 | # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 677 | # The maximum length is 32 characters. |
| 678 | }, |
| 679 | "queue": "A String", # Queue this item belongs to. |
| 680 | # The maximum length is 100 characters. |
| 681 | "version": "A String", # Required. The indexing system stores the version from the datasource as a |
| 682 | # byte string and compares the Item version in the index |
| 683 | # to the version of the queued Item using lexical ordering. |
| 684 | # <br /><br /> |
| 685 | # Cloud Search Indexing won't index or delete any queued item with |
| 686 | # a version value that is less than or equal to the version of the |
| 687 | # currently indexed item. |
| 688 | # The maximum length for this field is 1024 bytes. |
| 689 | "itemType": "A String", # Type for this item. |
| 690 | "structuredData": { # Available structured data fields for the item. # The structured data for the item that should conform to a registered |
| 691 | # object definition in the schema for the data source. |
| 692 | "hash": "A String", # Hashing value provided by the API caller. |
| 693 | # This can be used with the |
| 694 | # items.push |
| 695 | # method to calculate modified state. |
| 696 | # The maximum length is 2048 characters. |
| 697 | "object": { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object |
| 698 | # definition in the schema for the data source. |
| 699 | "properties": [ # The properties for the object. |
| 700 | # The maximum number of elements is 1000. |
| 701 | { # A typed name-value pair for structured data. The type of the value should |
| 702 | # be the same as the registered type for the `name` property in the object |
| 703 | # definition of `objectType`. |
| 704 | "objectValues": { # List of object values. |
| 705 | "values": [ |
| 706 | # Object with schema name: StructuredDataObject |
| 707 | ], |
| 708 | }, |
| 709 | "enumValues": { # List of enum values. |
| 710 | "values": [ # The maximum allowable length for string values is 32 characters. |
| 711 | "A String", |
| 712 | ], |
| 713 | }, |
| 714 | "dateValues": { # List of date values. |
| 715 | "values": [ |
| 716 | { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. |
| 717 | "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. |
| 718 | "year": 42, # Year of date. Must be from 1 to 9999. |
| 719 | "month": 42, # Month of date. Must be from 1 to 12. |
| 720 | }, |
| 721 | ], |
| 722 | }, |
| 723 | "integerValues": { # List of integer values. |
| 724 | "values": [ |
| 725 | "A String", |
| 726 | ], |
| 727 | }, |
| 728 | "name": "A String", # The name of the property. This name should correspond to the name of the |
| 729 | # property that was registered for object definition in the schema. |
| 730 | # The maximum allowable length for this property is 256 characters. |
| 731 | "doubleValues": { # List of double values. |
| 732 | "values": [ |
| 733 | 3.14, |
| 734 | ], |
| 735 | }, |
| 736 | "booleanValue": True or False, |
| 737 | "textValues": { # List of text values. |
| 738 | "values": [ # The maximum allowable length for text values is 2048 characters. |
| 739 | "A String", |
| 740 | ], |
| 741 | }, |
| 742 | "htmlValues": { # List of html values. |
| 743 | "values": [ # The maximum allowable length for html values is 2048 characters. |
| 744 | "A String", |
| 745 | ], |
| 746 | }, |
| 747 | "timestampValues": { # List of timestamp values. |
| 748 | "values": [ |
| 749 | "A String", |
| 750 | ], |
| 751 | }, |
| 752 | }, |
| 753 | ], |
| 754 | }, |
| 755 | }, |
| 756 | "status": { # This contains item's status and any errors. # Status of the item. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 757 | # Output only field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 758 | "repositoryErrors": [ # Repository error reported by connector. |
| 759 | { # Errors when the connector is communicating to the source repository. |
| 760 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
| 761 | # of the message is 8192 characters. |
| 762 | "type": "A String", # Type of error. |
| 763 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
| 764 | }, |
| 765 | ], |
| 766 | "processingErrors": [ # Error details in case the item is in ERROR state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 767 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 768 | "errorMessage": "A String", # Description of the error. |
| 769 | "code": "A String", # Error code indicating the nature of the error. |
| 770 | "fieldViolations": [ # In case the item fields are invalid, this field contains the details |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 771 | # about the validation errors. |
| 772 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 773 | "description": "A String", # Description of the error. |
| 774 | "field": "A String", # Path of field with violation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 775 | }, |
| 776 | ], |
| 777 | }, |
| 778 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 779 | "code": "A String", # Status code. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 780 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 781 | "payload": "A String", # Additional state connector can store for this item. |
| 782 | # The maximum length is 10000 bytes. |
| 783 | "name": "A String", # Name of the Item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 784 | # datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 785 | # <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 786 | # The maximum length is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 787 | "acl": { # Access control list information for the item. For more information see # Access control list for this item. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 788 | # [Map ACLs](/cloud-search/docs/guides/acls). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 789 | "deniedReaders": [ # List of principals who are explicitly denied access to the item in search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 790 | # results. While principals are denied access by default, use denied readers |
| 791 | # to handle exceptions and override the list allowed readers. |
| 792 | # The maximum number of elements is 100. |
| 793 | { # Reference to a user, group, or domain. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 794 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 795 | # The name field must specify the user resource name with this format: |
| 796 | # identitysources/{source_id}/users/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 797 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 798 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 799 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 800 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 801 | # customer. |
| 802 | }, |
| 803 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 804 | # The name field must specify the group resource name with this format: |
| 805 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 806 | }, |
| 807 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 808 | "inheritAclFrom": "A String", # Name of the item to inherit the Access Permission List (ACL) from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 809 | # Note: ACL inheritance *only* provides access permissions |
| 810 | # to child items and does not define structural relationships, nor does it |
| 811 | # provide convenient ways to delete large groups of items. |
| 812 | # Deleting an ACL parent from the index only alters the access permissions of |
| 813 | # child items that reference the parent in the |
| 814 | # inheritAclFrom |
| 815 | # field. The item is still in the index, but may not |
| 816 | # visible in search results. By contrast, deletion of a container item |
| 817 | # also deletes all items that reference the container via the |
| 818 | # containerName |
| 819 | # field. |
| 820 | # The maximum length for this field is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 821 | "readers": [ # List of principals who are allowed to see the item in search results. |
| 822 | # Optional if inheriting permissions from another item or if the item |
| 823 | # is not intended to be visible, such as |
| 824 | # virtual |
| 825 | # containers. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 826 | # The maximum number of elements is 1000. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 827 | { # Reference to a user, group, or domain. |
| 828 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 829 | # The name field must specify the user resource name with this format: |
| 830 | # identitysources/{source_id}/users/{ID} |
| 831 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 832 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 833 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 834 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 835 | # customer. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 836 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 837 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 838 | # The name field must specify the group resource name with this format: |
| 839 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 840 | }, |
| 841 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 842 | "owners": [ # Optional. List of owners for the item. This field has no bearing on |
| 843 | # document access permissions. It does, however, offer |
| 844 | # a slight ranking boosts items where the querying user is an owner. |
| 845 | # The maximum number of elements is 5. |
| 846 | { # Reference to a user, group, or domain. |
| 847 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 848 | # The name field must specify the user resource name with this format: |
| 849 | # identitysources/{source_id}/users/{ID} |
| 850 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 851 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 852 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 853 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 854 | # customer. |
| 855 | }, |
| 856 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 857 | # The name field must specify the group resource name with this format: |
| 858 | # identitysources/{source_id}/groups/{ID} |
| 859 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 860 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 861 | "aclInheritanceType": "A String", # Sets the type of access rules to apply when an item inherits its ACL from a |
| 862 | # parent. This should always be set in tandem with the |
| 863 | # inheritAclFrom |
| 864 | # field. Also, when the |
| 865 | # inheritAclFrom field |
| 866 | # is set, this field should be set to a valid AclInheritanceType. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 867 | }, |
| 868 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 869 | "indexItemOptions": { |
| 870 | "allowUnknownGsuitePrincipals": True or False, # Specifies if the index request should allow gsuite principals that do not |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 871 | # exist or are deleted in the index request. |
| 872 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 873 | "connectorName": "A String", # Name of connector making this call. |
| 874 | # <br />Format: datasources/{source_id}/connectors/{ID} |
| 875 | "mode": "A String", # Required. The RequestMode for this request. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 876 | } |
| 877 | |
| 878 | x__xgafv: string, V1 error format. |
| 879 | Allowed values |
| 880 | 1 - v1 error format |
| 881 | 2 - v2 error format |
| 882 | |
| 883 | Returns: |
| 884 | An object of the form: |
| 885 | |
| 886 | { # This resource represents a long-running operation that is the result of a |
| 887 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 888 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 889 | # If `true`, the operation is completed, and either `error` or `response` is |
| 890 | # available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 891 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 892 | # method returns no data on success, such as `Delete`, the response is |
| 893 | # `google.protobuf.Empty`. If the original method is standard |
| 894 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 895 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 896 | # is the original method name. For example, if the original method name |
| 897 | # is `TakeSnapshot()`, the inferred response type is |
| 898 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 899 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 900 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 901 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 902 | # originally returns it. If you use the default HTTP mapping, the |
| 903 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 904 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 905 | # different programming environments, including REST APIs and RPC APIs. It is |
| 906 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 907 | # three pieces of data: error code, error message, and error details. |
| 908 | # |
| 909 | # You can find out more about this error model and how to work with it in the |
| 910 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 911 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 912 | # message types for APIs to use. |
| 913 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 914 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 915 | }, |
| 916 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 917 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 918 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 919 | # user-facing error message should be localized and sent in the |
| 920 | # google.rpc.Status.details field, or localized by the client. |
| 921 | }, |
| 922 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 923 | # contains progress information and common metadata such as create time. |
| 924 | # Some services might not provide such metadata. Any method that returns a |
| 925 | # long-running operation should document the metadata type, if any. |
| 926 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 927 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 928 | }</pre> |
| 929 | </div> |
| 930 | |
| 931 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 932 | <code class="details" id="list">list(name, connectorName=None, brief=None, pageToken=None, pageSize=None, debugOptions_enableDebugging=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 933 | <pre>Lists all or a subset of Item resources. |
| 934 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 935 | This API requires an admin or service account to execute. The service |
| 936 | account used is the one whitelisted in the corresponding data source. |
| 937 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 938 | Args: |
| 939 | name: string, Name of the Data Source to list Items. Format: |
| 940 | datasources/{source_id} (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 941 | connectorName: string, Name of connector making this call. |
| 942 | <br />Format: datasources/{source_id}/connectors/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 943 | brief: boolean, When set to true, the indexing system only populates the following fields: |
| 944 | name, |
| 945 | version, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 946 | queue. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 947 | metadata.hash, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 948 | metadata.title, |
| 949 | metadata.sourceRepositoryURL, |
| 950 | metadata.objectType, |
| 951 | metadata.createTime, |
| 952 | metadata.updateTime, |
| 953 | metadata.contentLanguage, |
| 954 | metadata.mimeType, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 955 | structured_data.hash, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 956 | content.hash, |
| 957 | itemType, |
| 958 | itemStatus.code, |
| 959 | itemStatus.processingError.code, |
| 960 | itemStatus.repositoryError.type, |
| 961 | <br />If this value is false, then all the fields are populated in Item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 962 | pageToken: string, The next_page_token value returned from a previous List request, if any. |
| 963 | pageSize: integer, Maximum number of items to fetch in a request. |
| 964 | The max value is 1000 when brief is true. The max value is 10 if brief |
| 965 | is false. |
| 966 | <br />The default value is 10 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 967 | debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. |
| 968 | Otherwise, ignore this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 969 | x__xgafv: string, V1 error format. |
| 970 | Allowed values |
| 971 | 1 - v1 error format |
| 972 | 2 - v2 error format |
| 973 | |
| 974 | Returns: |
| 975 | An object of the form: |
| 976 | |
| 977 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 978 | "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 979 | # more results in the list. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 980 | "items": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 981 | { # Represents a single object that is an item in the search index, such as a |
| 982 | # file, folder, or a database record. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 983 | "content": { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable. |
| 984 | "hash": "A String", # Hashing info calculated and provided by the API client for content. |
| 985 | # Can be used with the items.push method to calculate modified state. |
| 986 | # The maximum length is 2048 characters. |
| 987 | "contentFormat": "A String", |
| 988 | "contentDataRef": { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method. |
| 989 | # This reference is created via upload |
| 990 | # method. |
| 991 | # Updating of item content may refer to this uploaded content via |
| 992 | # contentDataRef. |
| 993 | "name": "A String", # Name of the content reference. |
| 994 | # The maximum length is 2048 characters. |
| 995 | }, |
| 996 | "inlineContent": "A String", # Content that is supplied inlined within the update method. |
| 997 | # The maximum length is 102400 bytes (100 KiB). |
| 998 | }, |
| 999 | "metadata": { # Available metadata fields for the item. # Metadata information. |
| 1000 | "sourceRepositoryUrl": "A String", # Link to the source repository serving the data. &#83;earch results apply |
| 1001 | # this link to the title. |
| 1002 | # Whitespace or special characters may cause Cloud &#83;earch result links to |
| 1003 | # trigger a redirect notice; to avoid this, encode the URL. |
| 1004 | # The maximum length is 2048 characters. |
| 1005 | "updateTime": "A String", # The time when the item was last modified in the source repository. |
| 1006 | "containerName": "A String", # The name of the container for this item. |
| 1007 | # Deletion of the container item leads to automatic deletion of this |
| 1008 | # item. Note: ACLs are not inherited from a container item. |
| 1009 | # To provide ACL inheritance for an item, use the |
| 1010 | # inheritAclFrom |
| 1011 | # field. The maximum length is 1536 characters. |
| 1012 | "objectType": "A String", # The type of the item. This should correspond to the name of an object |
| 1013 | # definition in the schema registered for the data source. For example, if |
| 1014 | # the schema for the data source contains an object definition with name |
| 1015 | # 'document', then item indexing requests for objects of that type should set |
| 1016 | # objectType to 'document'. |
| 1017 | # The maximum length is 256 characters. |
| 1018 | "searchQualityMetadata": { # Additional search quality metadata of the item. # Additional search quality metadata of the item |
| 1019 | "quality": 3.14, # An indication of the quality of the item, used to influence search quality. |
| 1020 | # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The |
| 1021 | # default value is 0.0. |
| 1022 | }, |
| 1023 | "hash": "A String", # Hashing value provided by the API caller. |
| 1024 | # This can be used with the |
| 1025 | # items.push |
| 1026 | # method to calculate modified state. |
| 1027 | # The maximum length is 2048 characters. |
| 1028 | "interactions": [ # A list of interactions for the item. Interactions are used to improve |
| 1029 | # Search quality, but are not exposed to end users. |
| 1030 | # The maximum number of elements is 1000. |
| 1031 | { # Represents an interaction between a user and an item. |
| 1032 | "interactionTime": "A String", # The time when the user acted on the item. If multiple actions of the same |
| 1033 | # type exist for a single user, only the most recent action is recorded. |
| 1034 | "principal": { # Reference to a user, group, or domain. # The user that acted on the item. |
| 1035 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1036 | # The name field must specify the user resource name with this format: |
| 1037 | # identitysources/{source_id}/users/{ID} |
| 1038 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1039 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1040 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1041 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1042 | # customer. |
| 1043 | }, |
| 1044 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1045 | # The name field must specify the group resource name with this format: |
| 1046 | # identitysources/{source_id}/groups/{ID} |
| 1047 | }, |
| 1048 | "type": "A String", |
| 1049 | }, |
| 1050 | ], |
| 1051 | "keywords": [ # Additional keywords or phrases that should match the item. |
| 1052 | # Used internally for user generated content. |
| 1053 | # The maximum number of elements is 100. |
| 1054 | # The maximum length is 8192 characters. |
| 1055 | "A String", |
| 1056 | ], |
| 1057 | "mimeType": "A String", # The original mime-type of |
| 1058 | # ItemContent.content |
| 1059 | # in the source repository. |
| 1060 | # The maximum length is 256 characters. |
| 1061 | "title": "A String", # The title of the item. If given, this will be the displayed title of the |
| 1062 | # Search result. |
| 1063 | # The maximum length is 2048 characters. |
| 1064 | "createTime": "A String", # The time when the item was created in the source repository. |
| 1065 | "contentLanguage": "A String", # The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For |
| 1066 | # more information, see |
| 1067 | # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 1068 | # The maximum length is 32 characters. |
| 1069 | }, |
| 1070 | "queue": "A String", # Queue this item belongs to. |
| 1071 | # The maximum length is 100 characters. |
| 1072 | "version": "A String", # Required. The indexing system stores the version from the datasource as a |
| 1073 | # byte string and compares the Item version in the index |
| 1074 | # to the version of the queued Item using lexical ordering. |
| 1075 | # <br /><br /> |
| 1076 | # Cloud Search Indexing won't index or delete any queued item with |
| 1077 | # a version value that is less than or equal to the version of the |
| 1078 | # currently indexed item. |
| 1079 | # The maximum length for this field is 1024 bytes. |
| 1080 | "itemType": "A String", # Type for this item. |
| 1081 | "structuredData": { # Available structured data fields for the item. # The structured data for the item that should conform to a registered |
| 1082 | # object definition in the schema for the data source. |
| 1083 | "hash": "A String", # Hashing value provided by the API caller. |
| 1084 | # This can be used with the |
| 1085 | # items.push |
| 1086 | # method to calculate modified state. |
| 1087 | # The maximum length is 2048 characters. |
| 1088 | "object": { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object |
| 1089 | # definition in the schema for the data source. |
| 1090 | "properties": [ # The properties for the object. |
| 1091 | # The maximum number of elements is 1000. |
| 1092 | { # A typed name-value pair for structured data. The type of the value should |
| 1093 | # be the same as the registered type for the `name` property in the object |
| 1094 | # definition of `objectType`. |
| 1095 | "objectValues": { # List of object values. |
| 1096 | "values": [ |
| 1097 | # Object with schema name: StructuredDataObject |
| 1098 | ], |
| 1099 | }, |
| 1100 | "enumValues": { # List of enum values. |
| 1101 | "values": [ # The maximum allowable length for string values is 32 characters. |
| 1102 | "A String", |
| 1103 | ], |
| 1104 | }, |
| 1105 | "dateValues": { # List of date values. |
| 1106 | "values": [ |
| 1107 | { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. |
| 1108 | "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. |
| 1109 | "year": 42, # Year of date. Must be from 1 to 9999. |
| 1110 | "month": 42, # Month of date. Must be from 1 to 12. |
| 1111 | }, |
| 1112 | ], |
| 1113 | }, |
| 1114 | "integerValues": { # List of integer values. |
| 1115 | "values": [ |
| 1116 | "A String", |
| 1117 | ], |
| 1118 | }, |
| 1119 | "name": "A String", # The name of the property. This name should correspond to the name of the |
| 1120 | # property that was registered for object definition in the schema. |
| 1121 | # The maximum allowable length for this property is 256 characters. |
| 1122 | "doubleValues": { # List of double values. |
| 1123 | "values": [ |
| 1124 | 3.14, |
| 1125 | ], |
| 1126 | }, |
| 1127 | "booleanValue": True or False, |
| 1128 | "textValues": { # List of text values. |
| 1129 | "values": [ # The maximum allowable length for text values is 2048 characters. |
| 1130 | "A String", |
| 1131 | ], |
| 1132 | }, |
| 1133 | "htmlValues": { # List of html values. |
| 1134 | "values": [ # The maximum allowable length for html values is 2048 characters. |
| 1135 | "A String", |
| 1136 | ], |
| 1137 | }, |
| 1138 | "timestampValues": { # List of timestamp values. |
| 1139 | "values": [ |
| 1140 | "A String", |
| 1141 | ], |
| 1142 | }, |
| 1143 | }, |
| 1144 | ], |
| 1145 | }, |
| 1146 | }, |
| 1147 | "status": { # This contains item's status and any errors. # Status of the item. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1148 | # Output only field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1149 | "repositoryErrors": [ # Repository error reported by connector. |
| 1150 | { # Errors when the connector is communicating to the source repository. |
| 1151 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
| 1152 | # of the message is 8192 characters. |
| 1153 | "type": "A String", # Type of error. |
| 1154 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
| 1155 | }, |
| 1156 | ], |
| 1157 | "processingErrors": [ # Error details in case the item is in ERROR state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1158 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1159 | "errorMessage": "A String", # Description of the error. |
| 1160 | "code": "A String", # Error code indicating the nature of the error. |
| 1161 | "fieldViolations": [ # In case the item fields are invalid, this field contains the details |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1162 | # about the validation errors. |
| 1163 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1164 | "description": "A String", # Description of the error. |
| 1165 | "field": "A String", # Path of field with violation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1166 | }, |
| 1167 | ], |
| 1168 | }, |
| 1169 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1170 | "code": "A String", # Status code. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1171 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1172 | "payload": "A String", # Additional state connector can store for this item. |
| 1173 | # The maximum length is 10000 bytes. |
| 1174 | "name": "A String", # Name of the Item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1175 | # datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1176 | # <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1177 | # The maximum length is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1178 | "acl": { # Access control list information for the item. For more information see # Access control list for this item. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1179 | # [Map ACLs](/cloud-search/docs/guides/acls). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1180 | "deniedReaders": [ # List of principals who are explicitly denied access to the item in search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1181 | # results. While principals are denied access by default, use denied readers |
| 1182 | # to handle exceptions and override the list allowed readers. |
| 1183 | # The maximum number of elements is 100. |
| 1184 | { # Reference to a user, group, or domain. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1185 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1186 | # The name field must specify the user resource name with this format: |
| 1187 | # identitysources/{source_id}/users/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1188 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1189 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1190 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1191 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1192 | # customer. |
| 1193 | }, |
| 1194 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1195 | # The name field must specify the group resource name with this format: |
| 1196 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1197 | }, |
| 1198 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1199 | "inheritAclFrom": "A String", # Name of the item to inherit the Access Permission List (ACL) from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1200 | # Note: ACL inheritance *only* provides access permissions |
| 1201 | # to child items and does not define structural relationships, nor does it |
| 1202 | # provide convenient ways to delete large groups of items. |
| 1203 | # Deleting an ACL parent from the index only alters the access permissions of |
| 1204 | # child items that reference the parent in the |
| 1205 | # inheritAclFrom |
| 1206 | # field. The item is still in the index, but may not |
| 1207 | # visible in search results. By contrast, deletion of a container item |
| 1208 | # also deletes all items that reference the container via the |
| 1209 | # containerName |
| 1210 | # field. |
| 1211 | # The maximum length for this field is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1212 | "readers": [ # List of principals who are allowed to see the item in search results. |
| 1213 | # Optional if inheriting permissions from another item or if the item |
| 1214 | # is not intended to be visible, such as |
| 1215 | # virtual |
| 1216 | # containers. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1217 | # The maximum number of elements is 1000. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1218 | { # Reference to a user, group, or domain. |
| 1219 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1220 | # The name field must specify the user resource name with this format: |
| 1221 | # identitysources/{source_id}/users/{ID} |
| 1222 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1223 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1224 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1225 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1226 | # customer. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1227 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1228 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1229 | # The name field must specify the group resource name with this format: |
| 1230 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1231 | }, |
| 1232 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1233 | "owners": [ # Optional. List of owners for the item. This field has no bearing on |
| 1234 | # document access permissions. It does, however, offer |
| 1235 | # a slight ranking boosts items where the querying user is an owner. |
| 1236 | # The maximum number of elements is 5. |
| 1237 | { # Reference to a user, group, or domain. |
| 1238 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1239 | # The name field must specify the user resource name with this format: |
| 1240 | # identitysources/{source_id}/users/{ID} |
| 1241 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1242 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1243 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1244 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1245 | # customer. |
| 1246 | }, |
| 1247 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1248 | # The name field must specify the group resource name with this format: |
| 1249 | # identitysources/{source_id}/groups/{ID} |
| 1250 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1251 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1252 | "aclInheritanceType": "A String", # Sets the type of access rules to apply when an item inherits its ACL from a |
| 1253 | # parent. This should always be set in tandem with the |
| 1254 | # inheritAclFrom |
| 1255 | # field. Also, when the |
| 1256 | # inheritAclFrom field |
| 1257 | # is set, this field should be set to a valid AclInheritanceType. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1258 | }, |
| 1259 | }, |
| 1260 | ], |
| 1261 | }</pre> |
| 1262 | </div> |
| 1263 | |
| 1264 | <div class="method"> |
| 1265 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 1266 | <pre>Retrieves the next page of results. |
| 1267 | |
| 1268 | Args: |
| 1269 | previous_request: The request for the previous page. (required) |
| 1270 | previous_response: The response from the request for the previous page. (required) |
| 1271 | |
| 1272 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1273 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1274 | page. Returns None if there are no more items in the collection. |
| 1275 | </pre> |
| 1276 | </div> |
| 1277 | |
| 1278 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1279 | <code class="details" id="poll">poll(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1280 | <pre>Polls for unreserved items from the indexing queue and marks a |
| 1281 | set as reserved, starting with items that have |
| 1282 | the oldest timestamp from the highest priority |
| 1283 | ItemStatus. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1284 | The priority order is as follows: <br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1285 | ERROR |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1286 | <br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1287 | MODIFIED |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1288 | <br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1289 | NEW_ITEM |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1290 | <br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1291 | ACCEPTED |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1292 | <br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1293 | Reserving items ensures that polling from other threads |
| 1294 | cannot create overlapping sets. |
| 1295 | |
| 1296 | After handling the reserved items, the client should put items back |
| 1297 | into the unreserved state, either by calling |
| 1298 | index, |
| 1299 | or by calling |
| 1300 | push with |
| 1301 | the type REQUEUE. |
| 1302 | |
| 1303 | Items automatically become available (unreserved) after 4 hours even if no |
| 1304 | update or push method is called. |
| 1305 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1306 | This API requires an admin or service account to execute. The service |
| 1307 | account used is the one whitelisted in the corresponding data source. |
| 1308 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1309 | Args: |
| 1310 | name: string, Name of the Data Source to poll items. |
| 1311 | Format: datasources/{source_id} (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1312 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1313 | The object takes the form of: |
| 1314 | |
| 1315 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1316 | "statusCodes": [ # Limit the items polled to the ones with these statuses. |
| 1317 | "A String", |
| 1318 | ], |
| 1319 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 1320 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1321 | # Otherwise, ignore this field. |
| 1322 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1323 | "connectorName": "A String", # Name of connector making this call. |
| 1324 | # <br />Format: datasources/{source_id}/connectors/{ID} |
| 1325 | "queue": "A String", # Queue name to fetch items from. If unspecified, PollItems will |
| 1326 | # fetch from 'default' queue. |
| 1327 | # The maximum length is 100 characters. |
| 1328 | "limit": 42, # Maximum number of items to return. |
| 1329 | # <br />The maximum value is 100 and the default value is 20. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1330 | } |
| 1331 | |
| 1332 | x__xgafv: string, V1 error format. |
| 1333 | Allowed values |
| 1334 | 1 - v1 error format |
| 1335 | 2 - v2 error format |
| 1336 | |
| 1337 | Returns: |
| 1338 | An object of the form: |
| 1339 | |
| 1340 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1341 | "items": [ # Set of items from the queue available for connector to process. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1342 | # <br />These items have the following subset of fields populated: <br /> |
| 1343 | # <br />version |
| 1344 | # <br />metadata.hash |
| 1345 | # <br />structured_data.hash |
| 1346 | # <br />content.hash |
| 1347 | # <br />payload |
| 1348 | # <br />status |
| 1349 | # <br />queue |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1350 | { # Represents a single object that is an item in the search index, such as a |
| 1351 | # file, folder, or a database record. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1352 | "content": { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable. |
| 1353 | "hash": "A String", # Hashing info calculated and provided by the API client for content. |
| 1354 | # Can be used with the items.push method to calculate modified state. |
| 1355 | # The maximum length is 2048 characters. |
| 1356 | "contentFormat": "A String", |
| 1357 | "contentDataRef": { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method. |
| 1358 | # This reference is created via upload |
| 1359 | # method. |
| 1360 | # Updating of item content may refer to this uploaded content via |
| 1361 | # contentDataRef. |
| 1362 | "name": "A String", # Name of the content reference. |
| 1363 | # The maximum length is 2048 characters. |
| 1364 | }, |
| 1365 | "inlineContent": "A String", # Content that is supplied inlined within the update method. |
| 1366 | # The maximum length is 102400 bytes (100 KiB). |
| 1367 | }, |
| 1368 | "metadata": { # Available metadata fields for the item. # Metadata information. |
| 1369 | "sourceRepositoryUrl": "A String", # Link to the source repository serving the data. &#83;earch results apply |
| 1370 | # this link to the title. |
| 1371 | # Whitespace or special characters may cause Cloud &#83;earch result links to |
| 1372 | # trigger a redirect notice; to avoid this, encode the URL. |
| 1373 | # The maximum length is 2048 characters. |
| 1374 | "updateTime": "A String", # The time when the item was last modified in the source repository. |
| 1375 | "containerName": "A String", # The name of the container for this item. |
| 1376 | # Deletion of the container item leads to automatic deletion of this |
| 1377 | # item. Note: ACLs are not inherited from a container item. |
| 1378 | # To provide ACL inheritance for an item, use the |
| 1379 | # inheritAclFrom |
| 1380 | # field. The maximum length is 1536 characters. |
| 1381 | "objectType": "A String", # The type of the item. This should correspond to the name of an object |
| 1382 | # definition in the schema registered for the data source. For example, if |
| 1383 | # the schema for the data source contains an object definition with name |
| 1384 | # 'document', then item indexing requests for objects of that type should set |
| 1385 | # objectType to 'document'. |
| 1386 | # The maximum length is 256 characters. |
| 1387 | "searchQualityMetadata": { # Additional search quality metadata of the item. # Additional search quality metadata of the item |
| 1388 | "quality": 3.14, # An indication of the quality of the item, used to influence search quality. |
| 1389 | # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The |
| 1390 | # default value is 0.0. |
| 1391 | }, |
| 1392 | "hash": "A String", # Hashing value provided by the API caller. |
| 1393 | # This can be used with the |
| 1394 | # items.push |
| 1395 | # method to calculate modified state. |
| 1396 | # The maximum length is 2048 characters. |
| 1397 | "interactions": [ # A list of interactions for the item. Interactions are used to improve |
| 1398 | # Search quality, but are not exposed to end users. |
| 1399 | # The maximum number of elements is 1000. |
| 1400 | { # Represents an interaction between a user and an item. |
| 1401 | "interactionTime": "A String", # The time when the user acted on the item. If multiple actions of the same |
| 1402 | # type exist for a single user, only the most recent action is recorded. |
| 1403 | "principal": { # Reference to a user, group, or domain. # The user that acted on the item. |
| 1404 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1405 | # The name field must specify the user resource name with this format: |
| 1406 | # identitysources/{source_id}/users/{ID} |
| 1407 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1408 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1409 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1410 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1411 | # customer. |
| 1412 | }, |
| 1413 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1414 | # The name field must specify the group resource name with this format: |
| 1415 | # identitysources/{source_id}/groups/{ID} |
| 1416 | }, |
| 1417 | "type": "A String", |
| 1418 | }, |
| 1419 | ], |
| 1420 | "keywords": [ # Additional keywords or phrases that should match the item. |
| 1421 | # Used internally for user generated content. |
| 1422 | # The maximum number of elements is 100. |
| 1423 | # The maximum length is 8192 characters. |
| 1424 | "A String", |
| 1425 | ], |
| 1426 | "mimeType": "A String", # The original mime-type of |
| 1427 | # ItemContent.content |
| 1428 | # in the source repository. |
| 1429 | # The maximum length is 256 characters. |
| 1430 | "title": "A String", # The title of the item. If given, this will be the displayed title of the |
| 1431 | # Search result. |
| 1432 | # The maximum length is 2048 characters. |
| 1433 | "createTime": "A String", # The time when the item was created in the source repository. |
| 1434 | "contentLanguage": "A String", # The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For |
| 1435 | # more information, see |
| 1436 | # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 1437 | # The maximum length is 32 characters. |
| 1438 | }, |
| 1439 | "queue": "A String", # Queue this item belongs to. |
| 1440 | # The maximum length is 100 characters. |
| 1441 | "version": "A String", # Required. The indexing system stores the version from the datasource as a |
| 1442 | # byte string and compares the Item version in the index |
| 1443 | # to the version of the queued Item using lexical ordering. |
| 1444 | # <br /><br /> |
| 1445 | # Cloud Search Indexing won't index or delete any queued item with |
| 1446 | # a version value that is less than or equal to the version of the |
| 1447 | # currently indexed item. |
| 1448 | # The maximum length for this field is 1024 bytes. |
| 1449 | "itemType": "A String", # Type for this item. |
| 1450 | "structuredData": { # Available structured data fields for the item. # The structured data for the item that should conform to a registered |
| 1451 | # object definition in the schema for the data source. |
| 1452 | "hash": "A String", # Hashing value provided by the API caller. |
| 1453 | # This can be used with the |
| 1454 | # items.push |
| 1455 | # method to calculate modified state. |
| 1456 | # The maximum length is 2048 characters. |
| 1457 | "object": { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object |
| 1458 | # definition in the schema for the data source. |
| 1459 | "properties": [ # The properties for the object. |
| 1460 | # The maximum number of elements is 1000. |
| 1461 | { # A typed name-value pair for structured data. The type of the value should |
| 1462 | # be the same as the registered type for the `name` property in the object |
| 1463 | # definition of `objectType`. |
| 1464 | "objectValues": { # List of object values. |
| 1465 | "values": [ |
| 1466 | # Object with schema name: StructuredDataObject |
| 1467 | ], |
| 1468 | }, |
| 1469 | "enumValues": { # List of enum values. |
| 1470 | "values": [ # The maximum allowable length for string values is 32 characters. |
| 1471 | "A String", |
| 1472 | ], |
| 1473 | }, |
| 1474 | "dateValues": { # List of date values. |
| 1475 | "values": [ |
| 1476 | { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. |
| 1477 | "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. |
| 1478 | "year": 42, # Year of date. Must be from 1 to 9999. |
| 1479 | "month": 42, # Month of date. Must be from 1 to 12. |
| 1480 | }, |
| 1481 | ], |
| 1482 | }, |
| 1483 | "integerValues": { # List of integer values. |
| 1484 | "values": [ |
| 1485 | "A String", |
| 1486 | ], |
| 1487 | }, |
| 1488 | "name": "A String", # The name of the property. This name should correspond to the name of the |
| 1489 | # property that was registered for object definition in the schema. |
| 1490 | # The maximum allowable length for this property is 256 characters. |
| 1491 | "doubleValues": { # List of double values. |
| 1492 | "values": [ |
| 1493 | 3.14, |
| 1494 | ], |
| 1495 | }, |
| 1496 | "booleanValue": True or False, |
| 1497 | "textValues": { # List of text values. |
| 1498 | "values": [ # The maximum allowable length for text values is 2048 characters. |
| 1499 | "A String", |
| 1500 | ], |
| 1501 | }, |
| 1502 | "htmlValues": { # List of html values. |
| 1503 | "values": [ # The maximum allowable length for html values is 2048 characters. |
| 1504 | "A String", |
| 1505 | ], |
| 1506 | }, |
| 1507 | "timestampValues": { # List of timestamp values. |
| 1508 | "values": [ |
| 1509 | "A String", |
| 1510 | ], |
| 1511 | }, |
| 1512 | }, |
| 1513 | ], |
| 1514 | }, |
| 1515 | }, |
| 1516 | "status": { # This contains item's status and any errors. # Status of the item. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1517 | # Output only field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1518 | "repositoryErrors": [ # Repository error reported by connector. |
| 1519 | { # Errors when the connector is communicating to the source repository. |
| 1520 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
| 1521 | # of the message is 8192 characters. |
| 1522 | "type": "A String", # Type of error. |
| 1523 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
| 1524 | }, |
| 1525 | ], |
| 1526 | "processingErrors": [ # Error details in case the item is in ERROR state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1527 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1528 | "errorMessage": "A String", # Description of the error. |
| 1529 | "code": "A String", # Error code indicating the nature of the error. |
| 1530 | "fieldViolations": [ # In case the item fields are invalid, this field contains the details |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1531 | # about the validation errors. |
| 1532 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1533 | "description": "A String", # Description of the error. |
| 1534 | "field": "A String", # Path of field with violation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1535 | }, |
| 1536 | ], |
| 1537 | }, |
| 1538 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1539 | "code": "A String", # Status code. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1540 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1541 | "payload": "A String", # Additional state connector can store for this item. |
| 1542 | # The maximum length is 10000 bytes. |
| 1543 | "name": "A String", # Name of the Item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1544 | # datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1545 | # <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1546 | # The maximum length is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1547 | "acl": { # Access control list information for the item. For more information see # Access control list for this item. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1548 | # [Map ACLs](/cloud-search/docs/guides/acls). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1549 | "deniedReaders": [ # List of principals who are explicitly denied access to the item in search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1550 | # results. While principals are denied access by default, use denied readers |
| 1551 | # to handle exceptions and override the list allowed readers. |
| 1552 | # The maximum number of elements is 100. |
| 1553 | { # Reference to a user, group, or domain. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1554 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1555 | # The name field must specify the user resource name with this format: |
| 1556 | # identitysources/{source_id}/users/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1557 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1558 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1559 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1560 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1561 | # customer. |
| 1562 | }, |
| 1563 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1564 | # The name field must specify the group resource name with this format: |
| 1565 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1566 | }, |
| 1567 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1568 | "inheritAclFrom": "A String", # Name of the item to inherit the Access Permission List (ACL) from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1569 | # Note: ACL inheritance *only* provides access permissions |
| 1570 | # to child items and does not define structural relationships, nor does it |
| 1571 | # provide convenient ways to delete large groups of items. |
| 1572 | # Deleting an ACL parent from the index only alters the access permissions of |
| 1573 | # child items that reference the parent in the |
| 1574 | # inheritAclFrom |
| 1575 | # field. The item is still in the index, but may not |
| 1576 | # visible in search results. By contrast, deletion of a container item |
| 1577 | # also deletes all items that reference the container via the |
| 1578 | # containerName |
| 1579 | # field. |
| 1580 | # The maximum length for this field is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1581 | "readers": [ # List of principals who are allowed to see the item in search results. |
| 1582 | # Optional if inheriting permissions from another item or if the item |
| 1583 | # is not intended to be visible, such as |
| 1584 | # virtual |
| 1585 | # containers. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1586 | # The maximum number of elements is 1000. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1587 | { # Reference to a user, group, or domain. |
| 1588 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1589 | # The name field must specify the user resource name with this format: |
| 1590 | # identitysources/{source_id}/users/{ID} |
| 1591 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1592 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1593 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1594 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1595 | # customer. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1596 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1597 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1598 | # The name field must specify the group resource name with this format: |
| 1599 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1600 | }, |
| 1601 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1602 | "owners": [ # Optional. List of owners for the item. This field has no bearing on |
| 1603 | # document access permissions. It does, however, offer |
| 1604 | # a slight ranking boosts items where the querying user is an owner. |
| 1605 | # The maximum number of elements is 5. |
| 1606 | { # Reference to a user, group, or domain. |
| 1607 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1608 | # The name field must specify the user resource name with this format: |
| 1609 | # identitysources/{source_id}/users/{ID} |
| 1610 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1611 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1612 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1613 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1614 | # customer. |
| 1615 | }, |
| 1616 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1617 | # The name field must specify the group resource name with this format: |
| 1618 | # identitysources/{source_id}/groups/{ID} |
| 1619 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1620 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1621 | "aclInheritanceType": "A String", # Sets the type of access rules to apply when an item inherits its ACL from a |
| 1622 | # parent. This should always be set in tandem with the |
| 1623 | # inheritAclFrom |
| 1624 | # field. Also, when the |
| 1625 | # inheritAclFrom field |
| 1626 | # is set, this field should be set to a valid AclInheritanceType. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1627 | }, |
| 1628 | }, |
| 1629 | ], |
| 1630 | }</pre> |
| 1631 | </div> |
| 1632 | |
| 1633 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1634 | <code class="details" id="push">push(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1635 | <pre>Pushes an item onto a queue for later polling and updating. |
| 1636 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1637 | This API requires an admin or service account to execute. The service |
| 1638 | account used is the one whitelisted in the corresponding data source. |
| 1639 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1640 | Args: |
| 1641 | name: string, Name of the item to |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1642 | push into the indexing queue.<br /> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1643 | Format: datasources/{source_id}/items/{ID} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1644 | <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1645 | The maximum length is 1536 characters. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1646 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1647 | The object takes the form of: |
| 1648 | |
| 1649 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1650 | "connectorName": "A String", # Name of connector making this call. |
| 1651 | # <br />Format: datasources/{source_id}/connectors/{ID} |
| 1652 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 1653 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
| 1654 | # Otherwise, ignore this field. |
| 1655 | }, |
| 1656 | "item": { # Represents an item to be pushed to the indexing queue. # Item to push onto the queue. |
| 1657 | "metadataHash": "A String", # Metadata hash of the item according to the repository. If specified, this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1658 | # is used to determine how to modify this |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1659 | # item's status. Setting this field and the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1660 | # type field results in argument |
| 1661 | # error. |
| 1662 | # The maximum length is 2048 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1663 | "payload": "A String", # Provides additional document state information for the connector, |
| 1664 | # such as an alternate repository ID and other metadata. |
| 1665 | # The maximum length is 8192 bytes. |
| 1666 | "repositoryError": { # Errors when the connector is communicating to the source repository. # Populate this field to store Connector or repository error details. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1667 | # This information is displayed in the Admin Console. |
| 1668 | # This field may only be populated when the |
| 1669 | # Type is |
| 1670 | # REPOSITORY_ERROR. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1671 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1672 | # of the message is 8192 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1673 | "type": "A String", # Type of error. |
| 1674 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1675 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1676 | "type": "A String", # The type of the push operation that defines the push behavior. |
| 1677 | "queue": "A String", # Queue to which this item belongs to. The <code>default</code> queue is |
| 1678 | # chosen if this field is not specified. The maximum length is |
| 1679 | # 512 characters. |
| 1680 | "structuredDataHash": "A String", # Structured data hash of the item according to the repository. If specified, |
| 1681 | # this is used to determine how to modify this item's status. Setting this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1682 | # field and the type field |
| 1683 | # results in argument error. |
| 1684 | # The maximum length is 2048 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1685 | "contentHash": "A String", # Content hash of the item according to the repository. If specified, this is |
| 1686 | # used to determine how to modify this |
| 1687 | # item's status. Setting this field and the |
| 1688 | # type field results in argument |
| 1689 | # error. |
| 1690 | # The maximum length is 2048 characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1691 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1692 | } |
| 1693 | |
| 1694 | x__xgafv: string, V1 error format. |
| 1695 | Allowed values |
| 1696 | 1 - v1 error format |
| 1697 | 2 - v2 error format |
| 1698 | |
| 1699 | Returns: |
| 1700 | An object of the form: |
| 1701 | |
| 1702 | { # Represents a single object that is an item in the search index, such as a |
| 1703 | # file, folder, or a database record. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1704 | "content": { # Content of an item to be indexed and surfaced by Cloud Search. # Item content to be indexed and made text searchable. |
| 1705 | "hash": "A String", # Hashing info calculated and provided by the API client for content. |
| 1706 | # Can be used with the items.push method to calculate modified state. |
| 1707 | # The maximum length is 2048 characters. |
| 1708 | "contentFormat": "A String", |
| 1709 | "contentDataRef": { # Represents an upload session reference. # Upload reference ID of a previously uploaded content via write method. |
| 1710 | # This reference is created via upload |
| 1711 | # method. |
| 1712 | # Updating of item content may refer to this uploaded content via |
| 1713 | # contentDataRef. |
| 1714 | "name": "A String", # Name of the content reference. |
| 1715 | # The maximum length is 2048 characters. |
| 1716 | }, |
| 1717 | "inlineContent": "A String", # Content that is supplied inlined within the update method. |
| 1718 | # The maximum length is 102400 bytes (100 KiB). |
| 1719 | }, |
| 1720 | "metadata": { # Available metadata fields for the item. # Metadata information. |
| 1721 | "sourceRepositoryUrl": "A String", # Link to the source repository serving the data. &#83;earch results apply |
| 1722 | # this link to the title. |
| 1723 | # Whitespace or special characters may cause Cloud &#83;earch result links to |
| 1724 | # trigger a redirect notice; to avoid this, encode the URL. |
| 1725 | # The maximum length is 2048 characters. |
| 1726 | "updateTime": "A String", # The time when the item was last modified in the source repository. |
| 1727 | "containerName": "A String", # The name of the container for this item. |
| 1728 | # Deletion of the container item leads to automatic deletion of this |
| 1729 | # item. Note: ACLs are not inherited from a container item. |
| 1730 | # To provide ACL inheritance for an item, use the |
| 1731 | # inheritAclFrom |
| 1732 | # field. The maximum length is 1536 characters. |
| 1733 | "objectType": "A String", # The type of the item. This should correspond to the name of an object |
| 1734 | # definition in the schema registered for the data source. For example, if |
| 1735 | # the schema for the data source contains an object definition with name |
| 1736 | # 'document', then item indexing requests for objects of that type should set |
| 1737 | # objectType to 'document'. |
| 1738 | # The maximum length is 256 characters. |
| 1739 | "searchQualityMetadata": { # Additional search quality metadata of the item. # Additional search quality metadata of the item |
| 1740 | "quality": 3.14, # An indication of the quality of the item, used to influence search quality. |
| 1741 | # Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The |
| 1742 | # default value is 0.0. |
| 1743 | }, |
| 1744 | "hash": "A String", # Hashing value provided by the API caller. |
| 1745 | # This can be used with the |
| 1746 | # items.push |
| 1747 | # method to calculate modified state. |
| 1748 | # The maximum length is 2048 characters. |
| 1749 | "interactions": [ # A list of interactions for the item. Interactions are used to improve |
| 1750 | # Search quality, but are not exposed to end users. |
| 1751 | # The maximum number of elements is 1000. |
| 1752 | { # Represents an interaction between a user and an item. |
| 1753 | "interactionTime": "A String", # The time when the user acted on the item. If multiple actions of the same |
| 1754 | # type exist for a single user, only the most recent action is recorded. |
| 1755 | "principal": { # Reference to a user, group, or domain. # The user that acted on the item. |
| 1756 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1757 | # The name field must specify the user resource name with this format: |
| 1758 | # identitysources/{source_id}/users/{ID} |
| 1759 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1760 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1761 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1762 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1763 | # customer. |
| 1764 | }, |
| 1765 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1766 | # The name field must specify the group resource name with this format: |
| 1767 | # identitysources/{source_id}/groups/{ID} |
| 1768 | }, |
| 1769 | "type": "A String", |
| 1770 | }, |
| 1771 | ], |
| 1772 | "keywords": [ # Additional keywords or phrases that should match the item. |
| 1773 | # Used internally for user generated content. |
| 1774 | # The maximum number of elements is 100. |
| 1775 | # The maximum length is 8192 characters. |
| 1776 | "A String", |
| 1777 | ], |
| 1778 | "mimeType": "A String", # The original mime-type of |
| 1779 | # ItemContent.content |
| 1780 | # in the source repository. |
| 1781 | # The maximum length is 256 characters. |
| 1782 | "title": "A String", # The title of the item. If given, this will be the displayed title of the |
| 1783 | # Search result. |
| 1784 | # The maximum length is 2048 characters. |
| 1785 | "createTime": "A String", # The time when the item was created in the source repository. |
| 1786 | "contentLanguage": "A String", # The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For |
| 1787 | # more information, see |
| 1788 | # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 1789 | # The maximum length is 32 characters. |
| 1790 | }, |
| 1791 | "queue": "A String", # Queue this item belongs to. |
| 1792 | # The maximum length is 100 characters. |
| 1793 | "version": "A String", # Required. The indexing system stores the version from the datasource as a |
| 1794 | # byte string and compares the Item version in the index |
| 1795 | # to the version of the queued Item using lexical ordering. |
| 1796 | # <br /><br /> |
| 1797 | # Cloud Search Indexing won't index or delete any queued item with |
| 1798 | # a version value that is less than or equal to the version of the |
| 1799 | # currently indexed item. |
| 1800 | # The maximum length for this field is 1024 bytes. |
| 1801 | "itemType": "A String", # Type for this item. |
| 1802 | "structuredData": { # Available structured data fields for the item. # The structured data for the item that should conform to a registered |
| 1803 | # object definition in the schema for the data source. |
| 1804 | "hash": "A String", # Hashing value provided by the API caller. |
| 1805 | # This can be used with the |
| 1806 | # items.push |
| 1807 | # method to calculate modified state. |
| 1808 | # The maximum length is 2048 characters. |
| 1809 | "object": { # A structured data object consisting of named properties. # The structured data object that should conform to a registered object |
| 1810 | # definition in the schema for the data source. |
| 1811 | "properties": [ # The properties for the object. |
| 1812 | # The maximum number of elements is 1000. |
| 1813 | { # A typed name-value pair for structured data. The type of the value should |
| 1814 | # be the same as the registered type for the `name` property in the object |
| 1815 | # definition of `objectType`. |
| 1816 | "objectValues": { # List of object values. |
| 1817 | "values": [ |
| 1818 | # Object with schema name: StructuredDataObject |
| 1819 | ], |
| 1820 | }, |
| 1821 | "enumValues": { # List of enum values. |
| 1822 | "values": [ # The maximum allowable length for string values is 32 characters. |
| 1823 | "A String", |
| 1824 | ], |
| 1825 | }, |
| 1826 | "dateValues": { # List of date values. |
| 1827 | "values": [ |
| 1828 | { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. |
| 1829 | "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month. |
| 1830 | "year": 42, # Year of date. Must be from 1 to 9999. |
| 1831 | "month": 42, # Month of date. Must be from 1 to 12. |
| 1832 | }, |
| 1833 | ], |
| 1834 | }, |
| 1835 | "integerValues": { # List of integer values. |
| 1836 | "values": [ |
| 1837 | "A String", |
| 1838 | ], |
| 1839 | }, |
| 1840 | "name": "A String", # The name of the property. This name should correspond to the name of the |
| 1841 | # property that was registered for object definition in the schema. |
| 1842 | # The maximum allowable length for this property is 256 characters. |
| 1843 | "doubleValues": { # List of double values. |
| 1844 | "values": [ |
| 1845 | 3.14, |
| 1846 | ], |
| 1847 | }, |
| 1848 | "booleanValue": True or False, |
| 1849 | "textValues": { # List of text values. |
| 1850 | "values": [ # The maximum allowable length for text values is 2048 characters. |
| 1851 | "A String", |
| 1852 | ], |
| 1853 | }, |
| 1854 | "htmlValues": { # List of html values. |
| 1855 | "values": [ # The maximum allowable length for html values is 2048 characters. |
| 1856 | "A String", |
| 1857 | ], |
| 1858 | }, |
| 1859 | "timestampValues": { # List of timestamp values. |
| 1860 | "values": [ |
| 1861 | "A String", |
| 1862 | ], |
| 1863 | }, |
| 1864 | }, |
| 1865 | ], |
| 1866 | }, |
| 1867 | }, |
| 1868 | "status": { # This contains item's status and any errors. # Status of the item. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1869 | # Output only field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1870 | "repositoryErrors": [ # Repository error reported by connector. |
| 1871 | { # Errors when the connector is communicating to the source repository. |
| 1872 | "errorMessage": "A String", # Message that describes the error. The maximum allowable length |
| 1873 | # of the message is 8192 characters. |
| 1874 | "type": "A String", # Type of error. |
| 1875 | "httpStatusCode": 42, # Error codes. Matches the definition of HTTP status codes. |
| 1876 | }, |
| 1877 | ], |
| 1878 | "processingErrors": [ # Error details in case the item is in ERROR state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1879 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1880 | "errorMessage": "A String", # Description of the error. |
| 1881 | "code": "A String", # Error code indicating the nature of the error. |
| 1882 | "fieldViolations": [ # In case the item fields are invalid, this field contains the details |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1883 | # about the validation errors. |
| 1884 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1885 | "description": "A String", # Description of the error. |
| 1886 | "field": "A String", # Path of field with violation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1887 | }, |
| 1888 | ], |
| 1889 | }, |
| 1890 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1891 | "code": "A String", # Status code. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1892 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1893 | "payload": "A String", # Additional state connector can store for this item. |
| 1894 | # The maximum length is 10000 bytes. |
| 1895 | "name": "A String", # Name of the Item. Format: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1896 | # datasources/{source_id}/items/{item_id} |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1897 | # <br />This is a required field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1898 | # The maximum length is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1899 | "acl": { # Access control list information for the item. For more information see # Access control list for this item. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1900 | # [Map ACLs](/cloud-search/docs/guides/acls). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1901 | "deniedReaders": [ # List of principals who are explicitly denied access to the item in search |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1902 | # results. While principals are denied access by default, use denied readers |
| 1903 | # to handle exceptions and override the list allowed readers. |
| 1904 | # The maximum number of elements is 100. |
| 1905 | { # Reference to a user, group, or domain. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1906 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1907 | # The name field must specify the user resource name with this format: |
| 1908 | # identitysources/{source_id}/users/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1909 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1910 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1911 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1912 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1913 | # customer. |
| 1914 | }, |
| 1915 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1916 | # The name field must specify the group resource name with this format: |
| 1917 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1918 | }, |
| 1919 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1920 | "inheritAclFrom": "A String", # Name of the item to inherit the Access Permission List (ACL) from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1921 | # Note: ACL inheritance *only* provides access permissions |
| 1922 | # to child items and does not define structural relationships, nor does it |
| 1923 | # provide convenient ways to delete large groups of items. |
| 1924 | # Deleting an ACL parent from the index only alters the access permissions of |
| 1925 | # child items that reference the parent in the |
| 1926 | # inheritAclFrom |
| 1927 | # field. The item is still in the index, but may not |
| 1928 | # visible in search results. By contrast, deletion of a container item |
| 1929 | # also deletes all items that reference the container via the |
| 1930 | # containerName |
| 1931 | # field. |
| 1932 | # The maximum length for this field is 1536 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1933 | "readers": [ # List of principals who are allowed to see the item in search results. |
| 1934 | # Optional if inheriting permissions from another item or if the item |
| 1935 | # is not intended to be visible, such as |
| 1936 | # virtual |
| 1937 | # containers. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1938 | # The maximum number of elements is 1000. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1939 | { # Reference to a user, group, or domain. |
| 1940 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1941 | # The name field must specify the user resource name with this format: |
| 1942 | # identitysources/{source_id}/users/{ID} |
| 1943 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1944 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1945 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1946 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1947 | # customer. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1948 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1949 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1950 | # The name field must specify the group resource name with this format: |
| 1951 | # identitysources/{source_id}/groups/{ID} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1952 | }, |
| 1953 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1954 | "owners": [ # Optional. List of owners for the item. This field has no bearing on |
| 1955 | # document access permissions. It does, however, offer |
| 1956 | # a slight ranking boosts items where the querying user is an owner. |
| 1957 | # The maximum number of elements is 5. |
| 1958 | { # Reference to a user, group, or domain. |
| 1959 | "userResourceName": "A String", # This principal is a user identified using an external identity. |
| 1960 | # The name field must specify the user resource name with this format: |
| 1961 | # identitysources/{source_id}/users/{ID} |
| 1962 | "gsuitePrincipal": { # This principal is a GSuite user, group or domain. |
| 1963 | "gsuiteGroupEmail": "A String", # This principal references a G Suite group account |
| 1964 | "gsuiteUserEmail": "A String", # This principal references a G Suite user account |
| 1965 | "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the |
| 1966 | # customer. |
| 1967 | }, |
| 1968 | "groupResourceName": "A String", # This principal is a group identified using an external identity. |
| 1969 | # The name field must specify the group resource name with this format: |
| 1970 | # identitysources/{source_id}/groups/{ID} |
| 1971 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1972 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1973 | "aclInheritanceType": "A String", # Sets the type of access rules to apply when an item inherits its ACL from a |
| 1974 | # parent. This should always be set in tandem with the |
| 1975 | # inheritAclFrom |
| 1976 | # field. Also, when the |
| 1977 | # inheritAclFrom field |
| 1978 | # is set, this field should be set to a valid AclInheritanceType. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1979 | }, |
| 1980 | }</pre> |
| 1981 | </div> |
| 1982 | |
| 1983 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1984 | <code class="details" id="unreserve">unreserve(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1985 | <pre>Unreserves all items from a queue, making them all eligible to be |
| 1986 | polled. This method is useful for resetting the indexing queue |
| 1987 | after a connector has been restarted. |
| 1988 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1989 | This API requires an admin or service account to execute. The service |
| 1990 | account used is the one whitelisted in the corresponding data source. |
| 1991 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1992 | Args: |
| 1993 | name: string, Name of the Data Source to unreserve all items. |
| 1994 | Format: datasources/{source_id} (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1995 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1996 | The object takes the form of: |
| 1997 | |
| 1998 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 1999 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 2000 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2001 | # Otherwise, ignore this field. |
| 2002 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2003 | "connectorName": "A String", # Name of connector making this call. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2004 | # <br />Format: datasources/{source_id}/connectors/{ID} |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2005 | "queue": "A String", # Name of a queue to unreserve items from. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2006 | } |
| 2007 | |
| 2008 | x__xgafv: string, V1 error format. |
| 2009 | Allowed values |
| 2010 | 1 - v1 error format |
| 2011 | 2 - v2 error format |
| 2012 | |
| 2013 | Returns: |
| 2014 | An object of the form: |
| 2015 | |
| 2016 | { # This resource represents a long-running operation that is the result of a |
| 2017 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2018 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2019 | # If `true`, the operation is completed, and either `error` or `response` is |
| 2020 | # available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2021 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2022 | # method returns no data on success, such as `Delete`, the response is |
| 2023 | # `google.protobuf.Empty`. If the original method is standard |
| 2024 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 2025 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 2026 | # is the original method name. For example, if the original method name |
| 2027 | # is `TakeSnapshot()`, the inferred response type is |
| 2028 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2029 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2030 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2031 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2032 | # originally returns it. If you use the default HTTP mapping, the |
| 2033 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2034 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2035 | # different programming environments, including REST APIs and RPC APIs. It is |
| 2036 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 2037 | # three pieces of data: error code, error message, and error details. |
| 2038 | # |
| 2039 | # You can find out more about this error model and how to work with it in the |
| 2040 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2041 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2042 | # message types for APIs to use. |
| 2043 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2044 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2045 | }, |
| 2046 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2047 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 2048 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 2049 | # user-facing error message should be localized and sent in the |
| 2050 | # google.rpc.Status.details field, or localized by the client. |
| 2051 | }, |
| 2052 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 2053 | # contains progress information and common metadata such as create time. |
| 2054 | # Some services might not provide such metadata. Any method that returns a |
| 2055 | # long-running operation should document the metadata type, if any. |
| 2056 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2057 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2058 | }</pre> |
| 2059 | </div> |
| 2060 | |
| 2061 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2062 | <code class="details" id="upload">upload(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2063 | <pre>Creates an upload session for uploading item content. For items smaller |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2064 | than 100 KB, it's easier to embed the content |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2065 | inline within |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2066 | an index request. |
| 2067 | |
| 2068 | This API requires an admin or service account to execute. The service |
| 2069 | account used is the one whitelisted in the corresponding data source. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2070 | |
| 2071 | Args: |
| 2072 | name: string, Name of the Item to start a resumable upload. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2073 | Format: datasources/{source_id}/items/{item_id}. |
| 2074 | The maximum length is 1536 bytes. (required) |
| 2075 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2076 | The object takes the form of: |
| 2077 | |
| 2078 | { # Start upload file request. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2079 | "connectorName": "A String", # Name of connector making this call. |
| 2080 | # <br />Format: datasources/{source_id}/connectors/{ID} |
| 2081 | "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. |
| 2082 | "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2083 | # Otherwise, ignore this field. |
| 2084 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2085 | } |
| 2086 | |
| 2087 | x__xgafv: string, V1 error format. |
| 2088 | Allowed values |
| 2089 | 1 - v1 error format |
| 2090 | 2 - v2 error format |
| 2091 | |
| 2092 | Returns: |
| 2093 | An object of the form: |
| 2094 | |
| 2095 | { # Represents an upload session reference. |
| 2096 | # This reference is created via upload |
| 2097 | # method. |
| 2098 | # Updating of item content may refer to this uploaded content via |
| 2099 | # contentDataRef. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 2100 | "name": "A String", # Name of the content reference. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2101 | # The maximum length is 2048 characters. |
| 2102 | }</pre> |
| 2103 | </div> |
| 2104 | |
| 2105 | </body></html> |