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

	so := sparse.(*SparseAuthority)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Algorithm != nil {
		o.Algorithm = *so.Algorithm
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.CommonName != nil {
		o.CommonName = *so.CommonName
	}
	if so.ExpirationDate != nil {
		o.ExpirationDate = *so.ExpirationDate
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Organization != nil {
		o.Organization = *so.Organization
	}
	if so.SerialNumber != nil {
		o.SerialNumber = *so.SerialNumber
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparseAuthority to the object.
Patch apply the non nil value of a *SparseAuthority to the object.
// Patch apply the non nil value of a * SparseAuthority to the object .
func (o *Authority) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseAuthority)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Algorithm != nil {
		o.Algorithm = *so.Algorithm
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.CommonName != nil {
		o.CommonName = *so.CommonName
	}
	if so.ExpirationDate != nil {
		o.ExpirationDate = *so.ExpirationDate
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Organization != nil {
		o.Organization = *so.Organization
	}
	if so.SerialNumber != nil {
		o.SerialNumber = *so.SerialNumber
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * Authority ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseAuthority ) if so . ID != nil { o . ID = * so . ID } if so . Algorithm != nil { o . Algorithm = * so . Algorithm } if so . Certificate != nil { o . Certificate = * so . Certificate } if so . CommonName != nil { o . CommonName = * so . CommonName } if so . ExpirationDate != nil { o . ExpirationDate = * so . ExpirationDate } if so . Key != nil { o . Key = * so . Key } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Organization != nil { o . Organization = * so . Organization } if so . SerialNumber != nil { o . SerialNumber = * so . SerialNumber } if so . Type != nil { o . Type = * so . Type } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparseAuthority to the object.
Patch apply the non nil value of a * SparseAuthority to the object .