Skip to content

Commit

Permalink
update openapi-client
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmattig committed Nov 20, 2024
1 parent 838ee1f commit c997933
Show file tree
Hide file tree
Showing 35 changed files with 1,299 additions and 13 deletions.
96 changes: 95 additions & 1 deletion .generation/input/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"servers": [
{
"url": "http://localhost:3030/api"
"url": "http://127.0.0.1:3030/api"
}
],
"paths": {
Expand Down Expand Up @@ -3106,6 +3106,54 @@
]
}
},
"/quota/computations": {
"get": {
"tags": [
"User"
],
"summary": "Retrieves the quota used by computations",
"operationId": "computations_quota_handler",
"parameters": [
{
"name": "workflow",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/WorkflowId"
}
},
{
"name": "limit",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "The quota used by computations",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ComputationQuota"
}
}
}
}
}
},
"security": [
{
"session_token": []
}
]
}
},
"/quotas/{user}": {
"get": {
"tags": [
Expand Down Expand Up @@ -5477,6 +5525,35 @@
}
}
},
"ComputationQuota": {
"type": "object",
"required": [
"timestamp",
"computationId",
"workflowId",
"operators"
],
"properties": {
"computationId": {
"type": "string",
"format": "uuid"
},
"operators": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OperatorQuota"
}
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"workflowId": {
"type": "string",
"format": "uuid"
}
}
},
"ContinuousMeasurement": {
"type": "object",
"required": [
Expand Down Expand Up @@ -7378,6 +7455,23 @@
}
}
},
"OperatorQuota": {
"type": "object",
"required": [
"operatorPath",
"count"
],
"properties": {
"count": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"operatorPath": {
"type": "string"
}
}
},
"OrderBy": {
"type": "string",
"enum": [
Expand Down
6 changes: 6 additions & 0 deletions python/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs/CollectionType.md
docs/ColorParam.md
docs/ColorParamStatic.md
docs/Colorizer.md
docs/ComputationQuota.md
docs/ContinuousMeasurement.md
docs/Coordinate2D.md
docs/CreateDataset.md
Expand Down Expand Up @@ -112,6 +113,7 @@ docs/OgrSourceTimeFormat.md
docs/OgrSourceTimeFormatAuto.md
docs/OgrSourceTimeFormatCustom.md
docs/OgrSourceTimeFormatUnixTimeStamp.md
docs/OperatorQuota.md
docs/OrderBy.md
docs/PaletteColorizer.md
docs/Permission.md
Expand Down Expand Up @@ -276,6 +278,7 @@ geoengine_openapi_client/models/collection_type.py
geoengine_openapi_client/models/color_param.py
geoengine_openapi_client/models/color_param_static.py
geoengine_openapi_client/models/colorizer.py
geoengine_openapi_client/models/computation_quota.py
geoengine_openapi_client/models/continuous_measurement.py
geoengine_openapi_client/models/coordinate2_d.py
geoengine_openapi_client/models/create_dataset.py
Expand Down Expand Up @@ -361,6 +364,7 @@ geoengine_openapi_client/models/ogr_source_time_format.py
geoengine_openapi_client/models/ogr_source_time_format_auto.py
geoengine_openapi_client/models/ogr_source_time_format_custom.py
geoengine_openapi_client/models/ogr_source_time_format_unix_time_stamp.py
geoengine_openapi_client/models/operator_quota.py
geoengine_openapi_client/models/order_by.py
geoengine_openapi_client/models/palette_colorizer.py
geoengine_openapi_client/models/permission.py
Expand Down Expand Up @@ -502,6 +506,7 @@ test/test_collection_type.py
test/test_color_param.py
test/test_color_param_static.py
test/test_colorizer.py
test/test_computation_quota.py
test/test_continuous_measurement.py
test/test_coordinate2_d.py
test/test_create_dataset.py
Expand Down Expand Up @@ -594,6 +599,7 @@ test/test_ogr_source_time_format.py
test/test_ogr_source_time_format_auto.py
test/test_ogr_source_time_format_custom.py
test/test_ogr_source_time_format_unix_time_stamp.py
test/test_operator_quota.py
test/test_order_by.py
test/test_palette_colorizer.py
test/test_permission.py
Expand Down
9 changes: 6 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ import geoengine_openapi_client
from geoengine_openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:3030/api
# Defining the host is optional and defaults to http://127.0.0.1:3030/api
# See configuration.py for a list of all supported configuration parameters.
configuration = geoengine_openapi_client.Configuration(
host = "http://localhost:3030/api"
host = "http://127.0.0.1:3030/api"
)

# The client must configure the authentication and authorization parameters
Expand Down Expand Up @@ -90,7 +90,7 @@ with geoengine_openapi_client.ApiClient(configuration) as api_client:

## Documentation for API Endpoints

All URIs are relative to *http://localhost:3030/api*
All URIs are relative to *http://127.0.0.1:3030/api*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down Expand Up @@ -165,6 +165,7 @@ Class | Method | HTTP request | Description
*UploadsApi* | [**upload_handler**](docs/UploadsApi.md#upload_handler) | **POST** /upload | Uploads files.
*UserApi* | [**add_role_handler**](docs/UserApi.md#add_role_handler) | **PUT** /roles | Add a new role. Requires admin privilige.
*UserApi* | [**assign_role_handler**](docs/UserApi.md#assign_role_handler) | **POST** /users/{user}/roles/{role} | Assign a role to a user. Requires admin privilige.
*UserApi* | [**computations_quota_handler**](docs/UserApi.md#computations_quota_handler) | **GET** /quota/computations | Retrieves the quota used by computations
*UserApi* | [**get_role_by_name_handler**](docs/UserApi.md#get_role_by_name_handler) | **GET** /roles/byName/{name} | Get role by name
*UserApi* | [**get_role_descriptions**](docs/UserApi.md#get_role_descriptions) | **GET** /user/roles/descriptions | Query roles for the current user.
*UserApi* | [**get_user_quota_handler**](docs/UserApi.md#get_user_quota_handler) | **GET** /quotas/{user} | Retrieves the available and used quota of a specific user.
Expand Down Expand Up @@ -200,6 +201,7 @@ Class | Method | HTTP request | Description
- [ColorParam](docs/ColorParam.md)
- [ColorParamStatic](docs/ColorParamStatic.md)
- [Colorizer](docs/Colorizer.md)
- [ComputationQuota](docs/ComputationQuota.md)
- [ContinuousMeasurement](docs/ContinuousMeasurement.md)
- [Coordinate2D](docs/Coordinate2D.md)
- [CreateDataset](docs/CreateDataset.md)
Expand Down Expand Up @@ -285,6 +287,7 @@ Class | Method | HTTP request | Description
- [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md)
- [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md)
- [OgrSourceTimeFormatUnixTimeStamp](docs/OgrSourceTimeFormatUnixTimeStamp.md)
- [OperatorQuota](docs/OperatorQuota.md)
- [OrderBy](docs/OrderBy.md)
- [PaletteColorizer](docs/PaletteColorizer.md)
- [Permission](docs/Permission.md)
Expand Down
2 changes: 2 additions & 0 deletions python/geoengine_openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
from geoengine_openapi_client.models.color_param import ColorParam
from geoengine_openapi_client.models.color_param_static import ColorParamStatic
from geoengine_openapi_client.models.colorizer import Colorizer
from geoengine_openapi_client.models.computation_quota import ComputationQuota
from geoengine_openapi_client.models.continuous_measurement import ContinuousMeasurement
from geoengine_openapi_client.models.coordinate2_d import Coordinate2D
from geoengine_openapi_client.models.create_dataset import CreateDataset
Expand Down Expand Up @@ -149,6 +150,7 @@
from geoengine_openapi_client.models.ogr_source_time_format_auto import OgrSourceTimeFormatAuto
from geoengine_openapi_client.models.ogr_source_time_format_custom import OgrSourceTimeFormatCustom
from geoengine_openapi_client.models.ogr_source_time_format_unix_time_stamp import OgrSourceTimeFormatUnixTimeStamp
from geoengine_openapi_client.models.operator_quota import OperatorQuota
from geoengine_openapi_client.models.order_by import OrderBy
from geoengine_openapi_client.models.palette_colorizer import PaletteColorizer
from geoengine_openapi_client.models.permission import Permission
Expand Down
Loading

0 comments on commit c997933

Please sign in to comment.