com.unity.cloud.assets 1.0.0

com.unity.cloud.assets

Source docs
Notes: processedReleased March 13, 2024

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 2022.3

Features

  • `IsDeleted` property to `IFieldDefinition`
  • `FieldDefinitionQueryBuilder`, `ProjectQueryBuilder`, `CollectionQueryBuilder`, `AssetQueryBuilder`, classes to build and execute queries.
  • `BooleanMetadata`, `DateTimeMetadata`, `NumberMetadata`, `StringMetadata`, and `UserMetadata`.
  • `IAsset.GetPreviewUrlAsync` and `IFile.GetPreviewUrlAsync`.
  • `IDataset.RefreshAsync()` and `IFile.RefreshAsync()`.
  • `IAsset.GetPreviewDatasetAsync()` and `IAsset.GetSourceDatasetAsync()` extension methods.
  • `UpdateStatusAsync` method to `IAsset`.
  • `WithValue(string, SearchOptions)` and `WithValue(Regex)` overloads to `StringSearchCriteria`.
  • Re-added `UploadAsync` method to `IFile` ans updated the method of the same name in `FileEntity`.

Improvements

  • [Breaking] Renamed `OrganizationGenesisId` property to `OrganizationId` in `CollectionDescriptor` and `TransformationDescriptor` classes.
  • [Breaking] Changed `CreatedBy` and `UpdatedBy` property type of `AuthoringInfo` class to `UserId`.
  • [Breaking] Changed `CreatedBy` and `UpdatedBy` property type of `AuthoringInfoSearchFilter` class to `IdSearchCriteria`.
  • [Breaking] `Collections` property of `AssetSearchFilter` changed from `List` to `QueryListParameter`.
  • [Breaking] `SearchAssetsAsync()` replaced by `QueryAssets()`.
  • [Breaking] `CountAssetsAsync()` replaced by `GroupAndCountAssets()`; `CountAssetsAsync()` returns `int` instead of `Aggregation`.
  • [Breaking] Renames `CollectionDescriptor.CollectionPath` to `CollectionDescriptor.Path`.
  • [Breaking] Renamed `AssetSearchFilter` to `AssetSearchCriteria`, `DatasetSearchFilter` to `DatasetSearchCriteria`, `FileSearchFiter` to `FilterSearchCriteria`, and `MetadataSearchFilter` to `MetadataSearchCriteria`.
  • [Breaking] `AssetSearchFilter` contains methods to `Include()`, `Exclude()`, and `Any()` on search criteria.
  • [Breaking] `Include()`, `Exclude()`, and `Any()` methods of search criteria replaced with `WithValue()` method; use `Include()`, `Exclude()`, and `Any()`, on `AssetSearchFilter`.
  • [Breaking] Renamed `IAssetCollection.AddAssetsAsync()` and `IAssetCollection.RemoveAssetsAsync()` to `IAssetCollection.ListAssetsAsync()` and `IAssetCollection.UnlinkAssetsAsync()` respectively.
  • [Breaking] Renamed `WorkflowType.TranscodeVideo` to `WorkflowType.Transcode_Video`.
  • [Breaking] `AccumulateIncludedCriteria`, `AccumulateExcludedCriteria`, and `AccumulateAnyCriteria` methods of `IAssetSearchFilter` return `IReadOnlyDictionary` instead of `Dictionary`.
  • Update com.unity.cloud.common dependency to 1.0.0.

Bug Fixes

  • Fixes listing of files in `IDataset`.

API Changes

  • [Breaking] Removed `Status` property from `IFieldDefinition`; use `IsDeleted`.
  • [Breaking] Removed `Pagination`; use `LimitTo()` and `OrderBy()` methods of query builders where available.
  • [Breaking] Removed `AggregationParameters`; use `GroupAndCountAssetsQueryBuilder`.
  • [Breaking] Removed `Aggregation`.
  • [Breaking] Internalized `FieldsFilter`.
  • [Breaking] Removed `MetadataObject` and `IMetadataValue`; use `MetadataValue`.
  • [Breaking] Removed `IAsset.PreviewFileUrl` and `IFile.PreviewUrl`; use `IAsset.GetPreviewUrlAsync` and `IFile.GetPreviewUrlAsync` respectively.
  • [Breaking] Removed `IAsset.GetProject()`, `IDataset.GetProject()`, and `IDataset.GetAsset()`.
  • [Breaking] Removed `IFile.InvalidateCachedUrls()`; use \`IFile.RefreshAsync().
  • [Breaking] Removed `IdSearchCriteria`; use `SearchCriteria`.
  • [Breaking] Removed inheritance of `IFieldDefinitionUpdate` from `IFieldDefinitionCreation` and `FieldDefinitionUpdate` from `FieldDefinitionCreation`.
  • [Breaking] Removed `PublishAsync`, `WithdrawAsync`, `SendToReviewAsync`, `ApproveAsync`, and `RejectAsync` methods from `IAsset`; use `UpdateStatusAsync`.