v16.0.0
This commit is contained in:
@@ -5,26 +5,30 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v15/internal/validators"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v16/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
|
||||
|
||||
Reference in New Issue
Block a user