Sift | Docs

assets

Protocol buffer definition for assets

sift/assets/v1/assets.proto

ArchiveAssetRequest

The request for a call to AssetService_ArchiveAsset to archive a single existing asset by its asset_id.

FieldTypeLabelDescription
asset_idstringThe id of the asset to be archived. Required.
archive_runsboolIf true, will archive all runs associated with the asset.

ArchiveAssetResponse

The response of a call to AssetService_ArchiveAsset.

FieldTypeLabelDescription
archived_run_idsstringrepeatedList of run IDs that were archived when archive_runs was set to true. This field will be empty if archive_runs was false or if no runs were archived.

Asset

FieldTypeLabelDescription
asset_idstring
namestring
organization_idstring
created_dategoogle.protobuf.Timestamp
created_by_user_idstring
modified_dategoogle.protobuf.Timestamp
modified_by_user_idstring
tagsstringrepeatedThe names of the tags associated with this asset.
metadatasift.metadata.v1.MetadataValuerepeatedThe metadata values associated with this asset.
archived_dategoogle.protobuf.TimestampThe date the asset was archived.
is_archivedboolWhether the asset is archived. This is inferred from whether archived_date is set.

DeleteAssetRequest

The request for a call to AssetService_DeleteAsset to archive a single existing asset by its asset_id. Deprecated: Use ArchiveAssetRequest instead.

FieldTypeLabelDescription
asset_idstringThe id of the asset to be archived. Required.
archive_runsboolIf true, will archive all runs associated with the asset.

DeleteAssetResponse

The response of a call to AssetService_DeleteAsset. Deprecated: Use ArchiveAssetResponse instead.

GetAssetRequest

The request for a call to AssetService_GetAsset to retrieve a single existing asset by its asset_id.

FieldTypeLabelDescription
asset_idstringThe id of the asset to be retrieved. Required.

GetAssetResponse

FieldTypeLabelDescription
assetAsset

ListAssetsRequest

The request for a call to AssetService_ListAssets.

FieldTypeLabelDescription
page_sizeuint32The maximum number of assets to return. The service may return fewer than this value. If unspecified, at most 50 assets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_tokenstringA page token, received from a previous ListAssets call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAssets must match the call that provided the page token.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are asset_id, created_by_user_id, modified_by_user_id, created_date, modified_date, name, tag_id, tag_name, is_archived, and metadata. Metadata can be used in filters by using metadata.{metadata_key_name} as the field name. For further information about how to use CELs, please refer to this guide. For more information about the fields used for filtering, please refer to this definition. Optional.
order_bystringHow to order the retrieved assets. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". Available fields to order_by are name, created_date and modified_date. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: "created_date desc,modified_date"

ListAssetsResponse

The result of a call to AssetService_ListAssets.

FieldTypeLabelDescription
assetsAssetrepeated
next_page_tokenstring

UpdateAssetRequest

The request for a call to AssetService_UpdateAsset to update a single existing asset.

FieldTypeLabelDescription
assetAssetThe asset to update. The asset's asset_id field is used to identify asset run to update and is required.
update_maskgoogle.protobuf.FieldMaskThe list of fields to be updated. The fields available to be updated are tags, metadata, archived_date, and is_archived.

UpdateAssetResponse

The response of a call to AssetService_UpdateAsset.

FieldTypeLabelDescription
assetAsset

AssetService

Method NameRequest TypeResponse TypeDescription
DeleteAssetDeleteAssetRequestDeleteAssetResponseDelete will archive an asset. Deprecated: Use ArchiveAsset instead.
GetAssetGetAssetRequestGetAssetResponseRetrieves an asset.
ListAssetsListAssetsRequestListAssetsResponseRetrieves assets using an optional filter.
UpdateAssetUpdateAssetRequestUpdateAssetResponse
ArchiveAssetArchiveAssetRequestArchiveAssetResponseArchive an asset.

On this page