Update Quobyte API repo
This commit is contained in:
27
vendor/github.com/quobyte/api/quobyte.go
generated
vendored
27
vendor/github.com/quobyte/api/quobyte.go
generated
vendored
@@ -1,7 +1,9 @@
|
||||
// Package quobyte represents a golang API for the Quobyte Storage System
|
||||
package quobyte
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type QuobyteClient struct {
|
||||
client *http.Client
|
||||
@@ -77,3 +79,26 @@ func (client *QuobyteClient) GetClientList(tenant string) (GetClientListResponse
|
||||
|
||||
return response, nil
|
||||
}
|
||||
|
||||
func (client *QuobyteClient) SetVolumeQuota(volumeUUID string, quotaSize uint64) error {
|
||||
request := &setQuotaRequest{
|
||||
Quotas: []*quota{
|
||||
"a{
|
||||
Consumer: []*consumingEntity{
|
||||
&consumingEntity{
|
||||
Type: "VOLUME",
|
||||
Identifier: volumeUUID,
|
||||
},
|
||||
},
|
||||
Limits: []*resource{
|
||||
&resource{
|
||||
Type: "LOGICAL_DISK_SPACE",
|
||||
Value: quotaSize,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return client.sendRequest("setQuota", request, nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user