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

	so := sparse.(*SparseLocalCA)
	if so.SSHCertificate != nil {
		o.SSHCertificate = *so.SSHCertificate
	}
	if so.SSHCertificateRenew != nil {
		o.SSHCertificateRenew = *so.SSHCertificateRenew
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.CertificateRenew != nil {
		o.CertificateRenew = *so.CertificateRenew
	}
}
// Patch apply the non nil value of a *SparseLocalCA to the object.
Patch apply the non nil value of a *SparseLocalCA to the object.
// Patch apply the non nil value of a * SparseLocalCA to the object .
func (o *LocalCA) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseLocalCA)
	if so.SSHCertificate != nil {
		o.SSHCertificate = *so.SSHCertificate
	}
	if so.SSHCertificateRenew != nil {
		o.SSHCertificateRenew = *so.SSHCertificateRenew
	}
	if so.Certificate != nil {
		o.Certificate = *so.Certificate
	}
	if so.CertificateRenew != nil {
		o.CertificateRenew = *so.CertificateRenew
	}
}
func ( o * LocalCA ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseLocalCA ) if so . SSHCertificate != nil { o . SSHCertificate = * so . SSHCertificate } if so . SSHCertificateRenew != nil { o . SSHCertificateRenew = * so . SSHCertificateRenew } if so . Certificate != nil { o . Certificate = * so . Certificate } if so . CertificateRenew != nil { o . CertificateRenew = * so . CertificateRenew } }
Patch apply the non nil value of a *SparseLocalCA to the object.
Patch apply the non nil value of a * SparseLocalCA to the object .