types
« Previous section Next section »
UCloud Developer Guide / Core / Core Types
Core Types
Table of Contents
Data Models
CommonErrorMessage
CommonErrorMessage
A generic error message
UCloud uses HTTP status code for all error messages. In addition and if possible, UCloud will include a message using a common format. Note that this is not guaranteed to be included in case of a failure somewhere else in the network stack. For example, UCloud's load balancer might not be able to contact the backend at all. In such a case UCloud will not include a more detailed error message.
FindByIntId
FindByIntId
A request message to find a resource by a numeric unique identifier.
FindByLongId
FindByLongId
A request message to find a resource by a numeric unique identifier.
FindByStringId
FindByStringId
A request message to find a resource by a unique identifier.
Page
Page
A page of items. Superseded by PageV2.
PageV2
PageV2
Represents a single 'page' of results
Every page contains the items from the current result set, along with information which allows the client to fetch additional information.
Role
Role
Represents a SecurityPrincipal
's system-wide role.
This is usually not used for application-specific authorization.
Services are encouraged to implement their own authorization control, potentially from a common library.
SecurityPrincipal
SecurityPrincipal
A minimal representation of a security principal.
More information can be gathered from an auth service, using the username as a key.
PaginationRequest
PaginationRequest
PaginationRequestV2Consistency
PaginationRequestV2Consistency
BulkRequest
BulkRequest
A base type for requesting a bulk operation.
⚠ WARNING: All request items listed in the bulk request must be treated as a single transaction. This means that either the entire request succeeds, or the entire request fails.
There are two exceptions to this rule:
Certain calls may choose to only guarantee this at the provider level. That is if a single call contain request for multiple providers, then in rare occasions (i.e. crash) changes might not be rolled back immediately on all providers. A service MUST attempt to rollback already committed changes at other providers.
The underlying system does not provide such guarantees. In this case the service/provider MUST support the verification API to cleanup these resources later.
BulkResponse
BulkResponse
Last updated