REST Resource: projects.locations.corpora.assets

Resource: Asset

An asset is a resource in corpus. It represents a media object inside corpus, contains metadata and another resource annotation. Different feature could be applied to the asset to generate annotations. User could specified annotation related to the target asset.

JSON representation
{
  "name": string,
  "ttl": string,
  "assetGcsSource": {
    object (AssetGcsSource)
  }
}
Fields
name

string

Resource name of the asset. Form: projects/{project_number}/locations/{locationId}/corpora/{corpus_id}/assets/{assetId}

ttl

string (Duration format)

The duration for which all media assets, associated metadata, and search documents can exist. If not set, then it will using the default ttl in the parent corpus resource.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

assetGcsSource

object (AssetGcsSource)

Output only. The original cloud storage source uri that is associated with this asset.

AssetGcsSource

The asset source is from Cloud Storage.

JSON representation
{
  "gcsUri": string
}
Fields
gcsUri

string

Cloud storage uri.

Methods

analyze

Analyze asset to power search capability.

clip

Generates clips for downloading.

create

Creates an asset inside corpus.

delete

Deletes asset inside corpus.

generateHlsUri

Generates a uri for an HLS manifest.

generateRetrievalUrl

Generates a signed url for downloading the asset.

get

Reads an asset inside corpus.

import

Imports assets (images plus annotations) from a meta file on cloud storage.

index

Index one asset for search.

list

Lists an list of assets inside corpus.

patch

Updates an asset inside corpus.

removeIndex

Remove one asset's index data for search.

upload

Upload asset by specifing the asset Cloud Storage uri.