v1.2.0
This commit is contained in:
@@ -11,28 +11,28 @@ import (
|
||||
type RedeployRequest struct {
|
||||
// ID of compute instance
|
||||
// Required: true
|
||||
ComputeID uint64 `url:"computeId"`
|
||||
ComputeID uint64 `url:"computeId" json:"computeId"`
|
||||
|
||||
// ID of the new OS image, if image change is required
|
||||
// Required: false
|
||||
ImageID uint64 `url:"imageId,omitempty"`
|
||||
ImageID uint64 `url:"imageId,omitempty" json:"imageId,omitempty"`
|
||||
|
||||
// new size for the boot disk in GB, if boot disk size change is required
|
||||
// Required: false
|
||||
DiskSize uint64 `url:"diskSize,omitempty"`
|
||||
DiskSize uint64 `url:"diskSize,omitempty" json:"diskSize,omitempty"`
|
||||
|
||||
// How to handle data disks connected to this compute instance,
|
||||
// KEEP, DETACH, DESTROY
|
||||
// Required: false
|
||||
DataDisks string `url:"dataDisks,omitempty"`
|
||||
DataDisks string `url:"dataDisks,omitempty" json:"dataDisks,omitempty"`
|
||||
|
||||
// Should the compute be restarted upon successful redeploy
|
||||
// Required: false
|
||||
AutoStart bool `url:"autoStart,omitempty"`
|
||||
AutoStart bool `url:"autoStart,omitempty" json:"autoStart,omitempty"`
|
||||
|
||||
// Set this flag to True to force stop running compute instance and redeploy next
|
||||
// Required: false
|
||||
ForceStop bool `url:"forceStop,omitempty"`
|
||||
ForceStop bool `url:"forceStop,omitempty" json:"forceStop,omitempty"`
|
||||
}
|
||||
|
||||
func (crq RedeployRequest) validate() error {
|
||||
|
||||
Reference in New Issue
Block a user