Skip to content

Commit

Permalink
Merge pull request #6 from geo-engine/list_permissions
Browse files Browse the repository at this point in the history
list permissions
  • Loading branch information
michaelmattig authored Feb 7, 2024
2 parents 0ce8c09 + 8b30fe4 commit 27b81d0
Show file tree
Hide file tree
Showing 1,733 changed files with 3,470 additions and 1,745 deletions.
6 changes: 3 additions & 3 deletions .generation/config.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[input]
backendTag = pro-nightly-2024-01-16
backendTag = pro-nightly-2024-02-08

[general]
githubUrl = https://github.com/geo-engine/openapi-client

[python]
name = geoengine_openapi_client
version = 0.0.4
version = 0.0.5

[typescript]
name = @geoengine/openapi-client
version = 0.0.4
version = 0.0.5

167 changes: 164 additions & 3 deletions .generation/input/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"name": "Apache 2.0 (pro features excluded)",
"url": "https://github.com/geo-engine/geoengine/blob/main/LICENSE"
},
"version": "0.7.0"
"version": "0.8.0"
},
"servers": [
{
"url": "http://0.0.0.0:8080/api"
"url": "http://127.0.0.1:3030/api"
}
],
"paths": {
Expand Down Expand Up @@ -691,6 +691,44 @@
]
}
},
"/dataset/{dataset}/loadingInfo": {
"get": {
"tags": [
"Datasets"
],
"summary": "Retrieves the loading information of a dataset",
"description": "Retrieves the loading information of a dataset",
"operationId": "get_loading_info_handler",
"parameters": [
{
"name": "dataset",
"in": "path",
"description": "Dataset Name",
"required": true,
"schema": {
"$ref": "#/components/schemas/DatasetName"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetaDataDefinition"
}
}
}
}
},
"security": [
{
"session_token": []
}
]
}
},
"/datasetFromWorkflow/{id}": {
"post": {
"tags": [
Expand Down Expand Up @@ -2090,6 +2128,76 @@
]
}
},
"/permissions/resources/{resource_type}/{resource_id}": {
"get": {
"tags": [
"Permissions"
],
"summary": "Lists permission for a given resource.",
"description": "Lists permission for a given resource.",
"operationId": "get_resource_permissions_handler",
"parameters": [
{
"name": "resource_type",
"in": "path",
"description": "Resource Type",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "resource_id",
"in": "path",
"description": "Resource Id",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int32",
"minimum": 0
}
},
{
"name": "offset",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int32",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "List of permission",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PermissionListing"
}
}
}
}
}
},
"security": [
{
"session_token": []
}
]
}
},
"/plot/{id}": {
"get": {
"tags": [
Expand Down Expand Up @@ -4561,6 +4669,14 @@
"$ref": "#/components/schemas/SpatialResolution"
}
},
{
"name": "attributes",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "resultType",
"in": "query",
Expand Down Expand Up @@ -4830,6 +4946,13 @@
"eastNorth"
]
},
"BandSelection": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
}
},
"BoundingBox2D": {
"type": "object",
"description": "A bounding box that includes all border points.\nNote: may degenerate to a point!",
Expand Down Expand Up @@ -7087,6 +7210,44 @@
"Owner"
]
},
"PermissionListOptions": {
"type": "object",
"required": [
"limit",
"offset"
],
"properties": {
"limit": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"offset": {
"type": "integer",
"format": "int32",
"minimum": 0
}
}
},
"PermissionListing": {
"type": "object",
"required": [
"resourceId",
"role",
"permission"
],
"properties": {
"permission": {
"$ref": "#/components/schemas/Permission"
},
"resourceId": {
"$ref": "#/components/schemas/ResourceId"
},
"role": {
"$ref": "#/components/schemas/Role"
}
}
},
"PermissionRequest": {
"type": "object",
"description": "Request for adding a new permission to the given role on the given resource",
Expand Down Expand Up @@ -9532,4 +9693,4 @@
"url": "https://docs.geoengine.io",
"description": "Geo Engine Docs"
}
}
}
4 changes: 4 additions & 0 deletions python/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ geoengine_openapi_client/models/ogr_source_time_format.py
geoengine_openapi_client/models/order_by.py
geoengine_openapi_client/models/palette_colorizer.py
geoengine_openapi_client/models/permission.py
geoengine_openapi_client/models/permission_list_options.py
geoengine_openapi_client/models/permission_listing.py
geoengine_openapi_client/models/permission_request.py
geoengine_openapi_client/models/plot.py
geoengine_openapi_client/models/plot_output_format.py
Expand Down Expand Up @@ -381,6 +383,8 @@ test/test_ogr_source_time_format.py
test/test_order_by.py
test/test_palette_colorizer.py
test/test_permission.py
test/test_permission_list_options.py
test/test_permission_listing.py
test/test_permission_request.py
test/test_permissions_api.py
test/test_plot.py
Expand Down
14 changes: 9 additions & 5 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ No description provided (generated by Openapi Generator https://github.com/opena

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.7.0
- Package version: 0.0.4
- API version: 0.8.0
- Package version: 0.0.5
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down 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://0.0.0.0:8080/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://0.0.0.0:8080/api"
host = "http://127.0.0.1:3030/api"
)

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

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DatasetsApi* | [**auto_create_dataset_handler**](docs/DatasetsApi.md#auto_create_dataset_handler) | **POST** /dataset/auto | Creates a new dataset using previously uploaded files.
*DatasetsApi* | [**create_dataset_handler**](docs/DatasetsApi.md#create_dataset_handler) | **POST** /dataset | Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume.
*DatasetsApi* | [**delete_dataset_handler**](docs/DatasetsApi.md#delete_dataset_handler) | **DELETE** /dataset/{dataset} | Delete a dataset
*DatasetsApi* | [**get_dataset_handler**](docs/DatasetsApi.md#get_dataset_handler) | **GET** /dataset/{dataset} | Retrieves details about a dataset using the internal name.
*DatasetsApi* | [**get_loading_info_handler**](docs/DatasetsApi.md#get_loading_info_handler) | **GET** /dataset/{dataset}/loadingInfo | Retrieves the loading information of a dataset
*DatasetsApi* | [**list_datasets_handler**](docs/DatasetsApi.md#list_datasets_handler) | **GET** /datasets | Lists available datasets.
*DatasetsApi* | [**list_volumes_handler**](docs/DatasetsApi.md#list_volumes_handler) | **GET** /dataset/volumes | Lists available volumes.
*DatasetsApi* | [**suggest_meta_data_handler**](docs/DatasetsApi.md#suggest_meta_data_handler) | **GET** /dataset/suggest | Inspects an upload and suggests metadata that can be used when creating a new dataset based on it.
Expand Down Expand Up @@ -127,6 +128,7 @@ Class | Method | HTTP request | Description
*OGCWMSApi* | [**wms_legend_graphic_handler**](docs/OGCWMSApi.md#wms_legend_graphic_handler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic
*OGCWMSApi* | [**wms_map_handler**](docs/OGCWMSApi.md#wms_map_handler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map
*PermissionsApi* | [**add_permission_handler**](docs/PermissionsApi.md#add_permission_handler) | **PUT** /permissions | Adds a new permission.
*PermissionsApi* | [**get_resource_permissions_handler**](docs/PermissionsApi.md#get_resource_permissions_handler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource.
*PermissionsApi* | [**remove_permission_handler**](docs/PermissionsApi.md#remove_permission_handler) | **DELETE** /permissions | Removes an existing permission.
*PlotsApi* | [**get_plot_handler**](docs/PlotsApi.md#get_plot_handler) | **GET** /plot/{id} | Generates a plot.
*ProjectsApi* | [**create_project_handler**](docs/ProjectsApi.md#create_project_handler) | **POST** /project | Create a new project for the user.
Expand Down Expand Up @@ -288,6 +290,8 @@ Class | Method | HTTP request | Description
- [OrderBy](docs/OrderBy.md)
- [PaletteColorizer](docs/PaletteColorizer.md)
- [Permission](docs/Permission.md)
- [PermissionListOptions](docs/PermissionListOptions.md)
- [PermissionListing](docs/PermissionListing.md)
- [PermissionRequest](docs/PermissionRequest.md)
- [Plot](docs/Plot.md)
- [PlotOutputFormat](docs/PlotOutputFormat.md)
Expand Down
6 changes: 4 additions & 2 deletions python/geoengine_openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.7.0
The version of the OpenAPI document: 0.8.0
Contact: dev@geoengine.de
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "0.0.4"
__version__ = "0.0.5"

# import apis into sdk package
from geoengine_openapi_client.api.datasets_api import DatasetsApi
Expand Down Expand Up @@ -165,6 +165,8 @@
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
from geoengine_openapi_client.models.permission_list_options import PermissionListOptions
from geoengine_openapi_client.models.permission_listing import PermissionListing
from geoengine_openapi_client.models.permission_request import PermissionRequest
from geoengine_openapi_client.models.plot import Plot
from geoengine_openapi_client.models.plot_output_format import PlotOutputFormat
Expand Down
Loading

0 comments on commit 27b81d0

Please sign in to comment.