func (pciedevice *PCIeDevice) Update() error {
	original := new(PCIeDevice)
	err := original.UnmarshalJSON(pciedevice.rawData)
	if err != nil {
		return err
	}
	readWriteFields := []string{
		"AssetTag",
	}
	originalElement := reflect.ValueOf(original).Elem()
	currentElement := reflect.ValueOf(pciedevice).Elem()
	return pciedevice.Entity.Update(originalElement, currentElement, readWriteFields)
}
Update commits updates to this object's properties to the running system.
package redfish
import (
	"encoding/json"
	"reflect"
	"github.com/stmcginnis/gofish/common"
)
type DeviceType string
const (
	SingleFunctionDeviceType DeviceType = "SingleFunction"
	MultiFunctionDeviceType DeviceType = "MultiFunction"
	SimulatedDeviceType DeviceType = "Simulated"
)
type PCIeTypes string
const (
	Gen1PCIeTypes PCIeTypes = "Gen1"
	Gen2PCIeTypes PCIeTypes = "Gen2"
	Gen3PCIeTypes PCIeTypes = "Gen3"
	Gen4PCIeTypes PCIeTypes = "Gen4"
	Gen5PCIeTypes PCIeTypes = "Gen5"
)
type PCIeDevice struct {
	common.Entity
	ODataContext string `json:"@odata.context"`
	ODataType string `json:"@odata.type"`
	assembly string
	AssetTag string
	Description string
	DeviceType DeviceType
	FirmwareVersion string
	Manufacturer string
	Model string
	PCIeInterface PCIeInterface
	PartNumber string
	SKU string
	SerialNumber string
	Status common.Status
	chassis []string
	ChassisCount int
	pcieFunctions []string
	PCIeFunctionsCount int
	rawData []byte
}
func (pciedevice *PCIeDevice) UnmarshalJSON(b []byte) error {
	type temp PCIeDevice
	type links struct {
		Chassis            common.Links
		ChassisCount       int `json:"Chassis@odata.count"`
		PCIeFunctions      common.Links
		PCIeFunctionsCount int `json:"PCIeFunctions@odata.count"`
	}
	var t struct {
		temp
		Assembly common.Link
		Links    links
	}
	err := json.Unmarshal(b, &t)
	if err != nil {
		return err
	}
	*pciedevice = PCIeDevice(t.temp)
	pciedevice.assembly = string(t.Assembly)
	pciedevice.chassis = t.Links.Chassis.ToStrings()
	pciedevice.ChassisCount = t.Links.ChassisCount
	pciedevice.pcieFunctions = t.Links.PCIeFunctions.ToStrings()
	pciedevice.PCIeFunctionsCount = t.Links.PCIeFunctionsCount
	pciedevice.rawData = b
	return nil
}