Merge 'dev' into 'main'

This commit is contained in:
stSolo
2022-10-03 16:56:47 +03:00
parent 6271fa6d45
commit 5fd450382c
400 changed files with 14394 additions and 13407 deletions

View File

@@ -4,9 +4,7 @@ import (
"context"
"encoding/json"
"errors"
"github.com/rudecs/decort-sdk/opts"
"github.com/rudecs/decort-sdk/typed"
"net/http"
)
type AffinityGroupsGetRequest struct {
@@ -26,13 +24,13 @@ func (rgrq AffinityGroupsGetRequest) Validate() error {
return nil
}
func (r RG) AffinityGroupsGet(ctx context.Context, req AffinityGroupsGetRequest, options ...opts.DecortOpts) ([]uint64, error) {
func (r RG) AffinityGroupsGet(ctx context.Context, req AffinityGroupsGetRequest) ([]uint64, error) {
if err := req.Validate(); err != nil {
return nil, err
}
url := "/cloudapi/rg/affinityGroupsGet"
agListRaw, err := r.client.DecortApiCall(ctx, typed.POST, url, req)
agListRaw, err := r.client.DecortApiCall(ctx, http.MethodPost, url, req)
if err != nil {
return nil, err
}