def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil)
      response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil)
      response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Upload the certificate to the IoT hub.

 Adds new or replaces existing certificate.

 @param resource_group_name [String] The name of the resource group that
 contains the IoT hub.
 @param resource_name [String] The name of the IoT hub.
 @param certificate_name [String] The name of the certificate
 @param certificate_description [CertificateBodyDescription] The certificate
 body.
 @param if_match [String] ETag of the Certificate. Do not specify for creating
 a brand new certificate. Required to update an existing certificate.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CertificateDescription] operation results.