This commit is contained in:
2026-08-21 17:52:28 +04:00
parent d7b8f08b4d
commit eb195dd992
116 changed files with 2719 additions and 1973 deletions

View File

@@ -3,27 +3,32 @@ package vgpu
import (
"context"
"net/http"
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
"strconv"
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
)
// CreateRequest struct for creating VGPU
type CreateRequest struct {
// ID of pGPU
// Required: true
PGPUID uint64 `url:"pgpuId" json:"pgpuId" validate:"required"`
// ID of the target resource group.
// Required: true
RGID uint64 `url:"rgId" json:"rgId" validate:"required"`
PGPUID uint64 `url:"pgpu_id" json:"pgpu_id" validate:"required"`
// Virtual profile id
// Required: false
ProfileID uint64 `url:"profileId,omitempty" json:"profileId,omitempty"`
ProfileID string `url:"profile_id,omitempty" json:"profile_id,omitempty"`
// Allocate vgpu after creation
// MDEV Type
// Required: false
Allocate bool `url:"allocate,omitempty" json:"allocate,omitempty"`
MDEVType string `url:"mdev_type,omitempty" json:"mdev_type,omitempty"`
// PCI Address
// Required: false
PCIAddress string `url:"pci_address,omitempty" json:"pci_address,omitempty"`
// Account IDs
// Required: false
AccountIDs []uint64 `url:"account_ids,omitempty" json:"account_ids,omitempty"`
}
// Create creates VGPU