code: public ApiResponse<DeviceEnvelope> updateDeviceWithHttpInfo(String deviceId, Device device) throws ApiException {
          com.squareup.okhttp.Call call = updateDeviceValidateBeforeCall(deviceId, device, null, null);
          Type localVarReturnType = new TypeToken<DeviceEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Update Device
  Updates a device
  @param deviceId deviceId (required)
  @param device Device to be updated (required)
  @return ApiResponse&lt;DeviceEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body