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

	so := sparse.(*SparseNamespacePolicyInfo)
	if so.PUIncomingTrafficAction != nil {
		o.PUIncomingTrafficAction = *so.PUIncomingTrafficAction
	}
	if so.PUOutgoingTrafficAction != nil {
		o.PUOutgoingTrafficAction = *so.PUOutgoingTrafficAction
	}
	if so.Prefixes != nil {
		o.Prefixes = *so.Prefixes
	}
}
// Patch apply the non nil value of a *SparseNamespacePolicyInfo to the object.
Patch apply the non nil value of a *SparseNamespacePolicyInfo to the object.
// Patch apply the non nil value of a * SparseNamespacePolicyInfo to the object .
func (o *NamespacePolicyInfo) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseNamespacePolicyInfo)
	if so.PUIncomingTrafficAction != nil {
		o.PUIncomingTrafficAction = *so.PUIncomingTrafficAction
	}
	if so.PUOutgoingTrafficAction != nil {
		o.PUOutgoingTrafficAction = *so.PUOutgoingTrafficAction
	}
	if so.Prefixes != nil {
		o.Prefixes = *so.Prefixes
	}
}
func ( o * NamespacePolicyInfo ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseNamespacePolicyInfo ) if so . PUIncomingTrafficAction != nil { o . PUIncomingTrafficAction = * so . PUIncomingTrafficAction } if so . PUOutgoingTrafficAction != nil { o . PUOutgoingTrafficAction = * so . PUOutgoingTrafficAction } if so . Prefixes != nil { o . Prefixes = * so . Prefixes } }
Patch apply the non nil value of a *SparseNamespacePolicyInfo to the object.
Patch apply the non nil value of a * SparseNamespacePolicyInfo to the object .