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

	so := sparse.(*SparseRole)
	if so.Authorizations != nil {
		o.Authorizations = *so.Authorizations
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Private != nil {
		o.Private = *so.Private
	}
}
// Patch apply the non nil value of a *SparseRole to the object.
Patch apply the non nil value of a *SparseRole to the object.
// Patch apply the non nil value of a * SparseRole to the object .
func (o *Role) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseRole)
	if so.Authorizations != nil {
		o.Authorizations = *so.Authorizations
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Private != nil {
		o.Private = *so.Private
	}
}
func ( o * Role ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseRole ) if so . Authorizations != nil { o . Authorizations = * so . Authorizations } if so . Description != nil { o . Description = * so . Description } if so . Key != nil { o . Key = * so . Key } if so . Name != nil { o . Name = * so . Name } if so . Private != nil { o . Private = * so . Private } }
Patch apply the non nil value of a *SparseRole to the object.
Patch apply the non nil value of a * SparseRole to the object .