Skip to content

Commit

Permalink
Merge pull request #2 from waylayio/chore/regenerate
Browse files Browse the repository at this point in the history
Regenerate queries sdk 🔁
  • Loading branch information
plankthom authored Aug 9, 2024
2 parents 718e61e + a671c55 commit 5b8c17e
Show file tree
Hide file tree
Showing 152 changed files with 66 additions and 74 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ from waylay.services.queries.models.query_input import QueryInput
from waylay.services.queries.models.query_result import QueryResult
try:
# Execute Query
# calls `POST /queries/v1/queries/v1/data`
# calls `POST /queries/v1/data`
api_response = await waylay_client.queries.execute.execute(
# query parameters:
query = {
Expand Down Expand Up @@ -72,14 +72,14 @@ All URIs are relative to *https://api.waylay.io*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ExecuteApi* | [**execute_by_name**](docs/ExecuteApi.md#execute_by_name) | **GET** /queries/v1/queries/v1/data/{query_name} | Execute Named Query
*ExecuteApi* | [**execute**](docs/ExecuteApi.md#execute) | **POST** /queries/v1/queries/v1/data | Execute Query
*ManageApi* | [**create**](docs/ManageApi.md#create) | **POST** /queries/v1/queries/v1/query | Post Query
*ManageApi* | [**get**](docs/ManageApi.md#get) | **GET** /queries/v1/queries/v1/query/{query_name} | Get Query
*ManageApi* | [**list**](docs/ManageApi.md#list) | **GET** /queries/v1/queries/v1/query | List Queries
*ManageApi* | [**remove**](docs/ManageApi.md#remove) | **DELETE** /queries/v1/queries/v1/query/{query_name} | Remove Query
*ManageApi* | [**update**](docs/ManageApi.md#update) | **PUT** /queries/v1/queries/v1/query/{query_name} | Update Query
*StatusApi* | [**get**](docs/StatusApi.md#get) | **GET** /queries/v1/queries/v1 | Get Version And Health
*ExecuteApi* | [**execute_by_name**](docs/ExecuteApi.md#execute_by_name) | **GET** /queries/v1/data/{query_name} | Execute Named Query
*ExecuteApi* | [**execute**](docs/ExecuteApi.md#execute) | **POST** /queries/v1/data | Execute Query
*ManageApi* | [**create**](docs/ManageApi.md#create) | **POST** /queries/v1/query | Post Query
*ManageApi* | [**get**](docs/ManageApi.md#get) | **GET** /queries/v1/query/{query_name} | Get Query
*ManageApi* | [**list**](docs/ManageApi.md#list) | **GET** /queries/v1/query | List Queries
*ManageApi* | [**remove**](docs/ManageApi.md#remove) | **DELETE** /queries/v1/query/{query_name} | Remove Query
*ManageApi* | [**update**](docs/ManageApi.md#update) | **PUT** /queries/v1/query/{query_name} | Update Query
*StatusApi* | [**get**](docs/StatusApi.md#get) | **GET** /queries/v1 | Get Version And Health


## Documentation For Models
Expand Down
12 changes: 6 additions & 6 deletions docs/ExecuteApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ All URIs are relative to *https://api.waylay.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**execute_by_name**](ExecuteApi.md#execute_by_name) | **GET** /queries/v1/queries/v1/data/{query_name} | Execute Named Query
[**execute**](ExecuteApi.md#execute) | **POST** /queries/v1/queries/v1/data | Execute Query
[**execute_by_name**](ExecuteApi.md#execute_by_name) | **GET** /queries/v1/data/{query_name} | Execute Named Query
[**execute**](ExecuteApi.md#execute) | **POST** /queries/v1/data | Execute Query

# **execute_by_name**
> execute_by_name(
Expand Down Expand Up @@ -34,7 +34,7 @@ waylay_client = WaylayClient.from_profile()
from waylay.services.queries.models.query_result import QueryResult
try:
# Execute Named Query
# calls `GET /queries/v1/queries/v1/data/{query_name}`
# calls `GET /queries/v1/data/{query_name}`
api_response = await waylay_client.queries.execute.execute_by_name(
'query_name_example', # query_name | path param "query_name"
# query parameters:
Expand All @@ -54,7 +54,7 @@ except ApiError as e:

### Endpoint
```
GET /queries/v1/queries/v1/data/{query_name}
GET /queries/v1/data/{query_name}
```
### Parameters

Expand Down Expand Up @@ -124,7 +124,7 @@ from waylay.services.queries.models.query_input import QueryInput
from waylay.services.queries.models.query_result import QueryResult
try:
# Execute Query
# calls `POST /queries/v1/queries/v1/data`
# calls `POST /queries/v1/data`
api_response = await waylay_client.queries.execute.execute(
# query parameters:
query = {
Expand All @@ -145,7 +145,7 @@ except ApiError as e:

### Endpoint
```
POST /queries/v1/queries/v1/data
POST /queries/v1/data
```
### Parameters

Expand Down
30 changes: 15 additions & 15 deletions docs/ManageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ All URIs are relative to *https://api.waylay.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create**](ManageApi.md#create) | **POST** /queries/v1/queries/v1/query | Post Query
[**get**](ManageApi.md#get) | **GET** /queries/v1/queries/v1/query/{query_name} | Get Query
[**list**](ManageApi.md#list) | **GET** /queries/v1/queries/v1/query | List Queries
[**remove**](ManageApi.md#remove) | **DELETE** /queries/v1/queries/v1/query/{query_name} | Remove Query
[**update**](ManageApi.md#update) | **PUT** /queries/v1/queries/v1/query/{query_name} | Update Query
[**create**](ManageApi.md#create) | **POST** /queries/v1/query | Post Query
[**get**](ManageApi.md#get) | **GET** /queries/v1/query/{query_name} | Get Query
[**list**](ManageApi.md#list) | **GET** /queries/v1/query | List Queries
[**remove**](ManageApi.md#remove) | **DELETE** /queries/v1/query/{query_name} | Remove Query
[**update**](ManageApi.md#update) | **PUT** /queries/v1/query/{query_name} | Update Query

# **create**
> create(
Expand Down Expand Up @@ -36,7 +36,7 @@ from waylay.services.queries.models.query_entity_input import QueryEntityInput
from waylay.services.queries.models.query_response import QueryResponse
try:
# Post Query
# calls `POST /queries/v1/queries/v1/query`
# calls `POST /queries/v1/query`
api_response = await waylay_client.queries.manage.create(
# json data: use a generated model or a json-serializable python data structure (dict, list)
json = waylay.services.queries.QueryEntityInput() # QueryEntityInput |
Expand All @@ -49,7 +49,7 @@ except ApiError as e:

### Endpoint
```
POST /queries/v1/queries/v1/query
POST /queries/v1/query
```
### Parameters

Expand Down Expand Up @@ -106,7 +106,7 @@ waylay_client = WaylayClient.from_profile()
from waylay.services.queries.models.query_response import QueryResponse
try:
# Get Query
# calls `GET /queries/v1/queries/v1/query/{query_name}`
# calls `GET /queries/v1/query/{query_name}`
api_response = await waylay_client.queries.manage.get(
'query_name_example', # query_name | path param "query_name"
)
Expand All @@ -118,7 +118,7 @@ except ApiError as e:

### Endpoint
```
GET /queries/v1/queries/v1/query/{query_name}
GET /queries/v1/query/{query_name}
```
### Parameters

Expand Down Expand Up @@ -175,7 +175,7 @@ waylay_client = WaylayClient.from_profile()
from waylay.services.queries.models.queries_list_response import QueriesListResponse
try:
# List Queries
# calls `GET /queries/v1/queries/v1/query`
# calls `GET /queries/v1/query`
api_response = await waylay_client.queries.manage.list(
# query parameters:
query = {
Expand All @@ -192,7 +192,7 @@ except ApiError as e:

### Endpoint
```
GET /queries/v1/queries/v1/query
GET /queries/v1/query
```
### Parameters

Expand Down Expand Up @@ -252,7 +252,7 @@ waylay_client = WaylayClient.from_profile()
from waylay.services.queries.models.delete_response import DeleteResponse
try:
# Remove Query
# calls `DELETE /queries/v1/queries/v1/query/{query_name}`
# calls `DELETE /queries/v1/query/{query_name}`
api_response = await waylay_client.queries.manage.remove(
'query_name_example', # query_name | path param "query_name"
)
Expand All @@ -264,7 +264,7 @@ except ApiError as e:

### Endpoint
```
DELETE /queries/v1/queries/v1/query/{query_name}
DELETE /queries/v1/query/{query_name}
```
### Parameters

Expand Down Expand Up @@ -322,7 +322,7 @@ from waylay.services.queries.models.query_definition import QueryDefinition
from waylay.services.queries.models.query_response import QueryResponse
try:
# Update Query
# calls `PUT /queries/v1/queries/v1/query/{query_name}`
# calls `PUT /queries/v1/query/{query_name}`
api_response = await waylay_client.queries.manage.update(
'query_name_example', # query_name | path param "query_name"
# json data: use a generated model or a json-serializable python data structure (dict, list)
Expand All @@ -336,7 +336,7 @@ except ApiError as e:

### Endpoint
```
PUT /queries/v1/queries/v1/query/{query_name}
PUT /queries/v1/query/{query_name}
```
### Parameters

Expand Down
6 changes: 3 additions & 3 deletions docs/StatusApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All URIs are relative to *https://api.waylay.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get**](StatusApi.md#get) | **GET** /queries/v1/queries/v1 | Get Version And Health
[**get**](StatusApi.md#get) | **GET** /queries/v1 | Get Version And Health

# **get**
> get(
Expand All @@ -30,7 +30,7 @@ waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-queries-types` is installed
try:
# Get Version And Health
# calls `GET /queries/v1/queries/v1`
# calls `GET /queries/v1`
api_response = await waylay_client.queries.status.get(
)
print("The response of queries.status.get:\n")
Expand All @@ -41,7 +41,7 @@ except ApiError as e:

### Endpoint
```
GET /queries/v1/queries/v1
GET /queries/v1
```
### Parameters

Expand Down
10 changes: 5 additions & 5 deletions openapi/queries.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
Protocol version: v1.'
version: 0.5.0
paths:
/queries/v1/queries/v1:
/queries/v1:
get:
tags:
- Status
Expand All @@ -28,7 +28,7 @@ paths:
title: Response Get Version And Health Queries V1 Get
security: &id001
- waylayApiKeySecret: []
/queries/v1/queries/v1/data:
/queries/v1/data:
post:
tags:
- Execute
Expand Down Expand Up @@ -1674,7 +1674,7 @@ paths:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: *id001
/queries/v1/queries/v1/data/{query_name}:
/queries/v1/data/{query_name}:
get:
tags:
- Execute
Expand Down Expand Up @@ -3320,7 +3320,7 @@ paths:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: *id001
/queries/v1/queries/v1/query:
/queries/v1/query:
get:
tags:
- Manage
Expand Down Expand Up @@ -3429,7 +3429,7 @@ paths:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: *id001
/queries/v1/queries/v1/query/{query_name}:
/queries/v1/query/{query_name}:
get:
tags:
- Manage
Expand Down
10 changes: 5 additions & 5 deletions openapi/queries.transformed.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
Protocol version: v1.
version: 0.5.0
paths:
/queries/v1/queries/v1:
/queries/v1:
get:
tags:
- Status
Expand All @@ -32,7 +32,7 @@ paths:
x-consumes-urlencoded: false
x-consumes-json: false
x-consumes-other: false
/queries/v1/queries/v1/data:
/queries/v1/data:
post:
tags:
- Execute
Expand Down Expand Up @@ -1740,7 +1740,7 @@ paths:
x-consumes-urlencoded: false
x-consumes-json: true
x-consumes-other: false
/queries/v1/queries/v1/data/{query_name}:
/queries/v1/data/{query_name}:
get:
tags:
- Execute
Expand Down Expand Up @@ -3449,7 +3449,7 @@ paths:
x-consumes-urlencoded: false
x-consumes-json: false
x-consumes-other: false
/queries/v1/queries/v1/query:
/queries/v1/query:
get:
tags:
- Manage
Expand Down Expand Up @@ -3577,7 +3577,7 @@ paths:
x-consumes-urlencoded: false
x-consumes-json: true
x-consumes-other: false
/queries/v1/queries/v1/query/{query_name}:
/queries/v1/query/{query_name}:
get:
tags:
- Manage
Expand Down
Binary file modified test/api/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified test/api/__pycache__/execute_api_test.cpython-311-pytest-8.3.2.pyc
Binary file not shown.
Binary file modified test/api/__pycache__/manage_api_test.cpython-311-pytest-8.3.2.pyc
Binary file not shown.
Binary file modified test/api/__pycache__/status_api_test.cpython-311-pytest-8.3.2.pyc
Binary file not shown.
6 changes: 2 additions & 4 deletions test/api/execute_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def _execute_by_name_set_mock_response(
mock_response = QueryResultStub.create_json()
httpx_mock_kwargs = {
"method": "GET",
"url": re.compile(
f"^{gateway_url}/queries/v1/queries/v1/data/{query_name}(\\?.*)?"
),
"url": re.compile(f"^{gateway_url}/queries/v1/data/{query_name}(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down Expand Up @@ -137,7 +135,7 @@ def _execute_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str):
mock_response = QueryResultStub.create_json()
httpx_mock_kwargs = {
"method": "POST",
"url": re.compile(f"^{gateway_url}/queries/v1/queries/v1/data(\\?.*)?"),
"url": re.compile(f"^{gateway_url}/queries/v1/data(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down
16 changes: 5 additions & 11 deletions test/api/manage_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _create_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str):
mock_response = QueryResponseStub.create_json()
httpx_mock_kwargs = {
"method": "POST",
"url": re.compile(f"^{gateway_url}/queries/v1/queries/v1/query(\\?.*)?"),
"url": re.compile(f"^{gateway_url}/queries/v1/query(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down Expand Up @@ -102,9 +102,7 @@ def _get_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str, query_name:
mock_response = QueryResponseStub.create_json()
httpx_mock_kwargs = {
"method": "GET",
"url": re.compile(
f"^{gateway_url}/queries/v1/queries/v1/query/{query_name}(\\?.*)?"
),
"url": re.compile(f"^{gateway_url}/queries/v1/query/{query_name}(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down Expand Up @@ -147,7 +145,7 @@ def _list_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str):
mock_response = QueriesListResponseStub.create_json()
httpx_mock_kwargs = {
"method": "GET",
"url": re.compile(f"^{gateway_url}/queries/v1/queries/v1/query(\\?.*)?"),
"url": re.compile(f"^{gateway_url}/queries/v1/query(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down Expand Up @@ -199,9 +197,7 @@ def _remove_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str, query_nam
mock_response = DeleteResponseStub.create_json()
httpx_mock_kwargs = {
"method": "DELETE",
"url": re.compile(
f"^{gateway_url}/queries/v1/queries/v1/query/{query_name}(\\?.*)?"
),
"url": re.compile(f"^{gateway_url}/queries/v1/query/{query_name}(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down Expand Up @@ -244,9 +240,7 @@ def _update_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str, query_nam
mock_response = QueryResponseStub.create_json()
httpx_mock_kwargs = {
"method": "PUT",
"url": re.compile(
f"^{gateway_url}/queries/v1/queries/v1/query/{query_name}(\\?.*)?"
),
"url": re.compile(f"^{gateway_url}/queries/v1/query/{query_name}(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down
2 changes: 1 addition & 1 deletion test/api/status_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _get_set_mock_response(httpx_mock: HTTPXMock, gateway_url: str):
mock_response = {"key": ""}
httpx_mock_kwargs = {
"method": "GET",
"url": re.compile(f"^{gateway_url}/queries/v1/queries/v1(\\?.*)?"),
"url": re.compile(f"^{gateway_url}/queries/v1(\\?.*)?"),
"content": json.dumps(mock_response, default=str),
"status_code": 200,
}
Expand Down
Binary file modified test/types/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/aggregation_method_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/delete_response_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/from_override_stub.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file modified test/types/__pycache__/interpolation_stub.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file modified test/types/__pycache__/query_definition_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/query_entity_input_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/query_input_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/query_response_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/query_result_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/render1_stub.cpython-311.pyc
Binary file not shown.
Binary file modified test/types/__pycache__/window_override_stub.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion waylay-sdk-queries-types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ from waylay.services.queries.models.query_input import QueryInput
from waylay.services.queries.models.query_result import QueryResult
try:
# Execute Query
# calls `POST /queries/v1/queries/v1/data`
# calls `POST /queries/v1/data`
api_response = await waylay_client.queries.execute.execute(
# query parameters:
query = {
Expand Down
Loading

0 comments on commit 5b8c17e

Please sign in to comment.