Skip to content

Commit

Permalink
build: rebuild client using latest templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Stolze committed Mar 26, 2024
1 parent 8c7d8dd commit 88e7ca9
Show file tree
Hide file tree
Showing 18 changed files with 176 additions and 1,051 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ openrouteservice-js/node_modules
# Generated and used during building
client_version.txt
openrouteservice_ignore_paths.yaml

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]

| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
| 7.1.1 | 7.1.1.post1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
| 7.1.1 | 7.1.1.post2 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |

For further details, please visit:
- our [homepage](https://openrouteservice.org)
Expand Down Expand Up @@ -65,7 +65,7 @@ directionsApi = ors.DirectionsServiceApi(
)

# create request body
body = ors.DirectionsService(
body = ors.DirectionsServiceBody(
coordinates=[[8.34234,48.23424],[8.34423,48.26424]]
)

Expand Down Expand Up @@ -126,8 +126,7 @@ Class | Method | HTTP request | Description
## Documentation For Models

- [AlternativeRoutes](docs/AlternativeRoutes.md)
- [DirectionsService](docs/DirectionsService.md)
- [DirectionsService1](docs/DirectionsService1.md)
- [DirectionsServiceBody](docs/DirectionsServiceBody.md)
- [ElevationLineBody](docs/ElevationLineBody.md)
- [ElevationPointBody](docs/ElevationPointBody.md)
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
Expand Down
35 changes: 0 additions & 35 deletions docs/DirectionsService1.md

This file was deleted.

8 changes: 4 additions & 4 deletions docs/DirectionsServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
body = openrouteservice.DirectionsService() # DirectionsService |
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.

try:
Expand All @@ -45,7 +45,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DirectionsService**](DirectionsService.md)| |
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
**profile** | **str**| Specifies the route profile. |

### Return type
Expand Down Expand Up @@ -86,7 +86,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
body = openrouteservice.DirectionsService1() # DirectionsService1 |
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.

try:
Expand All @@ -101,7 +101,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DirectionsService1**](DirectionsService1.md)| |
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
**profile** | **str**| Specifies the route profile. |

### Return type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DirectionsService
# DirectionsServiceBody

## Properties
Name | Type | Description | Notes
Expand Down
4 changes: 2 additions & 2 deletions examples/Avoid_ConstructionSites.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5724,7 +5724,7 @@
"map2 = folium.Map(**map_params)\n",
"\n",
"api_instance = ors.DirectionsServiceApi(ors.apiClient(apiKey=api_key))\n",
"body = ors.DirectionsService(\n",
"body = ors.DirectionsServiceBody(\n",
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
" preference='shortest',\n",
" instructions=False\n",
Expand Down Expand Up @@ -6157,7 +6157,7 @@
],
"source": [
"# Add the site polygons to the request parameters\n",
"body = ors.DirectionsService(\n",
"body = ors.DirectionsServiceBody(\n",
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
" preference='shortest',\n",
" instructions=False,\n",
Expand Down
6 changes: 3 additions & 3 deletions examples/Dieselgate_Routing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"\n",
"# Request route\n",
"coordinates = [[13.372582, 52.520295], [13.391476, 52.508856]]\n",
"body = ors.DirectionsService(\n",
"body = ors.DirectionsServiceBody(\n",
" coordinates=coordinates,\n",
" preference='shortest',\n",
" geometry=True\n",
Expand Down Expand Up @@ -549,7 +549,7 @@
"# Affected streets\n",
"buffer = []\n",
"for street in avoid_streets:\n",
" body = ors.DirectionsService(\n",
" body = ors.DirectionsServiceBody(\n",
" coordinates=street['coords'],\n",
" preference='shortest',\n",
" geometry=True\n",
Expand Down Expand Up @@ -911,7 +911,7 @@
}
],
"source": [
"body = ors.DirectionsService(\n",
"body = ors.DirectionsServiceBody(\n",
" coordinates=coordinates,\n",
" preference='shortest',\n",
" instructions=False,\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/ortools_pubcrawl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"\n",
"# See what a 'random' tour would have been\n",
"pubs_coords.append(pubs_coords[0])\n",
"body = ors.DirectionsService(\n",
"body = ors.DirectionsServiceBody(\n",
" coordinates=pubs_coords,\n",
" geometry=True\n",
")\n",
Expand Down
3 changes: 1 addition & 2 deletions openrouteservice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
from openrouteservice.configuration import Configuration
# import models into sdk package
from openrouteservice.models.alternative_routes import AlternativeRoutes
from openrouteservice.models.directions_service import DirectionsService
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.directions_service_body import DirectionsServiceBody
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
Expand Down
8 changes: 4 additions & 4 deletions openrouteservice/api/directions_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_geo_json_route(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand All @@ -65,7 +65,7 @@ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E
>>> result = thread.get()
:param async_req bool
:param DirectionsService body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_json_route(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService1 body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand All @@ -172,7 +172,7 @@ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService1 body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand Down
2 changes: 1 addition & 1 deletion openrouteservice/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/7.1.1.post1/python'
self.user_agent = 'Swagger-Codegen/7.1.1.post2/python'

def __del__(self):
self.pool.close()
Expand Down
2 changes: 1 addition & 1 deletion openrouteservice/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 7.1.1\n"\
"SDK Package Version: 7.1.1.post1".\
"SDK Package Version: 7.1.1.post2".\
format(env=sys.platform, pyversion=sys.version)
3 changes: 1 addition & 2 deletions openrouteservice/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

# import models into model package
from openrouteservice.models.alternative_routes import AlternativeRoutes
from openrouteservice.models.directions_service import DirectionsService
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.directions_service_body import DirectionsServiceBody
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
Expand Down

0 comments on commit 88e7ca9

Please sign in to comment.