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 ( |
| Fields | |
|---|---|
name |
Resource name of the asset. Form: |
ttl |
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 ' |
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 |
Cloud storage uri. |
Methods |
|
|---|---|
|
Analyze asset to power search capability. |
|
Generates clips for downloading. |
|
Creates an asset inside corpus. |
|
Deletes asset inside corpus. |
|
Generates a uri for an HLS manifest. |
|
Generates a signed url for downloading the asset. |
|
Reads an asset inside corpus. |
|
Imports assets (images plus annotations) from a meta file on cloud storage. |
|
Index one asset for search. |
|
Lists an list of assets inside corpus. |
|
Updates an asset inside corpus. |
|
Remove one asset's index data for search. |
|
Upload asset by specifing the asset Cloud Storage uri. |