Interface IAsset
This interface contains all the information pertaining to a cloud asset.
Namespace: Unity.Cloud.Assets
Syntax
public interface IAsset
Properties
Attachments
The attachments of the asset.
Declaration
IEnumerable<IAssetAttachment> Attachments { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IAssetAttachment> |
Author
The author of the asset.
Declaration
AssetAuthor Author { get; set; }
Property Value
Type | Description |
---|---|
AssetAuthor |
Categories
The categories of the asset.
Declaration
List<string> Categories { get; set; }
Property Value
Type | Description |
---|---|
List<String> |
Collections
The collections of the asset.
Declaration
IEnumerable<CollectionPath> Collections { get; }
Property Value
Type | Description |
---|---|
IEnumerable<CollectionPath> |
Created
The created date of the asset.
Declaration
DateTime Created { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
CreatedBy
The created by of the asset.
Declaration
string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
Description
The description of the asset.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
ExternalId
The external ID of the asset.
Declaration
string ExternalId { get; set; }
Property Value
Type | Description |
---|---|
String |
Files
The files of the asset.
Declaration
IEnumerable<IAssetFile> Files { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IAssetFile> |
Id
The id of the asset.
Declaration
string Id { get; set; }
Property Value
Type | Description |
---|---|
String |
Location
The location of the asset.
Declaration
AssetLocation Location { get; set; }
Property Value
Type | Description |
---|---|
AssetLocation |
Name
The name of the asset.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Origin
The origin of the asset.
Declaration
string Origin { get; set; }
Property Value
Type | Description |
---|---|
String |
PreviewFileId
The preview file ID of the asset.
Declaration
string PreviewFileId { get; set; }
Property Value
Type | Description |
---|---|
String |
Project
The project of the asset.
Declaration
IProject Project { get; set; }
Property Value
Type | Description |
---|---|
IProject |
ProjectIds
The project id's to which the asset is linked.
Declaration
List<string> ProjectIds { get; }
Property Value
Type | Description |
---|---|
List<String> |
ShortId
The short ID of the asset.
Declaration
string ShortId { get; set; }
Property Value
Type | Description |
---|---|
String |
SourceProjectId
The source project id of the asset.
Declaration
string SourceProjectId { get; set; }
Property Value
Type | Description |
---|---|
String |
Status
The status of the asset.
Declaration
string Status { get; set; }
Property Value
Type | Description |
---|---|
String |
StatusDetails
The status details of the asset.
Declaration
string StatusDetails { get; set; }
Property Value
Type | Description |
---|---|
String |
StorageId
The storage id of the asset.
Declaration
string StorageId { get; }
Property Value
Type | Description |
---|---|
String |
Tags
The tags of the asset.
Declaration
List<string> Tags { get; set; }
Property Value
Type | Description |
---|---|
List<String> |
Taxonomy
The taxonomy of the asset.
Declaration
AssetTaxonomy Taxonomy { get; set; }
Property Value
Type | Description |
---|---|
AssetTaxonomy |
Type
The type of the asset.
Declaration
string Type { get; set; }
Property Value
Type | Description |
---|---|
String |
Updated
The updated date of the asset.
Declaration
DateTime Updated { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
UpdatedBy
The updated by of the asset.
Declaration
string UpdatedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
Version
The version of the asset.
Declaration
int Version { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
VersionName
The version name of the asset.
Declaration
string VersionName { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
OnCollectionsUpdated(IEnumerable<AssetCollection>)
Implement this method to handle the addition of new collections.
Declaration
void OnCollectionsUpdated(IEnumerable<AssetCollection> assetCollections)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AssetCollection> | assetCollections | An updated list of collections. |
OnFilesUpdated(IEnumerable<AssetFile>, IEnumerable<AssetFile>)
Implement this method to handle the addition of new files and attachments.
Declaration
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 attachements. |