C:\Python27\python.exe C:/bench/ece/scripts/test-connection.py
Traceback (most recent call last):
File "C:/bench/ece/scripts/test-connection.py", line 3, in <module>
import swagger_client
File "build\bdist.win-amd64\egg\swagger_client\__init__.py", line 19, in <module>
File "build\bdist.win-amd64\egg\swagger_client\api\__init__.py", line 6, in <module>
File "build\bdist.win-amd64\egg\swagger_client\api\clusters_elasticsearch_api.py", line 21, in <module>
File "build\bdist.win-amd64\egg\swagger_client\api_client.py", line 27, in <module>
File "build\bdist.win-amd64\egg\swagger_client\models\__init__.py", line 32, in <module>
File "build\bdist.win-amd64\egg\swagger_client\models\bool_query.py", line 19, in <module>
File "build\bdist.win-amd64\egg\swagger_client\models\query_container.py", line 19, in <module>
ImportError: cannot import name BoolQuery
Description
Hi,
I'm trying to build a python swagger client for Elastic's ECE API
A test script that imports swagger_client errors with the following.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
https://download.elasticsearch.org/cloud/1.1/elastic-cloud-enterprise-API-swagger.json
Command line used for generation
python
import swagger_client
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement