This commit is contained in:
dayterr
2025-12-23 17:39:58 +03:00
parent 055b256d6b
commit f111bf25fc
35 changed files with 251 additions and 111 deletions

View File

@@ -5,13 +5,14 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/constants"
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
)
type VFParam struct {
// Number of VF to assign
// ID of the FN
// Required: true
VFNum uint64 `url:"vfNum" json:"vfNum" validate:"required"`
FNID uint64 `url:"fnId" json:"fnId" validate:"required"`
// Trust
// Required: true
@@ -46,7 +47,7 @@ func (n Node) SetVFsParams(ctx context.Context, req SetVFsParamsRequest) (bool,
url := "/cloudbroker/node/setVFsParams"
res, err := n.client.DecortApiCall(ctx, http.MethodPost, url, req)
res, err := n.client.DecortApiCallCtype(ctx, http.MethodPost, url, constants.MIMEJSON, req)
if err != nil {
return false, err