Documentation
¶
Overview ¶
Code generated by repackage.awk DO NOT EDIT.
Index ¶
- type Cpu
- type Devices
- type Disk
- type DiskDevice
- type DiskType
- type GetAllVMsList200Response
- type GetHost200Response
- type GetVMByVMId200Response
- type GetVMPowerByVMId200Response
- type Host
- type Memory
- type Metadata
- type PatchApiV1VmsVmIdJSONBody
- type PatchApiV1VmsVmIdJSONRequestBody
- type PatchUpdateVMByVMId200Response
- type PatchUpdateVMRequest
- type PostApiV1VmsJSONBody
- type PostApiV1VmsJSONRequestBody
- type PostApiV1VmsVmIdPowerJSONBody
- type PostApiV1VmsVmIdPowerJSONRequestBody
- type PostChangeVMsPowerStatusByVMIdRequest
- type PostCreateNewVM200Response
- type PostCreateNewVMRequest
- type StoragePool
- type StoragePoolStatus
- type Vm
- type VmPowerActions
- type VmPowerInfo
- type VmPowerInfoState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
Device DiskDevice `json:"device"`
Name string `json:"name"`
Pool string `json:"pool"`
Type DiskType `json:"type"`
}
Disk defines model for Disk.
type DiskDevice ¶
type DiskDevice string
DiskDevice defines model for Disk.Device.
const ( DiskDeviceCdrom DiskDevice = "cdrom" DiskDeviceDisk DiskDevice = "disk" DiskDeviceUnknown DiskDevice = "unknown" )
Defines values for DiskDevice.
type GetAllVMsList200Response ¶
type GetAllVMsList200Response struct {
Vms []Vm `json:"vms"`
}
GetAllVMsList200Response defines model for GetAllVMsList200Response.
type GetHost200Response ¶
type GetHost200Response struct {
Host Host `json:"host"`
}
GetHost200Response defines model for GetHost200Response.
type GetVMByVMId200Response ¶
type GetVMByVMId200Response struct {
// Vm 仮想マシンを表すモデル
Vm Vm `json:"vm"`
}
GetVMByVMId200Response defines model for GetVMByVMId200Response.
type GetVMPowerByVMId200Response ¶
type GetVMPowerByVMId200Response struct {
VmPower VmPowerInfo `json:"vm_power"`
}
GetVMPowerByVMId200Response defines model for GetVMPowerByVMId200Response.
type Host ¶
type Host struct {
// Cpu ホストのCPU情報
Cpu Cpu `json:"cpu"`
// Memory ホストのメモリ情報
Memory Memory `json:"memory"`
StoragePools []StoragePool `json:"storage_pools"`
}
Host defines model for Host.
type Memory ¶
type Memory struct {
Free uint64 `json:"free"`
Percent float64 `json:"percent"`
Total uint64 `json:"total"`
Used uint64 `json:"used"`
}
Memory ホストのメモリ情報
type Metadata ¶
type Metadata struct {
ApiVersion string `json:"api_version"`
Id openapi_types.UUID `json:"id"`
}
Metadata defines model for Metadata.
type PatchApiV1VmsVmIdJSONBody ¶
type PatchApiV1VmsVmIdJSONBody struct {
Cpu int `json:"cpu"`
Memory uint64 `json:"memory"`
Name string `json:"name"`
}
PatchApiV1VmsVmIdJSONBody defines parameters for PatchApiV1VmsVmId.
type PatchApiV1VmsVmIdJSONRequestBody ¶
type PatchApiV1VmsVmIdJSONRequestBody PatchApiV1VmsVmIdJSONBody
PatchApiV1VmsVmIdJSONRequestBody defines body for PatchApiV1VmsVmId for application/json ContentType.
type PatchUpdateVMByVMId200Response ¶
type PatchUpdateVMByVMId200Response struct {
// Vm 仮想マシンを表すモデル
Vm Vm `json:"vm"`
}
PatchUpdateVMByVMId200Response defines model for PatchUpdateVMByVMId200Response.
type PatchUpdateVMRequest ¶ added in v0.2.0
type PatchUpdateVMRequest struct {
Cpu int `json:"cpu"`
Memory uint64 `json:"memory"`
Name string `json:"name"`
}
PatchUpdateVMRequest defines model for PatchUpdateVMRequest.
type PostApiV1VmsJSONBody ¶
type PostApiV1VmsJSONBody struct {
Cpu int `json:"cpu"`
Memory uint64 `json:"memory"`
Name string `json:"name"`
}
PostApiV1VmsJSONBody defines parameters for PostApiV1Vms.
type PostApiV1VmsJSONRequestBody ¶
type PostApiV1VmsJSONRequestBody PostApiV1VmsJSONBody
PostApiV1VmsJSONRequestBody defines body for PostApiV1Vms for application/json ContentType.
type PostApiV1VmsVmIdPowerJSONBody ¶ added in v0.2.0
type PostApiV1VmsVmIdPowerJSONBody struct {
Action VmPowerActions `json:"action"`
}
PostApiV1VmsVmIdPowerJSONBody defines parameters for PostApiV1VmsVmIdPower.
type PostApiV1VmsVmIdPowerJSONRequestBody ¶ added in v0.2.0
type PostApiV1VmsVmIdPowerJSONRequestBody PostApiV1VmsVmIdPowerJSONBody
PostApiV1VmsVmIdPowerJSONRequestBody defines body for PostApiV1VmsVmIdPower for application/json ContentType.
type PostChangeVMsPowerStatusByVMIdRequest ¶ added in v0.2.0
type PostChangeVMsPowerStatusByVMIdRequest struct {
Action VmPowerActions `json:"action"`
}
PostChangeVMsPowerStatusByVMIdRequest defines model for PostChangeVMsPowerStatusByVMIdRequest.
type PostCreateNewVM200Response ¶
type PostCreateNewVM200Response struct {
// Vm 仮想マシンを表すモデル
Vm Vm `json:"vm"`
}
PostCreateNewVM200Response defines model for PostCreateNewVM200Response.
type PostCreateNewVMRequest ¶ added in v0.2.0
type PostCreateNewVMRequest struct {
Cpu int `json:"cpu"`
Memory uint64 `json:"memory"`
Name string `json:"name"`
}
PostCreateNewVMRequest defines model for PostCreateNewVMRequest.
type StoragePool ¶
type StoragePool struct {
Name string `json:"name"`
Path string `json:"path"`
Status StoragePoolStatus `json:"status"`
TotalSize uint64 `json:"total_size"`
UsedSize uint64 `json:"used_size"`
}
StoragePool ホストが持つストレージプールの情報
type StoragePoolStatus ¶
type StoragePoolStatus string
StoragePoolStatus defines model for StoragePool.Status.
const ( ACTIVE StoragePoolStatus = "ACTIVE" ERROR StoragePoolStatus = "ERROR" )
Defines values for StoragePoolStatus.
type Vm ¶
type Vm struct {
Cpu int `json:"cpu"`
Devices Devices `json:"devices"`
Memory uint64 `json:"memory"`
Metadata Metadata `json:"metadata"`
Name string `json:"name"`
}
Vm 仮想マシンを表すモデル
type VmPowerActions ¶ added in v0.2.0
type VmPowerActions string
VmPowerActions defines model for VmPowerActions.
const ( Reboot VmPowerActions = "reboot" Reset VmPowerActions = "reset" Shutdown VmPowerActions = "shutdown" Start VmPowerActions = "start" )
Defines values for VmPowerActions.
type VmPowerInfo ¶
type VmPowerInfo struct {
CleanPowerOff bool `json:"clean_power_off"`
State VmPowerInfoState `json:"state"`
}
VmPowerInfo defines model for VmPowerInfo.
type VmPowerInfoState ¶
type VmPowerInfoState string
VmPowerInfoState defines model for VmPowerInfo.State.
const ( RUNNING VmPowerInfoState = "RUNNING" SHUTDOWN VmPowerInfoState = "SHUTDOWN" UNKNOWN VmPowerInfoState = "UNKNOWN" )
Defines values for VmPowerInfoState.