Debian Codegraph @

docs/dyn/aiplatform_v1.datasets.datasetVersions.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_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.datasets.html">datasets</a> . <a href="aiplatform_v1.datasets.datasetVersions.html">datasetVersions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a version from a Dataset.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a Dataset version.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, readMask=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a Dataset version.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists DatasetVersions in a Dataset.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a DatasetVersion.</p>
98 <p class="toc_element">
99 <code><a href="#restore">restore(name, x__xgafv=None)</a></code></p>
100 <p class="firstline">Restores a dataset version.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
109 <pre>Create a version from a Dataset.
110
111 Args:
112 parent: string, Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # Describes the dataset version.
117 &quot;bigQueryDatasetName&quot;: &quot;A String&quot;, # Output only. Name of the associated BigQuery dataset.
118 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was created.
119 &quot;displayName&quot;: &quot;A String&quot;, # The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
120 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
121 &quot;metadata&quot;: &quot;&quot;, # Required. Output only. Additional information about the DatasetVersion.
122 &quot;modelReference&quot;: &quot;A String&quot;, # Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
123 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
124 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
125 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
126 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was last updated.
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # This resource represents a long-running operation that is the result of a network API call.
138 &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.
139 &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.
140 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
142 {
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
144 },
145 ],
146 &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.
147 },
148 &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.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &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}`.
152 &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`.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 }</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
160 <pre>Deletes a Dataset version.
161
162 Args:
163 name: string, Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` (required)
164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169 Returns:
170 An object of the form:
171
172 { # This resource represents a long-running operation that is the result of a network API call.
173 &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.
174 &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.
175 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
176 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
177 {
178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
179 },
180 ],
181 &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.
182 },
183 &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.
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 &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}`.
187 &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`.
188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
189 },
190 }</pre>
191 </div>
192
193 <div class="method">
194 <code class="details" id="get">get(name, readMask=None, x__xgafv=None)</code>
195 <pre>Gets a Dataset version.
196
197 Args:
198 name: string, Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` (required)
199 readMask: string, Mask specifying which fields to read.
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # Describes the dataset version.
209 &quot;bigQueryDatasetName&quot;: &quot;A String&quot;, # Output only. Name of the associated BigQuery dataset.
210 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was created.
211 &quot;displayName&quot;: &quot;A String&quot;, # The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
212 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
213 &quot;metadata&quot;: &quot;&quot;, # Required. Output only. Additional information about the DatasetVersion.
214 &quot;modelReference&quot;: &quot;A String&quot;, # Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
215 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
216 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
217 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
218 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was last updated.
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</code>
224 <pre>Lists DatasetVersions in a Dataset.
225
226 Args:
227 parent: string, Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` (required)
228 filter: string, Optional. The standard list filter.
229 orderBy: string, Optional. A comma-separated list of fields to order by, sorted in ascending order. Use &quot;desc&quot; after a field name for descending.
230 pageSize: integer, Optional. The standard list page size.
231 pageToken: string, Optional. The standard list page token.
232 readMask: string, Optional. Mask specifying which fields to read.
233 x__xgafv: string, V1 error format.
234 Allowed values
235 1 - v1 error format
236 2 - v2 error format
237
238 Returns:
239 An object of the form:
240
241 { # Response message for DatasetService.ListDatasetVersions.
242 &quot;datasetVersions&quot;: [ # A list of DatasetVersions that matches the specified filter in the request.
243 { # Describes the dataset version.
244 &quot;bigQueryDatasetName&quot;: &quot;A String&quot;, # Output only. Name of the associated BigQuery dataset.
245 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was created.
246 &quot;displayName&quot;: &quot;A String&quot;, # The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
247 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
248 &quot;metadata&quot;: &quot;&quot;, # Required. Output only. Additional information about the DatasetVersion.
249 &quot;modelReference&quot;: &quot;A String&quot;, # Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
250 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
251 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
252 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
253 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was last updated.
254 },
255 ],
256 &quot;nextPageToken&quot;: &quot;A String&quot;, # The standard List next-page token.
257 }</pre>
258 </div>
259
260 <div class="method">
261 <code class="details" id="list_next">list_next()</code>
262 <pre>Retrieves the next page of results.
263
264 Args:
265 previous_request: The request for the previous page. (required)
266 previous_response: The response from the request for the previous page. (required)
267
268 Returns:
269 A request object that you can call &#x27;execute()&#x27; on to request the next
270 page. Returns None if there are no more items in the collection.
271 </pre>
272 </div>
273
274 <div class="method">
275 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
276 <pre>Updates a DatasetVersion.
277
278 Args:
279 name: string, Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` (required)
280 body: object, The request body.
281 The object takes the form of:
282
283 { # Describes the dataset version.
284 &quot;bigQueryDatasetName&quot;: &quot;A String&quot;, # Output only. Name of the associated BigQuery dataset.
285 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was created.
286 &quot;displayName&quot;: &quot;A String&quot;, # The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
287 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
288 &quot;metadata&quot;: &quot;&quot;, # Required. Output only. Additional information about the DatasetVersion.
289 &quot;modelReference&quot;: &quot;A String&quot;, # Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
290 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
291 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
292 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
293 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was last updated.
294 }
295
296 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`
297 x__xgafv: string, V1 error format.
298 Allowed values
299 1 - v1 error format
300 2 - v2 error format
301
302 Returns:
303 An object of the form:
304
305 { # Describes the dataset version.
306 &quot;bigQueryDatasetName&quot;: &quot;A String&quot;, # Output only. Name of the associated BigQuery dataset.
307 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was created.
308 &quot;displayName&quot;: &quot;A String&quot;, # The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
309 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
310 &quot;metadata&quot;: &quot;&quot;, # Required. Output only. Additional information about the DatasetVersion.
311 &quot;modelReference&quot;: &quot;A String&quot;, # Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
312 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
313 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
314 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
315 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this DatasetVersion was last updated.
316 }</pre>
317 </div>
318
319 <div class="method">
320 <code class="details" id="restore">restore(name, x__xgafv=None)</code>
321 <pre>Restores a dataset version.
322
323 Args:
324 name: string, Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` (required)
325 x__xgafv: string, V1 error format.
326 Allowed values
327 1 - v1 error format
328 2 - v2 error format
329
330 Returns:
331 An object of the form:
332
333 { # This resource represents a long-running operation that is the result of a network API call.
334 &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.
335 &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.
336 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
337 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
338 {
339 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
340 },
341 ],
342 &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.
343 },
344 &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.
345 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
346 },
347 &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}`.
348 &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`.
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 }</pre>
352 </div>
353
354 </body></html>