docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UGCRepresentationApi

    Represents a collection of functions to interact with the API endpoints

    Inheritance
    object
    UGCRepresentationApi
    Implements
    IUGCRepresentationApi
    IApiAccessor
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.UGC
    Assembly: solution.dll
    Syntax
    public class UGCRepresentationApi : IUGCRepresentationApi, IApiAccessor

    Constructors

    UGCRepresentationApi(IApiClient)

    Initializes a new instance of the UGCRepresentationApi class using a Configuration object and client instance.

    Declaration
    public UGCRepresentationApi(IApiClient apiClient)
    Parameters
    Type Name Description
    IApiClient apiClient

    The client interface for synchronous API access.

    UGCRepresentationApi(IApiClient, IApiConfiguration)

    Initializes a new instance of the UGCRepresentationApi class using a Configuration object and client instance.

    Declaration
    public UGCRepresentationApi(IApiClient apiClient, IApiConfiguration apiConfiguration)
    Parameters
    Type Name Description
    IApiClient apiClient

    The client interface for synchronous API access.

    IApiConfiguration apiConfiguration

    The configuration object.

    Properties

    Client

    The client for accessing this underlying API asynchronously.

    Declaration
    public IApiClient Client { get; }
    Property Value
    Type Description
    IApiClient

    Configuration

    Gets the configuration object

    Declaration
    public IApiConfiguration Configuration { get; }
    Property Value
    Type Description
    IApiConfiguration

    An instance of the Configuration

    Methods

    CreateRepresentation(string, string, string, CreateRepresentationRequest, CancellationToken)

    Create representation for a content item

    Declaration
    public ApiOperation<RepresentationDTO> CreateRepresentation(string projectId, string environmentId, string contentId, CreateRepresentationRequest createRepresentationRequest = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project that this content belongs to

    string environmentId

    Environment that this content belongs to

    string contentId

    Content id

    CreateRepresentationRequest createRepresentationRequest

    Request information for representation (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationDTO>

    The operation

    CreateRepresentationOutputVersion(string, string, string, string, AddRepresentationVersionRequest, CancellationToken)

    Add new representation version for a content item

    Declaration
    public ApiOperation<UploadRepresentationVersionResponse> CreateRepresentationOutputVersion(string projectId, string environmentId, string contentId, string representationId, AddRepresentationVersionRequest addRepresentationVersionRequest = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project that this content belongs to

    string environmentId

    Environment that this content belongs to

    string contentId

    Content id

    string representationId

    Representation id

    AddRepresentationVersionRequest addRepresentationVersionRequest

    Add representation request (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<UploadRepresentationVersionResponse>

    The operation

    DeleteRepresentation(string, string, string, string, CancellationToken)

    Delete representation for a content item

    Declaration
    public ApiOperation DeleteRepresentation(string projectId, string environmentId, string contentId, string representationId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project that this content belongs to

    string environmentId

    Environment that this content belongs to

    string contentId

    Content id

    string representationId

    Representation id

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    GetBasePath()

    Gets the base path of the API client.

    Declaration
    public string GetBasePath()
    Returns
    Type Description
    string

    The base path

    GetRepresentation(string, string, string, string, CancellationToken)

    Get representation for a content item

    Declaration
    public ApiOperation<RepresentationDTO> GetRepresentation(string projectId, string environmentId, string contentId, string representationId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project that this content belongs to

    string environmentId

    Environment that this content belongs to

    string contentId

    Content id

    string representationId

    Representation id

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationDTO>

    The operation

    SearchProjectRepresentations(string, string, int?, int?, List<string>, string, List<string>, List<string>, bool?, CancellationToken)

    Search representations in a given project and environment

    Declaration
    public ApiOperation<RepresentationDTOPagedResult> SearchProjectRepresentations(string projectId, string environmentId, int? offset = null, int? limit = null, List<string> sortBys = null, string search = null, List<string> tags = null, List<string> filters = null, bool? includeTotal = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Representations that belongs to this project

    string environmentId

    Representations that belongs to this environment

    int? offset

    The amount of results to skip (optional)

    int? limit

    The amount of results to take (optional)

    List<string> sortBys

    The field to use to sort by in ascending order, prefix - for descending (optional)

    string search

    Only return results with this search term in their name (optional)

    List<string> tags

    Only return results with these tags (optional)

    List<string> filters

    You can filter on any field in the DTO<br /> Syntax for filters is: {field},{operator},{value}<br /> The operators are: eq (equal to), neq (not equal to), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal)<br /> The field can be nested up to two levels. Ex: "field.nestedField.nestedNestedField"<br /> filters="deletedAt,eq,null" will only return entities that have not been deleted<br /> (optional)

    bool? includeTotal

    Should the result include the total count of objects available to page (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationDTOPagedResult>

    The operation

    SearchRepresentationVersions(string, string, string, string, int?, int?, List<string>, bool?, CancellationToken)

    Search representation versions for a content item

    Declaration
    public ApiOperation<RepresentationVersionDTOPagedResult> SearchRepresentationVersions(string projectId, string environmentId, string contentId, string representationId, int? offset = null, int? limit = null, List<string> sortBys = null, bool? includeTotal = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId
    string environmentId
    string contentId
    string representationId
    int? offset

    (optional)

    int? limit

    (optional)

    List<string> sortBys

    (optional)

    bool? includeTotal

    (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationVersionDTOPagedResult>

    The operation

    SearchRepresentations(string, string, string, int?, int?, string, List<string>, List<string>, List<string>, bool?, CancellationToken)

    Search representations for a content item

    Declaration
    public ApiOperation<RepresentationDTOPagedResult> SearchRepresentations(string projectId, string environmentId, string contentId, int? offset = null, int? limit = null, string search = null, List<string> sortBys = null, List<string> tags = null, List<string> filters = null, bool? includeTotal = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Representations that belongs to this project

    string environmentId

    Representations that belongs to this environment

    string contentId

    Representations that belongs to this content

    int? offset

    The amount of results to skip (optional)

    int? limit

    The amount of results to take (optional)

    string search

    Only return results with this search term in their name (optional)

    List<string> sortBys

    The field to use to sort by in ascending order, prefix - for descending (optional)

    List<string> tags

    Only return results with these tags (optional)

    List<string> filters

    You can filter on any field in the DTO<br /> Syntax for filters is: {field},{operator},{value}<br /> The operators are: eq (equal to), neq (not equal to), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal)<br /> The field can be nested up to two levels. Ex: "field.nestedField.nestedNestedField"<br /> filters="deletedAt,eq,null" will only return entities that have not been deleted<br /> (optional)

    bool? includeTotal

    Should the result include the total count of objects available to page (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationDTOPagedResult>

    The operation

    UpdateRepresentation(string, string, string, string, UpdateRepresentationRequest, CancellationToken)

    Update representation for a content item

    Declaration
    public ApiOperation<RepresentationDTO> UpdateRepresentation(string projectId, string environmentId, string contentId, string representationId, UpdateRepresentationRequest updateRepresentationRequest = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project that this content belongs to

    string environmentId

    Environment that this content belongs to

    string contentId

    Content id

    string representationId

    Representation id

    UpdateRepresentationRequest updateRepresentationRequest

    Request information for representation (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<RepresentationDTO>

    The operation

    Implements

    IUGCRepresentationApi
    IApiAccessor
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)