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

	so := sparse.(*SparseAPICheck)
	if so.Authorized != nil {
		o.Authorized = *so.Authorized
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Operation != nil {
		o.Operation = *so.Operation
	}
	if so.TargetIdentities != nil {
		o.TargetIdentities = *so.TargetIdentities
	}
}
// Patch apply the non nil value of a *SparseAPICheck to the object.
Patch apply the non nil value of a *SparseAPICheck to the object.
// Patch apply the non nil value of a * SparseAPICheck to the object .
func (o *APICheck) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseAPICheck)
	if so.Authorized != nil {
		o.Authorized = *so.Authorized
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Operation != nil {
		o.Operation = *so.Operation
	}
	if so.TargetIdentities != nil {
		o.TargetIdentities = *so.TargetIdentities
	}
}
func ( o * APICheck ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseAPICheck ) if so . Authorized != nil { o . Authorized = * so . Authorized } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . Operation != nil { o . Operation = * so . Operation } if so . TargetIdentities != nil { o . TargetIdentities = * so . TargetIdentities } }
Patch apply the non nil value of a *SparseAPICheck to the object.
Patch apply the non nil value of a * SparseAPICheck to the object .