| 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 |
"names": [ # Required. Full resource names of Notebook, such as `projects/{project}/locations/{location}/notebooks/{notebook_id}`. |
| 120 |
"A String", |
| 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 |
"cmekConfig": { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook. |
| 152 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 153 |
}, |
| 154 |
"emoji": "A String", # Output only. The emoji of the notebook. |
| 155 |
"metadata": { # Metadata for a notebook. # Output only. The metadata of the notebook. |
| 156 |
"createTime": "A String", # The time at which this project was created. |
| 157 |
"isShareable": True or False, # True if the project is shareable. |
| 158 |
"isShared": True or False, # True if this project is currently shared with other people, false otherwise. |
| 159 |
"lastViewed": "A String", # A timestamp indicating the time that the current in session user has last viewed the project. |
| 160 |
}, |
| 161 |
"name": "A String", # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string. |
| 162 |
"notebookId": "A String", # Output only. Notebook id, which is the last segment of the notebook's resource name. |
| 163 |
"sources": [ # Output only. List of sources in the notebook. This is an output only field. |
| 164 |
{ # Source represents a single source of content. |
| 165 |
"metadata": { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source. |
| 166 |
"agentspaceMetadata": { # Metadata about an agentspace source. # Metadata for an agentspace source. |
| 167 |
"documentName": "A String", # Output only. The full document name in Agentspace. |
| 168 |
"documentTitle": "A String", # Output only. The title of the document. |
| 169 |
}, |
| 170 |
"googleDocsMetadata": { # Metadata about a google doc source. # Metadata for a google doc source. |
| 171 |
"documentId": "A String", # Output only. The document id of the google doc. |
| 172 |
"revisionId": "A String", # Output only. Revision id for the doc. |
| 173 |
}, |
| 174 |
"sourceAddedTimestamp": "A String", # The timestamp the source was added. |
| 175 |
"tokenCount": 42, # The number of tokens in the source. |
| 176 |
"wordCount": 42, # The word count of the source. |
| 177 |
"youtubeMetadata": { # Metadata about a youtube video source. # Metadata for a youtube video source. |
| 178 |
"channelName": "A String", # Output only. The channel name of the youtube video. |
| 179 |
"videoId": "A String", # Output only. The id of the youtube video. |
| 180 |
}, |
| 181 |
}, |
| 182 |
"name": "A String", # 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 |
"settings": { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons. |
| 184 |
"failureReason": { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest. |
| 185 |
"audioTranscriptionError": { # An audio file transcription specific error. # An audio file transcription specific error. |
| 186 |
"languageDetectionFailed": { # 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 |
"noAudioDetected": { # 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 |
"domainBlocked": { # 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 |
"googleDriveError": { # A google drive specific error. # A google drive specific error. |
| 194 |
"downloadPrevented": { # The user was prevented from downloading the file. # The user was prevented from downloading the file. |
| 195 |
}, |
| 196 |
}, |
| 197 |
"ingestionError": { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source. |
| 198 |
}, |
| 199 |
"mimeTypeBlocked": { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked. |
| 200 |
}, |
| 201 |
"paywallError": { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested. |
| 202 |
}, |
| 203 |
"policyCheckFailed": { # Indicates that the policy check failed. # Indicates that the policy check failed. |
| 204 |
}, |
| 205 |
"sourceEmpty": { # Indicates that the source is empty. # Indicates that the source is empty. |
| 206 |
}, |
| 207 |
"sourceLimitExceeded": { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits. |
| 208 |
}, |
| 209 |
"sourceTooLong": { # Indicates source word count exceeded the user's limit. # Indicates source word count exceeded the user's limit. |
| 210 |
"wordCount": 42, # The number of words in the source. |
| 211 |
"wordLimit": 42, # The word count limit for the current user at the time of the upload. |
| 212 |
}, |
| 213 |
"sourceUnreachable": { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable. |
| 214 |
"errorDetails": "A String", # Describes why the source is unreachable. |
| 215 |
}, |
| 216 |
"unknown": { # Indicates an unknown error occurred. # Indicates an unknown error occurred. |
| 217 |
}, |
| 218 |
"uploadError": { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source. |
| 219 |
}, |
| 220 |
"youtubeError": { # A youtube specific error. # A youtube specific error. |
| 221 |
"videoDeleted": { # 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 |
"status": "A String", # Status of the source. |
| 226 |
}, |
| 227 |
"sourceId": { # SourceId is the last segment of the source's resource name. # Optional. Output only. Source id, which is the last segment of the source's resource name. |
| 228 |
"id": "A String", # The id of the source. |
| 229 |
}, |
| 230 |
"title": "A String", # Optional. Title of the source. |
| 231 |
}, |
| 232 |
], |
| 233 |
"title": "A String", # 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 |
"cmekConfig": { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook. |
| 246 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 247 |
}, |
| 248 |
"emoji": "A String", # Output only. The emoji of the notebook. |
| 249 |
"metadata": { # Metadata for a notebook. # Output only. The metadata of the notebook. |
| 250 |
"createTime": "A String", # The time at which this project was created. |
| 251 |
"isShareable": True or False, # True if the project is shareable. |
| 252 |
"isShared": True or False, # True if this project is currently shared with other people, false otherwise. |
| 253 |
"lastViewed": "A String", # A timestamp indicating the time that the current in session user has last viewed the project. |
| 254 |
}, |
| 255 |
"name": "A String", # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string. |
| 256 |
"notebookId": "A String", # Output only. Notebook id, which is the last segment of the notebook's resource name. |
| 257 |
"sources": [ # Output only. List of sources in the notebook. This is an output only field. |
| 258 |
{ # Source represents a single source of content. |
| 259 |
"metadata": { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source. |
| 260 |
"agentspaceMetadata": { # Metadata about an agentspace source. # Metadata for an agentspace source. |
| 261 |
"documentName": "A String", # Output only. The full document name in Agentspace. |
| 262 |
"documentTitle": "A String", # Output only. The title of the document. |
| 263 |
}, |
| 264 |
"googleDocsMetadata": { # Metadata about a google doc source. # Metadata for a google doc source. |
| 265 |
"documentId": "A String", # Output only. The document id of the google doc. |
| 266 |
"revisionId": "A String", # Output only. Revision id for the doc. |
| 267 |
}, |
| 268 |
"sourceAddedTimestamp": "A String", # The timestamp the source was added. |
| 269 |
"tokenCount": 42, # The number of tokens in the source. |
| 270 |
"wordCount": 42, # The word count of the source. |
| 271 |
"youtubeMetadata": { # Metadata about a youtube video source. # Metadata for a youtube video source. |
| 272 |
"channelName": "A String", # Output only. The channel name of the youtube video. |
| 273 |
"videoId": "A String", # Output only. The id of the youtube video. |
| 274 |
}, |
| 275 |
}, |
| 276 |
"name": "A String", # 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 |
"settings": { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons. |
| 278 |
"failureReason": { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest. |
| 279 |
"audioTranscriptionError": { # An audio file transcription specific error. # An audio file transcription specific error. |
| 280 |
"languageDetectionFailed": { # 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 |
"noAudioDetected": { # 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 |
"domainBlocked": { # 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 |
"googleDriveError": { # A google drive specific error. # A google drive specific error. |
| 288 |
"downloadPrevented": { # The user was prevented from downloading the file. # The user was prevented from downloading the file. |
| 289 |
}, |
| 290 |
}, |
| 291 |
"ingestionError": { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source. |
| 292 |
}, |
| 293 |
"mimeTypeBlocked": { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked. |
| 294 |
}, |
| 295 |
"paywallError": { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested. |
| 296 |
}, |
| 297 |
"policyCheckFailed": { # Indicates that the policy check failed. # Indicates that the policy check failed. |
| 298 |
}, |
| 299 |
"sourceEmpty": { # Indicates that the source is empty. # Indicates that the source is empty. |
| 300 |
}, |
| 301 |
"sourceLimitExceeded": { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits. |
| 302 |
}, |
| 303 |
"sourceTooLong": { # Indicates source word count exceeded the user's limit. # Indicates source word count exceeded the user's limit. |
| 304 |
"wordCount": 42, # The number of words in the source. |
| 305 |
"wordLimit": 42, # The word count limit for the current user at the time of the upload. |
| 306 |
}, |
| 307 |
"sourceUnreachable": { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable. |
| 308 |
"errorDetails": "A String", # Describes why the source is unreachable. |
| 309 |
}, |
| 310 |
"unknown": { # Indicates an unknown error occurred. # Indicates an unknown error occurred. |
| 311 |
}, |
| 312 |
"uploadError": { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source. |
| 313 |
}, |
| 314 |
"youtubeError": { # A youtube specific error. # A youtube specific error. |
| 315 |
"videoDeleted": { # 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 |
"status": "A String", # Status of the source. |
| 320 |
}, |
| 321 |
"sourceId": { # SourceId is the last segment of the source's resource name. # Optional. Output only. Source id, which is the last segment of the source's resource name. |
| 322 |
"id": "A String", # The id of the source. |
| 323 |
}, |
| 324 |
"title": "A String", # Optional. Title of the source. |
| 325 |
}, |
| 326 |
], |
| 327 |
"title": "A String", # 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 |
"cmekConfig": { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook. |
| 347 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 348 |
}, |
| 349 |
"emoji": "A String", # Output only. The emoji of the notebook. |
| 350 |
"metadata": { # Metadata for a notebook. # Output only. The metadata of the notebook. |
| 351 |
"createTime": "A String", # The time at which this project was created. |
| 352 |
"isShareable": True or False, # True if the project is shareable. |
| 353 |
"isShared": True or False, # True if this project is currently shared with other people, false otherwise. |
| 354 |
"lastViewed": "A String", # A timestamp indicating the time that the current in session user has last viewed the project. |
| 355 |
}, |
| 356 |
"name": "A String", # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string. |
| 357 |
"notebookId": "A String", # Output only. Notebook id, which is the last segment of the notebook's resource name. |
| 358 |
"sources": [ # Output only. List of sources in the notebook. This is an output only field. |
| 359 |
{ # Source represents a single source of content. |
| 360 |
"metadata": { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source. |
| 361 |
"agentspaceMetadata": { # Metadata about an agentspace source. # Metadata for an agentspace source. |
| 362 |
"documentName": "A String", # Output only. The full document name in Agentspace. |
| 363 |
"documentTitle": "A String", # Output only. The title of the document. |
| 364 |
}, |
| 365 |
"googleDocsMetadata": { # Metadata about a google doc source. # Metadata for a google doc source. |
| 366 |
"documentId": "A String", # Output only. The document id of the google doc. |
| 367 |
"revisionId": "A String", # Output only. Revision id for the doc. |
| 368 |
}, |
| 369 |
"sourceAddedTimestamp": "A String", # The timestamp the source was added. |
| 370 |
"tokenCount": 42, # The number of tokens in the source. |
| 371 |
"wordCount": 42, # The word count of the source. |
| 372 |
"youtubeMetadata": { # Metadata about a youtube video source. # Metadata for a youtube video source. |
| 373 |
"channelName": "A String", # Output only. The channel name of the youtube video. |
| 374 |
"videoId": "A String", # Output only. The id of the youtube video. |
| 375 |
}, |
| 376 |
}, |
| 377 |
"name": "A String", # 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 |
"settings": { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons. |
| 379 |
"failureReason": { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest. |
| 380 |
"audioTranscriptionError": { # An audio file transcription specific error. # An audio file transcription specific error. |
| 381 |
"languageDetectionFailed": { # 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 |
"noAudioDetected": { # 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 |
"domainBlocked": { # 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 |
"googleDriveError": { # A google drive specific error. # A google drive specific error. |
| 389 |
"downloadPrevented": { # The user was prevented from downloading the file. # The user was prevented from downloading the file. |
| 390 |
}, |
| 391 |
}, |
| 392 |
"ingestionError": { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source. |
| 393 |
}, |
| 394 |
"mimeTypeBlocked": { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked. |
| 395 |
}, |
| 396 |
"paywallError": { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested. |
| 397 |
}, |
| 398 |
"policyCheckFailed": { # Indicates that the policy check failed. # Indicates that the policy check failed. |
| 399 |
}, |
| 400 |
"sourceEmpty": { # Indicates that the source is empty. # Indicates that the source is empty. |
| 401 |
}, |
| 402 |
"sourceLimitExceeded": { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits. |
| 403 |
}, |
| 404 |
"sourceTooLong": { # Indicates source word count exceeded the user's limit. # Indicates source word count exceeded the user's limit. |
| 405 |
"wordCount": 42, # The number of words in the source. |
| 406 |
"wordLimit": 42, # The word count limit for the current user at the time of the upload. |
| 407 |
}, |
| 408 |
"sourceUnreachable": { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable. |
| 409 |
"errorDetails": "A String", # Describes why the source is unreachable. |
| 410 |
}, |
| 411 |
"unknown": { # Indicates an unknown error occurred. # Indicates an unknown error occurred. |
| 412 |
}, |
| 413 |
"uploadError": { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source. |
| 414 |
}, |
| 415 |
"youtubeError": { # A youtube specific error. # A youtube specific error. |
| 416 |
"videoDeleted": { # 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 |
"status": "A String", # Status of the source. |
| 421 |
}, |
| 422 |
"sourceId": { # SourceId is the last segment of the source's resource name. # Optional. Output only. Source id, which is the last segment of the source's resource name. |
| 423 |
"id": "A String", # The id of the source. |
| 424 |
}, |
| 425 |
"title": "A String", # Optional. Title of the source. |
| 426 |
}, |
| 427 |
], |
| 428 |
"title": "A String", # 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 "500". The maximum allowed value is "500". 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 |
"nextPageToken": "A String", # The page token, provide this to retrieve the subsequent page. |
| 450 |
"notebooks": [ # 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 |
"cmekConfig": { # Customer-managed encryption configuration for Notebooks. # Output only. CMEK-related information for the Notebook. |
| 453 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 454 |
}, |
| 455 |
"emoji": "A String", # Output only. The emoji of the notebook. |
| 456 |
"metadata": { # Metadata for a notebook. # Output only. The metadata of the notebook. |
| 457 |
"createTime": "A String", # The time at which this project was created. |
| 458 |
"isShareable": True or False, # True if the project is shareable. |
| 459 |
"isShared": True or False, # True if this project is currently shared with other people, false otherwise. |
| 460 |
"lastViewed": "A String", # A timestamp indicating the time that the current in session user has last viewed the project. |
| 461 |
}, |
| 462 |
"name": "A String", # Identifier. The identifier of the notebook. Format: `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 encoded string. |
| 463 |
"notebookId": "A String", # Output only. Notebook id, which is the last segment of the notebook's resource name. |
| 464 |
"sources": [ # Output only. List of sources in the notebook. This is an output only field. |
| 465 |
{ # Source represents a single source of content. |
| 466 |
"metadata": { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source. |
| 467 |
"agentspaceMetadata": { # Metadata about an agentspace source. # Metadata for an agentspace source. |
| 468 |
"documentName": "A String", # Output only. The full document name in Agentspace. |
| 469 |
"documentTitle": "A String", # Output only. The title of the document. |
| 470 |
}, |
| 471 |
"googleDocsMetadata": { # Metadata about a google doc source. # Metadata for a google doc source. |
| 472 |
"documentId": "A String", # Output only. The document id of the google doc. |
| 473 |
"revisionId": "A String", # Output only. Revision id for the doc. |
| 474 |
}, |
| 475 |
"sourceAddedTimestamp": "A String", # The timestamp the source was added. |
| 476 |
"tokenCount": 42, # The number of tokens in the source. |
| 477 |
"wordCount": 42, # The word count of the source. |
| 478 |
"youtubeMetadata": { # Metadata about a youtube video source. # Metadata for a youtube video source. |
| 479 |
"channelName": "A String", # Output only. The channel name of the youtube video. |
| 480 |
"videoId": "A String", # Output only. The id of the youtube video. |
| 481 |
}, |
| 482 |
}, |
| 483 |
"name": "A String", # 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 |
"settings": { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons. |
| 485 |
"failureReason": { # Failure reason containing details about why a source failed to ingest. # Failure reason containing details about why a source failed to ingest. |
| 486 |
"audioTranscriptionError": { # An audio file transcription specific error. # An audio file transcription specific error. |
| 487 |
"languageDetectionFailed": { # 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 |
"noAudioDetected": { # 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 |
"domainBlocked": { # 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 |
"googleDriveError": { # A google drive specific error. # A google drive specific error. |
| 495 |
"downloadPrevented": { # The user was prevented from downloading the file. # The user was prevented from downloading the file. |
| 496 |
}, |
| 497 |
}, |
| 498 |
"ingestionError": { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source. |
| 499 |
}, |
| 500 |
"mimeTypeBlocked": { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked. |
| 501 |
}, |
| 502 |
"paywallError": { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested. |
| 503 |
}, |
| 504 |
"policyCheckFailed": { # Indicates that the policy check failed. # Indicates that the policy check failed. |
| 505 |
}, |
| 506 |
"sourceEmpty": { # Indicates that the source is empty. # Indicates that the source is empty. |
| 507 |
}, |
| 508 |
"sourceLimitExceeded": { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits. |
| 509 |
}, |
| 510 |
"sourceTooLong": { # Indicates source word count exceeded the user's limit. # Indicates source word count exceeded the user's limit. |
| 511 |
"wordCount": 42, # The number of words in the source. |
| 512 |
"wordLimit": 42, # The word count limit for the current user at the time of the upload. |
| 513 |
}, |
| 514 |
"sourceUnreachable": { # Indicates that the source is unreachable. This is primarily used for sources that are added via URL. # Indicates that the source is unreachable. |
| 515 |
"errorDetails": "A String", # Describes why the source is unreachable. |
| 516 |
}, |
| 517 |
"unknown": { # Indicates an unknown error occurred. # Indicates an unknown error occurred. |
| 518 |
}, |
| 519 |
"uploadError": { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source. |
| 520 |
}, |
| 521 |
"youtubeError": { # A youtube specific error. # A youtube specific error. |
| 522 |
"videoDeleted": { # 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 |
"status": "A String", # Status of the source. |
| 527 |
}, |
| 528 |
"sourceId": { # SourceId is the last segment of the source's resource name. # Optional. Output only. Source id, which is the last segment of the source's resource name. |
| 529 |
"id": "A String", # The id of the source. |
| 530 |
}, |
| 531 |
"title": "A String", # Optional. Title of the source. |
| 532 |
}, |
| 533 |
], |
| 534 |
"title": "A String", # 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 'execute()' 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 |
"accountAndRoles": [ # Required. The list of accounts and roles to share the notebook with. |
| 565 |
{ # Account and role information. |
| 566 |
"email": "A String", # Required. The email address associated with the account. |
| 567 |
"role": "A String", # Required. The role in the notebook. |
| 568 |
}, |
| 569 |
], |
| 570 |
"notifyViaEmail": 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> |