artifacts
Creates, updates, deletes, gets or lists an artifacts resource.
Overview
| Name | artifacts |
| Type | Resource |
| Id | google.aiplatform.artifacts |
Fields
The following fields are returned by SELECT queries:
- get
- query_artifact_lineage_subgraph
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The resource name of the Artifact. |
createTime | string (google-datetime) | Output only. Timestamp when this Artifact was created. |
description | string | Description of the Artifact |
displayName | string | User provided display name of the Artifact. May be up to 128 Unicode characters. |
etag | string | An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | 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). |
metadata | object | Properties of the Artifact. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. |
schemaTitle | string | 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. |
schemaVersion | string | 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. |
state | string | 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. (STATE_UNSPECIFIED, PENDING, LIVE) |
updateTime | string (google-datetime) | Output only. Timestamp when this Artifact was last updated. |
uri | string | The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file. |
| Name | Datatype | Description |
|---|---|---|
artifacts | array | The Artifact nodes in the subgraph. |
events | array | The Event edges between Artifacts and Executions in the subgraph. |
executions | array | The Execution nodes in the subgraph. |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The resource name of the Artifact. |
createTime | string (google-datetime) | Output only. Timestamp when this Artifact was created. |
description | string | Description of the Artifact |
displayName | string | User provided display name of the Artifact. May be up to 128 Unicode characters. |
etag | string | An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | 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). |
metadata | object | Properties of the Artifact. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. |
schemaTitle | string | 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. |
schemaVersion | string | 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. |
state | string | 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. (STATE_UNSPECIFIED, PENDING, LIVE) |
updateTime | string (google-datetime) | Output only. Timestamp when this Artifact was last updated. |
uri | string | The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, metadataStoresId, artifactsId | Retrieves a specific Artifact. | |
query_artifact_lineage_subgraph | select | projectsId, locationsId, metadataStoresId, artifactsId | maxHops, filter | Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph. |
list | select | projectsId, locationsId, metadataStoresId | pageSize, pageToken, orderBy, filter | Lists Artifacts in the MetadataStore. |
create | insert | projectsId, locationsId, metadataStoresId | artifactId | Creates an Artifact associated with a MetadataStore. |
patch | update | projectsId, locationsId, metadataStoresId, artifactsId | updateMask, allowMissing | Updates a stored Artifact. |
delete | delete | projectsId, locationsId, metadataStoresId, artifactsId | etag | Deletes an Artifact. |
purge | exec | projectsId, locationsId, metadataStoresId | Purges Artifacts. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
artifactsId | string | |
locationsId | string | |
metadataStoresId | string | |
projectsId | string | |
allowMissing | boolean | |
artifactId | string | |
etag | string | |
filter | string | |
maxHops | integer (int32) | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get
- query_artifact_lineage_subgraph
- list
Retrieves a specific Artifact.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime,
uri
FROM google.aiplatform.artifacts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataStoresId = '{{ metadataStoresId }}' -- required
AND artifactsId = '{{ artifactsId }}' -- required
;
Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.
SELECT
artifacts,
events,
executions
FROM google.aiplatform.artifacts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataStoresId = '{{ metadataStoresId }}' -- required
AND artifactsId = '{{ artifactsId }}' -- required
AND maxHops = '{{ maxHops }}'
AND filter = '{{ filter }}'
;
Lists Artifacts in the MetadataStore.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime,
uri
FROM google.aiplatform.artifacts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataStoresId = '{{ metadataStoresId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND filter = '{{ filter }}'
;
INSERT examples
- create
- Manifest
Creates an Artifact associated with a MetadataStore.
INSERT INTO google.aiplatform.artifacts (
data__description,
data__metadata,
data__labels,
data__state,
data__schemaVersion,
data__displayName,
data__etag,
data__uri,
data__schemaTitle,
projectsId,
locationsId,
metadataStoresId,
artifactId
)
SELECT
'{{ description }}',
'{{ metadata }}',
'{{ labels }}',
'{{ state }}',
'{{ schemaVersion }}',
'{{ displayName }}',
'{{ etag }}',
'{{ uri }}',
'{{ schemaTitle }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ metadataStoresId }}',
'{{ artifactId }}'
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime,
uri
;
# Description fields are for documentation purposes
- name: artifacts
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the artifacts resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the artifacts resource.
- name: metadataStoresId
value: "{{ metadataStoresId }}"
description: Required parameter for the artifacts resource.
- name: description
value: "{{ description }}"
description: |
Description of the Artifact
- name: metadata
value: "{{ metadata }}"
description: |
Properties of the Artifact. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
- name: labels
value: "{{ labels }}"
description: |
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).
- name: state
value: "{{ state }}"
description: |
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.
valid_values: ['STATE_UNSPECIFIED', 'PENDING', 'LIVE']
- name: schemaVersion
value: "{{ schemaVersion }}"
description: |
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.
- name: displayName
value: "{{ displayName }}"
description: |
User provided display name of the Artifact. May be up to 128 Unicode characters.
- name: etag
value: "{{ etag }}"
description: |
An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: uri
value: "{{ uri }}"
description: |
The uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
- name: schemaTitle
value: "{{ schemaTitle }}"
description: |
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.
- name: artifactId
value: "{{ artifactId }}"
UPDATE examples
- patch
Updates a stored Artifact.
UPDATE google.aiplatform.artifacts
SET
data__description = '{{ description }}',
data__metadata = '{{ metadata }}',
data__labels = '{{ labels }}',
data__state = '{{ state }}',
data__schemaVersion = '{{ schemaVersion }}',
data__displayName = '{{ displayName }}',
data__etag = '{{ etag }}',
data__uri = '{{ uri }}',
data__schemaTitle = '{{ schemaTitle }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataStoresId = '{{ metadataStoresId }}' --required
AND artifactsId = '{{ artifactsId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime,
uri;
DELETE examples
- delete
Deletes an Artifact.
DELETE FROM google.aiplatform.artifacts
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataStoresId = '{{ metadataStoresId }}' --required
AND artifactsId = '{{ artifactsId }}' --required
AND etag = '{{ etag }}'
;
Lifecycle Methods
- purge
Purges Artifacts.
EXEC google.aiplatform.artifacts.purge
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@metadataStoresId='{{ metadataStoresId }}' --required
@@json=
'{
"filter": "{{ filter }}",
"force": {{ force }}
}'
;