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

	so := sparse.(*SparseX509Certificate)
	if so.CSR != nil {
		o.CSR = *so.CSR
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.ExpirationDate != nil {
		o.ExpirationDate = *so.ExpirationDate
	}
	if so.Extensions != nil {
		o.Extensions = *so.Extensions
	}
	if so.Signer != nil {
		o.Signer = *so.Signer
	}
	if so.SubjectOverride != nil {
		o.SubjectOverride = so.SubjectOverride
	}
	if so.Unrevocable != nil {
		o.Unrevocable = *so.Unrevocable
	}
	if so.Usage != nil {
		o.Usage = *so.Usage
	}
}
// Patch apply the non nil value of a *SparseX509Certificate to the object.
Patch apply the non nil value of a *SparseX509Certificate to the object.
// Patch apply the non nil value of a * SparseX509Certificate to the object .
func (o *X509Certificate) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseX509Certificate)
	if so.CSR != nil {
		o.CSR = *so.CSR
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.ExpirationDate != nil {
		o.ExpirationDate = *so.ExpirationDate
	}
	if so.Extensions != nil {
		o.Extensions = *so.Extensions
	}
	if so.Signer != nil {
		o.Signer = *so.Signer
	}
	if so.SubjectOverride != nil {
		o.SubjectOverride = so.SubjectOverride
	}
	if so.Unrevocable != nil {
		o.Unrevocable = *so.Unrevocable
	}
	if so.Usage != nil {
		o.Usage = *so.Usage
	}
}
func ( o * X509Certificate ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseX509Certificate ) if so . CSR != nil { o . CSR = * so . CSR } if so . ID != nil { o . ID = * so . ID } if so . Certificate != nil { o . Certificate = * so . Certificate } if so . ExpirationDate != nil { o . ExpirationDate = * so . ExpirationDate } if so . Extensions != nil { o . Extensions = * so . Extensions } if so . Signer != nil { o . Signer = * so . Signer } if so . SubjectOverride != nil { o . SubjectOverride = so . SubjectOverride } if so . Unrevocable != nil { o . Unrevocable = * so . Unrevocable } if so . Usage != nil { o . Usage = * so . Usage } }
Patch apply the non nil value of a *SparseX509Certificate to the object.
Patch apply the non nil value of a * SparseX509Certificate to the object .