code: public ApiResponse<UpgradePathEnvelope> getUpgradePathWithHttpInfo(String did, String action) throws ApiException {
          com.squareup.okhttp.Call call = getUpgradePathValidateBeforeCall(did, action, null, null);
          Type localVarReturnType = new TypeToken<UpgradePathEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get upgrade path
  Get upgrade path
  @param did Device ID (required)
  @param action Action to perform (required)
  @return ApiResponse&lt;UpgradePathEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body