code: public UploadCertificateResponseInner uploadCertificate(String deviceName, String resourceGroupName, UploadCertificateRequest parameters) {
          return uploadCertificateWithServiceResponseAsync(deviceName, resourceGroupName, parameters).toBlocking().single().body();
      }
docs: Uploads registration certificate for the device.
  
  @param deviceName The device name.
  @param resourceGroupName The resource group name.
  @param parameters The upload certificate request.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the UploadCertificateResponseInner object if successful.