Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.notebooks.html

raw
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="discoveryengine_v1alpha.html">Discovery Engine API</a> . <a href="discoveryengine_v1alpha.projects.html">projects</a> . <a href="discoveryengine_v1alpha.projects.locations.html">locations</a> . <a href="discoveryengine_v1alpha.projects.locations.notebooks.html">notebooks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="discoveryengine_v1alpha.projects.locations.notebooks.audioOverviews.html">audioOverviews()</a></code>
79 </p>
80 <p class="firstline">Returns the audioOverviews Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="discoveryengine_v1alpha.projects.locations.notebooks.sources.html">sources()</a></code>
84 </p>
85 <p class="firstline">Returns the sources Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Batch deletes Notebooks.</p>
90 <p class="toc_element">
91 <code><a href="#close">close()</a></code></p>
92 <p class="firstline">Close httplib2 connections.</p>
93 <p class="toc_element">
94 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Creates a notebook.</p>
96 <p class="toc_element">
97 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
98 <p class="firstline">Gets a notebook.</p>
99 <p class="toc_element">
100 <code><a href="#listRecentlyViewed">listRecentlyViewed(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Lists the notebooks ordered by last view time.</p>
102 <p class="toc_element">
103 <code><a href="#listRecentlyViewed_next">listRecentlyViewed_next()</a></code></p>
104 <p class="firstline">Retrieves the next page of results.</p>
105 <p class="toc_element">
106 <code><a href="#share">share(name, body=None, x__xgafv=None)</a></code></p>
107 <p class="firstline">Shares a notebook to other accounts.</p>
108 <h3>Method Details</h3>
109 <div class="method">
110 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
111 <pre>Batch deletes Notebooks.
112
113 Args:
114 parent: string, Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. (required)
115 body: object, The request body.
116 The object takes the form of:
117
118 { # Request for NotebookService.BatchDeleteNotebooks method.
119 &quot;names&quot;: [ # Required. Full resource names of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`.
120 &quot;A String&quot;,
121 ],
122 }
123
124 x__xgafv: string, V1 error format.
125 Allowed values
126 1 - v1 error format
127 2 - v2 error format
128
129 Returns:
130 An object of the form:
131
132 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
133 }</pre>
134 </div>
135
136 <div class="method">
137 <code class="details" id="close">close()</code>
138 <pre>Close httplib2 connections.</pre>
139 </div>
140
141 <div class="method">
142 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
143 <pre>Creates a notebook.
144
145 Args:
146 parent: string, Required. The parent resource name, such as `projects/{project}/locations/{location}`. (required)
147 body: object, The request body.
148 The object takes the form of:
149
150 { # Notebook is a resource where users can store their content (as sources) and interacts with the content.
151 &quot;cmekConfig&quot;: { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook.
152 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
153 },
154 &quot;emoji&quot;: &quot;A String&quot;, # Output only. The emoji of the notebook.
155 &quot;metadata&quot;: { # Metadata for a notebook. # Output only. The metadata of the notebook.
156 &quot;createTime&quot;: &quot;A String&quot;, # The time at which this project was created.
157 &quot;isShareable&quot;: True or False, # True if the project is shareable.
158 &quot;isShared&quot;: True or False, # True if this project is currently shared with other people, false otherwise.
159 &quot;lastViewed&quot;: &quot;A String&quot;, # A timestamp indicating the time that the current in session user has last viewed the project.
160 },
161 &quot;name&quot;: &quot;A String&quot;, # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string.
162 &quot;notebookId&quot;: &quot;A String&quot;, # Output only. Notebook id, which is the last segment of the notebook&#x27;s resource name.
163 &quot;sources&quot;: [ # Output only. List of sources in the notebook. This is an output only field.
164 { # Source represents a single source of content.
165 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
166 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
167 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
168 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
169 },
170 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
171 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
172 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
173 },
174 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
175 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
176 &quot;wordCount&quot;: 42, # The word count of the source.
177 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
178 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
179 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
180 },
181 },
182 &quot;name&quot;: &quot;A String&quot;, # Identifier. The full resource name of the source. Format: `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
183 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
184 &quot;failureReason&quot;: { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest.
185 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
186 &quot;languageDetectionFailed&quot;: { # Could not detect language of the file (it may not be speech). # Could not detect language of the file (it may not be speech).
187 },
188 &quot;noAudioDetected&quot;: { # No audio was detected in the input file. # No audio was detected in the input file (it may have been a video).
189 },
190 },
191 &quot;domainBlocked&quot;: { # Error to indicate that the source was removed because the domain was blocked. # Error if the user tries to add a source from a blocked domain.
192 },
193 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
194 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
195 },
196 },
197 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
198 },
199 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
200 },
201 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
202 },
203 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
204 },
205 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
206 },
207 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
208 },
209 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
210 &quot;wordCount&quot;: 42, # The number of words in the source.
211 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
212 },
213 &quot;sourceUnreachable&quot;: { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable.
214 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
215 },
216 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
217 },
218 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
219 },
220 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
221 &quot;videoDeleted&quot;: { # Error to indicate that the source was removed because the video was deleted. # Error to indicate that the source was removed because the video was deleted.
222 },
223 },
224 },
225 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
226 },
227 &quot;sourceId&quot;: { # SourceId is the last segment of the source&#x27;s resource name. # Optional. Output only. Source id, which is the last segment of the source&#x27;s resource name.
228 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
229 },
230 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
231 },
232 ],
233 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the notebook.
234 }
235
236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
240
241 Returns:
242 An object of the form:
243
244 { # Notebook is a resource where users can store their content (as sources) and interacts with the content.
245 &quot;cmekConfig&quot;: { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook.
246 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
247 },
248 &quot;emoji&quot;: &quot;A String&quot;, # Output only. The emoji of the notebook.
249 &quot;metadata&quot;: { # Metadata for a notebook. # Output only. The metadata of the notebook.
250 &quot;createTime&quot;: &quot;A String&quot;, # The time at which this project was created.
251 &quot;isShareable&quot;: True or False, # True if the project is shareable.
252 &quot;isShared&quot;: True or False, # True if this project is currently shared with other people, false otherwise.
253 &quot;lastViewed&quot;: &quot;A String&quot;, # A timestamp indicating the time that the current in session user has last viewed the project.
254 },
255 &quot;name&quot;: &quot;A String&quot;, # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string.
256 &quot;notebookId&quot;: &quot;A String&quot;, # Output only. Notebook id, which is the last segment of the notebook&#x27;s resource name.
257 &quot;sources&quot;: [ # Output only. List of sources in the notebook. This is an output only field.
258 { # Source represents a single source of content.
259 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
260 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
261 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
262 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
263 },
264 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
265 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
266 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
267 },
268 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
269 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
270 &quot;wordCount&quot;: 42, # The word count of the source.
271 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
272 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
273 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
274 },
275 },
276 &quot;name&quot;: &quot;A String&quot;, # Identifier. The full resource name of the source. Format: `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
277 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
278 &quot;failureReason&quot;: { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest.
279 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
280 &quot;languageDetectionFailed&quot;: { # Could not detect language of the file (it may not be speech). # Could not detect language of the file (it may not be speech).
281 },
282 &quot;noAudioDetected&quot;: { # No audio was detected in the input file. # No audio was detected in the input file (it may have been a video).
283 },
284 },
285 &quot;domainBlocked&quot;: { # Error to indicate that the source was removed because the domain was blocked. # Error if the user tries to add a source from a blocked domain.
286 },
287 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
288 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
289 },
290 },
291 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
292 },
293 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
294 },
295 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
296 },
297 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
298 },
299 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
300 },
301 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
302 },
303 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
304 &quot;wordCount&quot;: 42, # The number of words in the source.
305 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
306 },
307 &quot;sourceUnreachable&quot;: { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable.
308 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
309 },
310 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
311 },
312 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
313 },
314 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
315 &quot;videoDeleted&quot;: { # Error to indicate that the source was removed because the video was deleted. # Error to indicate that the source was removed because the video was deleted.
316 },
317 },
318 },
319 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
320 },
321 &quot;sourceId&quot;: { # SourceId is the last segment of the source&#x27;s resource name. # Optional. Output only. Source id, which is the last segment of the source&#x27;s resource name.
322 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
323 },
324 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
325 },
326 ],
327 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the notebook.
328 }</pre>
329 </div>
330
331 <div class="method">
332 <code class="details" id="get">get(name, x__xgafv=None)</code>
333 <pre>Gets a notebook.
334
335 Args:
336 name: string, Required. Full resource name of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`. (required)
337 x__xgafv: string, V1 error format.
338 Allowed values
339 1 - v1 error format
340 2 - v2 error format
341
342 Returns:
343 An object of the form:
344
345 { # Notebook is a resource where users can store their content (as sources) and interacts with the content.
346 &quot;cmekConfig&quot;: { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook.
347 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
348 },
349 &quot;emoji&quot;: &quot;A String&quot;, # Output only. The emoji of the notebook.
350 &quot;metadata&quot;: { # Metadata for a notebook. # Output only. The metadata of the notebook.
351 &quot;createTime&quot;: &quot;A String&quot;, # The time at which this project was created.
352 &quot;isShareable&quot;: True or False, # True if the project is shareable.
353 &quot;isShared&quot;: True or False, # True if this project is currently shared with other people, false otherwise.
354 &quot;lastViewed&quot;: &quot;A String&quot;, # A timestamp indicating the time that the current in session user has last viewed the project.
355 },
356 &quot;name&quot;: &quot;A String&quot;, # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string.
357 &quot;notebookId&quot;: &quot;A String&quot;, # Output only. Notebook id, which is the last segment of the notebook&#x27;s resource name.
358 &quot;sources&quot;: [ # Output only. List of sources in the notebook. This is an output only field.
359 { # Source represents a single source of content.
360 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
361 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
362 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
363 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
364 },
365 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
366 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
367 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
368 },
369 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
370 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
371 &quot;wordCount&quot;: 42, # The word count of the source.
372 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
373 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
374 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
375 },
376 },
377 &quot;name&quot;: &quot;A String&quot;, # Identifier. The full resource name of the source. Format: `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
378 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
379 &quot;failureReason&quot;: { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest.
380 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
381 &quot;languageDetectionFailed&quot;: { # Could not detect language of the file (it may not be speech). # Could not detect language of the file (it may not be speech).
382 },
383 &quot;noAudioDetected&quot;: { # No audio was detected in the input file. # No audio was detected in the input file (it may have been a video).
384 },
385 },
386 &quot;domainBlocked&quot;: { # Error to indicate that the source was removed because the domain was blocked. # Error if the user tries to add a source from a blocked domain.
387 },
388 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
389 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
390 },
391 },
392 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
393 },
394 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
395 },
396 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
397 },
398 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
399 },
400 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
401 },
402 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
403 },
404 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
405 &quot;wordCount&quot;: 42, # The number of words in the source.
406 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
407 },
408 &quot;sourceUnreachable&quot;: { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable.
409 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
410 },
411 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
412 },
413 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
414 },
415 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
416 &quot;videoDeleted&quot;: { # Error to indicate that the source was removed because the video was deleted. # Error to indicate that the source was removed because the video was deleted.
417 },
418 },
419 },
420 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
421 },
422 &quot;sourceId&quot;: { # SourceId is the last segment of the source&#x27;s resource name. # Optional. Output only. Source id, which is the last segment of the source&#x27;s resource name.
423 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
424 },
425 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
426 },
427 ],
428 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the notebook.
429 }</pre>
430 </div>
431
432 <div class="method">
433 <code class="details" id="listRecentlyViewed">listRecentlyViewed(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
434 <pre>Lists the notebooks ordered by last view time.
435
436 Args:
437 parent: string, Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. (required)
438 pageSize: integer, Optional. Maximum number of Notebooks to return. If unspecified, defaults to &quot;500&quot;. The maximum allowed value is &quot;500&quot;. If this field is negative, will use the default value.
439 pageToken: string, Optional. The page token, provide this to retrieve the subsequent page.
440 x__xgafv: string, V1 error format.
441 Allowed values
442 1 - v1 error format
443 2 - v2 error format
444
445 Returns:
446 An object of the form:
447
448 { # Response for NotebookService.ListRecentlyViewedNotebooks method.
449 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token, provide this to retrieve the subsequent page.
450 &quot;notebooks&quot;: [ # The list of recently viewed notebooks.
451 { # Notebook is a resource where users can store their content (as sources) and interacts with the content.
452 &quot;cmekConfig&quot;: { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook.
453 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
454 },
455 &quot;emoji&quot;: &quot;A String&quot;, # Output only. The emoji of the notebook.
456 &quot;metadata&quot;: { # Metadata for a notebook. # Output only. The metadata of the notebook.
457 &quot;createTime&quot;: &quot;A String&quot;, # The time at which this project was created.
458 &quot;isShareable&quot;: True or False, # True if the project is shareable.
459 &quot;isShared&quot;: True or False, # True if this project is currently shared with other people, false otherwise.
460 &quot;lastViewed&quot;: &quot;A String&quot;, # A timestamp indicating the time that the current in session user has last viewed the project.
461 },
462 &quot;name&quot;: &quot;A String&quot;, # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string.
463 &quot;notebookId&quot;: &quot;A String&quot;, # Output only. Notebook id, which is the last segment of the notebook&#x27;s resource name.
464 &quot;sources&quot;: [ # Output only. List of sources in the notebook. This is an output only field.
465 { # Source represents a single source of content.
466 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
467 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
468 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
469 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
470 },
471 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
472 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
473 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
474 },
475 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
476 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
477 &quot;wordCount&quot;: 42, # The word count of the source.
478 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
479 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
480 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
481 },
482 },
483 &quot;name&quot;: &quot;A String&quot;, # Identifier. The full resource name of the source. Format: `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
484 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
485 &quot;failureReason&quot;: { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest.
486 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
487 &quot;languageDetectionFailed&quot;: { # Could not detect language of the file (it may not be speech). # Could not detect language of the file (it may not be speech).
488 },
489 &quot;noAudioDetected&quot;: { # No audio was detected in the input file. # No audio was detected in the input file (it may have been a video).
490 },
491 },
492 &quot;domainBlocked&quot;: { # Error to indicate that the source was removed because the domain was blocked. # Error if the user tries to add a source from a blocked domain.
493 },
494 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
495 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
496 },
497 },
498 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
499 },
500 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
501 },
502 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
503 },
504 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
505 },
506 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
507 },
508 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
509 },
510 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
511 &quot;wordCount&quot;: 42, # The number of words in the source.
512 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
513 },
514 &quot;sourceUnreachable&quot;: { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable.
515 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
516 },
517 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
518 },
519 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
520 },
521 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
522 &quot;videoDeleted&quot;: { # Error to indicate that the source was removed because the video was deleted. # Error to indicate that the source was removed because the video was deleted.
523 },
524 },
525 },
526 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
527 },
528 &quot;sourceId&quot;: { # SourceId is the last segment of the source&#x27;s resource name. # Optional. Output only. Source id, which is the last segment of the source&#x27;s resource name.
529 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
530 },
531 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
532 },
533 ],
534 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the notebook.
535 },
536 ],
537 }</pre>
538 </div>
539
540 <div class="method">
541 <code class="details" id="listRecentlyViewed_next">listRecentlyViewed_next()</code>
542 <pre>Retrieves the next page of results.
543
544 Args:
545 previous_request: The request for the previous page. (required)
546 previous_response: The response from the request for the previous page. (required)
547
548 Returns:
549 A request object that you can call &#x27;execute()&#x27; on to request the next
550 page. Returns None if there are no more items in the collection.
551 </pre>
552 </div>
553
554 <div class="method">
555 <code class="details" id="share">share(name, body=None, x__xgafv=None)</code>
556 <pre>Shares a notebook to other accounts.
557
558 Args:
559 name: string, Required. Full resource name of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`. (required)
560 body: object, The request body.
561 The object takes the form of:
562
563 { # Request for NotebookService.ShareNotebook method.
564 &quot;accountAndRoles&quot;: [ # Required. The list of accounts and roles to share the notebook with.
565 { # Account and role information.
566 &quot;email&quot;: &quot;A String&quot;, # Required. The email address associated with the account.
567 &quot;role&quot;: &quot;A String&quot;, # Required. The role in the notebook.
568 },
569 ],
570 &quot;notifyViaEmail&quot;: True or False, # Required. Whether to notify the shared users via email.
571 }
572
573 x__xgafv: string, V1 error format.
574 Allowed values
575 1 - v1 error format
576 2 - v2 error format
577
578 Returns:
579 An object of the form:
580
581 { # Response for NotebookService.ShareNotebook method.
582 }</pre>
583 </div>
584
585 </body></html>