v1.6.7
This commit is contained in:
@@ -7,7 +7,8 @@ import (
|
||||
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
|
||||
)
|
||||
// Request struct for setting customFields values for the Compute
|
||||
|
||||
// SetCustomFieldsRequest struct for setting customFields values for the Compute
|
||||
type SetCustomFieldsRequest struct {
|
||||
// ID of the compute
|
||||
// Required: true
|
||||
@@ -22,9 +23,7 @@ type SetCustomFieldsRequest struct {
|
||||
func (c Compute) SetCustomFields(ctx context.Context, req SetCustomFieldsRequest) (bool, error) {
|
||||
err := validators.ValidateRequest(req)
|
||||
if err != nil {
|
||||
for _, validationError := range validators.GetErrors(err) {
|
||||
return false, validators.ValidationError(validationError)
|
||||
}
|
||||
return false, validators.ValidationErrors(validators.GetErrors(err))
|
||||
}
|
||||
|
||||
url := "/cloudbroker/compute/setCustomFields"
|
||||
|
||||
Reference in New Issue
Block a user