code: public DeviceEnvelope updateDevice(String deviceId, Device device) throws ApiException {
          ApiResponse<DeviceEnvelope> resp = updateDeviceWithHttpInfo(deviceId, device);
          return resp.getData();
      }
docs: Update Device
  Updates a device
  @param deviceId deviceId (required)
  @param device Device to be updated (required)
  @return DeviceEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body