func (r *ProtocolLXD) UpdateCertificate(fingerprint string, certificate api.CertificatePut, ETag string) error {
	if !r.HasExtension("certificate_update") {
		return fmt.Errorf("The server is missing the required \"certificate_update\" API extension")
	}

	// Send the request
	_, _, err := r.query("PUT", fmt.Sprintf("/certificates/%s", url.QueryEscape(fingerprint)), certificate, ETag)
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) UpdateCertificate(fingerprint string, certificate api.CertificatePut, ETag string) error {
	if !r.HasExtension("certificate_update") {
		return fmt.Errorf("The server is missing the required \"certificate_update\" API extension")
	}

	
	_, _, err := r.query("PUT", fmt.Sprintf("/certificates/%s", url.QueryEscape(fingerprint)), certificate, ETag)
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) UpdateCertificate ( fingerprint string , certificate api . CertificatePut , ETag string ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } // Send the request _ , _ , err := r . query ( " " , fmt . Sprintf ( " " , url . QueryEscape ( fingerprint ) ) , certificate , ETag ) if err != nil { return err } return nil }
// UpdateCertificate updates the certificate definition
UpdateCertificate updates the certificate definition