docs.unity3d.com
    Show / Hide Table of Contents

    Class CloudAssetManager

    A class that provides access and management of cloud assets.

    Inheritance
    Object
    CloudAssetProvider
    CloudAssetManager
    Inherited Members
    CloudAssetProvider.Name
    CloudAssetProvider.GetAssetAsync(IProject, String, Int32, CancellationToken)
    CloudAssetProvider.GetAssetAsync<TAsset>(IProject, String, Int32, CancellationToken)
    CloudAssetProvider.SearchAsync(IAssetSearchFilter, Pagination, CancellationToken)
    CloudAssetProvider.SearchAsync(IOrganization, IEnumerable<IProject>, IAssetSearchFilter, Pagination, CancellationToken)
    CloudAssetProvider.SearchAsync<TAsset>(IAssetSearchFilter, Pagination, CancellationToken)
    CloudAssetProvider.SearchAsync<TAsset>(IOrganization, IEnumerable<IProject>, IAssetSearchFilter, Pagination, CancellationToken)
    CloudAssetProvider.AggregateAsync(IAssetSearchFilter, AggregationParameters, CancellationToken)
    CloudAssetProvider.AggregateAsync(IOrganization, IEnumerable<IProject>, IAssetSearchFilter, AggregationParameters, CancellationToken)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Assets
    Syntax
    public sealed class CloudAssetManager : CloudAssetProvider, IAssetProvider, IAssetManager

    Constructors

    CloudAssetManager(IServiceHttpClient, IServiceHostResolver, AssetServiceConfiguration)

    Initializes and returns an instance of CloudAssetManager

    Declaration
    public CloudAssetManager(IServiceHttpClient serviceHttpClient, IServiceHostResolver serviceHostResolver, AssetServiceConfiguration assetServiceConfiguration)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    The IServiceHttpClient used to fetch the data.

    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver object.

    AssetServiceConfiguration assetServiceConfiguration

    The asset service configuration object.

    Methods

    ApproveAssetAsync(IAsset, CancellationToken)

    Implement this method to approve an asset in review.

    Declaration
    public Task ApproveAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.ApproveAssetAsync(IAsset, CancellationToken)

    CheckProjectIsAssetSourceProjectAsync(IAsset, CancellationToken)

    Implement this method to check if the project is an asset source project.

    Declaration
    public Task<bool> CheckProjectIsAssetSourceProjectAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<Boolean>

    A task with a boolean. True if asset's project is the source. False otherwise

    Implements
    IAssetManager.CheckProjectIsAssetSourceProjectAsync(IAsset, CancellationToken)

    CreateAssetAsync(IAssetCreation, CancellationToken)

    Implement this method to create an asset.

    Declaration
    public Task<IAsset> CreateAssetAsync(IAssetCreation assetCreation, CancellationToken token)
    Parameters
    Type Name Description
    IAssetCreation assetCreation

    The object containing the necessary information to create an IAsset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<IAsset>

    A task with no result.

    Implements
    IAssetManager.CreateAssetAsync(IAssetCreation, CancellationToken)

    DeleteAssetAsync(IAsset, CancellationToken)

    Implement this method to delete an asset.

    Declaration
    public Task DeleteAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset to delete.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.DeleteAssetAsync(IAsset, CancellationToken)

    GetAssetCollectionsAsync(IAsset, CancellationToken)

    Implement this method to get the asset collections.

    Declaration
    public Task GetAssetCollectionsAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The the asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.GetAssetCollectionsAsync(IAsset, CancellationToken)

    GetAssetDownloadUrlsAsync(IAsset, CancellationToken)

    Implement this method to get the asset download urls.

    Declaration
    public Task GetAssetDownloadUrlsAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The the asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.GetAssetDownloadUrlsAsync(IAsset, CancellationToken)

    LinkAnAssetToProjectAsync(IAsset, UInt64, String, CancellationToken)

    Implement this method to get the asset download urls.

    Declaration
    public Task LinkAnAssetToProjectAsync(IAsset asset, ulong destinationOrganizationId, string destinationProjectId, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    UInt64 destinationOrganizationId

    The destination organization id.

    String destinationProjectId

    The destination project id.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.LinkAnAssetToProjectAsync(IAsset, UInt64, String, CancellationToken)

    PublishApprovedAssetAsync(IAsset, CancellationToken)

    Implement this method to publish an approved asset.

    Declaration
    public Task PublishApprovedAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.PublishApprovedAssetAsync(IAsset, CancellationToken)

    RejectAssetAsync(IAsset, CancellationToken)

    Implement this method to reject an asset in review.

    Declaration
    public Task RejectAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.RejectAssetAsync(IAsset, CancellationToken)

    SendAssetToReviewAsync(IAsset, CancellationToken)

    Implement this method to send an asset to review.

    Declaration
    public Task SendAssetToReviewAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.SendAssetToReviewAsync(IAsset, CancellationToken)

    UnlinkAssetFromProjectAsync(IAsset, CancellationToken)

    Implement this method to unlink the asset from the project.

    Declaration
    public Task UnlinkAssetFromProjectAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.UnlinkAssetFromProjectAsync(IAsset, CancellationToken)

    UpdateAssetAsync(IAsset, CancellationToken)

    Implement this method to update an asset.

    Declaration
    public Task UpdateAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset you want to update.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.UpdateAssetAsync(IAsset, CancellationToken)

    WithdrawPublishedAssetAsync(IAsset, CancellationToken)

    Implement this method to withdraw an published asset.

    Declaration
    public Task WithdrawPublishedAssetAsync(IAsset asset, CancellationToken token)
    Parameters
    Type Name Description
    IAsset asset

    The asset.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    Implements
    IAssetManager.WithdrawPublishedAssetAsync(IAsset, CancellationToken)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023