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

	so := sparse.(*SparseAuthz)
	if so.Claims != nil {
		o.Claims = *so.Claims
	}
	if so.ClientIP != nil {
		o.ClientIP = *so.ClientIP
	}
	if so.Error != nil {
		o.Error = *so.Error
	}
	if so.Permissions != nil {
		o.Permissions = *so.Permissions
	}
	if so.PolicyRulesList != nil {
		o.PolicyRulesList = *so.PolicyRulesList
	}
	if so.RestrictedNamespace != nil {
		o.RestrictedNamespace = *so.RestrictedNamespace
	}
	if so.RestrictedNetworks != nil {
		o.RestrictedNetworks = *so.RestrictedNetworks
	}
	if so.RestrictedPermissions != nil {
		o.RestrictedPermissions = *so.RestrictedPermissions
	}
	if so.TargetID != nil {
		o.TargetID = *so.TargetID
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
// Patch apply the non nil value of a *SparseAuthz to the object.
Patch apply the non nil value of a *SparseAuthz to the object.
// Patch apply the non nil value of a * SparseAuthz to the object .
func (o *Authz) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseAuthz)
	if so.Claims != nil {
		o.Claims = *so.Claims
	}
	if so.ClientIP != nil {
		o.ClientIP = *so.ClientIP
	}
	if so.Error != nil {
		o.Error = *so.Error
	}
	if so.Permissions != nil {
		o.Permissions = *so.Permissions
	}
	if so.PolicyRulesList != nil {
		o.PolicyRulesList = *so.PolicyRulesList
	}
	if so.RestrictedNamespace != nil {
		o.RestrictedNamespace = *so.RestrictedNamespace
	}
	if so.RestrictedNetworks != nil {
		o.RestrictedNetworks = *so.RestrictedNetworks
	}
	if so.RestrictedPermissions != nil {
		o.RestrictedPermissions = *so.RestrictedPermissions
	}
	if so.TargetID != nil {
		o.TargetID = *so.TargetID
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
func ( o * Authz ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseAuthz ) if so . Claims != nil { o . Claims = * so . Claims } if so . ClientIP != nil { o . ClientIP = * so . ClientIP } if so . Error != nil { o . Error = * so . Error } if so . Permissions != nil { o . Permissions = * so . Permissions } if so . PolicyRulesList != nil { o . PolicyRulesList = * so . PolicyRulesList } if so . RestrictedNamespace != nil { o . RestrictedNamespace = * so . RestrictedNamespace } if so . RestrictedNetworks != nil { o . RestrictedNetworks = * so . RestrictedNetworks } if so . RestrictedPermissions != nil { o . RestrictedPermissions = * so . RestrictedPermissions } if so . TargetID != nil { o . TargetID = * so . TargetID } if so . TargetNamespace != nil { o . TargetNamespace = * so . TargetNamespace } }
Patch apply the non nil value of a *SparseAuthz to the object.
Patch apply the non nil value of a * SparseAuthz to the object .