v1.6.7
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
|
||||
)
|
||||
|
||||
// Request struct for enable several resource groups
|
||||
// MassEnableRequest struct to enable several resource groups
|
||||
type MassEnableRequest struct {
|
||||
// IDs of the resource groups
|
||||
// Required: true
|
||||
@@ -22,9 +22,7 @@ type MassEnableRequest struct {
|
||||
func (r RG) MassEnable(ctx context.Context, req MassEnableRequest) (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/rg/massEnable"
|
||||
|
||||
Reference in New Issue
Block a user