@@ -1213,7 +1213,7 @@ const (
1213
1213
BlockdevDriverRbd
1214
1214
BlockdevDriverReplication
1215
1215
BlockdevDriverSheepdog
1216
- BlockdevDriverSsh
1216
+ BlockdevDriverSSH
1217
1217
BlockdevDriverThrottle
1218
1218
BlockdevDriverVdi
1219
1219
BlockdevDriverVhdx
@@ -1282,7 +1282,7 @@ func (e BlockdevDriver) String() string {
1282
1282
return "replication"
1283
1283
case BlockdevDriverSheepdog :
1284
1284
return "sheepdog"
1285
- case BlockdevDriverSsh :
1285
+ case BlockdevDriverSSH :
1286
1286
return "ssh"
1287
1287
case BlockdevDriverThrottle :
1288
1288
return "throttle"
@@ -1362,7 +1362,7 @@ func (e BlockdevDriver) MarshalJSON() ([]byte, error) {
1362
1362
return json .Marshal ("replication" )
1363
1363
case BlockdevDriverSheepdog :
1364
1364
return json .Marshal ("sheepdog" )
1365
- case BlockdevDriverSsh :
1365
+ case BlockdevDriverSSH :
1366
1366
return json .Marshal ("ssh" )
1367
1367
case BlockdevDriverThrottle :
1368
1368
return json .Marshal ("throttle" )
@@ -1447,7 +1447,7 @@ func (e *BlockdevDriver) UnmarshalJSON(bs []byte) error {
1447
1447
case "sheepdog" :
1448
1448
* e = BlockdevDriverSheepdog
1449
1449
case "ssh" :
1450
- * e = BlockdevDriverSsh
1450
+ * e = BlockdevDriverSSH
1451
1451
case "throttle" :
1452
1452
* e = BlockdevDriverThrottle
1453
1453
case "vdi" :
@@ -1574,7 +1574,7 @@ func (e *BlockdevOnError) UnmarshalJSON(bs []byte) error {
1574
1574
// - BlockdevOptionsRbd
1575
1575
// - BlockdevOptionsReplication
1576
1576
// - BlockdevOptionsSheepdog
1577
- // - BlockdevOptionsSsh
1577
+ // - BlockdevOptionsSSH
1578
1578
// - BlockdevOptionsThrottle
1579
1579
// - BlockdevOptionsVdi
1580
1580
// - BlockdevOptionsVhdx
@@ -2353,8 +2353,8 @@ func (s BlockdevOptionsSheepdog) MarshalJSON() ([]byte, error) {
2353
2353
return json .Marshal (v )
2354
2354
}
2355
2355
2356
- // BlockdevOptionsSsh is an implementation of BlockdevOptions.
2357
- type BlockdevOptionsSsh struct {
2356
+ // BlockdevOptionsSSH is an implementation of BlockdevOptions.
2357
+ type BlockdevOptionsSSH struct {
2358
2358
NodeName * string `json:"node-name,omitempty"`
2359
2359
Discard * BlockdevDiscardOptions `json:"discard,omitempty"`
2360
2360
Cache * BlockdevCacheOptions `json:"cache,omitempty"`
@@ -2366,15 +2366,15 @@ type BlockdevOptionsSsh struct {
2366
2366
User * string `json:"user,omitempty"`
2367
2367
}
2368
2368
2369
- func (BlockdevOptionsSsh ) isBlockdevOptions () {}
2369
+ func (BlockdevOptionsSSH ) isBlockdevOptions () {}
2370
2370
2371
2371
// MarshalJSON implements json.Marshaler.
2372
- func (s BlockdevOptionsSsh ) MarshalJSON () ([]byte , error ) {
2372
+ func (s BlockdevOptionsSSH ) MarshalJSON () ([]byte , error ) {
2373
2373
v := struct {
2374
2374
Driver BlockdevDriver `json:"driver"`
2375
- BlockdevOptionsSsh
2375
+ BlockdevOptionsSSH
2376
2376
}{
2377
- BlockdevDriverSsh ,
2377
+ BlockdevDriverSSH ,
2378
2378
s ,
2379
2379
}
2380
2380
return json .Marshal (v )
@@ -2682,8 +2682,8 @@ func decodeBlockdevOptions(bs json.RawMessage) (BlockdevOptions, error) {
2682
2682
var ret BlockdevOptionsSheepdog
2683
2683
err := json .Unmarshal ([]byte (bs ), & ret )
2684
2684
return ret , err
2685
- case BlockdevDriverSsh :
2686
- var ret BlockdevOptionsSsh
2685
+ case BlockdevDriverSSH :
2686
+ var ret BlockdevOptionsSSH
2687
2687
err := json .Unmarshal ([]byte (bs ), & ret )
2688
2688
return ret , err
2689
2689
case BlockdevDriverThrottle :
@@ -2974,7 +2974,7 @@ func (BlockdevOptionsRaw) isBlockdevRef() {}
2974
2974
func (BlockdevOptionsRbd ) isBlockdevRef () {}
2975
2975
func (BlockdevOptionsReplication ) isBlockdevRef () {}
2976
2976
func (BlockdevOptionsSheepdog ) isBlockdevRef () {}
2977
- func (BlockdevOptionsSsh ) isBlockdevRef () {}
2977
+ func (BlockdevOptionsSSH ) isBlockdevRef () {}
2978
2978
func (BlockdevOptionsThrottle ) isBlockdevRef () {}
2979
2979
func (BlockdevOptionsVdi ) isBlockdevRef () {}
2980
2980
func (BlockdevOptionsVhdx ) isBlockdevRef () {}
@@ -3053,7 +3053,7 @@ func decodeBlockdevRef(bs json.RawMessage) (BlockdevRef, error) {
3053
3053
return impl , nil
3054
3054
case BlockdevOptionsSheepdog :
3055
3055
return impl , nil
3056
- case BlockdevOptionsSsh :
3056
+ case BlockdevOptionsSSH :
3057
3057
return impl , nil
3058
3058
case BlockdevOptionsThrottle :
3059
3059
return impl , nil
@@ -3117,7 +3117,7 @@ func (BlockdevOptionsRaw) isBlockdevRefOrNull() {}
3117
3117
func (BlockdevOptionsRbd ) isBlockdevRefOrNull () {}
3118
3118
func (BlockdevOptionsReplication ) isBlockdevRefOrNull () {}
3119
3119
func (BlockdevOptionsSheepdog ) isBlockdevRefOrNull () {}
3120
- func (BlockdevOptionsSsh ) isBlockdevRefOrNull () {}
3120
+ func (BlockdevOptionsSSH ) isBlockdevRefOrNull () {}
3121
3121
func (BlockdevOptionsThrottle ) isBlockdevRefOrNull () {}
3122
3122
func (BlockdevOptionsVdi ) isBlockdevRefOrNull () {}
3123
3123
func (BlockdevOptionsVhdx ) isBlockdevRefOrNull () {}
@@ -3126,7 +3126,8 @@ func (BlockdevOptionsVpc) isBlockdevRefOrNull() {}
3126
3126
func (BlockdevOptionsVvfat ) isBlockdevRefOrNull () {}
3127
3127
func (BlockdevOptionsVxhs ) isBlockdevRefOrNull () {}
3128
3128
3129
- // Special case handling of JSON null type
3129
+ // BlockdevRefOrNullNull is a JSON null type, so it must
3130
+ // also implement the isNullable interface.
3130
3131
type BlockdevRefOrNullNull struct {}
3131
3132
3132
3133
func (BlockdevRefOrNullNull ) isNull () bool { return true }
@@ -3211,7 +3212,7 @@ func decodeBlockdevRefOrNull(bs json.RawMessage) (BlockdevRefOrNull, error) {
3211
3212
return impl , nil
3212
3213
case BlockdevOptionsSheepdog :
3213
3214
return impl , nil
3214
- case BlockdevOptionsSsh :
3215
+ case BlockdevOptionsSSH :
3215
3216
return impl , nil
3216
3217
case BlockdevOptionsThrottle :
3217
3218
return impl , nil
@@ -4936,11 +4937,11 @@ func (e *GuestPanicInformationType) UnmarshalJSON(bs []byte) error {
4936
4937
return nil
4937
4938
}
4938
4939
4939
- // GuidInfo -> GuidInfo (struct)
4940
+ // GuidInfo -> GUIDInfo (struct)
4940
4941
4941
- // GuidInfo implements the "GuidInfo" QMP API type.
4942
- type GuidInfo struct {
4943
- Guid string `json:"guid"`
4942
+ // GUIDInfo implements the "GuidInfo" QMP API type.
4943
+ type GUIDInfo struct {
4944
+ GUID string `json:"guid"`
4944
4945
}
4945
4946
4946
4947
// HostMemPolicy -> HostMemPolicy (enum)
@@ -9725,7 +9726,8 @@ type StrOrNull interface {
9725
9726
isStrOrNull ()
9726
9727
}
9727
9728
9728
- // Special case handling of JSON null type
9729
+ // StrOrNullN is a JSON null type, so it must
9730
+ // also implement the isNullable interface.
9729
9731
type StrOrNullN struct {}
9730
9732
9731
9733
func (StrOrNullN ) isNull () bool { return true }
@@ -12059,7 +12061,7 @@ func (m *Monitor) Memsave(val int64, size int64, filename string, cpuIndex *int6
12059
12061
// Migrate implements the "migrate" QMP API call.
12060
12062
func (m * Monitor ) Migrate (uri string , blk * bool , inc * bool , detach * bool ) (err error ) {
12061
12063
cmd := struct {
12062
- Uri string `json:"uri"`
12064
+ URI string `json:"uri"`
12063
12065
Blk * bool `json:"blk,omitempty"`
12064
12066
Inc * bool `json:"inc,omitempty"`
12065
12067
Detach * bool `json:"detach,omitempty"`
@@ -12088,7 +12090,7 @@ func (m *Monitor) Migrate(uri string, blk *bool, inc *bool, detach *bool) (err e
12088
12090
// MigrateIncoming implements the "migrate-incoming" QMP API call.
12089
12091
func (m * Monitor ) MigrateIncoming (uri string ) (err error ) {
12090
12092
cmd := struct {
12091
- Uri string `json:"uri"`
12093
+ URI string `json:"uri"`
12092
12094
}{
12093
12095
uri ,
12094
12096
}
@@ -14057,7 +14059,7 @@ func (m *Monitor) QueryVersion() (ret VersionInfo, err error) {
14057
14059
// query-vm-generation-id -> QueryVMGenerationID (command)
14058
14060
14059
14061
// QueryVMGenerationID implements the "query-vm-generation-id" QMP API call.
14060
- func (m * Monitor ) QueryVMGenerationID () (ret GuidInfo , err error ) {
14062
+ func (m * Monitor ) QueryVMGenerationID () (ret GUIDInfo , err error ) {
14061
14063
cmd := struct {
14062
14064
}{}
14063
14065
bs , err := json .Marshal (map [string ]interface {}{
0 commit comments