code: public Observable<UploadCertificateResponseInner> uploadCertificateAsync(String deviceName, String resourceGroupName, UploadCertificateRequest parameters) {
          return uploadCertificateWithServiceResponseAsync(deviceName, resourceGroupName, parameters).map(new Func1<ServiceResponse<UploadCertificateResponseInner>, UploadCertificateResponseInner>() {
              @Override
              public UploadCertificateResponseInner call(ServiceResponse<UploadCertificateResponseInner> response) {
                  return response.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
  @return the observable to the UploadCertificateResponseInner object