v1.2.0
This commit is contained in:
@@ -13,47 +13,47 @@ import (
|
||||
type CreateCDROMImageRequest struct {
|
||||
// Name of the rescue disk
|
||||
// Required: true
|
||||
Name string `url:"name"`
|
||||
Name string `url:"name" json:"name"`
|
||||
|
||||
// URL where to download ISO from
|
||||
// Required: true
|
||||
URL string `url:"url"`
|
||||
URL string `url:"url" json:"url"`
|
||||
|
||||
// Grid (platform) ID where this CD-ROM image should be create in
|
||||
// Required: true
|
||||
GID uint64 `url:"gid"`
|
||||
GID uint64 `url:"gid" json:"gid"`
|
||||
|
||||
// Account ID to make the image exclusive
|
||||
// Required: false
|
||||
AccountID uint64 `url:"accountId,omitempty"`
|
||||
AccountID uint64 `url:"accountId,omitempty" json:"accountId,omitempty"`
|
||||
|
||||
// Storage endpoint provider ID for place rescue CD
|
||||
// Required: false
|
||||
SEPID uint64 `url:"sep_id,omitempty"`
|
||||
SEPID uint64 `url:"sep_id,omitempty" json:"sep_id,omitempty"`
|
||||
|
||||
// Pool for place rescue CD
|
||||
// Required: false
|
||||
PoolName string `url:"pool_name,omitempty"`
|
||||
PoolName string `url:"pool_name,omitempty" json:"pool_name,omitempty"`
|
||||
|
||||
// Username for remote media download
|
||||
// Required: false
|
||||
UsernameDL string `url:"usernameDL,omitempty"`
|
||||
UsernameDL string `url:"usernameDL,omitempty" json:"usernameDL,omitempty"`
|
||||
|
||||
// Password for remote media download
|
||||
// Required: false
|
||||
PasswordDl string `url:"passwordDL,omitempty"`
|
||||
PasswordDl string `url:"passwordDL,omitempty" json:"passwordDL,omitempty"`
|
||||
|
||||
// Binary architecture of this image
|
||||
// Should be one of:
|
||||
// - X86_64
|
||||
// - PPC64_LE
|
||||
// Required: false
|
||||
Architecture string `url:"architecture,omitempty"`
|
||||
Architecture string `url:"architecture,omitempty" json:"architecture,omitempty"`
|
||||
|
||||
// List of types of compute suitable for image.
|
||||
// Example: [ "KVM_X86" ]
|
||||
// Required: true
|
||||
Drivers []string `url:"drivers"`
|
||||
Drivers []string `url:"drivers" json:"drivers"`
|
||||
}
|
||||
|
||||
func (irq CreateCDROMImageRequest) validate() error {
|
||||
|
||||
Reference in New Issue
Block a user