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

	so := sparse.(*SparsePolicyRefresh)
	if so.SourceID != nil {
		o.SourceID = *so.SourceID
	}
	if so.SourceNamespace != nil {
		o.SourceNamespace = *so.SourceNamespace
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
}
// Patch apply the non nil value of a *SparsePolicyRefresh to the object.
Patch apply the non nil value of a *SparsePolicyRefresh to the object.
// Patch apply the non nil value of a * SparsePolicyRefresh to the object .
func (o *PolicyRefresh) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparsePolicyRefresh)
	if so.SourceID != nil {
		o.SourceID = *so.SourceID
	}
	if so.SourceNamespace != nil {
		o.SourceNamespace = *so.SourceNamespace
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
}
func ( o * PolicyRefresh ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparsePolicyRefresh ) if so . SourceID != nil { o . SourceID = * so . SourceID } if so . SourceNamespace != nil { o . SourceNamespace = * so . SourceNamespace } if so . Type != nil { o . Type = * so . Type } }
Patch apply the non nil value of a *SparsePolicyRefresh to the object.
Patch apply the non nil value of a * SparsePolicyRefresh to the object .