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

	so := sparse.(*SparseQuotaCheck)
	if so.Quota != nil {
		o.Quota = *so.Quota
	}
	if so.Remaining != nil {
		o.Remaining = *so.Remaining
	}
	if so.TargetIdentity != nil {
		o.TargetIdentity = *so.TargetIdentity
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
// Patch apply the non nil value of a *SparseQuotaCheck to the object.
Patch apply the non nil value of a *SparseQuotaCheck to the object.
// Patch apply the non nil value of a * SparseQuotaCheck to the object .
func (o *QuotaCheck) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseQuotaCheck)
	if so.Quota != nil {
		o.Quota = *so.Quota
	}
	if so.Remaining != nil {
		o.Remaining = *so.Remaining
	}
	if so.TargetIdentity != nil {
		o.TargetIdentity = *so.TargetIdentity
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
func ( o * QuotaCheck ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseQuotaCheck ) if so . Quota != nil { o . Quota = * so . Quota } if so . Remaining != nil { o . Remaining = * so . Remaining } if so . TargetIdentity != nil { o . TargetIdentity = * so . TargetIdentity } if so . TargetNamespace != nil { o . TargetNamespace = * so . TargetNamespace } }
Patch apply the non nil value of a *SparseQuotaCheck to the object.
Patch apply the non nil value of a * SparseQuotaCheck to the object .