fix: add missing json and params attributes, fix typo in GuestAgentCommandInfo.enabled

This commit is contained in:
ge
2025-06-11 19:32:36 +03:00
parent 0b7f14c12c
commit cfc241c36e

View File

@ -168,6 +168,7 @@ pub:
eof bool
}
@[params]
pub struct GuestFileWriteParams {
pub:
is_encoded bool
@ -282,9 +283,9 @@ pub fn (mut c Client) get_cpustats() ![]GuestCpuStats {
}
pub struct GuestDeviceInfo {
driver_name string
driver_data ?string
driver_version ?string
driver_name string @[json: 'driver-name']
driver_data ?string @[json: 'driver-data']
driver_version ?string @[json: 'driver-version']
id ?GuestDeviceId
}
@ -323,7 +324,7 @@ pub:
unit int
serial ?string
dev ?string
ccw_address ?GuestCCWAddress
ccw_address ?GuestCCWAddress @[json: 'ccw-address']
}
pub struct GuestPCIAddress {
@ -556,7 +557,7 @@ pub:
pub struct GuestAgentCommandInfo {
pub:
name string
enbled bool
enabled bool
success_response bool @[json: 'success-response']
}