Class AssetLabelQueryBuilder
A class that builds and executes a query to return a set of labels assigned to an asset.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public sealed class AssetLabelQueryBuilder
Methods
ExecuteAsync(CancellationToken)
Excetues the query and returns the list of label names associated to each version of the specified asset.
Declaration
public IAsyncEnumerable<(AssetDescriptor, IEnumerable<string>)> ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<(AssetDescriptor, IEnumerable<string>)> | An async enumeration of tuples of an Unity.Cloud.Common.AssetDescriptor and an enumeration of label names. |
LimitTo(Range)
Sets the range of results to return.
Declaration
public AssetLabelQueryBuilder LimitTo(Range range)
Parameters
Type | Name | Description |
---|---|---|
Range | range | The range of results. |
Returns
Type | Description |
---|---|
AssetLabelQueryBuilder | The calling TransformationQueryBuilder. |
WhereIsArchivedEquals(bool)
Sets the query to return the labels of the given status.
Declaration
public AssetLabelQueryBuilder WhereIsArchivedEquals(bool isArchived)
Parameters
Type | Name | Description |
---|---|---|
bool | isArchived | Whether the returned labels are archived or not. |
Returns
Type | Description |
---|---|
AssetLabelQueryBuilder | The calling AssetLabelQueryBuilder. |