Interface ICloudStorageInfoProvider
An interface that exposes cloud storage information.
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public interface ICloudStorageInfoProvider
Methods
GetCloudStorageUsageAsync(CancellationToken)
A Task that returns an ICloudStorageUsage once completed.
Declaration
Task<ICloudStorageUsage> GetCloudStorageUsageAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<ICloudStorageUsage> |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException | Thrown if the role of the user in the Organization is Project guest. |
HasMeteredBillingActivatedAsync(CancellationToken)
A Task that returns a bool about an Organization metered billing status once completed.
Declaration
Task<bool> HasMeteredBillingActivatedAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> | A bool about an Organization metered billing status. |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException | Thrown if the role of the user in the Organization is Project guest. |