-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathobjects_users.go
More file actions
28 lines (24 loc) · 919 Bytes
/
objects_users.go
File metadata and controls
28 lines (24 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package cloudscale
const objectsUsersBasePath = "v1/objects-users"
// ObjectsUser contains information
type ObjectsUser struct {
TaggedResource
HREF string `json:"href,omitempty"`
ID string `json:"id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
Keys []map[string]string `json:"keys,omitempty"`
}
// ObjectsUserRequest is used to create and update Objects Users
type ObjectsUserRequest struct {
TaggedResourceRequest
DisplayName string `json:"display_name,omitempty"`
}
// ObjectsUsersService manages users of the S3-compatible objects storage
type ObjectsUsersService interface {
GenericCreateService[ObjectsUser, ObjectsUserRequest]
GenericGetService[ObjectsUser]
GenericListService[ObjectsUser]
GenericUpdateService[ObjectsUser, ObjectsUserRequest]
GenericDeleteService[ObjectsUser]
GenericWaitForService[ObjectsUser]
}