Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.ragCorpora.ragDataSchemas.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="aiplatform_v1beta1.html">Agent Platform API</a> . <a href="aiplatform_v1beta1.projects.html">projects</a> . <a href="aiplatform_v1beta1.projects.locations.html">locations</a> . <a href="aiplatform_v1beta1.projects.locations.ragCorpora.html">ragCorpora</a> . <a href="aiplatform_v1beta1.projects.locations.ragCorpora.ragDataSchemas.html">ragDataSchemas</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">Batch Create one or more RagDataSchemas</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">Batch Deletes one or more RagDataSchemas</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="#create">create(parent, body=None, ragDataSchemaId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a RagDataSchema.</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes a RagDataSchema.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Gets a RagDataSchema.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists RagDataSchemas in a Location.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
104 <pre>Batch Create one or more RagDataSchemas
105
106 Args:
107 parent: string, Required. The resource name of the RagCorpus to create the RagDataSchemas in. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required)
108 body: object, The request body.
109 The object takes the form of:
110
111 { # Request message for VertexRagDataService.BatchCreateRagDataSchemas.
112 &quot;requests&quot;: [ # Required. The request messages for VertexRagDataService.CreateRagDataSchema. A maximum of 500 schemas can be created in a batch.
113 { # Request message for VertexRagDataService.CreateRagDataSchema.
114 &quot;parent&quot;: &quot;A String&quot;, # Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
115 &quot;ragDataSchema&quot;: { # The schema of the user specified metadata. # Required. The RagDataSchema to create.
116 &quot;key&quot;: &quot;A String&quot;, # Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
117 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the data schema in the form of: `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` where the {rag_data_schema} part should be the same as the `key` field below.
118 &quot;schemaDetails&quot;: { # Data schema details indicates the data type and the data struct corresponding to the key of user specified metadata. # The schema details mapping to the key.
119 &quot;granularity&quot;: &quot;A String&quot;, # The granularity associated with this RagMetadataSchema.
120 &quot;listConfig&quot;: { # Config for List data type. # Config for List data type.
121 &quot;valueSchema&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1RagMetadataSchemaDetails # The value&#x27;s data type in the list.
122 },
123 &quot;searchStrategy&quot;: { # The search strategy for the metadata value of the `key`. # The search strategy for the metadata value of the `key`.
124 &quot;searchStrategyType&quot;: &quot;A String&quot;, # The search strategy type to be applied on the metadata key.
125 },
126 &quot;type&quot;: &quot;A String&quot;, # Type of the metadata.
127 },
128 },
129 &quot;ragDataSchemaId&quot;: &quot;A String&quot;, # Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema&#x27;s resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system. This value should be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
130 },
131 ],
132 }
133
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139 Returns:
140 An object of the form:
141
142 { # This resource represents a long-running operation that is the result of a network API call.
143 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
144 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
145 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
146 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
147 {
148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
149 },
150 ],
151 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
152 },
153 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
155 },
156 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
157 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 }</pre>
161 </div>
162
163 <div class="method">
164 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
165 <pre>Batch Deletes one or more RagDataSchemas
166
167 Args:
168 parent: string, Required. The resource name of the RagCorpus from which to delete the RagDataSchemas. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required)
169 body: object, The request body.
170 The object takes the form of:
171
172 { # Request message for VertexRagDataService.BatchDeleteRagDataSchemas.
173 &quot;names&quot;: [ # Required. The RagDataSchemas to delete. A maximum of 500 schemas can be deleted in a batch. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
174 &quot;A String&quot;,
175 ],
176 }
177
178 x__xgafv: string, V1 error format.
179 Allowed values
180 1 - v1 error format
181 2 - v2 error format
182
183 Returns:
184 An object of the form:
185
186 { # This resource represents a long-running operation that is the result of a network API call.
187 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
188 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
189 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
190 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
191 {
192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
193 },
194 ],
195 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
196 },
197 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199 },
200 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
201 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
203 },
204 }</pre>
205 </div>
206
207 <div class="method">
208 <code class="details" id="close">close()</code>
209 <pre>Close httplib2 connections.</pre>
210 </div>
211
212 <div class="method">
213 <code class="details" id="create">create(parent, body=None, ragDataSchemaId=None, x__xgafv=None)</code>
214 <pre>Creates a RagDataSchema.
215
216 Args:
217 parent: string, Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required)
218 body: object, The request body.
219 The object takes the form of:
220
221 { # The schema of the user specified metadata.
222 &quot;key&quot;: &quot;A String&quot;, # Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
223 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the data schema in the form of: `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` where the {rag_data_schema} part should be the same as the `key` field below.
224 &quot;schemaDetails&quot;: { # Data schema details indicates the data type and the data struct corresponding to the key of user specified metadata. # The schema details mapping to the key.
225 &quot;granularity&quot;: &quot;A String&quot;, # The granularity associated with this RagMetadataSchema.
226 &quot;listConfig&quot;: { # Config for List data type. # Config for List data type.
227 &quot;valueSchema&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1RagMetadataSchemaDetails # The value&#x27;s data type in the list.
228 },
229 &quot;searchStrategy&quot;: { # The search strategy for the metadata value of the `key`. # The search strategy for the metadata value of the `key`.
230 &quot;searchStrategyType&quot;: &quot;A String&quot;, # The search strategy type to be applied on the metadata key.
231 },
232 &quot;type&quot;: &quot;A String&quot;, # Type of the metadata.
233 },
234 }
235
236 ragDataSchemaId: string, Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema&#x27;s resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system. This value should be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
237 x__xgafv: string, V1 error format.
238 Allowed values
239 1 - v1 error format
240 2 - v2 error format
241
242 Returns:
243 An object of the form:
244
245 { # The schema of the user specified metadata.
246 &quot;key&quot;: &quot;A String&quot;, # Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
247 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the data schema in the form of: `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` where the {rag_data_schema} part should be the same as the `key` field below.
248 &quot;schemaDetails&quot;: { # Data schema details indicates the data type and the data struct corresponding to the key of user specified metadata. # The schema details mapping to the key.
249 &quot;granularity&quot;: &quot;A String&quot;, # The granularity associated with this RagMetadataSchema.
250 &quot;listConfig&quot;: { # Config for List data type. # Config for List data type.
251 &quot;valueSchema&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1RagMetadataSchemaDetails # The value&#x27;s data type in the list.
252 },
253 &quot;searchStrategy&quot;: { # The search strategy for the metadata value of the `key`. # The search strategy for the metadata value of the `key`.
254 &quot;searchStrategyType&quot;: &quot;A String&quot;, # The search strategy type to be applied on the metadata key.
255 },
256 &quot;type&quot;: &quot;A String&quot;, # Type of the metadata.
257 },
258 }</pre>
259 </div>
260
261 <div class="method">
262 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
263 <pre>Deletes a RagDataSchema.
264
265 Args:
266 name: string, Required. The name of the RagDataSchema resource to be deleted. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` (required)
267 x__xgafv: string, V1 error format.
268 Allowed values
269 1 - v1 error format
270 2 - v2 error format
271
272 Returns:
273 An object of the form:
274
275 { # 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); }
276 }</pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="get">get(name, x__xgafv=None)</code>
281 <pre>Gets a RagDataSchema.
282
283 Args:
284 name: string, Required. The name of the RagDataSchema resource. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` (required)
285 x__xgafv: string, V1 error format.
286 Allowed values
287 1 - v1 error format
288 2 - v2 error format
289
290 Returns:
291 An object of the form:
292
293 { # The schema of the user specified metadata.
294 &quot;key&quot;: &quot;A String&quot;, # Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
295 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the data schema in the form of: `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` where the {rag_data_schema} part should be the same as the `key` field below.
296 &quot;schemaDetails&quot;: { # Data schema details indicates the data type and the data struct corresponding to the key of user specified metadata. # The schema details mapping to the key.
297 &quot;granularity&quot;: &quot;A String&quot;, # The granularity associated with this RagMetadataSchema.
298 &quot;listConfig&quot;: { # Config for List data type. # Config for List data type.
299 &quot;valueSchema&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1RagMetadataSchemaDetails # The value&#x27;s data type in the list.
300 },
301 &quot;searchStrategy&quot;: { # The search strategy for the metadata value of the `key`. # The search strategy for the metadata value of the `key`.
302 &quot;searchStrategyType&quot;: &quot;A String&quot;, # The search strategy type to be applied on the metadata key.
303 },
304 &quot;type&quot;: &quot;A String&quot;, # Type of the metadata.
305 },
306 }</pre>
307 </div>
308
309 <div class="method">
310 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
311 <pre>Lists RagDataSchemas in a Location.
312
313 Args:
314 parent: string, Required. The resource name of the RagCorpus from which to list the RagDataSchemas. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required)
315 pageSize: integer, Optional. The standard list page size. The maximum value is 100. If not specified, a default value of 100 will be used.
316 pageToken: string, Optional. The standard list page token. Typically obtained via ListRagDataSchemasResponse.next_page_token of the previous VertexRagDataService.ListRagDataSchemas call.
317 x__xgafv: string, V1 error format.
318 Allowed values
319 1 - v1 error format
320 2 - v2 error format
321
322 Returns:
323 An object of the form:
324
325 { # Response message for VertexRagDataService.ListRagDataSchemas.
326 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass to ListRagDataSchemasRequest.page_token to obtain that page.
327 &quot;ragDataSchemas&quot;: [ # List of RagDataSchemas in the requested page.
328 { # The schema of the user specified metadata.
329 &quot;key&quot;: &quot;A String&quot;, # Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.
330 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the data schema in the form of: `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` where the {rag_data_schema} part should be the same as the `key` field below.
331 &quot;schemaDetails&quot;: { # Data schema details indicates the data type and the data struct corresponding to the key of user specified metadata. # The schema details mapping to the key.
332 &quot;granularity&quot;: &quot;A String&quot;, # The granularity associated with this RagMetadataSchema.
333 &quot;listConfig&quot;: { # Config for List data type. # Config for List data type.
334 &quot;valueSchema&quot;: # Object with schema name: GoogleCloudAiplatformV1beta1RagMetadataSchemaDetails # The value&#x27;s data type in the list.
335 },
336 &quot;searchStrategy&quot;: { # The search strategy for the metadata value of the `key`. # The search strategy for the metadata value of the `key`.
337 &quot;searchStrategyType&quot;: &quot;A String&quot;, # The search strategy type to be applied on the metadata key.
338 },
339 &quot;type&quot;: &quot;A String&quot;, # Type of the metadata.
340 },
341 },
342 ],
343 }</pre>
344 </div>
345
346 <div class="method">
347 <code class="details" id="list_next">list_next()</code>
348 <pre>Retrieves the next page of results.
349
350 Args:
351 previous_request: The request for the previous page. (required)
352 previous_response: The response from the request for the previous page. (required)
353
354 Returns:
355 A request object that you can call &#x27;execute()&#x27; on to request the next
356 page. Returns None if there are no more items in the collection.
357 </pre>
358 </div>
359
360 </body></html>