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 PostApiV1VmsJSONBody
- type PostApiV1VmsJSONRequestBody
- type PostApiV1VmsVmIdPowerActionParams
- type PostApiV1VmsVmIdPowerActionParamsAction
- type PostCreateNewVM200Response
- type StoragePool
- type StoragePoolStatus
- type Vm
- type VmPowerInfo
- type VmPowerInfoState
- type VmStatus
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"`
Path string `json:"path"`
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 {
Data []Vm `json:"data"`
Message *string `json:"message,omitempty"`
}
GetAllVMsList200Response defines model for GetAllVMsList200Response.
type GetHost200Response ¶
type GetHost200Response struct {
Data Host `json:"data"`
Message *string `json:"message,omitempty"`
}
GetHost200Response defines model for GetHost200Response.
type GetVMByVMId200Response ¶
type GetVMByVMId200Response struct {
// Data 仮想マシンを表すモデル
Data Vm `json:"data"`
Message *string `json:"message,omitempty"`
}
GetVMByVMId200Response defines model for GetVMByVMId200Response.
type GetVMPowerByVMId200Response ¶
type GetVMPowerByVMId200Response struct {
Data VmPowerInfo `json:"data"`
Message *string `json:"message,omitempty"`
}
GetVMPowerByVMId200Response defines model for GetVMPowerByVMId200Response.
type Host ¶
type Host struct {
// Cpu ホストのCPU情報
Cpu Cpu `json:"cpu"`
// Mem ホストのメモリ情報
Mem Memory `json:"mem"`
StoragePools []StoragePool `json:"storage_pools"`
}
Host defines model for Host.
type Memory ¶
type Memory struct {
Free uint64 `json:"free"`
Total uint64 `json:"total"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"used_percent"`
}
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 {
Memory *int `json:"memory,omitempty"`
Name *string `json:"name,omitempty"`
Vcpu *int `json:"vcpu,omitempty"`
}
PatchApiV1VmsVmIdJSONBody defines parameters for PatchApiV1VmsVmId.
type PatchApiV1VmsVmIdJSONRequestBody ¶
type PatchApiV1VmsVmIdJSONRequestBody PatchApiV1VmsVmIdJSONBody
PatchApiV1VmsVmIdJSONRequestBody defines body for PatchApiV1VmsVmId for application/json ContentType.
type PatchUpdateVMByVMId200Response ¶
type PatchUpdateVMByVMId200Response struct {
// Data 仮想マシンを表すモデル
Data Vm `json:"data"`
Message *string `json:"message,omitempty"`
}
PatchUpdateVMByVMId200Response defines model for PatchUpdateVMByVMId200Response.
type PostApiV1VmsJSONBody ¶
type PostApiV1VmsJSONBody struct {
Memory int `json:"memory"`
Name string `json:"name"`
Vcpu int `json:"vcpu"`
}
PostApiV1VmsJSONBody defines parameters for PostApiV1Vms.
type PostApiV1VmsJSONRequestBody ¶
type PostApiV1VmsJSONRequestBody PostApiV1VmsJSONBody
PostApiV1VmsJSONRequestBody defines body for PostApiV1Vms for application/json ContentType.
type PostApiV1VmsVmIdPowerActionParams ¶
type PostApiV1VmsVmIdPowerActionParams struct {
Action *PostApiV1VmsVmIdPowerActionParamsAction `form:"action,omitempty" json:"action,omitempty"`
}
PostApiV1VmsVmIdPowerActionParams defines parameters for PostApiV1VmsVmIdPowerAction.
type PostApiV1VmsVmIdPowerActionParamsAction ¶
type PostApiV1VmsVmIdPowerActionParamsAction string
PostApiV1VmsVmIdPowerActionParamsAction defines parameters for PostApiV1VmsVmIdPowerAction.
const ( Reset PostApiV1VmsVmIdPowerActionParamsAction = "reset" Start PostApiV1VmsVmIdPowerActionParamsAction = "start" Stop PostApiV1VmsVmIdPowerActionParamsAction = "stop" Suspend PostApiV1VmsVmIdPowerActionParamsAction = "suspend" )
Defines values for PostApiV1VmsVmIdPowerActionParamsAction.
type PostCreateNewVM200Response ¶
type PostCreateNewVM200Response struct {
// Data 仮想マシンを表すモデル
Data Vm `json:"data"`
Message *string `json:"message,omitempty"`
}
PostCreateNewVM200Response defines model for PostCreateNewVM200Response.
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 ( StoragePoolStatusActive StoragePoolStatus = "Active" StoragePoolStatusError StoragePoolStatus = "Error" )
Defines values for StoragePoolStatus.
type Vm ¶
type Vm struct {
Devices Devices `json:"devices"`
Memory int `json:"memory"`
Metadata Metadata `json:"metadata"`
Name string `json:"name"`
Status VmStatus `json:"status"`
Vcpu int `json:"vcpu"`
}
Vm 仮想マシンを表すモデル
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 ( POWEREDOFF VmPowerInfoState = "POWERED_OFF" POWEREDON VmPowerInfoState = "POWERED_ON" SUSPENDED VmPowerInfoState = "SUSPENDED" )
Defines values for VmPowerInfoState.