Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.metadataStores.artifacts.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.metadataStores.html">metadataStores</a> . <a href="aiplatform_v1beta1.projects.locations.metadataStores.artifacts.html">artifacts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.projects.locations.metadataStores.artifacts.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, artifactId=None, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates an Artifact associated with a MetadataStore.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an Artifact.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Retrieves a specific Artifact.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists Artifacts in the MetadataStore.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, allowMissing=None, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Updates a stored Artifact.</p>
103 <p class="toc_element">
104 <code><a href="#purge">purge(parent, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Purges Artifacts.</p>
106 <p class="toc_element">
107 <code><a href="#queryArtifactLineageSubgraph">queryArtifactLineageSubgraph(artifact, filter=None, maxHops=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113 </div>
114
115 <div class="method">
116 <code class="details" id="create">create(parent, artifactId=None, body=None, x__xgafv=None)</code>
117 <pre>Creates an Artifact associated with a MetadataStore.
118
119 Args:
120 parent: string, Required. The resource name of the MetadataStore where the Artifact should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` (required)
121 body: object, The request body.
122 The object takes the form of:
123
124 { # Instance of a general artifact.
125 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
126 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
127 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
128 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
129 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
130 &quot;a_key&quot;: &quot;A String&quot;,
131 },
132 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
133 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
134 },
135 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
136 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
137 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
138 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
139 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
140 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
141 }
142
143 artifactId: string, The {artifact} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not provided, the Artifact&#x27;s ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can&#x27;t view the preexisting Artifact.)
144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
148
149 Returns:
150 An object of the form:
151
152 { # Instance of a general artifact.
153 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
154 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
155 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
156 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
157 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
161 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
162 },
163 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
164 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
165 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
166 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
168 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
169 }</pre>
170 </div>
171
172 <div class="method">
173 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
174 <pre>Deletes an Artifact.
175
176 Args:
177 name: string, Required. The resource name of the Artifact to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` (required)
178 etag: string, Optional. The etag of the Artifact to delete. If this is provided, it must match the server&#x27;s etag. Otherwise, the request will fail with a FAILED_PRECONDITION.
179 x__xgafv: string, V1 error format.
180 Allowed values
181 1 - v1 error format
182 2 - v2 error format
183
184 Returns:
185 An object of the form:
186
187 { # This resource represents a long-running operation that is the result of a network API call.
188 &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.
189 &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.
190 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
191 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
192 {
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 ],
196 &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.
197 },
198 &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.
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 &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}`.
202 &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`.
203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
204 },
205 }</pre>
206 </div>
207
208 <div class="method">
209 <code class="details" id="get">get(name, x__xgafv=None)</code>
210 <pre>Retrieves a specific Artifact.
211
212 Args:
213 name: string, Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` (required)
214 x__xgafv: string, V1 error format.
215 Allowed values
216 1 - v1 error format
217 2 - v2 error format
218
219 Returns:
220 An object of the form:
221
222 { # Instance of a general artifact.
223 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
224 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
225 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
226 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
227 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
228 &quot;a_key&quot;: &quot;A String&quot;,
229 },
230 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
232 },
233 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
234 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
235 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
236 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
237 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
238 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
239 }</pre>
240 </div>
241
242 <div class="method">
243 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
244 <pre>Lists Artifacts in the MetadataStore.
245
246 Args:
247 parent: string, Required. The MetadataStore whose Artifacts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` (required)
248 filter: string, Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = &quot;test&quot;`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = &quot;2020-11-19T11:30:00-04:00&quot;` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.&quot;field:1&quot;.number_value = 10.0` * **Context based filtering**: To filter Artifacts based on the contexts to which they belong, use the function operator with the full resource name `in_context()`. For example: `in_context(&quot;projects//locations//metadataStores//contexts/&quot;)` Each of the above supported filter types can be combined together using logical operators (`AND` &amp; `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = &quot;test&quot; AND metadata.field1.bool_value = true`.
249 orderBy: string, How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a &quot; desc&quot; suffix; for example: &quot;foo desc, bar&quot;. Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.
250 pageSize: integer, The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.
251 pageToken: string, A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257 Returns:
258 An object of the form:
259
260 { # Response message for MetadataService.ListArtifacts.
261 &quot;artifacts&quot;: [ # The Artifacts retrieved from the MetadataStore.
262 { # Instance of a general artifact.
263 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
264 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
265 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
266 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
267 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
268 &quot;a_key&quot;: &quot;A String&quot;,
269 },
270 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
272 },
273 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
274 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
275 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
276 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
277 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
278 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
279 },
280 ],
281 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as ListArtifactsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.
282 }</pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="list_next">list_next()</code>
287 <pre>Retrieves the next page of results.
288
289 Args:
290 previous_request: The request for the previous page. (required)
291 previous_response: The response from the request for the previous page. (required)
292
293 Returns:
294 A request object that you can call &#x27;execute()&#x27; on to request the next
295 page. Returns None if there are no more items in the collection.
296 </pre>
297 </div>
298
299 <div class="method">
300 <code class="details" id="patch">patch(name, allowMissing=None, body=None, updateMask=None, x__xgafv=None)</code>
301 <pre>Updates a stored Artifact.
302
303 Args:
304 name: string, Output only. The resource name of the Artifact. (required)
305 body: object, The request body.
306 The object takes the form of:
307
308 { # Instance of a general artifact.
309 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
310 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
311 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
312 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
313 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
314 &quot;a_key&quot;: &quot;A String&quot;,
315 },
316 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
317 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
318 },
319 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
320 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
321 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
322 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
323 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
324 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
325 }
326
327 allowMissing: boolean, If set to true, and the Artifact is not found, a new Artifact is created.
328 updateMask: string, Optional. A FieldMask indicating which fields should be updated.
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # Instance of a general artifact.
338 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
339 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
340 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
341 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
342 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
343 &quot;a_key&quot;: &quot;A String&quot;,
344 },
345 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
347 },
348 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
349 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
350 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
351 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
352 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
353 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
354 }</pre>
355 </div>
356
357 <div class="method">
358 <code class="details" id="purge">purge(parent, body=None, x__xgafv=None)</code>
359 <pre>Purges Artifacts.
360
361 Args:
362 parent: string, Required. The metadata store to purge Artifacts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` (required)
363 body: object, The request body.
364 The object takes the form of:
365
366 { # Request message for MetadataService.PurgeArtifacts.
367 &quot;filter&quot;: &quot;A String&quot;, # Required. A required filter matching the Artifacts to be purged. E.g., `update_time &lt;= 2020-11-19T11:30:00-04:00`.
368 &quot;force&quot;: True or False, # Optional. Flag to indicate to actually perform the purge. If `force` is set to false, the method will return a sample of Artifact names that would be deleted.
369 }
370
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376 Returns:
377 An object of the form:
378
379 { # This resource represents a long-running operation that is the result of a network API call.
380 &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.
381 &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.
382 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
383 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
384 {
385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
386 },
387 ],
388 &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.
389 },
390 &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.
391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
392 },
393 &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}`.
394 &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`.
395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
396 },
397 }</pre>
398 </div>
399
400 <div class="method">
401 <code class="details" id="queryArtifactLineageSubgraph">queryArtifactLineageSubgraph(artifact, filter=None, maxHops=None, x__xgafv=None)</code>
402 <pre>Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.
403
404 Args:
405 artifact: string, Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000. (required)
406 filter: string, Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = &quot;test&quot;` Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = &quot;2020-11-19T11:30:00-04:00&quot;` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.&quot;field:1&quot;.number_value = 10.0` Each of the above supported filter types can be combined together using logical operators (`AND` &amp; `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = &quot;test&quot; AND metadata.field1.bool_value = true`.
407 maxHops: integer, Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph.
408 x__xgafv: string, V1 error format.
409 Allowed values
410 1 - v1 error format
411 2 - v2 error format
412
413 Returns:
414 An object of the form:
415
416 { # A subgraph of the overall lineage graph. Event edges connect Artifact and Execution nodes.
417 &quot;artifacts&quot;: [ # The Artifact nodes in the subgraph.
418 { # Instance of a general artifact.
419 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was created.
420 &quot;description&quot;: &quot;A String&quot;, # Description of the Artifact
421 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Artifact. May be up to 128 Unicode characters.
422 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
423 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Artifacts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Artifact (System labels are excluded).
424 &quot;a_key&quot;: &quot;A String&quot;,
425 },
426 &quot;metadata&quot;: { # Properties of the Artifact. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
428 },
429 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Artifact.
430 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
431 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
432 &quot;state&quot;: &quot;A String&quot;, # The state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
433 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Artifact was last updated.
434 &quot;uri&quot;: &quot;A String&quot;, # The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
435 },
436 ],
437 &quot;events&quot;: [ # The Event edges between Artifacts and Executions in the subgraph.
438 { # An edge describing the relationship between an Artifact and an Execution in a lineage graph.
439 &quot;artifact&quot;: &quot;A String&quot;, # Required. The relative resource name of the Artifact in the Event.
440 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. Time the Event occurred.
441 &quot;execution&quot;: &quot;A String&quot;, # Output only. The relative resource name of the Execution in the Event.
442 &quot;labels&quot;: { # The labels with user-defined metadata to annotate Events. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Event (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with &quot;aiplatform.googleapis.com/&quot; and are immutable.
443 &quot;a_key&quot;: &quot;A String&quot;,
444 },
445 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the Event.
446 },
447 ],
448 &quot;executions&quot;: [ # The Execution nodes in the subgraph.
449 { # Instance of a general execution.
450 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Execution was created.
451 &quot;description&quot;: &quot;A String&quot;, # Description of the Execution
452 &quot;displayName&quot;: &quot;A String&quot;, # User provided display name of the Execution. May be up to 128 Unicode characters.
453 &quot;etag&quot;: &quot;A String&quot;, # An eTag used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
454 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Executions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Execution (System labels are excluded).
455 &quot;a_key&quot;: &quot;A String&quot;,
456 },
457 &quot;metadata&quot;: { # Properties of the Execution. Top level metadata keys&#x27; heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
459 },
460 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Execution.
461 &quot;schemaTitle&quot;: &quot;A String&quot;, # The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
462 &quot;schemaVersion&quot;: &quot;A String&quot;, # The version of the schema in `schema_title` to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
463 &quot;state&quot;: &quot;A String&quot;, # The state of this Execution. This is a property of the Execution, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines) and the system does not prescribe or check the validity of state transitions.
464 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Execution was last updated.
465 },
466 ],
467 }</pre>
468 </div>
469
470 </body></html>