func (o *EnforcerReport) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseEnforcerReport)
	if so.CPULoad != nil {
		o.CPULoad = *so.CPULoad
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.LicenseType != nil {
		o.LicenseType = *so.LicenseType
	}
	if so.Memory != nil {
		o.Memory = *so.Memory
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Processes != nil {
		o.Processes = *so.Processes
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparseEnforcerReport to the object.
Patch apply the non nil value of a *SparseEnforcerReport to the object.
// Patch apply the non nil value of a * SparseEnforcerReport to the object .
func (o *EnforcerReport) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseEnforcerReport)
	if so.CPULoad != nil {
		o.CPULoad = *so.CPULoad
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.LicenseType != nil {
		o.LicenseType = *so.LicenseType
	}
	if so.Memory != nil {
		o.Memory = *so.Memory
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Processes != nil {
		o.Processes = *so.Processes
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * EnforcerReport ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseEnforcerReport ) if so . CPULoad != nil { o . CPULoad = * so . CPULoad } if so . ID != nil { o . ID = * so . ID } if so . EnforcerID != nil { o . EnforcerID = * so . EnforcerID } if so . LicenseType != nil { o . LicenseType = * so . LicenseType } if so . Memory != nil { o . Memory = * so . Memory } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Name != nil { o . Name = * so . Name } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . Processes != nil { o . Processes = * so . Processes } if so . Timestamp != nil { o . Timestamp = * so . Timestamp } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparseEnforcerReport to the object.
Patch apply the non nil value of a * SparseEnforcerReport to the object .