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 list of all computes with their relationships
|
||||
// AffinityGroupComputesRequest struct to get list of all computes with their relationships
|
||||
type AffinityGroupComputesRequest struct {
|
||||
// Resource group ID
|
||||
// Required: true
|
||||
@@ -23,9 +23,7 @@ type AffinityGroupComputesRequest struct {
|
||||
func (r RG) AffinityGroupComputes(ctx context.Context, req AffinityGroupComputesRequest) (ListAffinityGroupCompute, 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/rg/affinityGroupComputes"
|
||||
|
||||
Reference in New Issue
Block a user