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