Ingoing API¶
Table of Contents¶
1. Remote Procedure Calls
Name | Description |
---|---|
retrieveProducts |
Retrieve product support for this provider |
create |
Request creation of resource. |
delete |
Request deletion of resource. |
init |
Request from the user to (potentially) initialize any resources |
rename |
No description |
updateAcl |
Callback received by the Provider when permissions are updated |
verify |
Invoked by UCloud/Core to trigger verification of a single batch |
2. Data Models
Name | Description |
---|---|
FileCollectionsProviderRenameRequestItem |
No description |
Remote Procedure Calls¶
retrieveProducts
¶
Retrieve product support for this provider
Request | Response | Error |
---|---|---|
Unit |
BulkResponse<FSSupport> |
CommonErrorMessage |
This endpoint responds with the Product
s supported by
this provider along with details for how Product
is
supported. The Product
s must be registered with
UCloud/Core already.
create
¶
Request creation of resource.
Request | Response | Error |
---|---|---|
BulkRequest<FileCollection> |
BulkResponse<FindByStringId> |
CommonErrorMessage |
delete
¶
Request deletion of resource.
Request | Response | Error |
---|---|---|
BulkRequest<FileCollection> |
BulkResponse<Unit> |
CommonErrorMessage |
init
¶
Request from the user to (potentially) initialize any resources
Request | Response | Error |
---|---|---|
ResourceInitializationRequest |
Unit |
CommonErrorMessage |
This request is sent by the client, if the client believes that initialization of resources might be needed. NOTE: This request might be sent even if initialization has already taken place. UCloud/Core does not check if initialization has already taken place, it simply validates the request.
rename
¶
Request | Response | Error |
---|---|---|
BulkRequest<FileCollectionsProviderRenameRequestItem> |
BulkResponse<Unit> |
CommonErrorMessage |
updateAcl
¶
Callback received by the Provider when permissions are updated
Request | Response | Error |
---|---|---|
BulkRequest<UpdatedAclWithResource<FileCollection>> |
BulkResponse<Unit> |
CommonErrorMessage |
This endpoint is mandatory for Providers to implement. If the Provider does not need to keep
internal state, then they may simply ignore this request by responding with 200 OK
. The
Provider MUST reply with an OK status. UCloud/Core will fail the request if the Provider does
not acknowledge the request.
verify
¶
Invoked by UCloud/Core to trigger verification of a single batch
Request | Response | Error |
---|---|---|
BulkRequest<FileCollection> |
Unit |
CommonErrorMessage |
This endpoint is periodically invoked by UCloud/Core for resources which are deemed active. The Provider should immediately determine if these are still valid and recognized by the Provider. If any of the resources are not valid, then the Provider should notify UCloud/Core by issuing an update for each affected resource.
Data Models¶
FileCollectionsProviderRenameRequestItem
¶
data class FileCollectionsProviderRenameRequestItem(
val id: String,
val newTitle: String,
)