Class Asset
This is a base class containing the information pertaining to an asset.
Inherited Members
Namespace: Unity.Cloud.Assets
Syntax
public class Asset : IAsset
Constructors
Asset()
Declaration
public Asset()
Fields
m_Attachments
Declaration
protected List<AssetFile> m_Attachments
Field Value
Type | Description |
---|---|
List<AssetFile> |
m_Collections
Declaration
protected List<CollectionPath> m_Collections
Field Value
Type | Description |
---|---|
List<CollectionPath> |
m_Files
Declaration
protected List<AssetFile> m_Files
Field Value
Type | Description |
---|---|
List<AssetFile> |
Properties
Attachments
The attachments of the asset.
Declaration
public IEnumerable<IAssetAttachment> Attachments { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IAssetAttachment> |
Implements
Author
The author of the asset.
Declaration
public AssetAuthor Author { get; set; }
Property Value
Type | Description |
---|---|
AssetAuthor |
Implements
Categories
The categories of the asset.
Declaration
public List<string> Categories { get; set; }
Property Value
Type | Description |
---|---|
List<String> |
Implements
Collections
The collections of the asset.
Declaration
public IEnumerable<CollectionPath> Collections { get; }
Property Value
Type | Description |
---|---|
IEnumerable<CollectionPath> |
Implements
Created
The created date of the asset.
Declaration
public DateTime Created { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Implements
CreatedBy
The created by of the asset.
Declaration
public string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Description
The description of the asset.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
ExternalId
The external ID of the asset.
Declaration
public string ExternalId { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Files
The files of the asset.
Declaration
public IEnumerable<IAssetFile> Files { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IAssetFile> |
Implements
Id
The id of the asset.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Location
The location of the asset.
Declaration
public AssetLocation Location { get; set; }
Property Value
Type | Description |
---|---|
AssetLocation |
Implements
Name
The name of the asset.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Origin
The origin of the asset.
Declaration
public string Origin { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
PreviewFileId
The preview file ID of the asset.
Declaration
public string PreviewFileId { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Project
The project of the asset.
Declaration
public IProject Project { get; set; }
Property Value
Type | Description |
---|---|
IProject |
Implements
ProjectIds
The project id's to which the asset is linked.
Declaration
public List<string> ProjectIds { get; }
Property Value
Type | Description |
---|---|
List<String> |
Implements
ShortId
The short ID of the asset.
Declaration
public string ShortId { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
SourceProjectId
The source project id of the asset.
Declaration
public string SourceProjectId { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Status
The status of the asset.
Declaration
public string Status { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
StatusDetails
The status details of the asset.
Declaration
public string StatusDetails { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
StorageId
The storage id of the asset.
Declaration
public string StorageId { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Tags
The tags of the asset.
Declaration
public List<string> Tags { get; set; }
Property Value
Type | Description |
---|---|
List<String> |
Implements
Taxonomy
The taxonomy of the asset.
Declaration
public AssetTaxonomy Taxonomy { get; set; }
Property Value
Type | Description |
---|---|
AssetTaxonomy |
Implements
Type
The type of the asset.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Updated
The updated date of the asset.
Declaration
public DateTime Updated { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Implements
UpdatedBy
The updated by of the asset.
Declaration
public string UpdatedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Version
The version of the asset.
Declaration
public int Version { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
VersionName
The version name of the asset.
Declaration
public string VersionName { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Methods
OnCollectionsUpdated(IEnumerable<AssetCollection>)
Updates the collection list.
Declaration
public void OnCollectionsUpdated(IEnumerable<AssetCollection> assetCollections)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AssetCollection> | assetCollections | An updated list of collections. |
Implements
OnFilesUpdated(IEnumerable<AssetFile>, IEnumerable<AssetFile>)
Updates the files and attachments.
Declaration
public void OnFilesUpdated(IEnumerable<AssetFile> assetFiles, IEnumerable<AssetFile> assetAttachments)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AssetFile> | assetFiles | An updated list of files. |
IEnumerable<AssetFile> | assetAttachments | An updated list of attachments. |