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 getting Compute's customFields
|
||||
// GetCustomFieldsRequest struct to get Compute's customFields
|
||||
type GetCustomFieldsRequest struct {
|
||||
// Compute ID
|
||||
// Required: true
|
||||
@@ -19,9 +19,7 @@ type GetCustomFieldsRequest struct {
|
||||
func (c Compute) GetCustomFields(ctx context.Context, req GetCustomFieldsRequest) (interface{}, 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 := "/cloudapi/compute/getCustomFields"
|
||||
|
||||
Reference in New Issue
Block a user