Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.notebooks.sources.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> . <a href="discoveryengine_v1alpha.projects.locations.notebooks.sources.html">sources</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Creates a list of Sources.</p>
80 <p class="toc_element">
81 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes multiple sources</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a Source.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
92 <pre>Creates a list of Sources.
93
94 Args:
95 parent: string, Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} (required)
96 body: object, The request body.
97 The object takes the form of:
98
99 { # Request for SourceService.BatchCreateSources method.
100 &quot;userContents&quot;: [ # Required. The UserContents to be uploaded.
101 { # The &quot;Content&quot; messages refer to data the user wants to upload.
102 &quot;agentspaceContent&quot;: { # Agentspace content uploaded as source. # Agentspace content uploaded as source.
103 &quot;documentName&quot;: &quot;A String&quot;, # Optional. The full resource name of the Agentspace document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
104 &quot;engineName&quot;: &quot;A String&quot;, # Optional. Engine to verify the permission of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`.
105 &quot;ideaforgeIdeaName&quot;: &quot;A String&quot;, # Optional. Resource name of the idea forge instance. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance}`
106 },
107 &quot;googleDriveContent&quot;: { # The content from Google Drive. # The content from Google Drive.
108 &quot;documentId&quot;: &quot;A String&quot;, # The document id of the selected document.
109 &quot;mimeType&quot;: &quot;A String&quot;, # The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides.
110 &quot;sourceName&quot;: &quot;A String&quot;, # The name to be displayed for the source.
111 },
112 &quot;textContent&quot;: { # The text content uploaded as source. # The text content uploaded as source.
113 &quot;content&quot;: &quot;A String&quot;, # The name to be displayed for the source.
114 &quot;sourceName&quot;: &quot;A String&quot;, # The display name of the text source.
115 },
116 &quot;videoContent&quot;: { # Video content uploaded as source. # The video content uploaded as source.
117 &quot;youtubeUrl&quot;: &quot;A String&quot;, # The youtube url of the video content.
118 },
119 &quot;webContent&quot;: { # The web content uploaded as source. # The web content uploaded as source.
120 &quot;sourceName&quot;: &quot;A String&quot;, # The name to be displayed for the source.
121 &quot;url&quot;: &quot;A String&quot;, # If URL is supplied, will fetch the webpage in the backend.
122 },
123 },
124 ],
125 }
126
127 x__xgafv: string, V1 error format.
128 Allowed values
129 1 - v1 error format
130 2 - v2 error format
131
132 Returns:
133 An object of the form:
134
135 { # Response for SourceService.BatchCreateSources method.
136 &quot;sources&quot;: [ # The Sources.
137 { # Source represents a single source of content.
138 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
139 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
140 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
141 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
142 },
143 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
144 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
145 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
146 },
147 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
148 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
149 &quot;wordCount&quot;: 42, # The word count of the source.
150 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
151 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
152 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
153 },
154 },
155 &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.
156 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
157 &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.
158 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
159 &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).
160 },
161 &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).
162 },
163 },
164 &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.
165 },
166 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
167 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
168 },
169 },
170 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
171 },
172 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
173 },
174 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
175 },
176 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
177 },
178 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
179 },
180 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
181 },
182 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
183 &quot;wordCount&quot;: 42, # The number of words in the source.
184 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
185 },
186 &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.
187 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
188 },
189 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
190 },
191 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
192 },
193 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
194 &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.
195 },
196 },
197 },
198 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
199 },
200 &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.
201 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
202 },
203 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
204 },
205 ],
206 }</pre>
207 </div>
208
209 <div class="method">
210 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
211 <pre>Deletes multiple sources
212
213 Args:
214 parent: string, Required. The parent resource where the sources will be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook} (required)
215 body: object, The request body.
216 The object takes the form of:
217
218 { # Request for BatchDeleteSourcesRequest method.
219 &quot;names&quot;: [ # Required. Names of sources to be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source}
220 &quot;A String&quot;,
221 ],
222 }
223
224 x__xgafv: string, V1 error format.
225 Allowed values
226 1 - v1 error format
227 2 - v2 error format
228
229 Returns:
230 An object of the form:
231
232 { # 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); }
233 }</pre>
234 </div>
235
236 <div class="method">
237 <code class="details" id="close">close()</code>
238 <pre>Close httplib2 connections.</pre>
239 </div>
240
241 <div class="method">
242 <code class="details" id="get">get(name, x__xgafv=None)</code>
243 <pre>Gets a Source.
244
245 Args:
246 name: string, Required. The resource name for source Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} (required)
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252 Returns:
253 An object of the form:
254
255 { # Source represents a single source of content.
256 &quot;metadata&quot;: { # Represents the metadata of a source and some additional information. # Output only. Metadata about the source.
257 &quot;agentspaceMetadata&quot;: { # Metadata about an agentspace source. # Metadata for an agentspace source.
258 &quot;documentName&quot;: &quot;A String&quot;, # Output only. The full document name in Agentspace.
259 &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document.
260 },
261 &quot;googleDocsMetadata&quot;: { # Metadata about a google doc source. # Metadata for a google doc source.
262 &quot;documentId&quot;: &quot;A String&quot;, # Output only. The document id of the google doc.
263 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. Revision id for the doc.
264 },
265 &quot;sourceAddedTimestamp&quot;: &quot;A String&quot;, # The timestamp the source was added.
266 &quot;tokenCount&quot;: 42, # The number of tokens in the source.
267 &quot;wordCount&quot;: 42, # The word count of the source.
268 &quot;youtubeMetadata&quot;: { # Metadata about a youtube video source. # Metadata for a youtube video source.
269 &quot;channelName&quot;: &quot;A String&quot;, # Output only. The channel name of the youtube video.
270 &quot;videoId&quot;: &quot;A String&quot;, # Output only. The id of the youtube video.
271 },
272 },
273 &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.
274 &quot;settings&quot;: { # Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). # Output only. Status of the source, and any failure reasons.
275 &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.
276 &quot;audioTranscriptionError&quot;: { # An audio file transcription specific error. # An audio file transcription specific error.
277 &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).
278 },
279 &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).
280 },
281 },
282 &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.
283 },
284 &quot;googleDriveError&quot;: { # A google drive specific error. # A google drive specific error.
285 &quot;downloadPrevented&quot;: { # The user was prevented from downloading the file. # The user was prevented from downloading the file.
286 },
287 },
288 &quot;ingestionError&quot;: { # Indicates an error occurred while ingesting the source. # Indicates an error occurred while ingesting the source.
289 },
290 &quot;mimeTypeBlocked&quot;: { # Indicates that the source MIME type is blocked. # Indicates that the source MIME type is blocked.
291 },
292 &quot;paywallError&quot;: { # Indicates that the source is paywalled and cannot be ingested. # Indicates that the source is paywalled and cannot be ingested.
293 },
294 &quot;policyCheckFailed&quot;: { # Indicates that the policy check failed. # Indicates that the policy check failed.
295 },
296 &quot;sourceEmpty&quot;: { # Indicates that the source is empty. # Indicates that the source is empty.
297 },
298 &quot;sourceLimitExceeded&quot;: { # Indicates that the user does not have space for this source. # Error if the user tries to update beyond their limits.
299 },
300 &quot;sourceTooLong&quot;: { # Indicates source word count exceeded the user&#x27;s limit. # Indicates source word count exceeded the user&#x27;s limit.
301 &quot;wordCount&quot;: 42, # The number of words in the source.
302 &quot;wordLimit&quot;: 42, # The word count limit for the current user at the time of the upload.
303 },
304 &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.
305 &quot;errorDetails&quot;: &quot;A String&quot;, # Describes why the source is unreachable.
306 },
307 &quot;unknown&quot;: { # Indicates an unknown error occurred. # Indicates an unknown error occurred.
308 },
309 &quot;uploadError&quot;: { # Indicates an error occurred while uploading the source. # Indicates an error occurred while uploading the source.
310 },
311 &quot;youtubeError&quot;: { # A youtube specific error. # A youtube specific error.
312 &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.
313 },
314 },
315 },
316 &quot;status&quot;: &quot;A String&quot;, # Status of the source.
317 },
318 &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.
319 &quot;id&quot;: &quot;A String&quot;, # The id of the source.
320 },
321 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the source.
322 }</pre>
323 </div>
324
325 </body></html>