@@ -20,7 +20,7 @@ type User struct {
2020 Caps []UserCapSpec `json:"caps"`
2121 OpMask string `json:"op_mask" url:"op-mask"`
2222 DefaultPlacement string `json:"default_placement" url:"default-placement"`
23- DefaultStorageClass string `json:"default_storage_class"`
23+ DefaultStorageClass string `json:"default_storage_class" url:"default-storage-class" `
2424 PlacementTags []interface {} `json:"placement_tags"`
2525 BucketQuota QuotaSpec `json:"bucket_quota"`
2626 UserQuota QuotaSpec `json:"user_quota"`
@@ -162,7 +162,7 @@ func (api *API) CreateUser(ctx context.Context, user User) (User, error) {
162162 }
163163
164164 // valid parameters not supported by go-ceph: system, exclusive, placement-tags
165- body , err := api .call (ctx , http .MethodPut , "/user" , valueToURLParams (user , []string {"uid" , "display-name" , "default-placement" , "email" , "key-type" , "access-key" , "secret-key" , "user-caps" , "tenant" , "generate-key" , "max-buckets" , "suspended" , "op-mask" , "account-id" , "account-root" }))
165+ body , err := api .call (ctx , http .MethodPut , "/user" , valueToURLParams (user , []string {"uid" , "display-name" , "default-placement" , "default-storage-class" , " email" , "key-type" , "access-key" , "secret-key" , "user-caps" , "tenant" , "generate-key" , "max-buckets" , "suspended" , "op-mask" , "account-id" , "account-root" }))
166166 if err != nil {
167167 return User {}, err
168168 }
@@ -198,7 +198,7 @@ func (api *API) ModifyUser(ctx context.Context, user User) (User, error) {
198198 }
199199
200200 // valid parameters not supported by go-ceph: system, placement-tags
201- body , err := api .call (ctx , http .MethodPost , "/user" , valueToURLParams (user , []string {"uid" , "display-name" , "default-placement" , "email" , "generate-key" , "access-key" , "secret-key" , "key-type" , "max-buckets" , "suspended" , "op-mask" , "account-id" , "account-root" }))
201+ body , err := api .call (ctx , http .MethodPost , "/user" , valueToURLParams (user , []string {"uid" , "display-name" , "default-placement" , "default-storage-class" , " email" , "generate-key" , "access-key" , "secret-key" , "key-type" , "max-buckets" , "suspended" , "op-mask" , "account-id" , "account-root" }))
202202 if err != nil {
203203 return User {}, err
204204 }
0 commit comments