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

	so := sparse.(*SparsePingResult)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.Errors != nil {
		o.Errors = *so.Errors
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.PingID != nil {
		o.PingID = *so.PingID
	}
	if so.PingPairs != nil {
		o.PingPairs = *so.PingPairs
	}
	if so.RefreshID != nil {
		o.RefreshID = *so.RefreshID
	}
	if so.RemoteProbes != nil {
		o.RemoteProbes = *so.RemoteProbes
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparsePingResult to the object.
Patch apply the non nil value of a *SparsePingResult to the object.
// Patch apply the non nil value of a * SparsePingResult to the object .
func (o *PingResult) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparsePingResult)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.Errors != nil {
		o.Errors = *so.Errors
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.PingID != nil {
		o.PingID = *so.PingID
	}
	if so.PingPairs != nil {
		o.PingPairs = *so.PingPairs
	}
	if so.RefreshID != nil {
		o.RefreshID = *so.RefreshID
	}
	if so.RemoteProbes != nil {
		o.RemoteProbes = *so.RemoteProbes
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * PingResult ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparsePingResult ) if so . ID != nil { o . ID = * so . ID } if so . CreateTime != nil { o . CreateTime = * so . CreateTime } if so . Errors != nil { o . Errors = * so . Errors } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . PingID != nil { o . PingID = * so . PingID } if so . PingPairs != nil { o . PingPairs = * so . PingPairs } if so . RefreshID != nil { o . RefreshID = * so . RefreshID } if so . RemoteProbes != nil { o . RemoteProbes = * so . RemoteProbes } if so . UpdateTime != nil { o . UpdateTime = * so . UpdateTime } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparsePingResult to the object.
Patch apply the non nil value of a * SparsePingResult to the object .