mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
runtime: clh: Re-generate the client code
This patch re-generates the client code for Cloud Hypervisor v27.0. Note: The client code of cloud-hypervisor's (CLH) OpenAPI is automatically generated by openapi-generator [1-2]. [1] https://github.com/OpenAPITools/openapi-generator [2] https://github.com/kata-containers/kata-containers/blob/main/src/runtime/virtcontainers/pkg/cloud-hypervisor/README.md Fixes: #5309 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
fe61070426
commit
5d63fcf344
@ -32,7 +32,6 @@ docs/RestoreConfig.md
|
|||||||
docs/RngConfig.md
|
docs/RngConfig.md
|
||||||
docs/SendMigrationData.md
|
docs/SendMigrationData.md
|
||||||
docs/SgxEpcConfig.md
|
docs/SgxEpcConfig.md
|
||||||
docs/TdxConfig.md
|
|
||||||
docs/TokenBucket.md
|
docs/TokenBucket.md
|
||||||
docs/VdpaConfig.md
|
docs/VdpaConfig.md
|
||||||
docs/VmAddDevice.md
|
docs/VmAddDevice.md
|
||||||
@ -73,7 +72,6 @@ model_restore_config.go
|
|||||||
model_rng_config.go
|
model_rng_config.go
|
||||||
model_send_migration_data.go
|
model_send_migration_data.go
|
||||||
model_sgx_epc_config.go
|
model_sgx_epc_config.go
|
||||||
model_tdx_config.go
|
|
||||||
model_token_bucket.go
|
model_token_bucket.go
|
||||||
model_vdpa_config.go
|
model_vdpa_config.go
|
||||||
model_vm_add_device.go
|
model_vm_add_device.go
|
||||||
|
@ -134,7 +134,6 @@ Class | Method | HTTP request | Description
|
|||||||
- [RngConfig](docs/RngConfig.md)
|
- [RngConfig](docs/RngConfig.md)
|
||||||
- [SendMigrationData](docs/SendMigrationData.md)
|
- [SendMigrationData](docs/SendMigrationData.md)
|
||||||
- [SgxEpcConfig](docs/SgxEpcConfig.md)
|
- [SgxEpcConfig](docs/SgxEpcConfig.md)
|
||||||
- [TdxConfig](docs/TdxConfig.md)
|
|
||||||
- [TokenBucket](docs/TokenBucket.md)
|
- [TokenBucket](docs/TokenBucket.md)
|
||||||
- [VdpaConfig](docs/VdpaConfig.md)
|
- [VdpaConfig](docs/VdpaConfig.md)
|
||||||
- [VmAddDevice](docs/VmAddDevice.md)
|
- [VmAddDevice](docs/VmAddDevice.md)
|
||||||
|
@ -425,7 +425,7 @@ components:
|
|||||||
VmInfo:
|
VmInfo:
|
||||||
description: Virtual Machine information
|
description: Virtual Machine information
|
||||||
example:
|
example:
|
||||||
memory_actual_size: 3
|
memory_actual_size: 7
|
||||||
state: Created
|
state: Created
|
||||||
config:
|
config:
|
||||||
console:
|
console:
|
||||||
@ -433,7 +433,7 @@ components:
|
|||||||
file: file
|
file: file
|
||||||
iommu: false
|
iommu: false
|
||||||
balloon:
|
balloon:
|
||||||
size: 6
|
size: 1
|
||||||
deflate_on_oom: false
|
deflate_on_oom: false
|
||||||
free_page_reporting: false
|
free_page_reporting: false
|
||||||
memory:
|
memory:
|
||||||
@ -530,83 +530,81 @@ components:
|
|||||||
- 3
|
- 3
|
||||||
- 3
|
- 3
|
||||||
devices:
|
devices:
|
||||||
- pci_segment: 6
|
- pci_segment: 3
|
||||||
path: path
|
path: path
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 6
|
- pci_segment: 3
|
||||||
path: path
|
path: path
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
vdpa:
|
vdpa:
|
||||||
- pci_segment: 3
|
- pci_segment: 7
|
||||||
path: path
|
path: path
|
||||||
num_queues: 3
|
num_queues: 3
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 3
|
- pci_segment: 7
|
||||||
path: path
|
path: path
|
||||||
num_queues: 3
|
num_queues: 3
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
numa:
|
numa:
|
||||||
- distances:
|
- distances:
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
cpus:
|
cpus:
|
||||||
- 0
|
- 4
|
||||||
- 0
|
- 4
|
||||||
sgx_epc_sections:
|
sgx_epc_sections:
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
memory_zones:
|
memory_zones:
|
||||||
- memory_zones
|
- memory_zones
|
||||||
- memory_zones
|
- memory_zones
|
||||||
guest_numa_id: 6
|
guest_numa_id: 0
|
||||||
- distances:
|
- distances:
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
cpus:
|
cpus:
|
||||||
- 0
|
- 4
|
||||||
- 0
|
- 4
|
||||||
sgx_epc_sections:
|
sgx_epc_sections:
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
memory_zones:
|
memory_zones:
|
||||||
- memory_zones
|
- memory_zones
|
||||||
- memory_zones
|
- memory_zones
|
||||||
guest_numa_id: 6
|
guest_numa_id: 0
|
||||||
tdx:
|
|
||||||
firmware: firmware
|
|
||||||
rng:
|
rng:
|
||||||
iommu: false
|
iommu: false
|
||||||
src: /dev/urandom
|
src: /dev/urandom
|
||||||
sgx_epc:
|
sgx_epc:
|
||||||
- prefault: false
|
- prefault: false
|
||||||
size: 7
|
size: 6
|
||||||
id: id
|
id: id
|
||||||
- prefault: false
|
- prefault: false
|
||||||
size: 7
|
size: 6
|
||||||
id: id
|
id: id
|
||||||
fs:
|
fs:
|
||||||
- pci_segment: 6
|
- pci_segment: 6
|
||||||
num_queues: 1
|
num_queues: 2
|
||||||
queue_size: 2
|
queue_size: 6
|
||||||
tag: tag
|
tag: tag
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 6
|
- pci_segment: 6
|
||||||
num_queues: 1
|
num_queues: 2
|
||||||
queue_size: 2
|
queue_size: 6
|
||||||
tag: tag
|
tag: tag
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
vsock:
|
vsock:
|
||||||
pci_segment: 0
|
pci_segment: 7
|
||||||
iommu: false
|
iommu: false
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
@ -615,22 +613,23 @@ components:
|
|||||||
iommu_segments:
|
iommu_segments:
|
||||||
- 3
|
- 3
|
||||||
- 3
|
- 3
|
||||||
num_pci_segments: 7
|
num_pci_segments: 3
|
||||||
oem_strings:
|
oem_strings:
|
||||||
- oem_strings
|
- oem_strings
|
||||||
- oem_strings
|
- oem_strings
|
||||||
|
tdx: false
|
||||||
serial_number: serial_number
|
serial_number: serial_number
|
||||||
uuid: uuid
|
uuid: uuid
|
||||||
pmem:
|
pmem:
|
||||||
- pci_segment: 5
|
- pci_segment: 6
|
||||||
file: file
|
file: file
|
||||||
size: 6
|
size: 5
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
discard_writes: false
|
discard_writes: false
|
||||||
- pci_segment: 5
|
- pci_segment: 6
|
||||||
file: file
|
file: file
|
||||||
size: 6
|
size: 5
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
discard_writes: false
|
discard_writes: false
|
||||||
@ -640,14 +639,16 @@ components:
|
|||||||
cmdline: cmdline
|
cmdline: cmdline
|
||||||
kernel: kernel
|
kernel: kernel
|
||||||
initramfs: initramfs
|
initramfs: initramfs
|
||||||
|
firmware: firmware
|
||||||
serial:
|
serial:
|
||||||
mode: "false"
|
mode: "false"
|
||||||
file: file
|
file: file
|
||||||
iommu: false
|
iommu: false
|
||||||
net:
|
net:
|
||||||
- tap: tap
|
- tap: tap
|
||||||
num_queues: 9
|
host_mac: host_mac
|
||||||
queue_size: 6
|
num_queues: 6
|
||||||
|
queue_size: 3
|
||||||
ip: 192.168.249.1
|
ip: 192.168.249.1
|
||||||
rate_limiter_config:
|
rate_limiter_config:
|
||||||
ops:
|
ops:
|
||||||
@ -659,7 +660,8 @@ components:
|
|||||||
one_time_burst: 0
|
one_time_burst: 0
|
||||||
refill_time: 0
|
refill_time: 0
|
||||||
mac: mac
|
mac: mac
|
||||||
pci_segment: 3
|
mtu: 9
|
||||||
|
pci_segment: 6
|
||||||
vhost_mode: Client
|
vhost_mode: Client
|
||||||
iommu: false
|
iommu: false
|
||||||
vhost_socket: vhost_socket
|
vhost_socket: vhost_socket
|
||||||
@ -667,8 +669,9 @@ components:
|
|||||||
id: id
|
id: id
|
||||||
mask: 255.255.255.0
|
mask: 255.255.255.0
|
||||||
- tap: tap
|
- tap: tap
|
||||||
num_queues: 9
|
host_mac: host_mac
|
||||||
queue_size: 6
|
num_queues: 6
|
||||||
|
queue_size: 3
|
||||||
ip: 192.168.249.1
|
ip: 192.168.249.1
|
||||||
rate_limiter_config:
|
rate_limiter_config:
|
||||||
ops:
|
ops:
|
||||||
@ -680,7 +683,8 @@ components:
|
|||||||
one_time_burst: 0
|
one_time_burst: 0
|
||||||
refill_time: 0
|
refill_time: 0
|
||||||
mac: mac
|
mac: mac
|
||||||
pci_segment: 3
|
mtu: 9
|
||||||
|
pci_segment: 6
|
||||||
vhost_mode: Client
|
vhost_mode: Client
|
||||||
iommu: false
|
iommu: false
|
||||||
vhost_socket: vhost_socket
|
vhost_socket: vhost_socket
|
||||||
@ -769,7 +773,10 @@ components:
|
|||||||
cmdline: cmdline
|
cmdline: cmdline
|
||||||
kernel: kernel
|
kernel: kernel
|
||||||
initramfs: initramfs
|
initramfs: initramfs
|
||||||
|
firmware: firmware
|
||||||
properties:
|
properties:
|
||||||
|
firmware:
|
||||||
|
type: string
|
||||||
kernel:
|
kernel:
|
||||||
type: string
|
type: string
|
||||||
cmdline:
|
cmdline:
|
||||||
@ -785,7 +792,7 @@ components:
|
|||||||
file: file
|
file: file
|
||||||
iommu: false
|
iommu: false
|
||||||
balloon:
|
balloon:
|
||||||
size: 6
|
size: 1
|
||||||
deflate_on_oom: false
|
deflate_on_oom: false
|
||||||
free_page_reporting: false
|
free_page_reporting: false
|
||||||
memory:
|
memory:
|
||||||
@ -882,83 +889,81 @@ components:
|
|||||||
- 3
|
- 3
|
||||||
- 3
|
- 3
|
||||||
devices:
|
devices:
|
||||||
- pci_segment: 6
|
- pci_segment: 3
|
||||||
path: path
|
path: path
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 6
|
- pci_segment: 3
|
||||||
path: path
|
path: path
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
vdpa:
|
vdpa:
|
||||||
- pci_segment: 3
|
- pci_segment: 7
|
||||||
path: path
|
path: path
|
||||||
num_queues: 3
|
num_queues: 3
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 3
|
- pci_segment: 7
|
||||||
path: path
|
path: path
|
||||||
num_queues: 3
|
num_queues: 3
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
numa:
|
numa:
|
||||||
- distances:
|
- distances:
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
cpus:
|
cpus:
|
||||||
- 0
|
- 4
|
||||||
- 0
|
- 4
|
||||||
sgx_epc_sections:
|
sgx_epc_sections:
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
memory_zones:
|
memory_zones:
|
||||||
- memory_zones
|
- memory_zones
|
||||||
- memory_zones
|
- memory_zones
|
||||||
guest_numa_id: 6
|
guest_numa_id: 0
|
||||||
- distances:
|
- distances:
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
cpus:
|
cpus:
|
||||||
- 0
|
- 4
|
||||||
- 0
|
- 4
|
||||||
sgx_epc_sections:
|
sgx_epc_sections:
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
memory_zones:
|
memory_zones:
|
||||||
- memory_zones
|
- memory_zones
|
||||||
- memory_zones
|
- memory_zones
|
||||||
guest_numa_id: 6
|
guest_numa_id: 0
|
||||||
tdx:
|
|
||||||
firmware: firmware
|
|
||||||
rng:
|
rng:
|
||||||
iommu: false
|
iommu: false
|
||||||
src: /dev/urandom
|
src: /dev/urandom
|
||||||
sgx_epc:
|
sgx_epc:
|
||||||
- prefault: false
|
- prefault: false
|
||||||
size: 7
|
size: 6
|
||||||
id: id
|
id: id
|
||||||
- prefault: false
|
- prefault: false
|
||||||
size: 7
|
size: 6
|
||||||
id: id
|
id: id
|
||||||
fs:
|
fs:
|
||||||
- pci_segment: 6
|
- pci_segment: 6
|
||||||
num_queues: 1
|
num_queues: 2
|
||||||
queue_size: 2
|
queue_size: 6
|
||||||
tag: tag
|
tag: tag
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
- pci_segment: 6
|
- pci_segment: 6
|
||||||
num_queues: 1
|
num_queues: 2
|
||||||
queue_size: 2
|
queue_size: 6
|
||||||
tag: tag
|
tag: tag
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
vsock:
|
vsock:
|
||||||
pci_segment: 0
|
pci_segment: 7
|
||||||
iommu: false
|
iommu: false
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
@ -967,22 +972,23 @@ components:
|
|||||||
iommu_segments:
|
iommu_segments:
|
||||||
- 3
|
- 3
|
||||||
- 3
|
- 3
|
||||||
num_pci_segments: 7
|
num_pci_segments: 3
|
||||||
oem_strings:
|
oem_strings:
|
||||||
- oem_strings
|
- oem_strings
|
||||||
- oem_strings
|
- oem_strings
|
||||||
|
tdx: false
|
||||||
serial_number: serial_number
|
serial_number: serial_number
|
||||||
uuid: uuid
|
uuid: uuid
|
||||||
pmem:
|
pmem:
|
||||||
- pci_segment: 5
|
- pci_segment: 6
|
||||||
file: file
|
file: file
|
||||||
size: 6
|
size: 5
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
discard_writes: false
|
discard_writes: false
|
||||||
- pci_segment: 5
|
- pci_segment: 6
|
||||||
file: file
|
file: file
|
||||||
size: 6
|
size: 5
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
discard_writes: false
|
discard_writes: false
|
||||||
@ -992,14 +998,16 @@ components:
|
|||||||
cmdline: cmdline
|
cmdline: cmdline
|
||||||
kernel: kernel
|
kernel: kernel
|
||||||
initramfs: initramfs
|
initramfs: initramfs
|
||||||
|
firmware: firmware
|
||||||
serial:
|
serial:
|
||||||
mode: "false"
|
mode: "false"
|
||||||
file: file
|
file: file
|
||||||
iommu: false
|
iommu: false
|
||||||
net:
|
net:
|
||||||
- tap: tap
|
- tap: tap
|
||||||
num_queues: 9
|
host_mac: host_mac
|
||||||
queue_size: 6
|
num_queues: 6
|
||||||
|
queue_size: 3
|
||||||
ip: 192.168.249.1
|
ip: 192.168.249.1
|
||||||
rate_limiter_config:
|
rate_limiter_config:
|
||||||
ops:
|
ops:
|
||||||
@ -1011,7 +1019,8 @@ components:
|
|||||||
one_time_burst: 0
|
one_time_burst: 0
|
||||||
refill_time: 0
|
refill_time: 0
|
||||||
mac: mac
|
mac: mac
|
||||||
pci_segment: 3
|
mtu: 9
|
||||||
|
pci_segment: 6
|
||||||
vhost_mode: Client
|
vhost_mode: Client
|
||||||
iommu: false
|
iommu: false
|
||||||
vhost_socket: vhost_socket
|
vhost_socket: vhost_socket
|
||||||
@ -1019,8 +1028,9 @@ components:
|
|||||||
id: id
|
id: id
|
||||||
mask: 255.255.255.0
|
mask: 255.255.255.0
|
||||||
- tap: tap
|
- tap: tap
|
||||||
num_queues: 9
|
host_mac: host_mac
|
||||||
queue_size: 6
|
num_queues: 6
|
||||||
|
queue_size: 3
|
||||||
ip: 192.168.249.1
|
ip: 192.168.249.1
|
||||||
rate_limiter_config:
|
rate_limiter_config:
|
||||||
ops:
|
ops:
|
||||||
@ -1032,7 +1042,8 @@ components:
|
|||||||
one_time_burst: 0
|
one_time_burst: 0
|
||||||
refill_time: 0
|
refill_time: 0
|
||||||
mac: mac
|
mac: mac
|
||||||
pci_segment: 3
|
mtu: 9
|
||||||
|
pci_segment: 6
|
||||||
vhost_mode: Client
|
vhost_mode: Client
|
||||||
iommu: false
|
iommu: false
|
||||||
vhost_socket: vhost_socket
|
vhost_socket: vhost_socket
|
||||||
@ -1084,8 +1095,6 @@ components:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/SgxEpcConfig'
|
$ref: '#/components/schemas/SgxEpcConfig'
|
||||||
type: array
|
type: array
|
||||||
tdx:
|
|
||||||
$ref: '#/components/schemas/TdxConfig'
|
|
||||||
numa:
|
numa:
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/NumaConfig'
|
$ref: '#/components/schemas/NumaConfig'
|
||||||
@ -1191,10 +1200,11 @@ components:
|
|||||||
iommu_segments:
|
iommu_segments:
|
||||||
- 3
|
- 3
|
||||||
- 3
|
- 3
|
||||||
num_pci_segments: 7
|
num_pci_segments: 3
|
||||||
oem_strings:
|
oem_strings:
|
||||||
- oem_strings
|
- oem_strings
|
||||||
- oem_strings
|
- oem_strings
|
||||||
|
tdx: false
|
||||||
serial_number: serial_number
|
serial_number: serial_number
|
||||||
uuid: uuid
|
uuid: uuid
|
||||||
properties:
|
properties:
|
||||||
@ -1214,6 +1224,9 @@ components:
|
|||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
tdx:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
MemoryZoneConfig:
|
MemoryZoneConfig:
|
||||||
example:
|
example:
|
||||||
@ -1442,8 +1455,9 @@ components:
|
|||||||
NetConfig:
|
NetConfig:
|
||||||
example:
|
example:
|
||||||
tap: tap
|
tap: tap
|
||||||
num_queues: 9
|
host_mac: host_mac
|
||||||
queue_size: 6
|
num_queues: 6
|
||||||
|
queue_size: 3
|
||||||
ip: 192.168.249.1
|
ip: 192.168.249.1
|
||||||
rate_limiter_config:
|
rate_limiter_config:
|
||||||
ops:
|
ops:
|
||||||
@ -1455,7 +1469,8 @@ components:
|
|||||||
one_time_burst: 0
|
one_time_burst: 0
|
||||||
refill_time: 0
|
refill_time: 0
|
||||||
mac: mac
|
mac: mac
|
||||||
pci_segment: 3
|
mtu: 9
|
||||||
|
pci_segment: 6
|
||||||
vhost_mode: Client
|
vhost_mode: Client
|
||||||
iommu: false
|
iommu: false
|
||||||
vhost_socket: vhost_socket
|
vhost_socket: vhost_socket
|
||||||
@ -1473,6 +1488,10 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
mac:
|
mac:
|
||||||
type: string
|
type: string
|
||||||
|
host_mac:
|
||||||
|
type: string
|
||||||
|
mtu:
|
||||||
|
type: integer
|
||||||
iommu:
|
iommu:
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -1514,7 +1533,7 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
BalloonConfig:
|
BalloonConfig:
|
||||||
example:
|
example:
|
||||||
size: 6
|
size: 1
|
||||||
deflate_on_oom: false
|
deflate_on_oom: false
|
||||||
free_page_reporting: false
|
free_page_reporting: false
|
||||||
properties:
|
properties:
|
||||||
@ -1535,8 +1554,8 @@ components:
|
|||||||
FsConfig:
|
FsConfig:
|
||||||
example:
|
example:
|
||||||
pci_segment: 6
|
pci_segment: 6
|
||||||
num_queues: 1
|
num_queues: 2
|
||||||
queue_size: 2
|
queue_size: 6
|
||||||
tag: tag
|
tag: tag
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
@ -1564,9 +1583,9 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
PmemConfig:
|
PmemConfig:
|
||||||
example:
|
example:
|
||||||
pci_segment: 5
|
pci_segment: 6
|
||||||
file: file
|
file: file
|
||||||
size: 6
|
size: 5
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
discard_writes: false
|
discard_writes: false
|
||||||
@ -1614,7 +1633,7 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
DeviceConfig:
|
DeviceConfig:
|
||||||
example:
|
example:
|
||||||
pci_segment: 6
|
pci_segment: 3
|
||||||
path: path
|
path: path
|
||||||
iommu: false
|
iommu: false
|
||||||
id: id
|
id: id
|
||||||
@ -1634,7 +1653,7 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
VdpaConfig:
|
VdpaConfig:
|
||||||
example:
|
example:
|
||||||
pci_segment: 3
|
pci_segment: 7
|
||||||
path: path
|
path: path
|
||||||
num_queues: 3
|
num_queues: 3
|
||||||
iommu: false
|
iommu: false
|
||||||
@ -1659,7 +1678,7 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
VsockConfig:
|
VsockConfig:
|
||||||
example:
|
example:
|
||||||
pci_segment: 0
|
pci_segment: 7
|
||||||
iommu: false
|
iommu: false
|
||||||
socket: socket
|
socket: socket
|
||||||
id: id
|
id: id
|
||||||
@ -1688,7 +1707,7 @@ components:
|
|||||||
SgxEpcConfig:
|
SgxEpcConfig:
|
||||||
example:
|
example:
|
||||||
prefault: false
|
prefault: false
|
||||||
size: 7
|
size: 6
|
||||||
id: id
|
id: id
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -1703,21 +1722,10 @@ components:
|
|||||||
- id
|
- id
|
||||||
- size
|
- size
|
||||||
type: object
|
type: object
|
||||||
TdxConfig:
|
|
||||||
example:
|
|
||||||
firmware: firmware
|
|
||||||
properties:
|
|
||||||
firmware:
|
|
||||||
description: Path to the firmware that will be used to boot the TDx guest
|
|
||||||
up.
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- firmware
|
|
||||||
type: object
|
|
||||||
NumaDistance:
|
NumaDistance:
|
||||||
example:
|
example:
|
||||||
distance: 8
|
distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
properties:
|
properties:
|
||||||
destination:
|
destination:
|
||||||
format: int32
|
format: int32
|
||||||
@ -1732,20 +1740,20 @@ components:
|
|||||||
NumaConfig:
|
NumaConfig:
|
||||||
example:
|
example:
|
||||||
distances:
|
distances:
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
- distance: 8
|
- distance: 7
|
||||||
destination: 4
|
destination: 8
|
||||||
cpus:
|
cpus:
|
||||||
- 0
|
- 4
|
||||||
- 0
|
- 4
|
||||||
sgx_epc_sections:
|
sgx_epc_sections:
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
- sgx_epc_sections
|
- sgx_epc_sections
|
||||||
memory_zones:
|
memory_zones:
|
||||||
- memory_zones
|
- memory_zones
|
||||||
- memory_zones
|
- memory_zones
|
||||||
guest_numa_id: 6
|
guest_numa_id: 0
|
||||||
properties:
|
properties:
|
||||||
guest_numa_id:
|
guest_numa_id:
|
||||||
format: int32
|
format: int32
|
||||||
|
@ -8,6 +8,8 @@ Name | Type | Description | Notes
|
|||||||
**Ip** | Pointer to **string** | | [optional] [default to "192.168.249.1"]
|
**Ip** | Pointer to **string** | | [optional] [default to "192.168.249.1"]
|
||||||
**Mask** | Pointer to **string** | | [optional] [default to "255.255.255.0"]
|
**Mask** | Pointer to **string** | | [optional] [default to "255.255.255.0"]
|
||||||
**Mac** | Pointer to **string** | | [optional]
|
**Mac** | Pointer to **string** | | [optional]
|
||||||
|
**HostMac** | Pointer to **string** | | [optional]
|
||||||
|
**Mtu** | Pointer to **int32** | | [optional]
|
||||||
**Iommu** | Pointer to **bool** | | [optional] [default to false]
|
**Iommu** | Pointer to **bool** | | [optional] [default to false]
|
||||||
**NumQueues** | Pointer to **int32** | | [optional] [default to 2]
|
**NumQueues** | Pointer to **int32** | | [optional] [default to 2]
|
||||||
**QueueSize** | Pointer to **int32** | | [optional] [default to 256]
|
**QueueSize** | Pointer to **int32** | | [optional] [default to 256]
|
||||||
@ -137,6 +139,56 @@ SetMac sets Mac field to given value.
|
|||||||
|
|
||||||
HasMac returns a boolean if a field has been set.
|
HasMac returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
### GetHostMac
|
||||||
|
|
||||||
|
`func (o *NetConfig) GetHostMac() string`
|
||||||
|
|
||||||
|
GetHostMac returns the HostMac field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetHostMacOk
|
||||||
|
|
||||||
|
`func (o *NetConfig) GetHostMacOk() (*string, bool)`
|
||||||
|
|
||||||
|
GetHostMacOk returns a tuple with the HostMac field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetHostMac
|
||||||
|
|
||||||
|
`func (o *NetConfig) SetHostMac(v string)`
|
||||||
|
|
||||||
|
SetHostMac sets HostMac field to given value.
|
||||||
|
|
||||||
|
### HasHostMac
|
||||||
|
|
||||||
|
`func (o *NetConfig) HasHostMac() bool`
|
||||||
|
|
||||||
|
HasHostMac returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
### GetMtu
|
||||||
|
|
||||||
|
`func (o *NetConfig) GetMtu() int32`
|
||||||
|
|
||||||
|
GetMtu returns the Mtu field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetMtuOk
|
||||||
|
|
||||||
|
`func (o *NetConfig) GetMtuOk() (*int32, bool)`
|
||||||
|
|
||||||
|
GetMtuOk returns a tuple with the Mtu field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetMtu
|
||||||
|
|
||||||
|
`func (o *NetConfig) SetMtu(v int32)`
|
||||||
|
|
||||||
|
SetMtu sets Mtu field to given value.
|
||||||
|
|
||||||
|
### HasMtu
|
||||||
|
|
||||||
|
`func (o *NetConfig) HasMtu() bool`
|
||||||
|
|
||||||
|
HasMtu returns a boolean if a field has been set.
|
||||||
|
|
||||||
### GetIommu
|
### GetIommu
|
||||||
|
|
||||||
`func (o *NetConfig) GetIommu() bool`
|
`func (o *NetConfig) GetIommu() bool`
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Firmware** | Pointer to **string** | | [optional]
|
||||||
**Kernel** | Pointer to **string** | | [optional]
|
**Kernel** | Pointer to **string** | | [optional]
|
||||||
**Cmdline** | Pointer to **string** | | [optional]
|
**Cmdline** | Pointer to **string** | | [optional]
|
||||||
**Initramfs** | Pointer to **string** | | [optional]
|
**Initramfs** | Pointer to **string** | | [optional]
|
||||||
@ -27,6 +28,31 @@ NewPayloadConfigWithDefaults instantiates a new PayloadConfig object
|
|||||||
This constructor will only assign default values to properties that have it defined,
|
This constructor will only assign default values to properties that have it defined,
|
||||||
but it doesn't guarantee that properties required by API are set
|
but it doesn't guarantee that properties required by API are set
|
||||||
|
|
||||||
|
### GetFirmware
|
||||||
|
|
||||||
|
`func (o *PayloadConfig) GetFirmware() string`
|
||||||
|
|
||||||
|
GetFirmware returns the Firmware field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetFirmwareOk
|
||||||
|
|
||||||
|
`func (o *PayloadConfig) GetFirmwareOk() (*string, bool)`
|
||||||
|
|
||||||
|
GetFirmwareOk returns a tuple with the Firmware field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetFirmware
|
||||||
|
|
||||||
|
`func (o *PayloadConfig) SetFirmware(v string)`
|
||||||
|
|
||||||
|
SetFirmware sets Firmware field to given value.
|
||||||
|
|
||||||
|
### HasFirmware
|
||||||
|
|
||||||
|
`func (o *PayloadConfig) HasFirmware() bool`
|
||||||
|
|
||||||
|
HasFirmware returns a boolean if a field has been set.
|
||||||
|
|
||||||
### GetKernel
|
### GetKernel
|
||||||
|
|
||||||
`func (o *PayloadConfig) GetKernel() string`
|
`func (o *PayloadConfig) GetKernel() string`
|
||||||
|
@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|||||||
**SerialNumber** | Pointer to **string** | | [optional]
|
**SerialNumber** | Pointer to **string** | | [optional]
|
||||||
**Uuid** | Pointer to **string** | | [optional]
|
**Uuid** | Pointer to **string** | | [optional]
|
||||||
**OemStrings** | Pointer to **[]string** | | [optional]
|
**OemStrings** | Pointer to **[]string** | | [optional]
|
||||||
|
**Tdx** | Pointer to **bool** | | [optional] [default to false]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@ -154,6 +155,31 @@ SetOemStrings sets OemStrings field to given value.
|
|||||||
|
|
||||||
HasOemStrings returns a boolean if a field has been set.
|
HasOemStrings returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
### GetTdx
|
||||||
|
|
||||||
|
`func (o *PlatformConfig) GetTdx() bool`
|
||||||
|
|
||||||
|
GetTdx returns the Tdx field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetTdxOk
|
||||||
|
|
||||||
|
`func (o *PlatformConfig) GetTdxOk() (*bool, bool)`
|
||||||
|
|
||||||
|
GetTdxOk returns a tuple with the Tdx field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetTdx
|
||||||
|
|
||||||
|
`func (o *PlatformConfig) SetTdx(v bool)`
|
||||||
|
|
||||||
|
SetTdx sets Tdx field to given value.
|
||||||
|
|
||||||
|
### HasTdx
|
||||||
|
|
||||||
|
`func (o *PlatformConfig) HasTdx() bool`
|
||||||
|
|
||||||
|
HasTdx returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
# TdxConfig
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**Firmware** | **string** | Path to the firmware that will be used to boot the TDx guest up. |
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
### NewTdxConfig
|
|
||||||
|
|
||||||
`func NewTdxConfig(firmware string, ) *TdxConfig`
|
|
||||||
|
|
||||||
NewTdxConfig instantiates a new TdxConfig object
|
|
||||||
This constructor will assign default values to properties that have it defined,
|
|
||||||
and makes sure properties required by API are set, but the set of arguments
|
|
||||||
will change when the set of required properties is changed
|
|
||||||
|
|
||||||
### NewTdxConfigWithDefaults
|
|
||||||
|
|
||||||
`func NewTdxConfigWithDefaults() *TdxConfig`
|
|
||||||
|
|
||||||
NewTdxConfigWithDefaults instantiates a new TdxConfig object
|
|
||||||
This constructor will only assign default values to properties that have it defined,
|
|
||||||
but it doesn't guarantee that properties required by API are set
|
|
||||||
|
|
||||||
### GetFirmware
|
|
||||||
|
|
||||||
`func (o *TdxConfig) GetFirmware() string`
|
|
||||||
|
|
||||||
GetFirmware returns the Firmware field if non-nil, zero value otherwise.
|
|
||||||
|
|
||||||
### GetFirmwareOk
|
|
||||||
|
|
||||||
`func (o *TdxConfig) GetFirmwareOk() (*string, bool)`
|
|
||||||
|
|
||||||
GetFirmwareOk returns a tuple with the Firmware field if it's non-nil, zero value otherwise
|
|
||||||
and a boolean to check if the value has been set.
|
|
||||||
|
|
||||||
### SetFirmware
|
|
||||||
|
|
||||||
`func (o *TdxConfig) SetFirmware(v string)`
|
|
||||||
|
|
||||||
SetFirmware sets Firmware field to given value.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -19,7 +19,6 @@ Name | Type | Description | Notes
|
|||||||
**Vdpa** | Pointer to [**[]VdpaConfig**](VdpaConfig.md) | | [optional]
|
**Vdpa** | Pointer to [**[]VdpaConfig**](VdpaConfig.md) | | [optional]
|
||||||
**Vsock** | Pointer to [**VsockConfig**](VsockConfig.md) | | [optional]
|
**Vsock** | Pointer to [**VsockConfig**](VsockConfig.md) | | [optional]
|
||||||
**SgxEpc** | Pointer to [**[]SgxEpcConfig**](SgxEpcConfig.md) | | [optional]
|
**SgxEpc** | Pointer to [**[]SgxEpcConfig**](SgxEpcConfig.md) | | [optional]
|
||||||
**Tdx** | Pointer to [**TdxConfig**](TdxConfig.md) | | [optional]
|
|
||||||
**Numa** | Pointer to [**[]NumaConfig**](NumaConfig.md) | | [optional]
|
**Numa** | Pointer to [**[]NumaConfig**](NumaConfig.md) | | [optional]
|
||||||
**Iommu** | Pointer to **bool** | | [optional] [default to false]
|
**Iommu** | Pointer to **bool** | | [optional] [default to false]
|
||||||
**Watchdog** | Pointer to **bool** | | [optional] [default to false]
|
**Watchdog** | Pointer to **bool** | | [optional] [default to false]
|
||||||
@ -414,31 +413,6 @@ SetSgxEpc sets SgxEpc field to given value.
|
|||||||
|
|
||||||
HasSgxEpc returns a boolean if a field has been set.
|
HasSgxEpc returns a boolean if a field has been set.
|
||||||
|
|
||||||
### GetTdx
|
|
||||||
|
|
||||||
`func (o *VmConfig) GetTdx() TdxConfig`
|
|
||||||
|
|
||||||
GetTdx returns the Tdx field if non-nil, zero value otherwise.
|
|
||||||
|
|
||||||
### GetTdxOk
|
|
||||||
|
|
||||||
`func (o *VmConfig) GetTdxOk() (*TdxConfig, bool)`
|
|
||||||
|
|
||||||
GetTdxOk returns a tuple with the Tdx field if it's non-nil, zero value otherwise
|
|
||||||
and a boolean to check if the value has been set.
|
|
||||||
|
|
||||||
### SetTdx
|
|
||||||
|
|
||||||
`func (o *VmConfig) SetTdx(v TdxConfig)`
|
|
||||||
|
|
||||||
SetTdx sets Tdx field to given value.
|
|
||||||
|
|
||||||
### HasTdx
|
|
||||||
|
|
||||||
`func (o *VmConfig) HasTdx() bool`
|
|
||||||
|
|
||||||
HasTdx returns a boolean if a field has been set.
|
|
||||||
|
|
||||||
### GetNuma
|
### GetNuma
|
||||||
|
|
||||||
`func (o *VmConfig) GetNuma() []NumaConfig`
|
`func (o *VmConfig) GetNuma() []NumaConfig`
|
||||||
|
@ -20,6 +20,8 @@ type NetConfig struct {
|
|||||||
Ip *string `json:"ip,omitempty"`
|
Ip *string `json:"ip,omitempty"`
|
||||||
Mask *string `json:"mask,omitempty"`
|
Mask *string `json:"mask,omitempty"`
|
||||||
Mac *string `json:"mac,omitempty"`
|
Mac *string `json:"mac,omitempty"`
|
||||||
|
HostMac *string `json:"host_mac,omitempty"`
|
||||||
|
Mtu *int32 `json:"mtu,omitempty"`
|
||||||
Iommu *bool `json:"iommu,omitempty"`
|
Iommu *bool `json:"iommu,omitempty"`
|
||||||
NumQueues *int32 `json:"num_queues,omitempty"`
|
NumQueues *int32 `json:"num_queues,omitempty"`
|
||||||
QueueSize *int32 `json:"queue_size,omitempty"`
|
QueueSize *int32 `json:"queue_size,omitempty"`
|
||||||
@ -204,6 +206,70 @@ func (o *NetConfig) SetMac(v string) {
|
|||||||
o.Mac = &v
|
o.Mac = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetHostMac returns the HostMac field value if set, zero value otherwise.
|
||||||
|
func (o *NetConfig) GetHostMac() string {
|
||||||
|
if o == nil || o.HostMac == nil {
|
||||||
|
var ret string
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.HostMac
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetHostMacOk returns a tuple with the HostMac field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *NetConfig) GetHostMacOk() (*string, bool) {
|
||||||
|
if o == nil || o.HostMac == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.HostMac, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasHostMac returns a boolean if a field has been set.
|
||||||
|
func (o *NetConfig) HasHostMac() bool {
|
||||||
|
if o != nil && o.HostMac != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetHostMac gets a reference to the given string and assigns it to the HostMac field.
|
||||||
|
func (o *NetConfig) SetHostMac(v string) {
|
||||||
|
o.HostMac = &v
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetMtu returns the Mtu field value if set, zero value otherwise.
|
||||||
|
func (o *NetConfig) GetMtu() int32 {
|
||||||
|
if o == nil || o.Mtu == nil {
|
||||||
|
var ret int32
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Mtu
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetMtuOk returns a tuple with the Mtu field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *NetConfig) GetMtuOk() (*int32, bool) {
|
||||||
|
if o == nil || o.Mtu == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Mtu, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasMtu returns a boolean if a field has been set.
|
||||||
|
func (o *NetConfig) HasMtu() bool {
|
||||||
|
if o != nil && o.Mtu != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetMtu gets a reference to the given int32 and assigns it to the Mtu field.
|
||||||
|
func (o *NetConfig) SetMtu(v int32) {
|
||||||
|
o.Mtu = &v
|
||||||
|
}
|
||||||
|
|
||||||
// GetIommu returns the Iommu field value if set, zero value otherwise.
|
// GetIommu returns the Iommu field value if set, zero value otherwise.
|
||||||
func (o *NetConfig) GetIommu() bool {
|
func (o *NetConfig) GetIommu() bool {
|
||||||
if o == nil || o.Iommu == nil {
|
if o == nil || o.Iommu == nil {
|
||||||
@ -506,6 +572,12 @@ func (o NetConfig) MarshalJSON() ([]byte, error) {
|
|||||||
if o.Mac != nil {
|
if o.Mac != nil {
|
||||||
toSerialize["mac"] = o.Mac
|
toSerialize["mac"] = o.Mac
|
||||||
}
|
}
|
||||||
|
if o.HostMac != nil {
|
||||||
|
toSerialize["host_mac"] = o.HostMac
|
||||||
|
}
|
||||||
|
if o.Mtu != nil {
|
||||||
|
toSerialize["mtu"] = o.Mtu
|
||||||
|
}
|
||||||
if o.Iommu != nil {
|
if o.Iommu != nil {
|
||||||
toSerialize["iommu"] = o.Iommu
|
toSerialize["iommu"] = o.Iommu
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import (
|
|||||||
|
|
||||||
// PayloadConfig Payloads to boot in guest
|
// PayloadConfig Payloads to boot in guest
|
||||||
type PayloadConfig struct {
|
type PayloadConfig struct {
|
||||||
|
Firmware *string `json:"firmware,omitempty"`
|
||||||
Kernel *string `json:"kernel,omitempty"`
|
Kernel *string `json:"kernel,omitempty"`
|
||||||
Cmdline *string `json:"cmdline,omitempty"`
|
Cmdline *string `json:"cmdline,omitempty"`
|
||||||
Initramfs *string `json:"initramfs,omitempty"`
|
Initramfs *string `json:"initramfs,omitempty"`
|
||||||
@ -38,6 +39,38 @@ func NewPayloadConfigWithDefaults() *PayloadConfig {
|
|||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetFirmware returns the Firmware field value if set, zero value otherwise.
|
||||||
|
func (o *PayloadConfig) GetFirmware() string {
|
||||||
|
if o == nil || o.Firmware == nil {
|
||||||
|
var ret string
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Firmware
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetFirmwareOk returns a tuple with the Firmware field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *PayloadConfig) GetFirmwareOk() (*string, bool) {
|
||||||
|
if o == nil || o.Firmware == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Firmware, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasFirmware returns a boolean if a field has been set.
|
||||||
|
func (o *PayloadConfig) HasFirmware() bool {
|
||||||
|
if o != nil && o.Firmware != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetFirmware gets a reference to the given string and assigns it to the Firmware field.
|
||||||
|
func (o *PayloadConfig) SetFirmware(v string) {
|
||||||
|
o.Firmware = &v
|
||||||
|
}
|
||||||
|
|
||||||
// GetKernel returns the Kernel field value if set, zero value otherwise.
|
// GetKernel returns the Kernel field value if set, zero value otherwise.
|
||||||
func (o *PayloadConfig) GetKernel() string {
|
func (o *PayloadConfig) GetKernel() string {
|
||||||
if o == nil || o.Kernel == nil {
|
if o == nil || o.Kernel == nil {
|
||||||
@ -136,6 +169,9 @@ func (o *PayloadConfig) SetInitramfs(v string) {
|
|||||||
|
|
||||||
func (o PayloadConfig) MarshalJSON() ([]byte, error) {
|
func (o PayloadConfig) MarshalJSON() ([]byte, error) {
|
||||||
toSerialize := map[string]interface{}{}
|
toSerialize := map[string]interface{}{}
|
||||||
|
if o.Firmware != nil {
|
||||||
|
toSerialize["firmware"] = o.Firmware
|
||||||
|
}
|
||||||
if o.Kernel != nil {
|
if o.Kernel != nil {
|
||||||
toSerialize["kernel"] = o.Kernel
|
toSerialize["kernel"] = o.Kernel
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ type PlatformConfig struct {
|
|||||||
SerialNumber *string `json:"serial_number,omitempty"`
|
SerialNumber *string `json:"serial_number,omitempty"`
|
||||||
Uuid *string `json:"uuid,omitempty"`
|
Uuid *string `json:"uuid,omitempty"`
|
||||||
OemStrings *[]string `json:"oem_strings,omitempty"`
|
OemStrings *[]string `json:"oem_strings,omitempty"`
|
||||||
|
Tdx *bool `json:"tdx,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPlatformConfig instantiates a new PlatformConfig object
|
// NewPlatformConfig instantiates a new PlatformConfig object
|
||||||
@ -29,6 +30,8 @@ type PlatformConfig struct {
|
|||||||
// will change when the set of required properties is changed
|
// will change when the set of required properties is changed
|
||||||
func NewPlatformConfig() *PlatformConfig {
|
func NewPlatformConfig() *PlatformConfig {
|
||||||
this := PlatformConfig{}
|
this := PlatformConfig{}
|
||||||
|
var tdx bool = false
|
||||||
|
this.Tdx = &tdx
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +40,8 @@ func NewPlatformConfig() *PlatformConfig {
|
|||||||
// but it doesn't guarantee that properties required by API are set
|
// but it doesn't guarantee that properties required by API are set
|
||||||
func NewPlatformConfigWithDefaults() *PlatformConfig {
|
func NewPlatformConfigWithDefaults() *PlatformConfig {
|
||||||
this := PlatformConfig{}
|
this := PlatformConfig{}
|
||||||
|
var tdx bool = false
|
||||||
|
this.Tdx = &tdx
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,6 +205,38 @@ func (o *PlatformConfig) SetOemStrings(v []string) {
|
|||||||
o.OemStrings = &v
|
o.OemStrings = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetTdx returns the Tdx field value if set, zero value otherwise.
|
||||||
|
func (o *PlatformConfig) GetTdx() bool {
|
||||||
|
if o == nil || o.Tdx == nil {
|
||||||
|
var ret bool
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Tdx
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetTdxOk returns a tuple with the Tdx field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *PlatformConfig) GetTdxOk() (*bool, bool) {
|
||||||
|
if o == nil || o.Tdx == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Tdx, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasTdx returns a boolean if a field has been set.
|
||||||
|
func (o *PlatformConfig) HasTdx() bool {
|
||||||
|
if o != nil && o.Tdx != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetTdx gets a reference to the given bool and assigns it to the Tdx field.
|
||||||
|
func (o *PlatformConfig) SetTdx(v bool) {
|
||||||
|
o.Tdx = &v
|
||||||
|
}
|
||||||
|
|
||||||
func (o PlatformConfig) MarshalJSON() ([]byte, error) {
|
func (o PlatformConfig) MarshalJSON() ([]byte, error) {
|
||||||
toSerialize := map[string]interface{}{}
|
toSerialize := map[string]interface{}{}
|
||||||
if o.NumPciSegments != nil {
|
if o.NumPciSegments != nil {
|
||||||
@ -217,6 +254,9 @@ func (o PlatformConfig) MarshalJSON() ([]byte, error) {
|
|||||||
if o.OemStrings != nil {
|
if o.OemStrings != nil {
|
||||||
toSerialize["oem_strings"] = o.OemStrings
|
toSerialize["oem_strings"] = o.OemStrings
|
||||||
}
|
}
|
||||||
|
if o.Tdx != nil {
|
||||||
|
toSerialize["tdx"] = o.Tdx
|
||||||
|
}
|
||||||
return json.Marshal(toSerialize)
|
return json.Marshal(toSerialize)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,107 +0,0 @@
|
|||||||
/*
|
|
||||||
Cloud Hypervisor API
|
|
||||||
|
|
||||||
Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.
|
|
||||||
|
|
||||||
API version: 0.3.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
||||||
|
|
||||||
package openapi
|
|
||||||
|
|
||||||
import (
|
|
||||||
"encoding/json"
|
|
||||||
)
|
|
||||||
|
|
||||||
// TdxConfig struct for TdxConfig
|
|
||||||
type TdxConfig struct {
|
|
||||||
// Path to the firmware that will be used to boot the TDx guest up.
|
|
||||||
Firmware string `json:"firmware"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewTdxConfig instantiates a new TdxConfig object
|
|
||||||
// This constructor will assign default values to properties that have it defined,
|
|
||||||
// and makes sure properties required by API are set, but the set of arguments
|
|
||||||
// will change when the set of required properties is changed
|
|
||||||
func NewTdxConfig(firmware string) *TdxConfig {
|
|
||||||
this := TdxConfig{}
|
|
||||||
this.Firmware = firmware
|
|
||||||
return &this
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewTdxConfigWithDefaults instantiates a new TdxConfig object
|
|
||||||
// This constructor will only assign default values to properties that have it defined,
|
|
||||||
// but it doesn't guarantee that properties required by API are set
|
|
||||||
func NewTdxConfigWithDefaults() *TdxConfig {
|
|
||||||
this := TdxConfig{}
|
|
||||||
return &this
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetFirmware returns the Firmware field value
|
|
||||||
func (o *TdxConfig) GetFirmware() string {
|
|
||||||
if o == nil {
|
|
||||||
var ret string
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
return o.Firmware
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetFirmwareOk returns a tuple with the Firmware field value
|
|
||||||
// and a boolean to check if the value has been set.
|
|
||||||
func (o *TdxConfig) GetFirmwareOk() (*string, bool) {
|
|
||||||
if o == nil {
|
|
||||||
return nil, false
|
|
||||||
}
|
|
||||||
return &o.Firmware, true
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetFirmware sets field value
|
|
||||||
func (o *TdxConfig) SetFirmware(v string) {
|
|
||||||
o.Firmware = v
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o TdxConfig) MarshalJSON() ([]byte, error) {
|
|
||||||
toSerialize := map[string]interface{}{}
|
|
||||||
if true {
|
|
||||||
toSerialize["firmware"] = o.Firmware
|
|
||||||
}
|
|
||||||
return json.Marshal(toSerialize)
|
|
||||||
}
|
|
||||||
|
|
||||||
type NullableTdxConfig struct {
|
|
||||||
value *TdxConfig
|
|
||||||
isSet bool
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v NullableTdxConfig) Get() *TdxConfig {
|
|
||||||
return v.value
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *NullableTdxConfig) Set(val *TdxConfig) {
|
|
||||||
v.value = val
|
|
||||||
v.isSet = true
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v NullableTdxConfig) IsSet() bool {
|
|
||||||
return v.isSet
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *NullableTdxConfig) Unset() {
|
|
||||||
v.value = nil
|
|
||||||
v.isSet = false
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewNullableTdxConfig(val *TdxConfig) *NullableTdxConfig {
|
|
||||||
return &NullableTdxConfig{value: val, isSet: true}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v NullableTdxConfig) MarshalJSON() ([]byte, error) {
|
|
||||||
return json.Marshal(v.value)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *NullableTdxConfig) UnmarshalJSON(src []byte) error {
|
|
||||||
v.isSet = true
|
|
||||||
return json.Unmarshal(src, &v.value)
|
|
||||||
}
|
|
@ -31,7 +31,6 @@ type VmConfig struct {
|
|||||||
Vdpa *[]VdpaConfig `json:"vdpa,omitempty"`
|
Vdpa *[]VdpaConfig `json:"vdpa,omitempty"`
|
||||||
Vsock *VsockConfig `json:"vsock,omitempty"`
|
Vsock *VsockConfig `json:"vsock,omitempty"`
|
||||||
SgxEpc *[]SgxEpcConfig `json:"sgx_epc,omitempty"`
|
SgxEpc *[]SgxEpcConfig `json:"sgx_epc,omitempty"`
|
||||||
Tdx *TdxConfig `json:"tdx,omitempty"`
|
|
||||||
Numa *[]NumaConfig `json:"numa,omitempty"`
|
Numa *[]NumaConfig `json:"numa,omitempty"`
|
||||||
Iommu *bool `json:"iommu,omitempty"`
|
Iommu *bool `json:"iommu,omitempty"`
|
||||||
Watchdog *bool `json:"watchdog,omitempty"`
|
Watchdog *bool `json:"watchdog,omitempty"`
|
||||||
@ -536,38 +535,6 @@ func (o *VmConfig) SetSgxEpc(v []SgxEpcConfig) {
|
|||||||
o.SgxEpc = &v
|
o.SgxEpc = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTdx returns the Tdx field value if set, zero value otherwise.
|
|
||||||
func (o *VmConfig) GetTdx() TdxConfig {
|
|
||||||
if o == nil || o.Tdx == nil {
|
|
||||||
var ret TdxConfig
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
return *o.Tdx
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetTdxOk returns a tuple with the Tdx field value if set, nil otherwise
|
|
||||||
// and a boolean to check if the value has been set.
|
|
||||||
func (o *VmConfig) GetTdxOk() (*TdxConfig, bool) {
|
|
||||||
if o == nil || o.Tdx == nil {
|
|
||||||
return nil, false
|
|
||||||
}
|
|
||||||
return o.Tdx, true
|
|
||||||
}
|
|
||||||
|
|
||||||
// HasTdx returns a boolean if a field has been set.
|
|
||||||
func (o *VmConfig) HasTdx() bool {
|
|
||||||
if o != nil && o.Tdx != nil {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetTdx gets a reference to the given TdxConfig and assigns it to the Tdx field.
|
|
||||||
func (o *VmConfig) SetTdx(v TdxConfig) {
|
|
||||||
o.Tdx = &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetNuma returns the Numa field value if set, zero value otherwise.
|
// GetNuma returns the Numa field value if set, zero value otherwise.
|
||||||
func (o *VmConfig) GetNuma() []NumaConfig {
|
func (o *VmConfig) GetNuma() []NumaConfig {
|
||||||
if o == nil || o.Numa == nil {
|
if o == nil || o.Numa == nil {
|
||||||
@ -743,9 +710,6 @@ func (o VmConfig) MarshalJSON() ([]byte, error) {
|
|||||||
if o.SgxEpc != nil {
|
if o.SgxEpc != nil {
|
||||||
toSerialize["sgx_epc"] = o.SgxEpc
|
toSerialize["sgx_epc"] = o.SgxEpc
|
||||||
}
|
}
|
||||||
if o.Tdx != nil {
|
|
||||||
toSerialize["tdx"] = o.Tdx
|
|
||||||
}
|
|
||||||
if o.Numa != nil {
|
if o.Numa != nil {
|
||||||
toSerialize["numa"] = o.Numa
|
toSerialize["numa"] = o.Numa
|
||||||
}
|
}
|
||||||
|
@ -502,6 +502,8 @@ components:
|
|||||||
PayloadConfig:
|
PayloadConfig:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
firmware:
|
||||||
|
type: string
|
||||||
kernel:
|
kernel:
|
||||||
type: string
|
type: string
|
||||||
cmdline:
|
cmdline:
|
||||||
@ -559,8 +561,6 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/SgxEpcConfig"
|
$ref: "#/components/schemas/SgxEpcConfig"
|
||||||
tdx:
|
|
||||||
$ref: "#/components/schemas/TdxConfig"
|
|
||||||
numa:
|
numa:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@ -650,6 +650,9 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
tdx:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
MemoryZoneConfig:
|
MemoryZoneConfig:
|
||||||
required:
|
required:
|
||||||
@ -818,6 +821,10 @@ components:
|
|||||||
default: "255.255.255.0"
|
default: "255.255.255.0"
|
||||||
mac:
|
mac:
|
||||||
type: string
|
type: string
|
||||||
|
host_mac:
|
||||||
|
type: string
|
||||||
|
mtu:
|
||||||
|
type: integer
|
||||||
iommu:
|
iommu:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
@ -1006,15 +1013,6 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
TdxConfig:
|
|
||||||
required:
|
|
||||||
- firmware
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
firmware:
|
|
||||||
type: string
|
|
||||||
description: Path to the firmware that will be used to boot the TDx guest up.
|
|
||||||
|
|
||||||
NumaDistance:
|
NumaDistance:
|
||||||
required:
|
required:
|
||||||
- destination
|
- destination
|
||||||
|
Loading…
Reference in New Issue
Block a user