Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Oct 16, 2024
1 parent a5234ae commit 89a5da4
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions pkg/models/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ type CreateInstanceBodyVolumes struct {
Size int `json:"size,omitempty"`
StorageType int `json:"storageType,omitempty"`
// The ID of the specific datastore. Auto selection can be specified as auto or autoCluster (for clusters).
DatastoreID interface{} `json:"datastoreId,omitempty"`
DatastoreID interface{} `json:"datastoreId,omitempty"`
ControllerMountPoint string `json:"controllerMountPoint,omitempty"`
}

type Instances struct {
Expand Down Expand Up @@ -360,13 +361,14 @@ type ResizeInstanceBodyInstancePlan struct {

// ResizeInstanceBodyInstanceVolumes
type ResizeInstanceBodyInstanceVolumes struct {
ID json.Number `json:"id"`
RootVolume bool `json:"rootVolume"`
Name string `json:"name"`
Size int `json:"size"`
SizeID interface{} `json:"sizeId,omitempty"`
StorageType interface{} `json:"storageType,omitempty"`
DatastoreID interface{} `json:"datastoreId,omitempty"`
ID json.Number `json:"id"`
RootVolume bool `json:"rootVolume"`
Name string `json:"name"`
Size int `json:"size"`
SizeID interface{} `json:"sizeId,omitempty"`
StorageType interface{} `json:"storageType,omitempty"`
DatastoreID interface{} `json:"datastoreId,omitempty"`
ControllerMountPoint string `json:"controllerMountPoint,omitempty"`
}

type ResizeInstanceResponse struct {
Expand All @@ -385,12 +387,13 @@ type ResizeInstanceResponseInstance struct {
}

type GetInstanceResposeResizeVolumes struct {
ID json.Number `json:"id,omitempty"`
RootVolume interface{} `json:"rootVolume,omitempty"`
Name string `json:"name,omitempty"`
Size json.Number `json:"size,omitempty"`
StorageType json.Number `json:"storageType,omitempty"`
DatastoreID interface{} `json:"datastoreId,omitempty"`
ID json.Number `json:"id,omitempty"`
RootVolume interface{} `json:"rootVolume,omitempty"`
Name string `json:"name,omitempty"`
Size json.Number `json:"size,omitempty"`
StorageType json.Number `json:"storageType,omitempty"`
DatastoreID interface{} `json:"datastoreId,omitempty"`
ControllerMountPoint string `json:"controllerMountPoint,omitempty"`
}

// SnapshotBody
Expand Down

0 comments on commit 89a5da4

Please sign in to comment.