- Docs
- Type Reference
Share
Share
¶
A Resource
is the core data model used to synchronize tasks between UCloud and Provider.
data class Share(
val id: String,
val specification: Share.Spec,
val createdAt: Long,
val status: Share.Status,
val updates: List<Share.Update>,
val owner: ResourceOwner,
val permissions: ResourcePermissions?,
val providerGeneratedId: String?,
)
For more information go here.
Properties
id
: String
A unique identifier referencing the `Resource`
String
The ID is unique across a provider for a single resource type.
specification
: Share.Spec
Share.Spec
createdAt
: Long
Timestamp referencing when the request for creation was received by UCloud
Long
status
: Share.Status
Holds the current status of the `Resource`
Share.Status
updates
: List<Share.Update>
Contains a list of updates from the provider as well as UCloud
List<Share.Update>
Updates provide a way for both UCloud, and the provider to communicate to the user what is happening with their resource.
owner
: ResourceOwner
Contains information about the original creator of the `Resource` along with project association
ResourceOwner
permissions
: ResourcePermissions?
Permissions assigned to this resource
ResourcePermissions?
A null value indicates that permissions are not supported by this resource type.
providerGeneratedId
: String?
String?