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

	so := sparse.(*SparseEnforcerRefresh)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Debug != nil {
		o.Debug = *so.Debug
	}
	if so.DebugID != nil {
		o.DebugID = *so.DebugID
	}
	if so.DebugPcapFilter != nil {
		o.DebugPcapFilter = *so.DebugPcapFilter
	}
	if so.DebugProcessingUnitID != nil {
		o.DebugProcessingUnitID = *so.DebugProcessingUnitID
	}
	if so.MigrationVersion != nil {
		o.MigrationVersion = *so.MigrationVersion
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Propagate != nil {
		o.Propagate = *so.Propagate
	}
	if so.RefreshType != nil {
		o.RefreshType = *so.RefreshType
	}
	if so.Selector != nil {
		o.Selector = *so.Selector
	}
}
// Patch apply the non nil value of a *SparseEnforcerRefresh to the object.
Patch apply the non nil value of a *SparseEnforcerRefresh to the object.
// Patch apply the non nil value of a * SparseEnforcerRefresh to the object .
func (o *EnforcerRefresh) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseEnforcerRefresh)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Debug != nil {
		o.Debug = *so.Debug
	}
	if so.DebugID != nil {
		o.DebugID = *so.DebugID
	}
	if so.DebugPcapFilter != nil {
		o.DebugPcapFilter = *so.DebugPcapFilter
	}
	if so.DebugProcessingUnitID != nil {
		o.DebugProcessingUnitID = *so.DebugProcessingUnitID
	}
	if so.MigrationVersion != nil {
		o.MigrationVersion = *so.MigrationVersion
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Propagate != nil {
		o.Propagate = *so.Propagate
	}
	if so.RefreshType != nil {
		o.RefreshType = *so.RefreshType
	}
	if so.Selector != nil {
		o.Selector = *so.Selector
	}
}
func ( o * EnforcerRefresh ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseEnforcerRefresh ) if so . ID != nil { o . ID = * so . ID } if so . Debug != nil { o . Debug = * so . Debug } if so . DebugID != nil { o . DebugID = * so . DebugID } if so . DebugPcapFilter != nil { o . DebugPcapFilter = * so . DebugPcapFilter } if so . DebugProcessingUnitID != nil { o . DebugProcessingUnitID = * so . DebugProcessingUnitID } if so . MigrationVersion != nil { o . MigrationVersion = * so . MigrationVersion } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . Propagate != nil { o . Propagate = * so . Propagate } if so . RefreshType != nil { o . RefreshType = * so . RefreshType } if so . Selector != nil { o . Selector = * so . Selector } }
Patch apply the non nil value of a *SparseEnforcerRefresh to the object.
Patch apply the non nil value of a * SparseEnforcerRefresh to the object .