code: public UpgradePathEnvelope getUpgradePath(String did, String action) throws ApiException {
          ApiResponse<UpgradePathEnvelope> resp = getUpgradePathWithHttpInfo(did, action);
          return resp.getData();
      }
docs: Get upgrade path
  Get upgrade path
  @param did Device ID (required)
  @param action Action to perform (required)
  @return UpgradePathEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body