v1.6.7
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
|
||||
)
|
||||
|
||||
// Request struct for get compute snapshot real size on storage
|
||||
// SnapshotUsageRequest struct tto get compute snapshot real size on storage
|
||||
type SnapshotUsageRequest struct {
|
||||
// ID of the compute instance
|
||||
// Required: true
|
||||
@@ -20,15 +20,13 @@ type SnapshotUsageRequest struct {
|
||||
Label string `url:"label,omitempty" json:"label,omitempty"`
|
||||
}
|
||||
|
||||
// SnapshotUsage Get compute snapshot real size on storage.
|
||||
// SnapshotUsage gets compute snapshot real size on storage.
|
||||
// Always returns list of json objects, and first json object contains summary about all related
|
||||
// snapshots.
|
||||
func (c Compute) SnapshotUsage(ctx context.Context, req SnapshotUsageRequest) (ListSnapshotUsage, error) {
|
||||
err := validators.ValidateRequest(req)
|
||||
if err != nil {
|
||||
for _, validationError := range validators.GetErrors(err) {
|
||||
return nil, validators.ValidationError(validationError)
|
||||
}
|
||||
return nil, validators.ValidationErrors(validators.GetErrors(err))
|
||||
}
|
||||
|
||||
url := "/cloudbroker/compute/snapshotUsage"
|
||||
|
||||
Reference in New Issue
Block a user