We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7557a2 commit da13cefCopy full SHA for da13cef
redfish/powersubsystem.go
@@ -46,6 +46,8 @@ type PowerSubsystem struct {
46
PowerSupplyRedundancy []RedundantGroup
47
// Status shall contain any status or health properties of the resource.
48
Status common.Status
49
+ // RawData holds the original serialized JSON.
50
+ RawData []byte
51
}
52
53
// UnmarshalJSON unmarshals a PowerSubsystem object from the raw JSON.
@@ -83,6 +85,8 @@ func (powersubsystem *PowerSubsystem) UnmarshalJSON(b []byte) error {
83
85
powersubsystem.batteries = t.Batteries.String()
84
86
powersubsystem.powerSupplies = t.PowerSupplies.String()
87
88
+ powersubsystem.RawData = b
89
+
90
return nil
91
92
0 commit comments