models

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Code generated by repackage.awk DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpu

type Cpu struct {
	Counts  int     `json:"counts"`
	Percent float64 `json:"percent"`
}

Cpu ホストのCPU情報

type Devices

type Devices struct {
	Disk []Disk `json:"disk"`
}

Devices defines model for Devices.

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 DiskType

type DiskType string

DiskType defines model for Disk.Type.

const (
	DiskTypeQcow2   DiskType = "qcow2"
	DiskTypeUnknown DiskType = "unknown"
)

Defines values for DiskType.

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.

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.

type VmStatus

type VmStatus string

VmStatus defines model for Vm.Status.

const (
	VmStatusActive  VmStatus = "active"
	VmStatusError   VmStatus = "error"
	VmStatusPending VmStatus = "pending"
	VmStatusUnknown VmStatus = "unknown"
)

Defines values for VmStatus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL