diff --git a/.generation/Dockerfile b/.generation/Dockerfile index 5163d0cc..f642d684 100644 --- a/.generation/Dockerfile +++ b/.generation/Dockerfile @@ -1,5 +1,5 @@ # Patched version of openapi-generator-cli with python3 support -FROM docker.io/openapitools/openapi-generator-cli:v7.12.0 +FROM docker.io/openapitools/openapi-generator-cli:v7.17.0 RUN apt-get update && apt-get install -y python3 diff --git a/.generation/config.ini b/.generation/config.ini index 8569d0a3..2809815a 100644 --- a/.generation/config.ini +++ b/.generation/config.ini @@ -1,9 +1,9 @@ [input] -backendCommit = a67f76af99b5b579fa0823bfa5908fae0049cb22 +backendCommit = 9c2decb9f961cdce3d26f278291344bc269b4cbe [general] githubUrl = https://github.com/geo-engine/openapi-client -version = 0.0.27 +version = 0.0.28 [python] name = geoengine_openapi_client diff --git a/.generation/generate.py b/.generation/generate.py index 38b96688..064fdc4c 100755 --- a/.generation/generate.py +++ b/.generation/generate.py @@ -14,7 +14,6 @@ import os import shutil import subprocess -import sys from typing import Literal import logging @@ -24,7 +23,7 @@ class ProgramArgs(argparse.Namespace): '''Typed command line arguments.''' - language: Literal['python', 'typescript'] + language: Literal['python', 'rust', 'typescript'] fetch_spec: bool build_container: bool @@ -37,10 +36,10 @@ def parse_arguments() -> ProgramArgs: required=False, default=True) parser.add_argument('--no-container-build', dest='build_container', action='store_false', required=False, default=True) - parser.add_argument('language', choices=['python', 'typescript'], + parser.add_argument('language', choices=['python', 'rust', 'typescript'], type=str) - parsed_args: ProgramArgs = parser.parse_args() + parsed_args: ProgramArgs = parser.parse_args() # type: ignore[assignment] return parsed_args @@ -51,7 +50,7 @@ class ConfigArgs(): ge_backend_commit: str # General - github_url: str + github_repository: GitHubRepository package_version: str # Python package name @@ -64,12 +63,13 @@ class ConfigArgs(): def parse_config() -> ConfigArgs: '''Parse config.ini arguments.''' parsed = configparser.ConfigParser() - parsed.optionxform = str # do not convert keys to lowercase + # do not convert keys to lowercase + parsed.optionxform = lambda optionstr: optionstr # type: ignore[method-assign] parsed.read(CWD / 'config.ini') return ConfigArgs( ge_backend_commit=parsed['input']['backendCommit'], - github_url=parsed['general']['githubUrl'], + github_repository=GitHubRepository(parsed['general']['githubUrl']), package_version=parsed['general']['version'], python_package_name=parsed['python']['name'], typescript_package_name=parsed['typescript']['name'], @@ -83,7 +83,7 @@ def fetch_spec(*, ge_backend_commit: str) -> None: request_url = f"https://raw.githubusercontent.com/geo-engine/geoengine/{ge_backend_commit}/openapi.json" - logging.info(f"Requesting `openapi.json` at `{request_url}`….") + logging.info("Requesting `openapi.json` at `%s`….", request_url) with request.urlopen(request_url, timeout=10) as w, \ open(CWD / "input/openapi.json", "w", encoding='utf-8') as f: f.write(w.read().decode('utf-8')) @@ -108,9 +108,9 @@ def build_container(): def clean_dirs(*, language: Literal['python', 'typescript']): '''Remove some directories because they are not be overwritten by the generator.''' - dirs_to_remove = [ - 'node_modules', - '.mypy_cache', + dirs_to_remove: list[Path] = [ + Path('node_modules'), + Path('.mypy_cache'), Path(language) / 'test' ] @@ -126,12 +126,12 @@ def clean_dirs(*, language: Literal['python', 'typescript']): Path(language) / 'geoengine_openapi_client', ]) - logging.info(f"Removing directories:") + logging.info("Removing directories:") for the_dir in dirs_to_remove: if not os.path.isdir(the_dir): continue - logging.info(f" - {the_dir}") + logging.info(" - %s", the_dir) shutil.rmtree(the_dir) @@ -165,14 +165,12 @@ def generate_python_code(*, package_name: str, package_version: str, package_url shutil.rmtree(Path("python") / "docs") -def generate_typescript_code(*, npm_name: str, npm_version: str, repository_url: str): +def generate_typescript_code(*, + npm_name: str, + npm_version: str, + github_repository: GitHubRepository): '''Run the generator.''' - parsed_url = urlsplit(repository_url) - (url_path, _url_ext) = os.path.splitext(parsed_url.path) - (url_path, git_repo_id) = os.path.split(url_path) - (url_path, git_user_id) = os.path.split(url_path) - subprocess.run( [ "podman", "run", @@ -189,9 +187,9 @@ def generate_typescript_code(*, npm_name: str, npm_version: str, repository_url: f"npmName={npm_name}", f"npmVersion={npm_version}", ]), - "--git-host", parsed_url.netloc, - "--git-user-id", git_user_id, - "--git-repo-id", git_repo_id, + "--git-host", github_repository.host, + "--git-user-id", github_repository.user, + "--git-repo-id", github_repository.repo, "--enable-post-process-file", "-o", "/local/typescript/", "--openapi-normalizer", "REF_AS_PARENT_IN_ALLOF=true", @@ -205,6 +203,80 @@ def generate_typescript_code(*, npm_name: str, npm_version: str, repository_url: ''') shutil.rmtree(Path("typescript") / ".openapi-generator") +def generate_rust_code(*, package_name: str, package_version: str, git_repo: GitHubRepository): + '''Run the generator.''' + + subprocess.run( + [ + "podman", "run", + "--rm", # remove the container after running + "-v", f"{os.getcwd()}:/local", + f"--env-file={CWD / 'override.env'}", + # "docker.io/openapitools/openapi-generator-cli:v7.0.1", + "openapi-generator-cli:patched", + "generate", + "-i", f"{'/local' / CWD / 'input/openapi.json'}", + "-g", "rust", + "--additional-properties=" + ",".join([ + f"packageName={package_name.replace('_', '-')}", + f"packageVersion={package_version}", + ]), + "--git-host", git_repo.host, + "--git-user-id", git_repo.user, + "--git-repo-id", git_repo.repo, + "--enable-post-process-file", + "-o", "/local/rust/", + "--openapi-normalizer", "REF_AS_PARENT_IN_ALLOF=true", + ], + check=True, + ) + + # Temporary solution because `RUST_POST_PROCESS_FILE` is not used by the generator + for rust_file in [ + "apis/ogcwfs_api.rs", + "apis/ogcwms_api.rs", + "apis/projects_api.rs", + "apis/tasks_api.rs", + "apis/uploads_api.rs", + "models/spatial_partition2_d.rs", + "models/spatial_resolution.rs", + ]: + subprocess.run( + [ + "podman", "run", + "--rm", # remove the container after running + "-v", f"{os.getcwd()}:/local", + f"--env-file={CWD / 'override.env'}", + # "docker.io/openapitools/openapi-generator-cli:v7.0.1", + "openapi-generator-cli:patched", + "python3", + "/local/.generation/post-process/rust.py", + "/local/rust/src/" + rust_file, + ], + check=True, + ) + +@dataclass +class GitHubRepository: + '''Git repository triplet.''' + host: str + user: str + repo: str + + def __init__(self, url: str) -> None: + '''Create a GitHubRepository from a URL.''' + parsed_url = urlsplit(url) + (url_path, _url_ext) = os.path.splitext(parsed_url.path) + (url_path, git_repo_id) = os.path.split(url_path) + (url_path, git_user_id) = os.path.split(url_path) + + self.host = parsed_url.netloc + self.user=git_user_id + self.repo=git_repo_id + + def url(self) -> str: + '''Get the URL of the repository.''' + return f"https://{self.host}/{self.user}/{self.repo}" def main(): '''The entry point of the program''' @@ -231,14 +303,14 @@ def main(): generate_python_code( package_name=config.python_package_name, package_version=config.package_version, - package_url=config.github_url, + package_url=config.github_repository.url(), ) elif args.language == 'typescript': logging.info("Generating TypeScript client…") generate_typescript_code( npm_name=config.typescript_package_name, npm_version=config.package_version, - repository_url=config.github_url, + github_repository=config.github_repository, ) # Create dist files. @@ -255,6 +327,13 @@ def main(): ], check=True, ) + elif args.language == 'rust': + logging.info("Generating Rust client…") + generate_rust_code( + package_name=config.python_package_name, + package_version=config.package_version, + git_repo=config.github_repository, + ) else: raise RuntimeError(f'Unknown language {args.language}.') diff --git a/.generation/override.env b/.generation/override.env index 77f3ea5e..9465012a 100644 --- a/.generation/override.env +++ b/.generation/override.env @@ -1,2 +1,3 @@ PYTHON_POST_PROCESS_FILE=python3 /local/.generation/post-process/python.py TS_POST_PROCESS_FILE=python3 /local/.generation/post-process/typescript.py +RUST_POST_PROCESS_FILE=python3 /local/.generation/post-process/rust.py diff --git a/.generation/post-process/python.py b/.generation/post-process/python.py index 894d675e..f5c76050 100644 --- a/.generation/post-process/python.py +++ b/.generation/post-process/python.py @@ -122,7 +122,8 @@ def layers_api_py(file_contents: List[str]) -> Generator[str, None, None]: yield line -def ogc_xyz_api_py(ogc_api: Literal['wfs', 'wms']) -> Callable[[List[str]], Generator[str, None, None]]: +def ogc_xyz_api_py( + ogc_api: Literal['wfs', 'wms']) -> Callable[[List[str]], Generator[str, None, None]]: '''Modify the ogc_xyz_api.py file.''' def _ogc_xyz_api_py(file_contents: List[str]) -> Generator[str, None, None]: '''Modify the ogc_wfs_api.py file.''' diff --git a/.generation/post-process/rust.py b/.generation/post-process/rust.py new file mode 100644 index 00000000..9550317c --- /dev/null +++ b/.generation/post-process/rust.py @@ -0,0 +1,177 @@ +#!/bin/python3 + +''' +Post-processing of generated code. +''' + +import sys +from pathlib import Path +from typing import Generator, List +from textwrap import dedent, indent +from util import modify_file + +INDENT = ' ' + +def spatial_resolution_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the spatial_resolution.rs file.''' + for line in file_contents: + yield line + + yield dedent('''\ + impl std::fmt::Display for SpatialResolution { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{},{}", self.x, self.y) + } + } + ''') + +def spatial_partition2_d_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the SpatialPartition2D.rs file.''' + for line in file_contents: + yield line + + yield dedent('''\ + impl std::fmt::Display for SpatialPartition2D { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{xmin},{ymin},{xmax},{ymax}", + xmin = self.upper_left_coordinate.x, + ymin = self.lower_right_coordinate.y, + xmax = self.lower_right_coordinate.x, + ymax = self.upper_left_coordinate.y + ) + } + } + ''') + +def uploads_api_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the uploads_api.rs file.''' + for line in file_contents: + dedented_line = dedent(line) + + if dedented_line.startswith('let p_form_files_left_square_bracket_right_square_bracket'): + line = indent('let _p_form_files_left_square_bracket_right_square_bracket = \ + files_left_square_bracket_right_square_bracket;', INDENT) + elif dedented_line.startswith('let mut multipart_form'): + line = indent("let multipart_form = reqwest::multipart::Form::new();", INDENT) + + yield line + +def tasks_api_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the tasks_api.rs file.''' + for line in file_contents: + dedented_line = dedent(line) + + if dedented_line.startswith('let uri_str = format!("{}/tasks/list"'): + line = indent('''\ + let uri_str = format!( + "{}/tasks/list?filter={}&offset={}&limit={}", + configuration.base_path, + p_path_filter.unwrap().to_string(), + p_path_offset, + p_path_limit + ); + ''', INDENT) + + yield line + + +def projects_api_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the projects_api.rs file.''' + for line in file_contents: + dedented_line = dedent(line) + + if dedented_line.startswith('let uri_str = format!("{}/projects"'): + line = indent('''\ + let uri_str = format!( + "{}/projects?order={}&offset={}&limit={}", + configuration.base_path, + p_path_order.to_string(), + p_path_offset, + p_path_limit + ); + ''', INDENT) + + yield line + +def ogcwms_api_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the ogcwms_api.rs file.''' + for line in file_contents: + dedented_line = dedent(line) + + if dedented_line.startswith( + 'let uri_str = format!("{}/wms/{workflow}?request=GetLegendGraphic"'): + line = indent('''\ + let uri_str = format!( + "{}/wms/{workflow}?request={request}&version={version}&service={service}&layer={layer}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string(), + layer = crate::apis::urlencode(p_path_layer) + ); + ''', INDENT) + elif dedented_line.startswith( + 'let uri_str = format!("{}/wms/{workflow}?request=GetCapabilities"'): + line = indent('''\ + let uri_str = format!( + "{}/wms/{workflow}?request={request}&service={service}&version={version}&format={format}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.unwrap().to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string(), + format = p_path_format.unwrap().to_string() + ); + ''', INDENT) + + yield line + +def ogcwfs_api_rs(file_contents: List[str]) -> Generator[str, None, None]: + '''Modify the ogcwfs_api.rs file.''' + for line in file_contents: + dedented_line = dedent(line) + + if dedented_line.startswith( + 'let uri_str = format!("{}/wfs/{workflow}?request=GetCapabilities'): + line = indent('''\ + let uri_str = format!( + "{}/wfs/{workflow}?request={request}&service={service}&version={version}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.unwrap().to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string() + ); + ''', INDENT) + elif dedented_line.startswith( + 'let uri_str = format!("{}/wfs/{workflow}?request=GetFeature"'): + line = indent( + 'let uri_str = format!("{}/wfs/{workflow}", ' + 'configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow));' + '\n', + INDENT + ) + + yield line + + +input_file = Path(sys.argv[1]) + +file_modifications = { + 'ogcwfs_api.rs': ogcwfs_api_rs, + 'ogcwms_api.rs': ogcwms_api_rs, + 'projects_api.rs': projects_api_rs, + 'spatial_partition2_d.rs': spatial_partition2_d_rs, + 'spatial_resolution.rs': spatial_resolution_rs, + 'tasks_api.rs': tasks_api_rs, + 'uploads_api.rs': uploads_api_rs, +} +if modifier_function := file_modifications.get(input_file.name): + modify_file(input_file, modifier_function) +else: + pass # leave file untouched + +exit(0) diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 63d2b1b8..4197b13c 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -26,6 +26,7 @@ jobs: - name: Generate Code run: | .generation/generate.py python + .generation/generate.py rust .generation/generate.py typescript - name: Create Pull Request diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4463d7f0..a1c48bc5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - python-version: ["3.8"] # use lowest supported Python version + python-version: ["3.10"] # use lowest supported Python version defaults: run: @@ -56,7 +56,7 @@ jobs: strategy: matrix: - node-version: [16.20.x] # use lowest supported Node version + node-version: [20.19.x] # use lowest supported Node version defaults: run: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50e0589a..c4a76f58 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] defaults: run: working-directory: python steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -42,14 +42,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [ 18.19.x, 20.11.x, 22.0.x ] + node-version: [20.19.x, 22.12.x, 24.0.x] defaults: run: working-directory: typescript steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -58,3 +58,18 @@ jobs: run: npm install - name: Build run: npm run build + + rust: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: rust + + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + - name: Install dependencies and build + run: cargo build diff --git a/python/.github/workflows/python.yml b/python/.github/workflows/python.yml index a7ddaf35..7e9819ea 100644 --- a/python/.github/workflows/python.yml +++ b/python/.github/workflows/python.yml @@ -7,13 +7,16 @@ name: geoengine_openapi_client Python package on: [push, pull_request] +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/python/.gitignore b/python/.gitignore index 43995bd4..65b06b95 100644 --- a/python/.gitignore +++ b/python/.gitignore @@ -62,5 +62,5 @@ docs/_build/ # PyBuilder target/ -#Ipython Notebook +# Ipython Notebook .ipynb_checkpoints diff --git a/python/.gitlab-ci.yml b/python/.gitlab-ci.yml index 94769389..07fbfcbd 100644 --- a/python/.gitlab-ci.yml +++ b/python/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=geoengine_openapi_client -pytest-3.8: - extends: .pytest - image: python:3.8-alpine pytest-3.9: extends: .pytest image: python:3.9-alpine @@ -29,3 +26,6 @@ pytest-3.11: pytest-3.12: extends: .pytest image: python:3.12-alpine +pytest-3.13: + extends: .pytest + image: python:3.13-alpine diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index 53d95e6e..76dc72b8 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -53,8 +53,7 @@ docs/ExternalDataId.md docs/FeatureDataType.md docs/FileNotFoundHandling.md docs/FormatSpecifics.md -docs/FormatSpecificsOneOf.md -docs/FormatSpecificsOneOfCsv.md +docs/FormatSpecificsCsv.md docs/GbifDataProviderDefinition.md docs/GdalDatasetGeoTransform.md docs/GdalDatasetParameters.md @@ -334,8 +333,7 @@ geoengine_openapi_client/models/external_data_id.py geoengine_openapi_client/models/feature_data_type.py geoengine_openapi_client/models/file_not_found_handling.py geoengine_openapi_client/models/format_specifics.py -geoengine_openapi_client/models/format_specifics_one_of.py -geoengine_openapi_client/models/format_specifics_one_of_csv.py +geoengine_openapi_client/models/format_specifics_csv.py geoengine_openapi_client/models/gbif_data_provider_definition.py geoengine_openapi_client/models/gdal_dataset_geo_transform.py geoengine_openapi_client/models/gdal_dataset_parameters.py @@ -587,8 +585,7 @@ test/test_external_data_id.py test/test_feature_data_type.py test/test_file_not_found_handling.py test/test_format_specifics.py -test/test_format_specifics_one_of.py -test/test_format_specifics_one_of_csv.py +test/test_format_specifics_csv.py test/test_gbif_data_provider_definition.py test/test_gdal_dataset_geo_transform.py test/test_gdal_dataset_parameters.py diff --git a/python/.openapi-generator/VERSION b/python/.openapi-generator/VERSION index 5f84a81d..6328c542 100644 --- a/python/.openapi-generator/VERSION +++ b/python/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.17.0 diff --git a/python/.travis.yml b/python/.travis.yml index ba59ea96..c78a5e90 100644 --- a/python/.travis.yml +++ b/python/.travis.yml @@ -1,13 +1,13 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" + - "3.13" # uncomment the following if needed - #- "3.12-dev" # 3.12 development branch + #- "3.13-dev" # 3.13 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/python/README.md b/python/README.md index 86050d33..e1685887 100644 --- a/python/README.md +++ b/python/README.md @@ -4,13 +4,13 @@ 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.8.0 -- Package version: 0.0.27 -- Generator version: 7.12.0 +- Package version: 0.0.28 +- Generator version: 7.17.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. -Python 3.8+ +Python 3.9+ ## Installation & Usage ### pip install @@ -243,8 +243,7 @@ Class | Method | HTTP request | Description - [FeatureDataType](docs/FeatureDataType.md) - [FileNotFoundHandling](docs/FileNotFoundHandling.md) - [FormatSpecifics](docs/FormatSpecifics.md) - - [FormatSpecificsOneOf](docs/FormatSpecificsOneOf.md) - - [FormatSpecificsOneOfCsv](docs/FormatSpecificsOneOfCsv.md) + - [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) - [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) - [GdalDatasetGeoTransform](docs/GdalDatasetGeoTransform.md) - [GdalDatasetParameters](docs/GdalDatasetParameters.md) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index 21c06c7e..b9f24cd9 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -15,278 +15,549 @@ """ # noqa: E501 -__version__ = "0.0.27" +__version__ = "0.0.28" + +# Define package exports +__all__ = [ + "DatasetsApi", + "GeneralApi", + "LayersApi", + "MLApi", + "OGCWCSApi", + "OGCWFSApi", + "OGCWMSApi", + "PermissionsApi", + "PlotsApi", + "ProjectsApi", + "SessionApi", + "SpatialReferencesApi", + "TasksApi", + "UploadsApi", + "UserApi", + "WorkflowsApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "AddDataset", + "AddLayer", + "AddLayerCollection", + "AddRole", + "ArunaDataProviderDefinition", + "AuthCodeRequestURL", + "AuthCodeResponse", + "AutoCreateDataset", + "AxisOrder", + "BoundingBox2D", + "Breakpoint", + "ClassificationMeasurement", + "CollectionItem", + "CollectionType", + "ColorParam", + "Colorizer", + "ComputationQuota", + "ContinuousMeasurement", + "Coordinate2D", + "CopernicusDataspaceDataProviderDefinition", + "CreateDataset", + "CreateProject", + "CsvHeader", + "DataId", + "DataPath", + "DataPathOneOf", + "DataPathOneOf1", + "DataProviderResource", + "DataUsage", + "DataUsageSummary", + "DatabaseConnectionConfig", + "Dataset", + "DatasetDefinition", + "DatasetLayerListingCollection", + "DatasetLayerListingProviderDefinition", + "DatasetListing", + "DatasetNameResponse", + "DatasetResource", + "DerivedColor", + "DerivedNumber", + "DescribeCoverageRequest", + "EbvPortalDataProviderDefinition", + "EdrDataProviderDefinition", + "EdrVectorSpec", + "ErrorResponse", + "ExternalDataId", + "FeatureDataType", + "FileNotFoundHandling", + "FormatSpecifics", + "FormatSpecificsCsv", + "GbifDataProviderDefinition", + "GdalDatasetGeoTransform", + "GdalDatasetParameters", + "GdalLoadingInfoTemporalSlice", + "GdalMetaDataList", + "GdalMetaDataRegular", + "GdalMetaDataStatic", + "GdalMetadataMapping", + "GdalMetadataNetCdfCf", + "GdalSourceTimePlaceholder", + "GeoJson", + "GetCapabilitiesFormat", + "GetCapabilitiesRequest", + "GetCoverageFormat", + "GetCoverageRequest", + "GetFeatureRequest", + "GetLegendGraphicRequest", + "GetMapExceptionFormat", + "GetMapFormat", + "GetMapRequest", + "GfbioAbcdDataProviderDefinition", + "GfbioCollectionsDataProviderDefinition", + "IdResponse", + "InternalDataId", + "Layer", + "LayerCollection", + "LayerCollectionListing", + "LayerCollectionResource", + "LayerListing", + "LayerProviderListing", + "LayerResource", + "LayerVisibility", + "LineSymbology", + "LinearGradient", + "LogarithmicGradient", + "Measurement", + "MetaDataDefinition", + "MetaDataSuggestion", + "MlModel", + "MlModelInputNoDataHandling", + "MlModelInputNoDataHandlingVariant", + "MlModelMetadata", + "MlModelNameResponse", + "MlModelOutputNoDataHandling", + "MlModelOutputNoDataHandlingVariant", + "MlModelResource", + "MlTensorShape3D", + "MockDatasetDataSourceLoadingInfo", + "MockMetaData", + "MultiBandRasterColorizer", + "MultiLineString", + "MultiPoint", + "MultiPolygon", + "NetCdfCfDataProviderDefinition", + "NumberParam", + "OgrMetaData", + "OgrSourceColumnSpec", + "OgrSourceDataset", + "OgrSourceDatasetTimeType", + "OgrSourceDatasetTimeTypeNone", + "OgrSourceDatasetTimeTypeStart", + "OgrSourceDatasetTimeTypeStartDuration", + "OgrSourceDatasetTimeTypeStartEnd", + "OgrSourceDurationSpec", + "OgrSourceDurationSpecInfinite", + "OgrSourceDurationSpecValue", + "OgrSourceDurationSpecZero", + "OgrSourceErrorSpec", + "OgrSourceTimeFormat", + "OgrSourceTimeFormatAuto", + "OgrSourceTimeFormatCustom", + "OgrSourceTimeFormatUnixTimeStamp", + "OperatorQuota", + "OrderBy", + "PaletteColorizer", + "PangaeaDataProviderDefinition", + "Permission", + "PermissionListOptions", + "PermissionListing", + "PermissionRequest", + "Plot", + "PlotOutputFormat", + "PlotQueryRectangle", + "PlotResultDescriptor", + "PointSymbology", + "PolygonSymbology", + "Project", + "ProjectLayer", + "ProjectListing", + "ProjectResource", + "ProjectUpdateToken", + "ProjectVersion", + "Provenance", + "ProvenanceEntry", + "ProvenanceOutput", + "Provenances", + "ProviderCapabilities", + "ProviderLayerCollectionId", + "ProviderLayerId", + "Quota", + "RasterBandDescriptor", + "RasterColorizer", + "RasterDataType", + "RasterDatasetFromWorkflow", + "RasterDatasetFromWorkflowResult", + "RasterPropertiesEntryType", + "RasterPropertiesKey", + "RasterQueryRectangle", + "RasterResultDescriptor", + "RasterStreamWebsocketResultType", + "RasterSymbology", + "Resource", + "Role", + "RoleDescription", + "STRectangle", + "SearchCapabilities", + "SearchType", + "SearchTypes", + "SentinelS2L2ACogsProviderDefinition", + "ServerInfo", + "SingleBandRasterColorizer", + "SpatialPartition2D", + "SpatialReferenceAuthority", + "SpatialReferenceSpecification", + "SpatialResolution", + "StacApiRetries", + "StacBand", + "StacQueryBuffer", + "StacZone", + "StaticColor", + "StaticNumber", + "StrokeParam", + "SuggestMetaData", + "Symbology", + "TaskAbortOptions", + "TaskFilter", + "TaskListOptions", + "TaskResponse", + "TaskStatus", + "TaskStatusAborted", + "TaskStatusCompleted", + "TaskStatusFailed", + "TaskStatusRunning", + "TaskStatusWithId", + "TextSymbology", + "TimeGranularity", + "TimeInterval", + "TimeReference", + "TimeStep", + "TypedDataProviderDefinition", + "TypedGeometry", + "TypedGeometryOneOf", + "TypedGeometryOneOf1", + "TypedGeometryOneOf2", + "TypedGeometryOneOf3", + "TypedOperator", + "TypedOperatorOperator", + "TypedPlotResultDescriptor", + "TypedRasterResultDescriptor", + "TypedResultDescriptor", + "TypedVectorResultDescriptor", + "UnitlessMeasurement", + "UnixTimeStampType", + "UpdateDataset", + "UpdateLayer", + "UpdateLayerCollection", + "UpdateProject", + "UpdateQuota", + "UploadFileLayersResponse", + "UploadFilesResponse", + "UsageSummaryGranularity", + "UserCredentials", + "UserInfo", + "UserRegistration", + "UserSession", + "VecUpdate", + "VectorColumnInfo", + "VectorDataType", + "VectorQueryRectangle", + "VectorResultDescriptor", + "Volume", + "VolumeFileLayersResponse", + "WcsBoundingbox", + "WcsService", + "WcsVersion", + "WfsService", + "WfsVersion", + "WildliveDataConnectorDefinition", + "WmsService", + "WmsVersion", + "Workflow", + "WrappedPlotOutput", +] # import apis into sdk package -from geoengine_openapi_client.api.datasets_api import DatasetsApi -from geoengine_openapi_client.api.general_api import GeneralApi -from geoengine_openapi_client.api.layers_api import LayersApi -from geoengine_openapi_client.api.ml_api import MLApi -from geoengine_openapi_client.api.ogcwcs_api import OGCWCSApi -from geoengine_openapi_client.api.ogcwfs_api import OGCWFSApi -from geoengine_openapi_client.api.ogcwms_api import OGCWMSApi -from geoengine_openapi_client.api.permissions_api import PermissionsApi -from geoengine_openapi_client.api.plots_api import PlotsApi -from geoengine_openapi_client.api.projects_api import ProjectsApi -from geoengine_openapi_client.api.session_api import SessionApi -from geoengine_openapi_client.api.spatial_references_api import SpatialReferencesApi -from geoengine_openapi_client.api.tasks_api import TasksApi -from geoengine_openapi_client.api.uploads_api import UploadsApi -from geoengine_openapi_client.api.user_api import UserApi -from geoengine_openapi_client.api.workflows_api import WorkflowsApi +from geoengine_openapi_client.api.datasets_api import DatasetsApi as DatasetsApi +from geoengine_openapi_client.api.general_api import GeneralApi as GeneralApi +from geoengine_openapi_client.api.layers_api import LayersApi as LayersApi +from geoengine_openapi_client.api.ml_api import MLApi as MLApi +from geoengine_openapi_client.api.ogcwcs_api import OGCWCSApi as OGCWCSApi +from geoengine_openapi_client.api.ogcwfs_api import OGCWFSApi as OGCWFSApi +from geoengine_openapi_client.api.ogcwms_api import OGCWMSApi as OGCWMSApi +from geoengine_openapi_client.api.permissions_api import PermissionsApi as PermissionsApi +from geoengine_openapi_client.api.plots_api import PlotsApi as PlotsApi +from geoengine_openapi_client.api.projects_api import ProjectsApi as ProjectsApi +from geoengine_openapi_client.api.session_api import SessionApi as SessionApi +from geoengine_openapi_client.api.spatial_references_api import SpatialReferencesApi as SpatialReferencesApi +from geoengine_openapi_client.api.tasks_api import TasksApi as TasksApi +from geoengine_openapi_client.api.uploads_api import UploadsApi as UploadsApi +from geoengine_openapi_client.api.user_api import UserApi as UserApi +from geoengine_openapi_client.api.workflows_api import WorkflowsApi as WorkflowsApi # import ApiClient -from geoengine_openapi_client.api_response import ApiResponse -from geoengine_openapi_client.api_client import ApiClient -from geoengine_openapi_client.configuration import Configuration -from geoengine_openapi_client.exceptions import OpenApiException -from geoengine_openapi_client.exceptions import ApiTypeError -from geoengine_openapi_client.exceptions import ApiValueError -from geoengine_openapi_client.exceptions import ApiKeyError -from geoengine_openapi_client.exceptions import ApiAttributeError -from geoengine_openapi_client.exceptions import ApiException +from geoengine_openapi_client.api_response import ApiResponse as ApiResponse +from geoengine_openapi_client.api_client import ApiClient as ApiClient +from geoengine_openapi_client.configuration import Configuration as Configuration +from geoengine_openapi_client.exceptions import OpenApiException as OpenApiException +from geoengine_openapi_client.exceptions import ApiTypeError as ApiTypeError +from geoengine_openapi_client.exceptions import ApiValueError as ApiValueError +from geoengine_openapi_client.exceptions import ApiKeyError as ApiKeyError +from geoengine_openapi_client.exceptions import ApiAttributeError as ApiAttributeError +from geoengine_openapi_client.exceptions import ApiException as ApiException # import models into sdk package -from geoengine_openapi_client.models.add_dataset import AddDataset -from geoengine_openapi_client.models.add_layer import AddLayer -from geoengine_openapi_client.models.add_layer_collection import AddLayerCollection -from geoengine_openapi_client.models.add_role import AddRole -from geoengine_openapi_client.models.aruna_data_provider_definition import ArunaDataProviderDefinition -from geoengine_openapi_client.models.auth_code_request_url import AuthCodeRequestURL -from geoengine_openapi_client.models.auth_code_response import AuthCodeResponse -from geoengine_openapi_client.models.auto_create_dataset import AutoCreateDataset -from geoengine_openapi_client.models.axis_order import AxisOrder -from geoengine_openapi_client.models.bounding_box2_d import BoundingBox2D -from geoengine_openapi_client.models.breakpoint import Breakpoint -from geoengine_openapi_client.models.classification_measurement import ClassificationMeasurement -from geoengine_openapi_client.models.collection_item import CollectionItem -from geoengine_openapi_client.models.collection_type import CollectionType -from geoengine_openapi_client.models.color_param import ColorParam -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.copernicus_dataspace_data_provider_definition import CopernicusDataspaceDataProviderDefinition -from geoengine_openapi_client.models.create_dataset import CreateDataset -from geoengine_openapi_client.models.create_project import CreateProject -from geoengine_openapi_client.models.csv_header import CsvHeader -from geoengine_openapi_client.models.data_id import DataId -from geoengine_openapi_client.models.data_path import DataPath -from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf -from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 -from geoengine_openapi_client.models.data_provider_resource import DataProviderResource -from geoengine_openapi_client.models.data_usage import DataUsage -from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary -from geoengine_openapi_client.models.database_connection_config import DatabaseConnectionConfig -from geoengine_openapi_client.models.dataset import Dataset -from geoengine_openapi_client.models.dataset_definition import DatasetDefinition -from geoengine_openapi_client.models.dataset_layer_listing_collection import DatasetLayerListingCollection -from geoengine_openapi_client.models.dataset_layer_listing_provider_definition import DatasetLayerListingProviderDefinition -from geoengine_openapi_client.models.dataset_listing import DatasetListing -from geoengine_openapi_client.models.dataset_name_response import DatasetNameResponse -from geoengine_openapi_client.models.dataset_resource import DatasetResource -from geoengine_openapi_client.models.derived_color import DerivedColor -from geoengine_openapi_client.models.derived_number import DerivedNumber -from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest -from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition -from geoengine_openapi_client.models.edr_data_provider_definition import EdrDataProviderDefinition -from geoengine_openapi_client.models.edr_vector_spec import EdrVectorSpec -from geoengine_openapi_client.models.error_response import ErrorResponse -from geoengine_openapi_client.models.external_data_id import ExternalDataId -from geoengine_openapi_client.models.feature_data_type import FeatureDataType -from geoengine_openapi_client.models.file_not_found_handling import FileNotFoundHandling -from geoengine_openapi_client.models.format_specifics import FormatSpecifics -from geoengine_openapi_client.models.format_specifics_one_of import FormatSpecificsOneOf -from geoengine_openapi_client.models.format_specifics_one_of_csv import FormatSpecificsOneOfCsv -from geoengine_openapi_client.models.gbif_data_provider_definition import GbifDataProviderDefinition -from geoengine_openapi_client.models.gdal_dataset_geo_transform import GdalDatasetGeoTransform -from geoengine_openapi_client.models.gdal_dataset_parameters import GdalDatasetParameters -from geoengine_openapi_client.models.gdal_loading_info_temporal_slice import GdalLoadingInfoTemporalSlice -from geoengine_openapi_client.models.gdal_meta_data_list import GdalMetaDataList -from geoengine_openapi_client.models.gdal_meta_data_regular import GdalMetaDataRegular -from geoengine_openapi_client.models.gdal_meta_data_static import GdalMetaDataStatic -from geoengine_openapi_client.models.gdal_metadata_mapping import GdalMetadataMapping -from geoengine_openapi_client.models.gdal_metadata_net_cdf_cf import GdalMetadataNetCdfCf -from geoengine_openapi_client.models.gdal_source_time_placeholder import GdalSourceTimePlaceholder -from geoengine_openapi_client.models.geo_json import GeoJson -from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest -from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat -from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest -from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest -from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest -from geoengine_openapi_client.models.get_map_exception_format import GetMapExceptionFormat -from geoengine_openapi_client.models.get_map_format import GetMapFormat -from geoengine_openapi_client.models.get_map_request import GetMapRequest -from geoengine_openapi_client.models.gfbio_abcd_data_provider_definition import GfbioAbcdDataProviderDefinition -from geoengine_openapi_client.models.gfbio_collections_data_provider_definition import GfbioCollectionsDataProviderDefinition -from geoengine_openapi_client.models.id_response import IdResponse -from geoengine_openapi_client.models.internal_data_id import InternalDataId -from geoengine_openapi_client.models.layer import Layer -from geoengine_openapi_client.models.layer_collection import LayerCollection -from geoengine_openapi_client.models.layer_collection_listing import LayerCollectionListing -from geoengine_openapi_client.models.layer_collection_resource import LayerCollectionResource -from geoengine_openapi_client.models.layer_listing import LayerListing -from geoengine_openapi_client.models.layer_provider_listing import LayerProviderListing -from geoengine_openapi_client.models.layer_resource import LayerResource -from geoengine_openapi_client.models.layer_visibility import LayerVisibility -from geoengine_openapi_client.models.line_symbology import LineSymbology -from geoengine_openapi_client.models.linear_gradient import LinearGradient -from geoengine_openapi_client.models.logarithmic_gradient import LogarithmicGradient -from geoengine_openapi_client.models.measurement import Measurement -from geoengine_openapi_client.models.meta_data_definition import MetaDataDefinition -from geoengine_openapi_client.models.meta_data_suggestion import MetaDataSuggestion -from geoengine_openapi_client.models.ml_model import MlModel -from geoengine_openapi_client.models.ml_model_input_no_data_handling import MlModelInputNoDataHandling -from geoengine_openapi_client.models.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant -from geoengine_openapi_client.models.ml_model_metadata import MlModelMetadata -from geoengine_openapi_client.models.ml_model_name_response import MlModelNameResponse -from geoengine_openapi_client.models.ml_model_output_no_data_handling import MlModelOutputNoDataHandling -from geoengine_openapi_client.models.ml_model_output_no_data_handling_variant import MlModelOutputNoDataHandlingVariant -from geoengine_openapi_client.models.ml_model_resource import MlModelResource -from geoengine_openapi_client.models.ml_tensor_shape3_d import MlTensorShape3D -from geoengine_openapi_client.models.mock_dataset_data_source_loading_info import MockDatasetDataSourceLoadingInfo -from geoengine_openapi_client.models.mock_meta_data import MockMetaData -from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer -from geoengine_openapi_client.models.multi_line_string import MultiLineString -from geoengine_openapi_client.models.multi_point import MultiPoint -from geoengine_openapi_client.models.multi_polygon import MultiPolygon -from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition -from geoengine_openapi_client.models.number_param import NumberParam -from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData -from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec -from geoengine_openapi_client.models.ogr_source_dataset import OgrSourceDataset -from geoengine_openapi_client.models.ogr_source_dataset_time_type import OgrSourceDatasetTimeType -from geoengine_openapi_client.models.ogr_source_dataset_time_type_none import OgrSourceDatasetTimeTypeNone -from geoengine_openapi_client.models.ogr_source_dataset_time_type_start import OgrSourceDatasetTimeTypeStart -from geoengine_openapi_client.models.ogr_source_dataset_time_type_start_duration import OgrSourceDatasetTimeTypeStartDuration -from geoengine_openapi_client.models.ogr_source_dataset_time_type_start_end import OgrSourceDatasetTimeTypeStartEnd -from geoengine_openapi_client.models.ogr_source_duration_spec import OgrSourceDurationSpec -from geoengine_openapi_client.models.ogr_source_duration_spec_infinite import OgrSourceDurationSpecInfinite -from geoengine_openapi_client.models.ogr_source_duration_spec_value import OgrSourceDurationSpecValue -from geoengine_openapi_client.models.ogr_source_duration_spec_zero import OgrSourceDurationSpecZero -from geoengine_openapi_client.models.ogr_source_error_spec import OgrSourceErrorSpec -from geoengine_openapi_client.models.ogr_source_time_format import OgrSourceTimeFormat -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.pangaea_data_provider_definition import PangaeaDataProviderDefinition -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 -from geoengine_openapi_client.models.plot_query_rectangle import PlotQueryRectangle -from geoengine_openapi_client.models.plot_result_descriptor import PlotResultDescriptor -from geoengine_openapi_client.models.point_symbology import PointSymbology -from geoengine_openapi_client.models.polygon_symbology import PolygonSymbology -from geoengine_openapi_client.models.project import Project -from geoengine_openapi_client.models.project_layer import ProjectLayer -from geoengine_openapi_client.models.project_listing import ProjectListing -from geoengine_openapi_client.models.project_resource import ProjectResource -from geoengine_openapi_client.models.project_update_token import ProjectUpdateToken -from geoengine_openapi_client.models.project_version import ProjectVersion -from geoengine_openapi_client.models.provenance import Provenance -from geoengine_openapi_client.models.provenance_entry import ProvenanceEntry -from geoengine_openapi_client.models.provenance_output import ProvenanceOutput -from geoengine_openapi_client.models.provenances import Provenances -from geoengine_openapi_client.models.provider_capabilities import ProviderCapabilities -from geoengine_openapi_client.models.provider_layer_collection_id import ProviderLayerCollectionId -from geoengine_openapi_client.models.provider_layer_id import ProviderLayerId -from geoengine_openapi_client.models.quota import Quota -from geoengine_openapi_client.models.raster_band_descriptor import RasterBandDescriptor -from geoengine_openapi_client.models.raster_colorizer import RasterColorizer -from geoengine_openapi_client.models.raster_data_type import RasterDataType -from geoengine_openapi_client.models.raster_dataset_from_workflow import RasterDatasetFromWorkflow -from geoengine_openapi_client.models.raster_dataset_from_workflow_result import RasterDatasetFromWorkflowResult -from geoengine_openapi_client.models.raster_properties_entry_type import RasterPropertiesEntryType -from geoengine_openapi_client.models.raster_properties_key import RasterPropertiesKey -from geoengine_openapi_client.models.raster_query_rectangle import RasterQueryRectangle -from geoengine_openapi_client.models.raster_result_descriptor import RasterResultDescriptor -from geoengine_openapi_client.models.raster_stream_websocket_result_type import RasterStreamWebsocketResultType -from geoengine_openapi_client.models.raster_symbology import RasterSymbology -from geoengine_openapi_client.models.resource import Resource -from geoengine_openapi_client.models.role import Role -from geoengine_openapi_client.models.role_description import RoleDescription -from geoengine_openapi_client.models.st_rectangle import STRectangle -from geoengine_openapi_client.models.search_capabilities import SearchCapabilities -from geoengine_openapi_client.models.search_type import SearchType -from geoengine_openapi_client.models.search_types import SearchTypes -from geoengine_openapi_client.models.sentinel_s2_l2_a_cogs_provider_definition import SentinelS2L2ACogsProviderDefinition -from geoengine_openapi_client.models.server_info import ServerInfo -from geoengine_openapi_client.models.single_band_raster_colorizer import SingleBandRasterColorizer -from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D -from geoengine_openapi_client.models.spatial_reference_authority import SpatialReferenceAuthority -from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification -from geoengine_openapi_client.models.spatial_resolution import SpatialResolution -from geoengine_openapi_client.models.stac_api_retries import StacApiRetries -from geoengine_openapi_client.models.stac_band import StacBand -from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer -from geoengine_openapi_client.models.stac_zone import StacZone -from geoengine_openapi_client.models.static_color import StaticColor -from geoengine_openapi_client.models.static_number import StaticNumber -from geoengine_openapi_client.models.stroke_param import StrokeParam -from geoengine_openapi_client.models.suggest_meta_data import SuggestMetaData -from geoengine_openapi_client.models.symbology import Symbology -from geoengine_openapi_client.models.task_abort_options import TaskAbortOptions -from geoengine_openapi_client.models.task_filter import TaskFilter -from geoengine_openapi_client.models.task_list_options import TaskListOptions -from geoengine_openapi_client.models.task_response import TaskResponse -from geoengine_openapi_client.models.task_status import TaskStatus -from geoengine_openapi_client.models.task_status_aborted import TaskStatusAborted -from geoengine_openapi_client.models.task_status_completed import TaskStatusCompleted -from geoengine_openapi_client.models.task_status_failed import TaskStatusFailed -from geoengine_openapi_client.models.task_status_running import TaskStatusRunning -from geoengine_openapi_client.models.task_status_with_id import TaskStatusWithId -from geoengine_openapi_client.models.text_symbology import TextSymbology -from geoengine_openapi_client.models.time_granularity import TimeGranularity -from geoengine_openapi_client.models.time_interval import TimeInterval -from geoengine_openapi_client.models.time_reference import TimeReference -from geoengine_openapi_client.models.time_step import TimeStep -from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition -from geoengine_openapi_client.models.typed_geometry import TypedGeometry -from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf -from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 -from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 -from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 -from geoengine_openapi_client.models.typed_operator import TypedOperator -from geoengine_openapi_client.models.typed_operator_operator import TypedOperatorOperator -from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor -from geoengine_openapi_client.models.typed_raster_result_descriptor import TypedRasterResultDescriptor -from geoengine_openapi_client.models.typed_result_descriptor import TypedResultDescriptor -from geoengine_openapi_client.models.typed_vector_result_descriptor import TypedVectorResultDescriptor -from geoengine_openapi_client.models.unitless_measurement import UnitlessMeasurement -from geoengine_openapi_client.models.unix_time_stamp_type import UnixTimeStampType -from geoengine_openapi_client.models.update_dataset import UpdateDataset -from geoengine_openapi_client.models.update_layer import UpdateLayer -from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection -from geoengine_openapi_client.models.update_project import UpdateProject -from geoengine_openapi_client.models.update_quota import UpdateQuota -from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse -from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse -from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity -from geoengine_openapi_client.models.user_credentials import UserCredentials -from geoengine_openapi_client.models.user_info import UserInfo -from geoengine_openapi_client.models.user_registration import UserRegistration -from geoengine_openapi_client.models.user_session import UserSession -from geoengine_openapi_client.models.vec_update import VecUpdate -from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo -from geoengine_openapi_client.models.vector_data_type import VectorDataType -from geoengine_openapi_client.models.vector_query_rectangle import VectorQueryRectangle -from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor -from geoengine_openapi_client.models.volume import Volume -from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse -from geoengine_openapi_client.models.wcs_boundingbox import WcsBoundingbox -from geoengine_openapi_client.models.wcs_service import WcsService -from geoengine_openapi_client.models.wcs_version import WcsVersion -from geoengine_openapi_client.models.wfs_service import WfsService -from geoengine_openapi_client.models.wfs_version import WfsVersion -from geoengine_openapi_client.models.wildlive_data_connector_definition import WildliveDataConnectorDefinition -from geoengine_openapi_client.models.wms_service import WmsService -from geoengine_openapi_client.models.wms_version import WmsVersion -from geoengine_openapi_client.models.workflow import Workflow -from geoengine_openapi_client.models.wrapped_plot_output import WrappedPlotOutput +from geoengine_openapi_client.models.add_dataset import AddDataset as AddDataset +from geoengine_openapi_client.models.add_layer import AddLayer as AddLayer +from geoengine_openapi_client.models.add_layer_collection import AddLayerCollection as AddLayerCollection +from geoengine_openapi_client.models.add_role import AddRole as AddRole +from geoengine_openapi_client.models.aruna_data_provider_definition import ArunaDataProviderDefinition as ArunaDataProviderDefinition +from geoengine_openapi_client.models.auth_code_request_url import AuthCodeRequestURL as AuthCodeRequestURL +from geoengine_openapi_client.models.auth_code_response import AuthCodeResponse as AuthCodeResponse +from geoengine_openapi_client.models.auto_create_dataset import AutoCreateDataset as AutoCreateDataset +from geoengine_openapi_client.models.axis_order import AxisOrder as AxisOrder +from geoengine_openapi_client.models.bounding_box2_d import BoundingBox2D as BoundingBox2D +from geoengine_openapi_client.models.breakpoint import Breakpoint as Breakpoint +from geoengine_openapi_client.models.classification_measurement import ClassificationMeasurement as ClassificationMeasurement +from geoengine_openapi_client.models.collection_item import CollectionItem as CollectionItem +from geoengine_openapi_client.models.collection_type import CollectionType as CollectionType +from geoengine_openapi_client.models.color_param import ColorParam as ColorParam +from geoengine_openapi_client.models.colorizer import Colorizer as Colorizer +from geoengine_openapi_client.models.computation_quota import ComputationQuota as ComputationQuota +from geoengine_openapi_client.models.continuous_measurement import ContinuousMeasurement as ContinuousMeasurement +from geoengine_openapi_client.models.coordinate2_d import Coordinate2D as Coordinate2D +from geoengine_openapi_client.models.copernicus_dataspace_data_provider_definition import CopernicusDataspaceDataProviderDefinition as CopernicusDataspaceDataProviderDefinition +from geoengine_openapi_client.models.create_dataset import CreateDataset as CreateDataset +from geoengine_openapi_client.models.create_project import CreateProject as CreateProject +from geoengine_openapi_client.models.csv_header import CsvHeader as CsvHeader +from geoengine_openapi_client.models.data_id import DataId as DataId +from geoengine_openapi_client.models.data_path import DataPath as DataPath +from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf as DataPathOneOf +from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 as DataPathOneOf1 +from geoengine_openapi_client.models.data_provider_resource import DataProviderResource as DataProviderResource +from geoengine_openapi_client.models.data_usage import DataUsage as DataUsage +from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary as DataUsageSummary +from geoengine_openapi_client.models.database_connection_config import DatabaseConnectionConfig as DatabaseConnectionConfig +from geoengine_openapi_client.models.dataset import Dataset as Dataset +from geoengine_openapi_client.models.dataset_definition import DatasetDefinition as DatasetDefinition +from geoengine_openapi_client.models.dataset_layer_listing_collection import DatasetLayerListingCollection as DatasetLayerListingCollection +from geoengine_openapi_client.models.dataset_layer_listing_provider_definition import DatasetLayerListingProviderDefinition as DatasetLayerListingProviderDefinition +from geoengine_openapi_client.models.dataset_listing import DatasetListing as DatasetListing +from geoengine_openapi_client.models.dataset_name_response import DatasetNameResponse as DatasetNameResponse +from geoengine_openapi_client.models.dataset_resource import DatasetResource as DatasetResource +from geoengine_openapi_client.models.derived_color import DerivedColor as DerivedColor +from geoengine_openapi_client.models.derived_number import DerivedNumber as DerivedNumber +from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest as DescribeCoverageRequest +from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition as EbvPortalDataProviderDefinition +from geoengine_openapi_client.models.edr_data_provider_definition import EdrDataProviderDefinition as EdrDataProviderDefinition +from geoengine_openapi_client.models.edr_vector_spec import EdrVectorSpec as EdrVectorSpec +from geoengine_openapi_client.models.error_response import ErrorResponse as ErrorResponse +from geoengine_openapi_client.models.external_data_id import ExternalDataId as ExternalDataId +from geoengine_openapi_client.models.feature_data_type import FeatureDataType as FeatureDataType +from geoengine_openapi_client.models.file_not_found_handling import FileNotFoundHandling as FileNotFoundHandling +from geoengine_openapi_client.models.format_specifics import FormatSpecifics as FormatSpecifics +from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv as FormatSpecificsCsv +from geoengine_openapi_client.models.gbif_data_provider_definition import GbifDataProviderDefinition as GbifDataProviderDefinition +from geoengine_openapi_client.models.gdal_dataset_geo_transform import GdalDatasetGeoTransform as GdalDatasetGeoTransform +from geoengine_openapi_client.models.gdal_dataset_parameters import GdalDatasetParameters as GdalDatasetParameters +from geoengine_openapi_client.models.gdal_loading_info_temporal_slice import GdalLoadingInfoTemporalSlice as GdalLoadingInfoTemporalSlice +from geoengine_openapi_client.models.gdal_meta_data_list import GdalMetaDataList as GdalMetaDataList +from geoengine_openapi_client.models.gdal_meta_data_regular import GdalMetaDataRegular as GdalMetaDataRegular +from geoengine_openapi_client.models.gdal_meta_data_static import GdalMetaDataStatic as GdalMetaDataStatic +from geoengine_openapi_client.models.gdal_metadata_mapping import GdalMetadataMapping as GdalMetadataMapping +from geoengine_openapi_client.models.gdal_metadata_net_cdf_cf import GdalMetadataNetCdfCf as GdalMetadataNetCdfCf +from geoengine_openapi_client.models.gdal_source_time_placeholder import GdalSourceTimePlaceholder as GdalSourceTimePlaceholder +from geoengine_openapi_client.models.geo_json import GeoJson as GeoJson +from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat as GetCapabilitiesFormat +from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest as GetCapabilitiesRequest +from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat as GetCoverageFormat +from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest as GetCoverageRequest +from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest as GetFeatureRequest +from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest as GetLegendGraphicRequest +from geoengine_openapi_client.models.get_map_exception_format import GetMapExceptionFormat as GetMapExceptionFormat +from geoengine_openapi_client.models.get_map_format import GetMapFormat as GetMapFormat +from geoengine_openapi_client.models.get_map_request import GetMapRequest as GetMapRequest +from geoengine_openapi_client.models.gfbio_abcd_data_provider_definition import GfbioAbcdDataProviderDefinition as GfbioAbcdDataProviderDefinition +from geoengine_openapi_client.models.gfbio_collections_data_provider_definition import GfbioCollectionsDataProviderDefinition as GfbioCollectionsDataProviderDefinition +from geoengine_openapi_client.models.id_response import IdResponse as IdResponse +from geoengine_openapi_client.models.internal_data_id import InternalDataId as InternalDataId +from geoengine_openapi_client.models.layer import Layer as Layer +from geoengine_openapi_client.models.layer_collection import LayerCollection as LayerCollection +from geoengine_openapi_client.models.layer_collection_listing import LayerCollectionListing as LayerCollectionListing +from geoengine_openapi_client.models.layer_collection_resource import LayerCollectionResource as LayerCollectionResource +from geoengine_openapi_client.models.layer_listing import LayerListing as LayerListing +from geoengine_openapi_client.models.layer_provider_listing import LayerProviderListing as LayerProviderListing +from geoengine_openapi_client.models.layer_resource import LayerResource as LayerResource +from geoengine_openapi_client.models.layer_visibility import LayerVisibility as LayerVisibility +from geoengine_openapi_client.models.line_symbology import LineSymbology as LineSymbology +from geoengine_openapi_client.models.linear_gradient import LinearGradient as LinearGradient +from geoengine_openapi_client.models.logarithmic_gradient import LogarithmicGradient as LogarithmicGradient +from geoengine_openapi_client.models.measurement import Measurement as Measurement +from geoengine_openapi_client.models.meta_data_definition import MetaDataDefinition as MetaDataDefinition +from geoengine_openapi_client.models.meta_data_suggestion import MetaDataSuggestion as MetaDataSuggestion +from geoengine_openapi_client.models.ml_model import MlModel as MlModel +from geoengine_openapi_client.models.ml_model_input_no_data_handling import MlModelInputNoDataHandling as MlModelInputNoDataHandling +from geoengine_openapi_client.models.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant as MlModelInputNoDataHandlingVariant +from geoengine_openapi_client.models.ml_model_metadata import MlModelMetadata as MlModelMetadata +from geoengine_openapi_client.models.ml_model_name_response import MlModelNameResponse as MlModelNameResponse +from geoengine_openapi_client.models.ml_model_output_no_data_handling import MlModelOutputNoDataHandling as MlModelOutputNoDataHandling +from geoengine_openapi_client.models.ml_model_output_no_data_handling_variant import MlModelOutputNoDataHandlingVariant as MlModelOutputNoDataHandlingVariant +from geoengine_openapi_client.models.ml_model_resource import MlModelResource as MlModelResource +from geoengine_openapi_client.models.ml_tensor_shape3_d import MlTensorShape3D as MlTensorShape3D +from geoengine_openapi_client.models.mock_dataset_data_source_loading_info import MockDatasetDataSourceLoadingInfo as MockDatasetDataSourceLoadingInfo +from geoengine_openapi_client.models.mock_meta_data import MockMetaData as MockMetaData +from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer as MultiBandRasterColorizer +from geoengine_openapi_client.models.multi_line_string import MultiLineString as MultiLineString +from geoengine_openapi_client.models.multi_point import MultiPoint as MultiPoint +from geoengine_openapi_client.models.multi_polygon import MultiPolygon as MultiPolygon +from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition as NetCdfCfDataProviderDefinition +from geoengine_openapi_client.models.number_param import NumberParam as NumberParam +from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData as OgrMetaData +from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec as OgrSourceColumnSpec +from geoengine_openapi_client.models.ogr_source_dataset import OgrSourceDataset as OgrSourceDataset +from geoengine_openapi_client.models.ogr_source_dataset_time_type import OgrSourceDatasetTimeType as OgrSourceDatasetTimeType +from geoengine_openapi_client.models.ogr_source_dataset_time_type_none import OgrSourceDatasetTimeTypeNone as OgrSourceDatasetTimeTypeNone +from geoengine_openapi_client.models.ogr_source_dataset_time_type_start import OgrSourceDatasetTimeTypeStart as OgrSourceDatasetTimeTypeStart +from geoengine_openapi_client.models.ogr_source_dataset_time_type_start_duration import OgrSourceDatasetTimeTypeStartDuration as OgrSourceDatasetTimeTypeStartDuration +from geoengine_openapi_client.models.ogr_source_dataset_time_type_start_end import OgrSourceDatasetTimeTypeStartEnd as OgrSourceDatasetTimeTypeStartEnd +from geoengine_openapi_client.models.ogr_source_duration_spec import OgrSourceDurationSpec as OgrSourceDurationSpec +from geoengine_openapi_client.models.ogr_source_duration_spec_infinite import OgrSourceDurationSpecInfinite as OgrSourceDurationSpecInfinite +from geoengine_openapi_client.models.ogr_source_duration_spec_value import OgrSourceDurationSpecValue as OgrSourceDurationSpecValue +from geoengine_openapi_client.models.ogr_source_duration_spec_zero import OgrSourceDurationSpecZero as OgrSourceDurationSpecZero +from geoengine_openapi_client.models.ogr_source_error_spec import OgrSourceErrorSpec as OgrSourceErrorSpec +from geoengine_openapi_client.models.ogr_source_time_format import OgrSourceTimeFormat as OgrSourceTimeFormat +from geoengine_openapi_client.models.ogr_source_time_format_auto import OgrSourceTimeFormatAuto as OgrSourceTimeFormatAuto +from geoengine_openapi_client.models.ogr_source_time_format_custom import OgrSourceTimeFormatCustom as OgrSourceTimeFormatCustom +from geoengine_openapi_client.models.ogr_source_time_format_unix_time_stamp import OgrSourceTimeFormatUnixTimeStamp as OgrSourceTimeFormatUnixTimeStamp +from geoengine_openapi_client.models.operator_quota import OperatorQuota as OperatorQuota +from geoengine_openapi_client.models.order_by import OrderBy as OrderBy +from geoengine_openapi_client.models.palette_colorizer import PaletteColorizer as PaletteColorizer +from geoengine_openapi_client.models.pangaea_data_provider_definition import PangaeaDataProviderDefinition as PangaeaDataProviderDefinition +from geoengine_openapi_client.models.permission import Permission as Permission +from geoengine_openapi_client.models.permission_list_options import PermissionListOptions as PermissionListOptions +from geoengine_openapi_client.models.permission_listing import PermissionListing as PermissionListing +from geoengine_openapi_client.models.permission_request import PermissionRequest as PermissionRequest +from geoengine_openapi_client.models.plot import Plot as Plot +from geoengine_openapi_client.models.plot_output_format import PlotOutputFormat as PlotOutputFormat +from geoengine_openapi_client.models.plot_query_rectangle import PlotQueryRectangle as PlotQueryRectangle +from geoengine_openapi_client.models.plot_result_descriptor import PlotResultDescriptor as PlotResultDescriptor +from geoengine_openapi_client.models.point_symbology import PointSymbology as PointSymbology +from geoengine_openapi_client.models.polygon_symbology import PolygonSymbology as PolygonSymbology +from geoengine_openapi_client.models.project import Project as Project +from geoengine_openapi_client.models.project_layer import ProjectLayer as ProjectLayer +from geoengine_openapi_client.models.project_listing import ProjectListing as ProjectListing +from geoengine_openapi_client.models.project_resource import ProjectResource as ProjectResource +from geoengine_openapi_client.models.project_update_token import ProjectUpdateToken as ProjectUpdateToken +from geoengine_openapi_client.models.project_version import ProjectVersion as ProjectVersion +from geoengine_openapi_client.models.provenance import Provenance as Provenance +from geoengine_openapi_client.models.provenance_entry import ProvenanceEntry as ProvenanceEntry +from geoengine_openapi_client.models.provenance_output import ProvenanceOutput as ProvenanceOutput +from geoengine_openapi_client.models.provenances import Provenances as Provenances +from geoengine_openapi_client.models.provider_capabilities import ProviderCapabilities as ProviderCapabilities +from geoengine_openapi_client.models.provider_layer_collection_id import ProviderLayerCollectionId as ProviderLayerCollectionId +from geoengine_openapi_client.models.provider_layer_id import ProviderLayerId as ProviderLayerId +from geoengine_openapi_client.models.quota import Quota as Quota +from geoengine_openapi_client.models.raster_band_descriptor import RasterBandDescriptor as RasterBandDescriptor +from geoengine_openapi_client.models.raster_colorizer import RasterColorizer as RasterColorizer +from geoengine_openapi_client.models.raster_data_type import RasterDataType as RasterDataType +from geoengine_openapi_client.models.raster_dataset_from_workflow import RasterDatasetFromWorkflow as RasterDatasetFromWorkflow +from geoengine_openapi_client.models.raster_dataset_from_workflow_result import RasterDatasetFromWorkflowResult as RasterDatasetFromWorkflowResult +from geoengine_openapi_client.models.raster_properties_entry_type import RasterPropertiesEntryType as RasterPropertiesEntryType +from geoengine_openapi_client.models.raster_properties_key import RasterPropertiesKey as RasterPropertiesKey +from geoengine_openapi_client.models.raster_query_rectangle import RasterQueryRectangle as RasterQueryRectangle +from geoengine_openapi_client.models.raster_result_descriptor import RasterResultDescriptor as RasterResultDescriptor +from geoengine_openapi_client.models.raster_stream_websocket_result_type import RasterStreamWebsocketResultType as RasterStreamWebsocketResultType +from geoengine_openapi_client.models.raster_symbology import RasterSymbology as RasterSymbology +from geoengine_openapi_client.models.resource import Resource as Resource +from geoengine_openapi_client.models.role import Role as Role +from geoengine_openapi_client.models.role_description import RoleDescription as RoleDescription +from geoengine_openapi_client.models.st_rectangle import STRectangle as STRectangle +from geoengine_openapi_client.models.search_capabilities import SearchCapabilities as SearchCapabilities +from geoengine_openapi_client.models.search_type import SearchType as SearchType +from geoengine_openapi_client.models.search_types import SearchTypes as SearchTypes +from geoengine_openapi_client.models.sentinel_s2_l2_a_cogs_provider_definition import SentinelS2L2ACogsProviderDefinition as SentinelS2L2ACogsProviderDefinition +from geoengine_openapi_client.models.server_info import ServerInfo as ServerInfo +from geoengine_openapi_client.models.single_band_raster_colorizer import SingleBandRasterColorizer as SingleBandRasterColorizer +from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D as SpatialPartition2D +from geoengine_openapi_client.models.spatial_reference_authority import SpatialReferenceAuthority as SpatialReferenceAuthority +from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification as SpatialReferenceSpecification +from geoengine_openapi_client.models.spatial_resolution import SpatialResolution as SpatialResolution +from geoengine_openapi_client.models.stac_api_retries import StacApiRetries as StacApiRetries +from geoengine_openapi_client.models.stac_band import StacBand as StacBand +from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer as StacQueryBuffer +from geoengine_openapi_client.models.stac_zone import StacZone as StacZone +from geoengine_openapi_client.models.static_color import StaticColor as StaticColor +from geoengine_openapi_client.models.static_number import StaticNumber as StaticNumber +from geoengine_openapi_client.models.stroke_param import StrokeParam as StrokeParam +from geoengine_openapi_client.models.suggest_meta_data import SuggestMetaData as SuggestMetaData +from geoengine_openapi_client.models.symbology import Symbology as Symbology +from geoengine_openapi_client.models.task_abort_options import TaskAbortOptions as TaskAbortOptions +from geoengine_openapi_client.models.task_filter import TaskFilter as TaskFilter +from geoengine_openapi_client.models.task_list_options import TaskListOptions as TaskListOptions +from geoengine_openapi_client.models.task_response import TaskResponse as TaskResponse +from geoengine_openapi_client.models.task_status import TaskStatus as TaskStatus +from geoengine_openapi_client.models.task_status_aborted import TaskStatusAborted as TaskStatusAborted +from geoengine_openapi_client.models.task_status_completed import TaskStatusCompleted as TaskStatusCompleted +from geoengine_openapi_client.models.task_status_failed import TaskStatusFailed as TaskStatusFailed +from geoengine_openapi_client.models.task_status_running import TaskStatusRunning as TaskStatusRunning +from geoengine_openapi_client.models.task_status_with_id import TaskStatusWithId as TaskStatusWithId +from geoengine_openapi_client.models.text_symbology import TextSymbology as TextSymbology +from geoengine_openapi_client.models.time_granularity import TimeGranularity as TimeGranularity +from geoengine_openapi_client.models.time_interval import TimeInterval as TimeInterval +from geoengine_openapi_client.models.time_reference import TimeReference as TimeReference +from geoengine_openapi_client.models.time_step import TimeStep as TimeStep +from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition as TypedDataProviderDefinition +from geoengine_openapi_client.models.typed_geometry import TypedGeometry as TypedGeometry +from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf as TypedGeometryOneOf +from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 as TypedGeometryOneOf1 +from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 as TypedGeometryOneOf2 +from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 as TypedGeometryOneOf3 +from geoengine_openapi_client.models.typed_operator import TypedOperator as TypedOperator +from geoengine_openapi_client.models.typed_operator_operator import TypedOperatorOperator as TypedOperatorOperator +from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor as TypedPlotResultDescriptor +from geoengine_openapi_client.models.typed_raster_result_descriptor import TypedRasterResultDescriptor as TypedRasterResultDescriptor +from geoengine_openapi_client.models.typed_result_descriptor import TypedResultDescriptor as TypedResultDescriptor +from geoengine_openapi_client.models.typed_vector_result_descriptor import TypedVectorResultDescriptor as TypedVectorResultDescriptor +from geoengine_openapi_client.models.unitless_measurement import UnitlessMeasurement as UnitlessMeasurement +from geoengine_openapi_client.models.unix_time_stamp_type import UnixTimeStampType as UnixTimeStampType +from geoengine_openapi_client.models.update_dataset import UpdateDataset as UpdateDataset +from geoengine_openapi_client.models.update_layer import UpdateLayer as UpdateLayer +from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection as UpdateLayerCollection +from geoengine_openapi_client.models.update_project import UpdateProject as UpdateProject +from geoengine_openapi_client.models.update_quota import UpdateQuota as UpdateQuota +from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse as UploadFileLayersResponse +from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse as UploadFilesResponse +from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity as UsageSummaryGranularity +from geoengine_openapi_client.models.user_credentials import UserCredentials as UserCredentials +from geoengine_openapi_client.models.user_info import UserInfo as UserInfo +from geoengine_openapi_client.models.user_registration import UserRegistration as UserRegistration +from geoengine_openapi_client.models.user_session import UserSession as UserSession +from geoengine_openapi_client.models.vec_update import VecUpdate as VecUpdate +from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo as VectorColumnInfo +from geoengine_openapi_client.models.vector_data_type import VectorDataType as VectorDataType +from geoengine_openapi_client.models.vector_query_rectangle import VectorQueryRectangle as VectorQueryRectangle +from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor as VectorResultDescriptor +from geoengine_openapi_client.models.volume import Volume as Volume +from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse as VolumeFileLayersResponse +from geoengine_openapi_client.models.wcs_boundingbox import WcsBoundingbox as WcsBoundingbox +from geoengine_openapi_client.models.wcs_service import WcsService as WcsService +from geoengine_openapi_client.models.wcs_version import WcsVersion as WcsVersion +from geoengine_openapi_client.models.wfs_service import WfsService as WfsService +from geoengine_openapi_client.models.wfs_version import WfsVersion as WfsVersion +from geoengine_openapi_client.models.wildlive_data_connector_definition import WildliveDataConnectorDefinition as WildliveDataConnectorDefinition +from geoengine_openapi_client.models.wms_service import WmsService as WmsService +from geoengine_openapi_client.models.wms_version import WmsVersion as WmsVersion +from geoengine_openapi_client.models.workflow import Workflow as Workflow +from geoengine_openapi_client.models.wrapped_plot_output import WrappedPlotOutput as WrappedPlotOutput + diff --git a/python/geoengine_openapi_client/api/layers_api.py b/python/geoengine_openapi_client/api/layers_api.py index 2ca50588..7fdc97ac 100644 --- a/python/geoengine_openapi_client/api/layers_api.py +++ b/python/geoengine_openapi_client/api/layers_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictStr from typing import List from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.add_layer import AddLayer from geoengine_openapi_client.models.add_layer_collection import AddLayerCollection from geoengine_openapi_client.models.id_response import IdResponse @@ -1437,7 +1438,7 @@ def _add_provider_serialize( @validate_call def autocomplete_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -1523,7 +1524,7 @@ def autocomplete_handler( @validate_call def autocomplete_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -1609,7 +1610,7 @@ def autocomplete_handler_with_http_info( @validate_call def autocomplete_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -1778,7 +1779,7 @@ def _autocomplete_handler_serialize( @validate_call def delete_provider( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1844,7 +1845,7 @@ def delete_provider( @validate_call def delete_provider_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1910,7 +1911,7 @@ def delete_provider_with_http_info( @validate_call def delete_provider_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2029,7 +2030,7 @@ def _delete_provider_serialize( @validate_call def get_provider_definition( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2095,7 +2096,7 @@ def get_provider_definition( @validate_call def get_provider_definition_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2161,7 +2162,7 @@ def get_provider_definition_with_http_info( @validate_call def get_provider_definition_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2287,7 +2288,7 @@ def _get_provider_definition_serialize( @validate_call def layer_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2357,7 +2358,7 @@ def layer_handler( @validate_call def layer_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2427,7 +2428,7 @@ def layer_handler_with_http_info( @validate_call def layer_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2560,7 +2561,7 @@ def _layer_handler_serialize( @validate_call def layer_to_dataset( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2630,7 +2631,7 @@ def layer_to_dataset( @validate_call def layer_to_dataset_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2700,7 +2701,7 @@ def layer_to_dataset_with_http_info( @validate_call def layer_to_dataset_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2833,7 +2834,7 @@ def _layer_to_dataset_serialize( @validate_call def layer_to_workflow_id_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2903,7 +2904,7 @@ def layer_to_workflow_id_handler( @validate_call def layer_to_workflow_id_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -2973,7 +2974,7 @@ def layer_to_workflow_id_handler_with_http_info( @validate_call def layer_to_workflow_id_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], layer: Annotated[StrictStr, Field(description="Layer id")], _request_timeout: Union[ None, @@ -3106,7 +3107,7 @@ def _layer_to_workflow_id_handler_serialize( @validate_call def list_collection_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], offset: Annotated[int, Field(strict=True, ge=0)], limit: Annotated[int, Field(strict=True, ge=0)], @@ -3184,7 +3185,7 @@ def list_collection_handler( @validate_call def list_collection_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], offset: Annotated[int, Field(strict=True, ge=0)], limit: Annotated[int, Field(strict=True, ge=0)], @@ -3262,7 +3263,7 @@ def list_collection_handler_with_http_info( @validate_call def list_collection_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], offset: Annotated[int, Field(strict=True, ge=0)], limit: Annotated[int, Field(strict=True, ge=0)], @@ -3967,7 +3968,7 @@ def _list_root_collections_handler_serialize( @validate_call def provider_capabilities_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4033,7 +4034,7 @@ def provider_capabilities_handler( @validate_call def provider_capabilities_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4099,7 +4100,7 @@ def provider_capabilities_handler_with_http_info( @validate_call def provider_capabilities_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5271,7 +5272,7 @@ def _remove_layer_from_collection_serialize( @validate_call def search_handler( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -5357,7 +5358,7 @@ def search_handler( @validate_call def search_handler_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -5443,7 +5444,7 @@ def search_handler_with_http_info( @validate_call def search_handler_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Data provider id")], + provider: Annotated[UUID, Field(description="Data provider id")], collection: Annotated[StrictStr, Field(description="Layer collection id")], search_type: SearchType, search_string: StrictStr, @@ -6170,7 +6171,7 @@ def _update_layer_serialize( @validate_call def update_provider_definition( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], typed_data_provider_definition: TypedDataProviderDefinition, _request_timeout: Union[ None, @@ -6240,7 +6241,7 @@ def update_provider_definition( @validate_call def update_provider_definition_with_http_info( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], typed_data_provider_definition: TypedDataProviderDefinition, _request_timeout: Union[ None, @@ -6310,7 +6311,7 @@ def update_provider_definition_with_http_info( @validate_call def update_provider_definition_without_preload_content( self, - provider: Annotated[StrictStr, Field(description="Layer provider id")], + provider: Annotated[UUID, Field(description="Layer provider id")], typed_data_provider_definition: TypedDataProviderDefinition, _request_timeout: Union[ None, diff --git a/python/geoengine_openapi_client/api/ogcwcs_api.py b/python/geoengine_openapi_client/api/ogcwcs_api.py index a5a60097..3bfb7ac6 100644 --- a/python/geoengine_openapi_client/api/ogcwcs_api.py +++ b/python/geoengine_openapi_client/api/ogcwcs_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat @@ -48,7 +49,7 @@ def __init__(self, api_client=None) -> None: @validate_call def wcs_capabilities_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WcsService, request: GetCapabilitiesRequest, version: Optional[WcsVersion] = None, @@ -126,7 +127,7 @@ def wcs_capabilities_handler( @validate_call def wcs_capabilities_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WcsService, request: GetCapabilitiesRequest, version: Optional[WcsVersion] = None, @@ -204,7 +205,7 @@ def wcs_capabilities_handler_with_http_info( @validate_call def wcs_capabilities_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WcsService, request: GetCapabilitiesRequest, version: Optional[WcsVersion] = None, @@ -357,7 +358,7 @@ def _wcs_capabilities_handler_serialize( @validate_call def wcs_describe_coverage_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: DescribeCoverageRequest, @@ -439,7 +440,7 @@ def wcs_describe_coverage_handler( @validate_call def wcs_describe_coverage_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: DescribeCoverageRequest, @@ -521,7 +522,7 @@ def wcs_describe_coverage_handler_with_http_info( @validate_call def wcs_describe_coverage_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: DescribeCoverageRequest, @@ -683,7 +684,7 @@ def _wcs_describe_coverage_handler_serialize( @validate_call def wcs_get_coverage_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: GetCoverageRequest, @@ -801,7 +802,7 @@ def wcs_get_coverage_handler( @validate_call def wcs_get_coverage_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: GetCoverageRequest, @@ -919,7 +920,7 @@ def wcs_get_coverage_handler_with_http_info( @validate_call def wcs_get_coverage_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WcsVersion, service: WcsService, request: GetCoverageRequest, diff --git a/python/geoengine_openapi_client/api/ogcwfs_api.py b/python/geoengine_openapi_client/api/ogcwfs_api.py index 0f0e01e8..6113e67b 100644 --- a/python/geoengine_openapi_client/api/ogcwfs_api.py +++ b/python/geoengine_openapi_client/api/ogcwfs_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.geo_json import GeoJson from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest @@ -47,7 +48,7 @@ def __init__(self, api_client=None) -> None: @validate_call def wfs_capabilities_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WfsVersion], service: WfsService, request: GetCapabilitiesRequest, @@ -125,7 +126,7 @@ def wfs_capabilities_handler( @validate_call def wfs_capabilities_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WfsVersion], service: WfsService, request: GetCapabilitiesRequest, @@ -203,7 +204,7 @@ def wfs_capabilities_handler_with_http_info( @validate_call def wfs_capabilities_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WfsVersion], service: WfsService, request: GetCapabilitiesRequest, @@ -351,7 +352,7 @@ def _wfs_capabilities_handler_serialize( @validate_call def wfs_feature_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WfsService, request: GetFeatureRequest, type_names: StrictStr, @@ -473,7 +474,7 @@ def wfs_feature_handler( @validate_call def wfs_feature_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WfsService, request: GetFeatureRequest, type_names: StrictStr, @@ -595,7 +596,7 @@ def wfs_feature_handler_with_http_info( @validate_call def wfs_feature_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], service: WfsService, request: GetFeatureRequest, type_names: StrictStr, diff --git a/python/geoengine_openapi_client/api/ogcwms_api.py b/python/geoengine_openapi_client/api/ogcwms_api.py index 8cd76c71..2d08df7c 100644 --- a/python/geoengine_openapi_client/api/ogcwms_api.py +++ b/python/geoengine_openapi_client/api/ogcwms_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictBool, StrictBytes, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest @@ -50,7 +51,7 @@ def __init__(self, api_client=None) -> None: @validate_call def wms_capabilities_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WmsVersion], service: WmsService, request: GetCapabilitiesRequest, @@ -132,7 +133,7 @@ def wms_capabilities_handler( @validate_call def wms_capabilities_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WmsVersion], service: WmsService, request: GetCapabilitiesRequest, @@ -214,7 +215,7 @@ def wms_capabilities_handler_with_http_info( @validate_call def wms_capabilities_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: Optional[WmsVersion], service: WmsService, request: GetCapabilitiesRequest, @@ -369,7 +370,7 @@ def _wms_capabilities_handler_serialize( @validate_call def wms_legend_graphic_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetLegendGraphicRequest, @@ -451,7 +452,7 @@ def wms_legend_graphic_handler( @validate_call def wms_legend_graphic_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetLegendGraphicRequest, @@ -533,7 +534,7 @@ def wms_legend_graphic_handler_with_http_info( @validate_call def wms_legend_graphic_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetLegendGraphicRequest, @@ -681,7 +682,7 @@ def _wms_legend_graphic_handler_serialize( @validate_call def wms_map_handler( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetMapRequest, @@ -815,7 +816,7 @@ def wms_map_handler( @validate_call def wms_map_handler_with_http_info( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetMapRequest, @@ -949,7 +950,7 @@ def wms_map_handler_with_http_info( @validate_call def wms_map_handler_without_preload_content( self, - workflow: Annotated[StrictStr, Field(description="Workflow id")], + workflow: Annotated[UUID, Field(description="Workflow id")], version: WmsVersion, service: WmsService, request: GetMapRequest, diff --git a/python/geoengine_openapi_client/api/plots_api.py b/python/geoengine_openapi_client/api/plots_api.py index cca1138d..37ecf287 100644 --- a/python/geoengine_openapi_client/api/plots_api.py +++ b/python/geoengine_openapi_client/api/plots_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.wrapped_plot_output import WrappedPlotOutput from geoengine_openapi_client.api_client import ApiClient, RequestSerialized @@ -46,7 +47,7 @@ def get_plot_handler( bbox: StrictStr, time: StrictStr, spatial_resolution: StrictStr, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], crs: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -129,7 +130,7 @@ def get_plot_handler_with_http_info( bbox: StrictStr, time: StrictStr, spatial_resolution: StrictStr, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], crs: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -212,7 +213,7 @@ def get_plot_handler_without_preload_content( bbox: StrictStr, time: StrictStr, spatial_resolution: StrictStr, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], crs: Optional[StrictStr] = None, _request_timeout: Union[ None, diff --git a/python/geoengine_openapi_client/api/projects_api.py b/python/geoengine_openapi_client/api/projects_api.py index 81e61bbb..6dea756a 100644 --- a/python/geoengine_openapi_client/api/projects_api.py +++ b/python/geoengine_openapi_client/api/projects_api.py @@ -17,9 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr +from pydantic import Field from typing import List from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.create_project import CreateProject from geoengine_openapi_client.models.id_response import IdResponse from geoengine_openapi_client.models.order_by import OrderBy @@ -320,7 +321,7 @@ def _create_project_handler_serialize( @validate_call def delete_project_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -386,7 +387,7 @@ def delete_project_handler( @validate_call def delete_project_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -452,7 +453,7 @@ def delete_project_handler_with_http_info( @validate_call def delete_project_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -859,7 +860,7 @@ def _list_projects_handler_serialize( @validate_call def load_project_latest_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -925,7 +926,7 @@ def load_project_latest_handler( @validate_call def load_project_latest_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -991,7 +992,7 @@ def load_project_latest_handler_with_http_info( @validate_call def load_project_latest_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1117,8 +1118,8 @@ def _load_project_latest_handler_serialize( @validate_call def load_project_version_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], - version: Annotated[StrictStr, Field(description="Version id")], + project: Annotated[UUID, Field(description="Project id")], + version: Annotated[UUID, Field(description="Version id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1187,8 +1188,8 @@ def load_project_version_handler( @validate_call def load_project_version_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], - version: Annotated[StrictStr, Field(description="Version id")], + project: Annotated[UUID, Field(description="Project id")], + version: Annotated[UUID, Field(description="Version id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1257,8 +1258,8 @@ def load_project_version_handler_with_http_info( @validate_call def load_project_version_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], - version: Annotated[StrictStr, Field(description="Version id")], + project: Annotated[UUID, Field(description="Project id")], + version: Annotated[UUID, Field(description="Version id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1390,7 +1391,7 @@ def _load_project_version_handler_serialize( @validate_call def project_versions_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1456,7 +1457,7 @@ def project_versions_handler( @validate_call def project_versions_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1522,7 +1523,7 @@ def project_versions_handler_with_http_info( @validate_call def project_versions_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1648,7 +1649,7 @@ def _project_versions_handler_serialize( @validate_call def update_project_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], update_project: UpdateProject, _request_timeout: Union[ None, @@ -1718,7 +1719,7 @@ def update_project_handler( @validate_call def update_project_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], update_project: UpdateProject, _request_timeout: Union[ None, @@ -1788,7 +1789,7 @@ def update_project_handler_with_http_info( @validate_call def update_project_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], update_project: UpdateProject, _request_timeout: Union[ None, diff --git a/python/geoengine_openapi_client/api/session_api.py b/python/geoengine_openapi_client/api/session_api.py index fca1eb9f..b5eb758a 100644 --- a/python/geoengine_openapi_client/api/session_api.py +++ b/python/geoengine_openapi_client/api/session_api.py @@ -19,6 +19,7 @@ from pydantic import Field, StrictStr from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.auth_code_request_url import AuthCodeRequestURL from geoengine_openapi_client.models.auth_code_response import AuthCodeResponse from geoengine_openapi_client.models.st_rectangle import STRectangle @@ -1860,7 +1861,7 @@ def _session_handler_serialize( @validate_call def session_project_handler( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1926,7 +1927,7 @@ def session_project_handler( @validate_call def session_project_handler_with_http_info( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1992,7 +1993,7 @@ def session_project_handler_with_http_info( @validate_call def session_project_handler_without_preload_content( self, - project: Annotated[StrictStr, Field(description="Project id")], + project: Annotated[UUID, Field(description="Project id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/python/geoengine_openapi_client/api/tasks_api.py b/python/geoengine_openapi_client/api/tasks_api.py index ebe479f4..93b0f190 100644 --- a/python/geoengine_openapi_client/api/tasks_api.py +++ b/python/geoengine_openapi_client/api/tasks_api.py @@ -17,9 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictStr +from pydantic import Field, StrictBool from typing import List, Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.task_filter import TaskFilter from geoengine_openapi_client.models.task_status import TaskStatus from geoengine_openapi_client.models.task_status_with_id import TaskStatusWithId @@ -45,7 +46,7 @@ def __init__(self, api_client=None) -> None: @validate_call def abort_handler( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], force: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -120,7 +121,7 @@ def abort_handler( @validate_call def abort_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], force: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -191,7 +192,7 @@ def abort_handler_with_http_info( @validate_call def abort_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], force: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -608,7 +609,7 @@ def _list_handler_serialize( @validate_call def status_handler( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -674,7 +675,7 @@ def status_handler( @validate_call def status_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -740,7 +741,7 @@ def status_handler_with_http_info( @validate_call def status_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Task id")], + id: Annotated[UUID, Field(description="Task id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/python/geoengine_openapi_client/api/uploads_api.py b/python/geoengine_openapi_client/api/uploads_api.py index 0970b9ae..d2541180 100644 --- a/python/geoengine_openapi_client/api/uploads_api.py +++ b/python/geoengine_openapi_client/api/uploads_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictBytes, StrictStr from typing import List, Tuple, Union from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.id_response import IdResponse from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse @@ -45,7 +46,7 @@ def __init__(self, api_client=None) -> None: @validate_call def list_upload_file_layers_handler( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], file_name: Annotated[StrictStr, Field(description="File name")], _request_timeout: Union[ None, @@ -115,7 +116,7 @@ def list_upload_file_layers_handler( @validate_call def list_upload_file_layers_handler_with_http_info( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], file_name: Annotated[StrictStr, Field(description="File name")], _request_timeout: Union[ None, @@ -185,7 +186,7 @@ def list_upload_file_layers_handler_with_http_info( @validate_call def list_upload_file_layers_handler_without_preload_content( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], file_name: Annotated[StrictStr, Field(description="File name")], _request_timeout: Union[ None, @@ -318,7 +319,7 @@ def _list_upload_file_layers_handler_serialize( @validate_call def list_upload_files_handler( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -384,7 +385,7 @@ def list_upload_files_handler( @validate_call def list_upload_files_handler_with_http_info( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -450,7 +451,7 @@ def list_upload_files_handler_with_http_info( @validate_call def list_upload_files_handler_without_preload_content( self, - upload_id: Annotated[StrictStr, Field(description="Upload id")], + upload_id: Annotated[UUID, Field(description="Upload id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/python/geoengine_openapi_client/api/user_api.py b/python/geoengine_openapi_client/api/user_api.py index 12d3d321..0b98009c 100644 --- a/python/geoengine_openapi_client/api/user_api.py +++ b/python/geoengine_openapi_client/api/user_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictStr from typing import List, Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.add_role import AddRole from geoengine_openapi_client.models.computation_quota import ComputationQuota from geoengine_openapi_client.models.data_usage import DataUsage @@ -323,8 +324,8 @@ def _add_role_handler_serialize( @validate_call def assign_role_handler( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -393,8 +394,8 @@ def assign_role_handler( @validate_call def assign_role_handler_with_http_info( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -463,8 +464,8 @@ def assign_role_handler_with_http_info( @validate_call def assign_role_handler_without_preload_content( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -589,7 +590,7 @@ def _assign_role_handler_serialize( @validate_call def computation_quota_handler( self, - computation: Annotated[StrictStr, Field(description="Computation id")], + computation: Annotated[UUID, Field(description="Computation id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -655,7 +656,7 @@ def computation_quota_handler( @validate_call def computation_quota_handler_with_http_info( self, - computation: Annotated[StrictStr, Field(description="Computation id")], + computation: Annotated[UUID, Field(description="Computation id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -721,7 +722,7 @@ def computation_quota_handler_with_http_info( @validate_call def computation_quota_handler_without_preload_content( self, - computation: Annotated[StrictStr, Field(description="Computation id")], + computation: Annotated[UUID, Field(description="Computation id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2213,7 +2214,7 @@ def _get_role_descriptions_serialize( @validate_call def get_user_quota_handler( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2279,7 +2280,7 @@ def get_user_quota_handler( @validate_call def get_user_quota_handler_with_http_info( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2345,7 +2346,7 @@ def get_user_quota_handler_with_http_info( @validate_call def get_user_quota_handler_without_preload_content( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2714,7 +2715,7 @@ def _quota_handler_serialize( @validate_call def remove_role_handler( self, - role: Annotated[StrictStr, Field(description="Role id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2780,7 +2781,7 @@ def remove_role_handler( @validate_call def remove_role_handler_with_http_info( self, - role: Annotated[StrictStr, Field(description="Role id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2846,7 +2847,7 @@ def remove_role_handler_with_http_info( @validate_call def remove_role_handler_without_preload_content( self, - role: Annotated[StrictStr, Field(description="Role id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2965,8 +2966,8 @@ def _remove_role_handler_serialize( @validate_call def revoke_role_handler( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3035,8 +3036,8 @@ def revoke_role_handler( @validate_call def revoke_role_handler_with_http_info( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3105,8 +3106,8 @@ def revoke_role_handler_with_http_info( @validate_call def revoke_role_handler_without_preload_content( self, - user: Annotated[StrictStr, Field(description="User id")], - role: Annotated[StrictStr, Field(description="Role id")], + user: Annotated[UUID, Field(description="User id")], + role: Annotated[UUID, Field(description="Role id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3231,7 +3232,7 @@ def _revoke_role_handler_serialize( @validate_call def update_user_quota_handler( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], update_quota: UpdateQuota, _request_timeout: Union[ None, @@ -3301,7 +3302,7 @@ def update_user_quota_handler( @validate_call def update_user_quota_handler_with_http_info( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], update_quota: UpdateQuota, _request_timeout: Union[ None, @@ -3371,7 +3372,7 @@ def update_user_quota_handler_with_http_info( @validate_call def update_user_quota_handler_without_preload_content( self, - user: Annotated[StrictStr, Field(description="User id")], + user: Annotated[UUID, Field(description="User id")], update_quota: UpdateQuota, _request_timeout: Union[ None, diff --git a/python/geoengine_openapi_client/api/workflows_api.py b/python/geoengine_openapi_client/api/workflows_api.py index d2f5dc5f..9f1ba8fb 100644 --- a/python/geoengine_openapi_client/api/workflows_api.py +++ b/python/geoengine_openapi_client/api/workflows_api.py @@ -20,6 +20,7 @@ from pydantic import Field, StrictBytes, StrictStr from typing import List, Tuple, Union from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.id_response import IdResponse from geoengine_openapi_client.models.provenance_entry import ProvenanceEntry from geoengine_openapi_client.models.raster_dataset_from_workflow import RasterDatasetFromWorkflow @@ -51,7 +52,7 @@ def __init__(self, api_client=None) -> None: @validate_call def dataset_from_workflow_handler( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], raster_dataset_from_workflow: RasterDatasetFromWorkflow, _request_timeout: Union[ None, @@ -121,7 +122,7 @@ def dataset_from_workflow_handler( @validate_call def dataset_from_workflow_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], raster_dataset_from_workflow: RasterDatasetFromWorkflow, _request_timeout: Union[ None, @@ -191,7 +192,7 @@ def dataset_from_workflow_handler_with_http_info( @validate_call def dataset_from_workflow_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], raster_dataset_from_workflow: RasterDatasetFromWorkflow, _request_timeout: Union[ None, @@ -337,7 +338,7 @@ def _dataset_from_workflow_handler_serialize( @validate_call def get_workflow_all_metadata_zip_handler( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -403,7 +404,7 @@ def get_workflow_all_metadata_zip_handler( @validate_call def get_workflow_all_metadata_zip_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -469,7 +470,7 @@ def get_workflow_all_metadata_zip_handler_with_http_info( @validate_call def get_workflow_all_metadata_zip_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -595,7 +596,7 @@ def _get_workflow_all_metadata_zip_handler_serialize( @validate_call def get_workflow_metadata_handler( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -661,7 +662,7 @@ def get_workflow_metadata_handler( @validate_call def get_workflow_metadata_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -727,7 +728,7 @@ def get_workflow_metadata_handler_with_http_info( @validate_call def get_workflow_metadata_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -853,7 +854,7 @@ def _get_workflow_metadata_handler_serialize( @validate_call def get_workflow_provenance_handler( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -919,7 +920,7 @@ def get_workflow_provenance_handler( @validate_call def get_workflow_provenance_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -985,7 +986,7 @@ def get_workflow_provenance_handler_with_http_info( @validate_call def get_workflow_provenance_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1111,7 +1112,7 @@ def _get_workflow_provenance_handler_serialize( @validate_call def load_workflow_handler( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1177,7 +1178,7 @@ def load_workflow_handler( @validate_call def load_workflow_handler_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1243,7 +1244,7 @@ def load_workflow_handler_with_http_info( @validate_call def load_workflow_handler_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1369,7 +1370,7 @@ def _load_workflow_handler_serialize( @validate_call def raster_stream_websocket( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], spatial_bounds: SpatialPartition2D, time_interval: StrictStr, spatial_resolution: SpatialResolution, @@ -1455,7 +1456,7 @@ def raster_stream_websocket( @validate_call def raster_stream_websocket_with_http_info( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], spatial_bounds: SpatialPartition2D, time_interval: StrictStr, spatial_resolution: SpatialResolution, @@ -1541,7 +1542,7 @@ def raster_stream_websocket_with_http_info( @validate_call def raster_stream_websocket_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Workflow id")], + id: Annotated[UUID, Field(description="Workflow id")], spatial_bounds: SpatialPartition2D, time_interval: StrictStr, spatial_resolution: SpatialResolution, diff --git a/python/geoengine_openapi_client/api_client.py b/python/geoengine_openapi_client/api_client.py index 6f6c8828..6de3b59b 100644 --- a/python/geoengine_openapi_client/api_client.py +++ b/python/geoengine_openapi_client/api_client.py @@ -22,6 +22,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -91,7 +92,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'geoengine/openapi-client/python/0.0.27' + self.user_agent = 'geoengine/openapi-client/python/0.0.28' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -357,6 +358,8 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -383,6 +386,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() @@ -405,7 +412,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: @@ -454,13 +461,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) diff --git a/python/geoengine_openapi_client/configuration.py b/python/geoengine_openapi_client/configuration.py index 455fd5b2..fd3f8aa6 100644 --- a/python/geoengine_openapi_client/configuration.py +++ b/python/geoengine_openapi_client/configuration.py @@ -164,6 +164,8 @@ class Configuration: :param retries: Number of retries for API requests. :param ca_cert_data: verify the peer using concatenated CA certificate data in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. :Example: """ @@ -186,6 +188,8 @@ def __init__( ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, *, debug: Optional[bool] = None, ) -> None: @@ -267,10 +271,10 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ self.assert_hostname = None @@ -512,7 +516,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.8.0\n"\ - "SDK Package Version: 0.0.27".\ + "SDK Package Version: 0.0.28".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/python/geoengine_openapi_client/models/__init__.py b/python/geoengine_openapi_client/models/__init__.py index e9c96c16..b4e1a390 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from geoengine_openapi_client.models.add_dataset import AddDataset from geoengine_openapi_client.models.add_layer import AddLayer @@ -64,8 +63,7 @@ from geoengine_openapi_client.models.feature_data_type import FeatureDataType from geoengine_openapi_client.models.file_not_found_handling import FileNotFoundHandling from geoengine_openapi_client.models.format_specifics import FormatSpecifics -from geoengine_openapi_client.models.format_specifics_one_of import FormatSpecificsOneOf -from geoengine_openapi_client.models.format_specifics_one_of_csv import FormatSpecificsOneOfCsv +from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv from geoengine_openapi_client.models.gbif_data_provider_definition import GbifDataProviderDefinition from geoengine_openapi_client.models.gdal_dataset_geo_transform import GdalDatasetGeoTransform from geoengine_openapi_client.models.gdal_dataset_parameters import GdalDatasetParameters @@ -258,3 +256,4 @@ from geoengine_openapi_client.models.wms_version import WmsVersion from geoengine_openapi_client.models.workflow import Workflow from geoengine_openapi_client.models.wrapped_plot_output import WrappedPlotOutput + diff --git a/python/geoengine_openapi_client/models/aruna_data_provider_definition.py b/python/geoengine_openapi_client/models/aruna_data_provider_definition.py index cb57a8c4..0d6e6378 100644 --- a/python/geoengine_openapi_client/models/aruna_data_provider_definition.py +++ b/python/geoengine_openapi_client/models/aruna_data_provider_definition.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -33,7 +34,7 @@ class ArunaDataProviderDefinition(BaseModel): cache_ttl: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="cacheTtl") description: StrictStr filter_label: StrictStr = Field(alias="filterLabel") - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None project_id: StrictStr = Field(alias="projectId") diff --git a/python/geoengine_openapi_client/models/auto_create_dataset.py b/python/geoengine_openapi_client/models/auto_create_dataset.py index 953b9737..9e3c1aac 100644 --- a/python/geoengine_openapi_client/models/auto_create_dataset.py +++ b/python/geoengine_openapi_client/models/auto_create_dataset.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -32,7 +33,7 @@ class AutoCreateDataset(BaseModel): layer_name: Optional[StrictStr] = Field(default=None, alias="layerName") main_file: StrictStr = Field(alias="mainFile") tags: Optional[List[StrictStr]] = None - upload: StrictStr + upload: UUID __properties: ClassVar[List[str]] = ["datasetDescription", "datasetName", "layerName", "mainFile", "tags", "upload"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/collection_item.py b/python/geoengine_openapi_client/models/collection_item.py index 7a4b4c1a..2e1f2232 100644 --- a/python/geoengine_openapi_client/models/collection_item.py +++ b/python/geoengine_openapi_client/models/collection_item.py @@ -106,16 +106,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = LayerListing.from_json(json_str) return instance - # check if data type is `LayerCollectionListing` - if _data_type == "LayerCollectionListing": - instance.actual_instance = LayerCollectionListing.from_json(json_str) - return instance - - # check if data type is `LayerListing` - if _data_type == "LayerListing": - instance.actual_instance = LayerListing.from_json(json_str) - return instance - # deserialize data into LayerCollectionListing try: instance.actual_instance = LayerCollectionListing.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/color_param.py b/python/geoengine_openapi_client/models/color_param.py index 83f37b19..5e61e49f 100644 --- a/python/geoengine_openapi_client/models/color_param.py +++ b/python/geoengine_openapi_client/models/color_param.py @@ -106,16 +106,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = StaticColor.from_json(json_str) return instance - # check if data type is `DerivedColor` - if _data_type == "DerivedColor": - instance.actual_instance = DerivedColor.from_json(json_str) - return instance - - # check if data type is `StaticColor` - if _data_type == "StaticColor": - instance.actual_instance = StaticColor.from_json(json_str) - return instance - # deserialize data into StaticColor try: instance.actual_instance = StaticColor.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/colorizer.py b/python/geoengine_openapi_client/models/colorizer.py index d0bda490..21040183 100644 --- a/python/geoengine_openapi_client/models/colorizer.py +++ b/python/geoengine_openapi_client/models/colorizer.py @@ -119,21 +119,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = PaletteColorizer.from_json(json_str) return instance - # check if data type is `LinearGradient` - if _data_type == "LinearGradient": - instance.actual_instance = LinearGradient.from_json(json_str) - return instance - - # check if data type is `LogarithmicGradient` - if _data_type == "LogarithmicGradient": - instance.actual_instance = LogarithmicGradient.from_json(json_str) - return instance - - # check if data type is `PaletteColorizer` - if _data_type == "PaletteColorizer": - instance.actual_instance = PaletteColorizer.from_json(json_str) - return instance - # deserialize data into LinearGradient try: instance.actual_instance = LinearGradient.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/computation_quota.py b/python/geoengine_openapi_client/models/computation_quota.py index 879e28a3..00533214 100644 --- a/python/geoengine_openapi_client/models/computation_quota.py +++ b/python/geoengine_openapi_client/models/computation_quota.py @@ -19,9 +19,10 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -29,10 +30,10 @@ class ComputationQuota(BaseModel): """ ComputationQuota """ # noqa: E501 - computation_id: StrictStr = Field(alias="computationId") + computation_id: UUID = Field(alias="computationId") count: Annotated[int, Field(strict=True, ge=0)] timestamp: datetime - workflow_id: StrictStr = Field(alias="workflowId") + workflow_id: UUID = Field(alias="workflowId") __properties: ClassVar[List[str]] = ["computationId", "count", "timestamp", "workflowId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/copernicus_dataspace_data_provider_definition.py b/python/geoengine_openapi_client/models/copernicus_dataspace_data_provider_definition.py index 4ff8e5c8..c76599a9 100644 --- a/python/geoengine_openapi_client/models/copernicus_dataspace_data_provider_definition.py +++ b/python/geoengine_openapi_client/models/copernicus_dataspace_data_provider_definition.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class CopernicusDataspaceDataProviderDefinition(BaseModel): """ # noqa: E501 description: StrictStr gdal_config: List[Annotated[List[StrictStr], Field(min_length=2, max_length=2)]] = Field(alias="gdalConfig") - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None s3_access_key: StrictStr = Field(alias="s3AccessKey") diff --git a/python/geoengine_openapi_client/models/data_id.py b/python/geoengine_openapi_client/models/data_id.py index aa85e454..43fd3155 100644 --- a/python/geoengine_openapi_client/models/data_id.py +++ b/python/geoengine_openapi_client/models/data_id.py @@ -106,16 +106,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = InternalDataId.from_json(json_str) return instance - # check if data type is `ExternalDataId` - if _data_type == "ExternalDataId": - instance.actual_instance = ExternalDataId.from_json(json_str) - return instance - - # check if data type is `InternalDataId` - if _data_type == "InternalDataId": - instance.actual_instance = InternalDataId.from_json(json_str) - return instance - # deserialize data into InternalDataId try: instance.actual_instance = InternalDataId.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/data_path_one_of1.py b/python/geoengine_openapi_client/models/data_path_one_of1.py index f3bbee58..6c4f53c6 100644 --- a/python/geoengine_openapi_client/models/data_path_one_of1.py +++ b/python/geoengine_openapi_client/models/data_path_one_of1.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class DataPathOneOf1(BaseModel): """ DataPathOneOf1 """ # noqa: E501 - upload: StrictStr + upload: UUID __properties: ClassVar[List[str]] = ["upload"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/data_provider_resource.py b/python/geoengine_openapi_client/models/data_provider_resource.py index 3627c570..a4ad655a 100644 --- a/python/geoengine_openapi_client/models/data_provider_resource.py +++ b/python/geoengine_openapi_client/models/data_provider_resource.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class DataProviderResource(BaseModel): """ DataProviderResource """ # noqa: E501 - id: StrictStr + id: UUID type: StrictStr __properties: ClassVar[List[str]] = ["id", "type"] diff --git a/python/geoengine_openapi_client/models/data_usage.py b/python/geoengine_openapi_client/models/data_usage.py index e1ae09eb..bd96d4a7 100644 --- a/python/geoengine_openapi_client/models/data_usage.py +++ b/python/geoengine_openapi_client/models/data_usage.py @@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -29,11 +30,11 @@ class DataUsage(BaseModel): """ DataUsage """ # noqa: E501 - computation_id: StrictStr = Field(alias="computationId") + computation_id: UUID = Field(alias="computationId") count: Annotated[int, Field(strict=True, ge=0)] data: StrictStr timestamp: datetime - user_id: StrictStr = Field(alias="userId") + user_id: UUID = Field(alias="userId") __properties: ClassVar[List[str]] = ["computationId", "count", "data", "timestamp", "userId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/dataset.py b/python/geoengine_openapi_client/models/dataset.py index 5637b012..14eb9a2b 100644 --- a/python/geoengine_openapi_client/models/dataset.py +++ b/python/geoengine_openapi_client/models/dataset.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from geoengine_openapi_client.models.provenance import Provenance from geoengine_openapi_client.models.symbology import Symbology from geoengine_openapi_client.models.typed_result_descriptor import TypedResultDescriptor @@ -32,7 +33,7 @@ class Dataset(BaseModel): """ # noqa: E501 description: StrictStr display_name: StrictStr = Field(alias="displayName") - id: StrictStr + id: UUID name: StrictStr provenance: Optional[List[Provenance]] = None result_descriptor: TypedResultDescriptor = Field(alias="resultDescriptor") diff --git a/python/geoengine_openapi_client/models/dataset_layer_listing_provider_definition.py b/python/geoengine_openapi_client/models/dataset_layer_listing_provider_definition.py index 851d3554..9f9dd0e2 100644 --- a/python/geoengine_openapi_client/models/dataset_layer_listing_provider_definition.py +++ b/python/geoengine_openapi_client/models/dataset_layer_listing_provider_definition.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from geoengine_openapi_client.models.dataset_layer_listing_collection import DatasetLayerListingCollection from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class DatasetLayerListingProviderDefinition(BaseModel): """ # noqa: E501 collections: List[DatasetLayerListingCollection] description: StrictStr - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None type: StrictStr diff --git a/python/geoengine_openapi_client/models/dataset_listing.py b/python/geoengine_openapi_client/models/dataset_listing.py index 1b0142d9..c60b4b19 100644 --- a/python/geoengine_openapi_client/models/dataset_listing.py +++ b/python/geoengine_openapi_client/models/dataset_listing.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from geoengine_openapi_client.models.symbology import Symbology from geoengine_openapi_client.models.typed_result_descriptor import TypedResultDescriptor from typing import Optional, Set @@ -31,7 +32,7 @@ class DatasetListing(BaseModel): """ # noqa: E501 description: StrictStr display_name: StrictStr = Field(alias="displayName") - id: StrictStr + id: UUID name: StrictStr result_descriptor: TypedResultDescriptor = Field(alias="resultDescriptor") source_operator: StrictStr = Field(alias="sourceOperator") diff --git a/python/geoengine_openapi_client/models/edr_data_provider_definition.py b/python/geoengine_openapi_client/models/edr_data_provider_definition.py index a01a0556..309370ff 100644 --- a/python/geoengine_openapi_client/models/edr_data_provider_definition.py +++ b/python/geoengine_openapi_client/models/edr_data_provider_definition.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.edr_vector_spec import EdrVectorSpec from geoengine_openapi_client.models.provenance import Provenance from typing import Optional, Set @@ -34,7 +35,7 @@ class EdrDataProviderDefinition(BaseModel): cache_ttl: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="cacheTtl") description: StrictStr discrete_vrs: Optional[List[StrictStr]] = Field(default=None, description="List of vertical reference systems with a discrete scale", alias="discreteVrs") - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None provenance: Optional[List[Provenance]] = None diff --git a/python/geoengine_openapi_client/models/external_data_id.py b/python/geoengine_openapi_client/models/external_data_id.py index e6614056..116feee5 100644 --- a/python/geoengine_openapi_client/models/external_data_id.py +++ b/python/geoengine_openapi_client/models/external_data_id.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class ExternalDataId(BaseModel): ExternalDataId """ # noqa: E501 layer_id: StrictStr = Field(alias="layerId") - provider_id: StrictStr = Field(alias="providerId") + provider_id: UUID = Field(alias="providerId") type: StrictStr __properties: ClassVar[List[str]] = ["layerId", "providerId", "type"] diff --git a/python/geoengine_openapi_client/models/format_specifics.py b/python/geoengine_openapi_client/models/format_specifics.py index 782adccb..627e78bb 100644 --- a/python/geoengine_openapi_client/models/format_specifics.py +++ b/python/geoengine_openapi_client/models/format_specifics.py @@ -14,111 +14,79 @@ from __future__ import annotations -import json import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from geoengine_openapi_client.models.format_specifics_one_of import FormatSpecificsOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self +import re # noqa: F401 +import json -FORMATSPECIFICS_ONE_OF_SCHEMAS = ["FormatSpecificsOneOf"] +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv +from typing import Optional, Set +from typing_extensions import Self class FormatSpecifics(BaseModel): """ FormatSpecifics - """ - # data type: FormatSpecificsOneOf - oneof_schema_1_validator: Optional[FormatSpecificsOneOf] = None - actual_instance: Optional[Union[FormatSpecificsOneOf]] = None - one_of_schemas: Set[str] = { "FormatSpecificsOneOf" } + """ # noqa: E501 + csv: FormatSpecificsCsv + __properties: ClassVar[List[str]] = ["csv"] model_config = ConfigDict( + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = FormatSpecifics.model_construct() - error_messages = [] - match = 0 - # validate data type: FormatSpecificsOneOf - if not isinstance(v, FormatSpecificsOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `FormatSpecificsOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in FormatSpecifics with oneOf schemas: FormatSpecificsOneOf. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in FormatSpecifics with oneOf schemas: FormatSpecificsOneOf. Details: " + ", ".join(error_messages)) - else: - return v + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - match = 0 - - # deserialize data into FormatSpecificsOneOf - try: - instance.actual_instance = FormatSpecificsOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into FormatSpecifics with oneOf schemas: FormatSpecificsOneOf. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into FormatSpecifics with oneOf schemas: FormatSpecificsOneOf. Details: " + ", ".join(error_messages)) - else: - return instance + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FormatSpecifics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of csv + if self.csv: + _dict['csv'] = self.csv.to_dict() + return _dict - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], FormatSpecificsOneOf]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FormatSpecifics from a dict""" + if obj is None: return None - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance + if not isinstance(obj, dict): + return cls.model_validate(obj) - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) + _obj = cls.model_validate({ + "csv": FormatSpecificsCsv.from_dict(obj["csv"]) if obj.get("csv") is not None else None + }) + return _obj diff --git a/python/geoengine_openapi_client/models/format_specifics_one_of_csv.py b/python/geoengine_openapi_client/models/format_specifics_csv.py similarity index 91% rename from python/geoengine_openapi_client/models/format_specifics_one_of_csv.py rename to python/geoengine_openapi_client/models/format_specifics_csv.py index 14330498..aaee115e 100644 --- a/python/geoengine_openapi_client/models/format_specifics_one_of_csv.py +++ b/python/geoengine_openapi_client/models/format_specifics_csv.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class FormatSpecificsOneOfCsv(BaseModel): +class FormatSpecificsCsv(BaseModel): """ - FormatSpecificsOneOfCsv + FormatSpecificsCsv """ # noqa: E501 header: CsvHeader __properties: ClassVar[List[str]] = ["header"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FormatSpecificsOneOfCsv from a JSON string""" + """Create an instance of FormatSpecificsCsv from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FormatSpecificsOneOfCsv from a dict""" + """Create an instance of FormatSpecificsCsv from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/format_specifics_one_of.py b/python/geoengine_openapi_client/models/format_specifics_one_of.py deleted file mode 100644 index 356387fc..00000000 --- a/python/geoengine_openapi_client/models/format_specifics_one_of.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - 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 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from geoengine_openapi_client.models.format_specifics_one_of_csv import FormatSpecificsOneOfCsv -from typing import Optional, Set -from typing_extensions import Self - -class FormatSpecificsOneOf(BaseModel): - """ - FormatSpecificsOneOf - """ # noqa: E501 - csv: FormatSpecificsOneOfCsv - __properties: ClassVar[List[str]] = ["csv"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FormatSpecificsOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of csv - if self.csv: - _dict['csv'] = self.csv.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FormatSpecificsOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "csv": FormatSpecificsOneOfCsv.from_dict(obj["csv"]) if obj.get("csv") is not None else None - }) - return _obj - - diff --git a/python/geoengine_openapi_client/models/id_response.py b/python/geoengine_openapi_client/models/id_response.py index be43ea4c..422e5283 100644 --- a/python/geoengine_openapi_client/models/id_response.py +++ b/python/geoengine_openapi_client/models/id_response.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class IdResponse(BaseModel): """ IdResponse """ # noqa: E501 - id: StrictStr + id: UUID __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/internal_data_id.py b/python/geoengine_openapi_client/models/internal_data_id.py index 948a67a6..3efd266a 100644 --- a/python/geoengine_openapi_client/models/internal_data_id.py +++ b/python/geoengine_openapi_client/models/internal_data_id.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class InternalDataId(BaseModel): """ InternalDataId """ # noqa: E501 - dataset_id: StrictStr = Field(alias="datasetId") + dataset_id: UUID = Field(alias="datasetId") type: StrictStr __properties: ClassVar[List[str]] = ["datasetId", "type"] diff --git a/python/geoengine_openapi_client/models/layer_provider_listing.py b/python/geoengine_openapi_client/models/layer_provider_listing.py index 7cf2db6c..51d6b74b 100644 --- a/python/geoengine_openapi_client/models/layer_provider_listing.py +++ b/python/geoengine_openapi_client/models/layer_provider_listing.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class LayerProviderListing(BaseModel): """ LayerProviderListing """ # noqa: E501 - id: StrictStr + id: UUID name: StrictStr priority: StrictInt __properties: ClassVar[List[str]] = ["id", "name", "priority"] diff --git a/python/geoengine_openapi_client/models/measurement.py b/python/geoengine_openapi_client/models/measurement.py index 919adba2..c974fe0f 100644 --- a/python/geoengine_openapi_client/models/measurement.py +++ b/python/geoengine_openapi_client/models/measurement.py @@ -119,21 +119,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = UnitlessMeasurement.from_json(json_str) return instance - # check if data type is `ClassificationMeasurement` - if _data_type == "ClassificationMeasurement": - instance.actual_instance = ClassificationMeasurement.from_json(json_str) - return instance - - # check if data type is `ContinuousMeasurement` - if _data_type == "ContinuousMeasurement": - instance.actual_instance = ContinuousMeasurement.from_json(json_str) - return instance - - # check if data type is `UnitlessMeasurement` - if _data_type == "UnitlessMeasurement": - instance.actual_instance = UnitlessMeasurement.from_json(json_str) - return instance - # deserialize data into UnitlessMeasurement try: instance.actual_instance = UnitlessMeasurement.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/meta_data_definition.py b/python/geoengine_openapi_client/models/meta_data_definition.py index 6e892bff..463baf39 100644 --- a/python/geoengine_openapi_client/models/meta_data_definition.py +++ b/python/geoengine_openapi_client/models/meta_data_definition.py @@ -158,16 +158,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = OgrMetaData.from_json(json_str) return instance - # check if data type is `GdalMetaDataStatic` - if _data_type == "GdalMetaDataStatic": - instance.actual_instance = GdalMetaDataStatic.from_json(json_str) - return instance - - # check if data type is `GdalMetadataNetCdfCf` - if _data_type == "GdalMetadataNetCdfCf": - instance.actual_instance = GdalMetadataNetCdfCf.from_json(json_str) - return instance - # deserialize data into MockMetaData try: instance.actual_instance = MockMetaData.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/ml_model.py b/python/geoengine_openapi_client/models/ml_model.py index 3b484465..218bedce 100644 --- a/python/geoengine_openapi_client/models/ml_model.py +++ b/python/geoengine_openapi_client/models/ml_model.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from geoengine_openapi_client.models.ml_model_metadata import MlModelMetadata from typing import Optional, Set from typing_extensions import Self @@ -33,7 +34,7 @@ class MlModel(BaseModel): file_name: StrictStr = Field(alias="fileName") metadata: MlModelMetadata name: StrictStr - upload: StrictStr + upload: UUID __properties: ClassVar[List[str]] = ["description", "displayName", "fileName", "metadata", "name", "upload"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/number_param.py b/python/geoengine_openapi_client/models/number_param.py index e766b4c6..065afb05 100644 --- a/python/geoengine_openapi_client/models/number_param.py +++ b/python/geoengine_openapi_client/models/number_param.py @@ -106,16 +106,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = StaticNumber.from_json(json_str) return instance - # check if data type is `DerivedNumber` - if _data_type == "DerivedNumber": - instance.actual_instance = DerivedNumber.from_json(json_str) - return instance - - # check if data type is `StaticNumber` - if _data_type == "StaticNumber": - instance.actual_instance = StaticNumber.from_json(json_str) - return instance - # deserialize data into StaticNumber try: instance.actual_instance = StaticNumber.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/ogr_source_dataset_time_type.py b/python/geoengine_openapi_client/models/ogr_source_dataset_time_type.py index 84f85813..39948a91 100644 --- a/python/geoengine_openapi_client/models/ogr_source_dataset_time_type.py +++ b/python/geoengine_openapi_client/models/ogr_source_dataset_time_type.py @@ -132,26 +132,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = OgrSourceDatasetTimeTypeStartEnd.from_json(json_str) return instance - # check if data type is `OgrSourceDatasetTimeTypeNone` - if _data_type == "OgrSourceDatasetTimeTypeNone": - instance.actual_instance = OgrSourceDatasetTimeTypeNone.from_json(json_str) - return instance - - # check if data type is `OgrSourceDatasetTimeTypeStart` - if _data_type == "OgrSourceDatasetTimeTypeStart": - instance.actual_instance = OgrSourceDatasetTimeTypeStart.from_json(json_str) - return instance - - # check if data type is `OgrSourceDatasetTimeTypeStartDuration` - if _data_type == "OgrSourceDatasetTimeTypeStartDuration": - instance.actual_instance = OgrSourceDatasetTimeTypeStartDuration.from_json(json_str) - return instance - - # check if data type is `OgrSourceDatasetTimeTypeStartEnd` - if _data_type == "OgrSourceDatasetTimeTypeStartEnd": - instance.actual_instance = OgrSourceDatasetTimeTypeStartEnd.from_json(json_str) - return instance - # deserialize data into OgrSourceDatasetTimeTypeNone try: instance.actual_instance = OgrSourceDatasetTimeTypeNone.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/ogr_source_duration_spec.py b/python/geoengine_openapi_client/models/ogr_source_duration_spec.py index d101ac2e..75ae0e03 100644 --- a/python/geoengine_openapi_client/models/ogr_source_duration_spec.py +++ b/python/geoengine_openapi_client/models/ogr_source_duration_spec.py @@ -119,21 +119,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = OgrSourceDurationSpecZero.from_json(json_str) return instance - # check if data type is `OgrSourceDurationSpecInfinite` - if _data_type == "OgrSourceDurationSpecInfinite": - instance.actual_instance = OgrSourceDurationSpecInfinite.from_json(json_str) - return instance - - # check if data type is `OgrSourceDurationSpecValue` - if _data_type == "OgrSourceDurationSpecValue": - instance.actual_instance = OgrSourceDurationSpecValue.from_json(json_str) - return instance - - # check if data type is `OgrSourceDurationSpecZero` - if _data_type == "OgrSourceDurationSpecZero": - instance.actual_instance = OgrSourceDurationSpecZero.from_json(json_str) - return instance - # deserialize data into OgrSourceDurationSpecInfinite try: instance.actual_instance = OgrSourceDurationSpecInfinite.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/ogr_source_time_format.py b/python/geoengine_openapi_client/models/ogr_source_time_format.py index 1964cad5..6d368b07 100644 --- a/python/geoengine_openapi_client/models/ogr_source_time_format.py +++ b/python/geoengine_openapi_client/models/ogr_source_time_format.py @@ -119,21 +119,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = OgrSourceTimeFormatUnixTimeStamp.from_json(json_str) return instance - # check if data type is `OgrSourceTimeFormatAuto` - if _data_type == "OgrSourceTimeFormatAuto": - instance.actual_instance = OgrSourceTimeFormatAuto.from_json(json_str) - return instance - - # check if data type is `OgrSourceTimeFormatCustom` - if _data_type == "OgrSourceTimeFormatCustom": - instance.actual_instance = OgrSourceTimeFormatCustom.from_json(json_str) - return instance - - # check if data type is `OgrSourceTimeFormatUnixTimeStamp` - if _data_type == "OgrSourceTimeFormatUnixTimeStamp": - instance.actual_instance = OgrSourceTimeFormatUnixTimeStamp.from_json(json_str) - return instance - # deserialize data into OgrSourceTimeFormatCustom try: instance.actual_instance = OgrSourceTimeFormatCustom.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/permission_request.py b/python/geoengine_openapi_client/models/permission_request.py index 4b517349..a036ecb3 100644 --- a/python/geoengine_openapi_client/models/permission_request.py +++ b/python/geoengine_openapi_client/models/permission_request.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from uuid import UUID from geoengine_openapi_client.models.permission import Permission from geoengine_openapi_client.models.resource import Resource from typing import Optional, Set @@ -31,7 +32,7 @@ class PermissionRequest(BaseModel): """ # noqa: E501 permission: Permission resource: Resource - role_id: StrictStr = Field(alias="roleId") + role_id: UUID = Field(alias="roleId") __properties: ClassVar[List[str]] = ["permission", "resource", "roleId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/plot.py b/python/geoengine_openapi_client/models/plot.py index 47d9f23b..ee8c9699 100644 --- a/python/geoengine_openapi_client/models/plot.py +++ b/python/geoengine_openapi_client/models/plot.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class Plot(BaseModel): Plot """ # noqa: E501 name: StrictStr - workflow: StrictStr + workflow: UUID __properties: ClassVar[List[str]] = ["name", "workflow"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/project.py b/python/geoengine_openapi_client/models/project.py index e8230d89..787f244f 100644 --- a/python/geoengine_openapi_client/models/project.py +++ b/python/geoengine_openapi_client/models/project.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from geoengine_openapi_client.models.plot import Plot from geoengine_openapi_client.models.project_layer import ProjectLayer from geoengine_openapi_client.models.project_version import ProjectVersion @@ -34,7 +35,7 @@ class Project(BaseModel): """ # noqa: E501 bounds: STRectangle description: StrictStr - id: StrictStr + id: UUID layers: List[ProjectLayer] name: StrictStr plots: List[Plot] diff --git a/python/geoengine_openapi_client/models/project_layer.py b/python/geoengine_openapi_client/models/project_layer.py index 94565988..d985318a 100644 --- a/python/geoengine_openapi_client/models/project_layer.py +++ b/python/geoengine_openapi_client/models/project_layer.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from geoengine_openapi_client.models.layer_visibility import LayerVisibility from geoengine_openapi_client.models.symbology import Symbology from typing import Optional, Set @@ -32,7 +33,7 @@ class ProjectLayer(BaseModel): name: StrictStr symbology: Symbology visibility: LayerVisibility - workflow: StrictStr + workflow: UUID __properties: ClassVar[List[str]] = ["name", "symbology", "visibility", "workflow"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/project_listing.py b/python/geoengine_openapi_client/models/project_listing.py index 23607e75..49649895 100644 --- a/python/geoengine_openapi_client/models/project_listing.py +++ b/python/geoengine_openapi_client/models/project_listing.py @@ -21,6 +21,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class ProjectListing(BaseModel): """ # noqa: E501 changed: datetime description: StrictStr - id: StrictStr + id: UUID layer_names: List[StrictStr] = Field(alias="layerNames") name: StrictStr plot_names: List[StrictStr] = Field(alias="plotNames") diff --git a/python/geoengine_openapi_client/models/project_resource.py b/python/geoengine_openapi_client/models/project_resource.py index 8a1a2020..562e6a87 100644 --- a/python/geoengine_openapi_client/models/project_resource.py +++ b/python/geoengine_openapi_client/models/project_resource.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ProjectResource(BaseModel): """ ProjectResource """ # noqa: E501 - id: StrictStr + id: UUID type: StrictStr __properties: ClassVar[List[str]] = ["id", "type"] diff --git a/python/geoengine_openapi_client/models/project_version.py b/python/geoengine_openapi_client/models/project_version.py index 6f8004df..bfb3e51e 100644 --- a/python/geoengine_openapi_client/models/project_version.py +++ b/python/geoengine_openapi_client/models/project_version.py @@ -19,8 +19,9 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class ProjectVersion(BaseModel): ProjectVersion """ # noqa: E501 changed: datetime - id: StrictStr + id: UUID __properties: ClassVar[List[str]] = ["changed", "id"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/provider_layer_collection_id.py b/python/geoengine_openapi_client/models/provider_layer_collection_id.py index 3db6bf81..f4d627fb 100644 --- a/python/geoengine_openapi_client/models/provider_layer_collection_id.py +++ b/python/geoengine_openapi_client/models/provider_layer_collection_id.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class ProviderLayerCollectionId(BaseModel): ProviderLayerCollectionId """ # noqa: E501 collection_id: StrictStr = Field(alias="collectionId") - provider_id: StrictStr = Field(alias="providerId") + provider_id: UUID = Field(alias="providerId") __properties: ClassVar[List[str]] = ["collectionId", "providerId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/provider_layer_id.py b/python/geoengine_openapi_client/models/provider_layer_id.py index 0c2f1b35..24d1fb6b 100644 --- a/python/geoengine_openapi_client/models/provider_layer_id.py +++ b/python/geoengine_openapi_client/models/provider_layer_id.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class ProviderLayerId(BaseModel): ProviderLayerId """ # noqa: E501 layer_id: StrictStr = Field(alias="layerId") - provider_id: StrictStr = Field(alias="providerId") + provider_id: UUID = Field(alias="providerId") __properties: ClassVar[List[str]] = ["layerId", "providerId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/raster_colorizer.py b/python/geoengine_openapi_client/models/raster_colorizer.py index d9f061d2..0983764b 100644 --- a/python/geoengine_openapi_client/models/raster_colorizer.py +++ b/python/geoengine_openapi_client/models/raster_colorizer.py @@ -106,16 +106,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = SingleBandRasterColorizer.from_json(json_str) return instance - # check if data type is `MultiBandRasterColorizer` - if _data_type == "MultiBandRasterColorizer": - instance.actual_instance = MultiBandRasterColorizer.from_json(json_str) - return instance - - # check if data type is `SingleBandRasterColorizer` - if _data_type == "SingleBandRasterColorizer": - instance.actual_instance = SingleBandRasterColorizer.from_json(json_str) - return instance - # deserialize data into SingleBandRasterColorizer try: instance.actual_instance = SingleBandRasterColorizer.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/raster_dataset_from_workflow_result.py b/python/geoengine_openapi_client/models/raster_dataset_from_workflow_result.py index 418199a8..728b139d 100644 --- a/python/geoengine_openapi_client/models/raster_dataset_from_workflow_result.py +++ b/python/geoengine_openapi_client/models/raster_dataset_from_workflow_result.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class RasterDatasetFromWorkflowResult(BaseModel): response of the dataset from workflow handler """ # noqa: E501 dataset: StrictStr - upload: StrictStr + upload: UUID __properties: ClassVar[List[str]] = ["dataset", "upload"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/resource.py b/python/geoengine_openapi_client/models/resource.py index d7f59bef..4cb545f1 100644 --- a/python/geoengine_openapi_client/models/resource.py +++ b/python/geoengine_openapi_client/models/resource.py @@ -158,36 +158,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = DataProviderResource.from_json(json_str) return instance - # check if data type is `DataProviderResource` - if _data_type == "DataProviderResource": - instance.actual_instance = DataProviderResource.from_json(json_str) - return instance - - # check if data type is `DatasetResource` - if _data_type == "DatasetResource": - instance.actual_instance = DatasetResource.from_json(json_str) - return instance - - # check if data type is `LayerCollectionResource` - if _data_type == "LayerCollectionResource": - instance.actual_instance = LayerCollectionResource.from_json(json_str) - return instance - - # check if data type is `LayerResource` - if _data_type == "LayerResource": - instance.actual_instance = LayerResource.from_json(json_str) - return instance - - # check if data type is `MlModelResource` - if _data_type == "MlModelResource": - instance.actual_instance = MlModelResource.from_json(json_str) - return instance - - # check if data type is `ProjectResource` - if _data_type == "ProjectResource": - instance.actual_instance = ProjectResource.from_json(json_str) - return instance - # deserialize data into LayerResource try: instance.actual_instance = LayerResource.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/role.py b/python/geoengine_openapi_client/models/role.py index ea00a20b..fbc7f570 100644 --- a/python/geoengine_openapi_client/models/role.py +++ b/python/geoengine_openapi_client/models/role.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class Role(BaseModel): """ Role """ # noqa: E501 - id: StrictStr + id: UUID name: StrictStr __properties: ClassVar[List[str]] = ["id", "name"] diff --git a/python/geoengine_openapi_client/models/sentinel_s2_l2_a_cogs_provider_definition.py b/python/geoengine_openapi_client/models/sentinel_s2_l2_a_cogs_provider_definition.py index 14a670a2..178d7398 100644 --- a/python/geoengine_openapi_client/models/sentinel_s2_l2_a_cogs_provider_definition.py +++ b/python/geoengine_openapi_client/models/sentinel_s2_l2_a_cogs_provider_definition.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from uuid import UUID from geoengine_openapi_client.models.stac_api_retries import StacApiRetries from geoengine_openapi_client.models.stac_band import StacBand from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer @@ -37,7 +38,7 @@ class SentinelS2L2ACogsProviderDefinition(BaseModel): cache_ttl: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="cacheTtl") description: StrictStr gdal_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="gdalRetries") - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None query_buffer: Optional[StacQueryBuffer] = Field(default=None, alias="queryBuffer") diff --git a/python/geoengine_openapi_client/models/symbology.py b/python/geoengine_openapi_client/models/symbology.py index 2099ae20..97fed3a2 100644 --- a/python/geoengine_openapi_client/models/symbology.py +++ b/python/geoengine_openapi_client/models/symbology.py @@ -132,26 +132,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = RasterSymbology.from_json(json_str) return instance - # check if data type is `LineSymbology` - if _data_type == "LineSymbology": - instance.actual_instance = LineSymbology.from_json(json_str) - return instance - - # check if data type is `PointSymbology` - if _data_type == "PointSymbology": - instance.actual_instance = PointSymbology.from_json(json_str) - return instance - - # check if data type is `PolygonSymbology` - if _data_type == "PolygonSymbology": - instance.actual_instance = PolygonSymbology.from_json(json_str) - return instance - - # check if data type is `RasterSymbology` - if _data_type == "RasterSymbology": - instance.actual_instance = RasterSymbology.from_json(json_str) - return instance - # deserialize data into RasterSymbology try: instance.actual_instance = RasterSymbology.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/task_response.py b/python/geoengine_openapi_client/models/task_response.py index ed116e54..fab574d0 100644 --- a/python/geoengine_openapi_client/models/task_response.py +++ b/python/geoengine_openapi_client/models/task_response.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class TaskResponse(BaseModel): """ Create a task somewhere and respond with a task id to query the task status. """ # noqa: E501 - task_id: StrictStr = Field(alias="taskId") + task_id: UUID = Field(alias="taskId") __properties: ClassVar[List[str]] = ["taskId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/task_status.py b/python/geoengine_openapi_client/models/task_status.py index 3f6dddbc..38b0a1d6 100644 --- a/python/geoengine_openapi_client/models/task_status.py +++ b/python/geoengine_openapi_client/models/task_status.py @@ -133,26 +133,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TaskStatusRunning.from_json(json_str) return instance - # check if data type is `TaskStatusAborted` - if _data_type == "TaskStatusAborted": - instance.actual_instance = TaskStatusAborted.from_json(json_str) - return instance - - # check if data type is `TaskStatusCompleted` - if _data_type == "TaskStatusCompleted": - instance.actual_instance = TaskStatusCompleted.from_json(json_str) - return instance - - # check if data type is `TaskStatusFailed` - if _data_type == "TaskStatusFailed": - instance.actual_instance = TaskStatusFailed.from_json(json_str) - return instance - - # check if data type is `TaskStatusRunning` - if _data_type == "TaskStatusRunning": - instance.actual_instance = TaskStatusRunning.from_json(json_str) - return instance - # check if data type is `TaskStatusWithId` if _data_type == "TaskStatusWithId": instance.actual_instance = TaskStatusWithId.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/task_status_with_id.py b/python/geoengine_openapi_client/models/task_status_with_id.py index edf00e63..d48804dd 100644 --- a/python/geoengine_openapi_client/models/task_status_with_id.py +++ b/python/geoengine_openapi_client/models/task_status_with_id.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from uuid import UUID from geoengine_openapi_client.models.task_status import TaskStatus from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class TaskStatusWithId(TaskStatus): """ TaskStatusWithId """ # noqa: E501 - task_id: StrictStr = Field(alias="taskId") + task_id: UUID = Field(alias="taskId") __properties: ClassVar[List[str]] = ["description", "estimatedTimeRemaining", "info", "pctComplete", "status", "taskType", "timeStarted", "timeTotal", "cleanUp", "error", "taskId"] model_config = ConfigDict( diff --git a/python/geoengine_openapi_client/models/typed_data_provider_definition.py b/python/geoengine_openapi_client/models/typed_data_provider_definition.py index e481b279..5529a310 100644 --- a/python/geoengine_openapi_client/models/typed_data_provider_definition.py +++ b/python/geoengine_openapi_client/models/typed_data_provider_definition.py @@ -236,66 +236,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = WildliveDataConnectorDefinition.from_json(json_str) return instance - # check if data type is `ArunaDataProviderDefinition` - if _data_type == "ArunaDataProviderDefinition": - instance.actual_instance = ArunaDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `CopernicusDataspaceDataProviderDefinition` - if _data_type == "CopernicusDataspaceDataProviderDefinition": - instance.actual_instance = CopernicusDataspaceDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `DatasetLayerListingProviderDefinition` - if _data_type == "DatasetLayerListingProviderDefinition": - instance.actual_instance = DatasetLayerListingProviderDefinition.from_json(json_str) - return instance - - # check if data type is `EbvPortalDataProviderDefinition` - if _data_type == "EbvPortalDataProviderDefinition": - instance.actual_instance = EbvPortalDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `EdrDataProviderDefinition` - if _data_type == "EdrDataProviderDefinition": - instance.actual_instance = EdrDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `GbifDataProviderDefinition` - if _data_type == "GbifDataProviderDefinition": - instance.actual_instance = GbifDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `GfbioAbcdDataProviderDefinition` - if _data_type == "GfbioAbcdDataProviderDefinition": - instance.actual_instance = GfbioAbcdDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `GfbioCollectionsDataProviderDefinition` - if _data_type == "GfbioCollectionsDataProviderDefinition": - instance.actual_instance = GfbioCollectionsDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `NetCdfCfDataProviderDefinition` - if _data_type == "NetCdfCfDataProviderDefinition": - instance.actual_instance = NetCdfCfDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `PangaeaDataProviderDefinition` - if _data_type == "PangaeaDataProviderDefinition": - instance.actual_instance = PangaeaDataProviderDefinition.from_json(json_str) - return instance - - # check if data type is `SentinelS2L2ACogsProviderDefinition` - if _data_type == "SentinelS2L2ACogsProviderDefinition": - instance.actual_instance = SentinelS2L2ACogsProviderDefinition.from_json(json_str) - return instance - - # check if data type is `WildliveDataConnectorDefinition` - if _data_type == "WildliveDataConnectorDefinition": - instance.actual_instance = WildliveDataConnectorDefinition.from_json(json_str) - return instance - # deserialize data into ArunaDataProviderDefinition try: instance.actual_instance = ArunaDataProviderDefinition.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/typed_result_descriptor.py b/python/geoengine_openapi_client/models/typed_result_descriptor.py index f06c5e53..2f8a0df7 100644 --- a/python/geoengine_openapi_client/models/typed_result_descriptor.py +++ b/python/geoengine_openapi_client/models/typed_result_descriptor.py @@ -119,21 +119,6 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TypedVectorResultDescriptor.from_json(json_str) return instance - # check if data type is `TypedPlotResultDescriptor` - if _data_type == "TypedPlotResultDescriptor": - instance.actual_instance = TypedPlotResultDescriptor.from_json(json_str) - return instance - - # check if data type is `TypedRasterResultDescriptor` - if _data_type == "TypedRasterResultDescriptor": - instance.actual_instance = TypedRasterResultDescriptor.from_json(json_str) - return instance - - # check if data type is `TypedVectorResultDescriptor` - if _data_type == "TypedVectorResultDescriptor": - instance.actual_instance = TypedVectorResultDescriptor.from_json(json_str) - return instance - # deserialize data into TypedPlotResultDescriptor try: instance.actual_instance = TypedPlotResultDescriptor.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/update_project.py b/python/geoengine_openapi_client/models/update_project.py index bad424d7..4de6d979 100644 --- a/python/geoengine_openapi_client/models/update_project.py +++ b/python/geoengine_openapi_client/models/update_project.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from geoengine_openapi_client.models.st_rectangle import STRectangle from geoengine_openapi_client.models.time_step import TimeStep from geoengine_openapi_client.models.vec_update import VecUpdate @@ -32,7 +33,7 @@ class UpdateProject(BaseModel): """ # noqa: E501 bounds: Optional[STRectangle] = None description: Optional[StrictStr] = None - id: StrictStr + id: UUID layers: Optional[List[VecUpdate]] = None name: Optional[StrictStr] = None plots: Optional[List[VecUpdate]] = None diff --git a/python/geoengine_openapi_client/models/user_info.py b/python/geoengine_openapi_client/models/user_info.py index b751f806..e39ec4b7 100644 --- a/python/geoengine_openapi_client/models/user_info.py +++ b/python/geoengine_openapi_client/models/user_info.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class UserInfo(BaseModel): UserInfo """ # noqa: E501 email: Optional[StrictStr] = None - id: StrictStr + id: UUID real_name: Optional[StrictStr] = Field(default=None, alias="realName") __properties: ClassVar[List[str]] = ["email", "id", "realName"] diff --git a/python/geoengine_openapi_client/models/user_session.py b/python/geoengine_openapi_client/models/user_session.py index 15d2ac27..6a9c76e2 100644 --- a/python/geoengine_openapi_client/models/user_session.py +++ b/python/geoengine_openapi_client/models/user_session.py @@ -19,8 +19,9 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from geoengine_openapi_client.models.st_rectangle import STRectangle from geoengine_openapi_client.models.user_info import UserInfo from typing import Optional, Set @@ -31,9 +32,9 @@ class UserSession(BaseModel): UserSession """ # noqa: E501 created: datetime - id: StrictStr - project: Optional[StrictStr] = None - roles: List[StrictStr] + id: UUID + project: Optional[UUID] = None + roles: List[UUID] user: UserInfo valid_until: datetime = Field(alias="validUntil") view: Optional[STRectangle] = None diff --git a/python/geoengine_openapi_client/models/wildlive_data_connector_definition.py b/python/geoengine_openapi_client/models/wildlive_data_connector_definition.py index 62bf47ce..51ec3776 100644 --- a/python/geoengine_openapi_client/models/wildlive_data_connector_definition.py +++ b/python/geoengine_openapi_client/models/wildlive_data_connector_definition.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class WildliveDataConnectorDefinition(BaseModel): """ # noqa: E501 api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") description: StrictStr - id: StrictStr + id: UUID name: StrictStr priority: Optional[StrictInt] = None type: StrictStr diff --git a/python/pyproject.toml b/python/pyproject.toml index e3847c4c..8d22add0 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,23 +1,29 @@ -[tool.poetry] +[project] name = "geoengine_openapi_client" -version = "0.0.27" +version = "0.0.28" description = "Geo Engine API" -authors = ["Geo Engine Developers "] -license = "Apache-2.0" +authors = [ + {name = "Geo Engine Developers",email = "dev@geoengine.de"}, +] +license = { text = "Apache-2.0" } readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" keywords = ["OpenAPI", "OpenAPI-Generator", "Geo Engine API"] -include = ["geoengine_openapi_client/py.typed"] +requires-python = ">=3.9" -[tool.poetry.dependencies] -python = "^3.8" +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)", +] -urllib3 = ">= 1.25.3, < 3.0.0" -python-dateutil = ">= 2.8.2" -pydantic = ">= 2" -typing-extensions = ">= 4.7.1" +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/python/requirements.txt b/python/requirements.txt index 67f7f68d..6cbb2b98 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 1.25.3, < 3.0.0 +urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/python/setup.py b/python/setup.py index a1f3cd1e..3b43ff55 100644 --- a/python/setup.py +++ b/python/setup.py @@ -22,10 +22,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "geoengine-openapi-client" -VERSION = "0.0.27" -PYTHON_REQUIRES = ">= 3.8" +VERSION = "0.0.28" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ - "urllib3 >= 1.25.3, < 3.0.0", + "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", diff --git a/python/test/test_format_specifics.py b/python/test/test_format_specifics.py index 67fa0357..e26c8799 100644 --- a/python/test/test_format_specifics.py +++ b/python/test/test_format_specifics.py @@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> FormatSpecifics: model = FormatSpecifics() if include_optional: return FormatSpecifics( - csv = geoengine_openapi_client.models.format_specifics_one_of_csv.FormatSpecifics_oneOf_csv( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( header = 'yes', ) ) else: return FormatSpecifics( - csv = geoengine_openapi_client.models.format_specifics_one_of_csv.FormatSpecifics_oneOf_csv( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( header = 'yes', ), ) """ diff --git a/python/test/test_format_specifics_one_of_csv.py b/python/test/test_format_specifics_csv.py similarity index 69% rename from python/test/test_format_specifics_one_of_csv.py rename to python/test/test_format_specifics_csv.py index 8dfee509..f404acbb 100644 --- a/python/test/test_format_specifics_one_of_csv.py +++ b/python/test/test_format_specifics_csv.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.format_specifics_one_of_csv import FormatSpecificsOneOfCsv +from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv -class TestFormatSpecificsOneOfCsv(unittest.TestCase): - """FormatSpecificsOneOfCsv unit test stubs""" +class TestFormatSpecificsCsv(unittest.TestCase): + """FormatSpecificsCsv unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FormatSpecificsOneOfCsv: - """Test FormatSpecificsOneOfCsv + def make_instance(self, include_optional) -> FormatSpecificsCsv: + """Test FormatSpecificsCsv include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FormatSpecificsOneOfCsv` + # uncomment below to create an instance of `FormatSpecificsCsv` """ - model = FormatSpecificsOneOfCsv() + model = FormatSpecificsCsv() if include_optional: - return FormatSpecificsOneOfCsv( + return FormatSpecificsCsv( header = 'yes' ) else: - return FormatSpecificsOneOfCsv( + return FormatSpecificsCsv( header = 'yes', ) """ - def testFormatSpecificsOneOfCsv(self): - """Test FormatSpecificsOneOfCsv""" + def testFormatSpecificsCsv(self): + """Test FormatSpecificsCsv""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_format_specifics_one_of.py b/python/test/test_format_specifics_one_of.py deleted file mode 100644 index abe9481a..00000000 --- a/python/test/test_format_specifics_one_of.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - 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 - - -import unittest - -from geoengine_openapi_client.models.format_specifics_one_of import FormatSpecificsOneOf - -class TestFormatSpecificsOneOf(unittest.TestCase): - """FormatSpecificsOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FormatSpecificsOneOf: - """Test FormatSpecificsOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FormatSpecificsOneOf` - """ - model = FormatSpecificsOneOf() - if include_optional: - return FormatSpecificsOneOf( - csv = geoengine_openapi_client.models.format_specifics_one_of_csv.FormatSpecifics_oneOf_csv( - header = 'yes', ) - ) - else: - return FormatSpecificsOneOf( - csv = geoengine_openapi_client.models.format_specifics_one_of_csv.FormatSpecifics_oneOf_csv( - header = 'yes', ), - ) - """ - - def testFormatSpecificsOneOf(self): - """Test FormatSpecificsOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_meta_data_definition.py b/python/test/test_meta_data_definition.py index 6f66d120..6fec0408 100644 --- a/python/test/test_meta_data_definition.py +++ b/python/test/test_meta_data_definition.py @@ -49,7 +49,9 @@ def make_instance(self, include_optional) -> MetaDataDefinition: float = [ '' ], - format_specifics = null, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], @@ -133,7 +135,9 @@ def make_instance(self, include_optional) -> MetaDataDefinition: float = [ '' ], - format_specifics = null, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], diff --git a/python/test/test_ogr_meta_data.py b/python/test/test_ogr_meta_data.py index d7241528..705d942e 100644 --- a/python/test/test_ogr_meta_data.py +++ b/python/test/test_ogr_meta_data.py @@ -49,7 +49,9 @@ def make_instance(self, include_optional) -> OgrMetaData: float = [ '' ], - format_specifics = null, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], @@ -105,7 +107,9 @@ def make_instance(self, include_optional) -> OgrMetaData: float = [ '' ], - format_specifics = null, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], diff --git a/python/test/test_ogr_source_column_spec.py b/python/test/test_ogr_source_column_spec.py index b9f0f1b7..17a65eb5 100644 --- a/python/test/test_ogr_source_column_spec.py +++ b/python/test/test_ogr_source_column_spec.py @@ -45,7 +45,9 @@ def make_instance(self, include_optional) -> OgrSourceColumnSpec: var_float = [ '' ], - format_specifics = None, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], diff --git a/python/test/test_ogr_source_dataset.py b/python/test/test_ogr_source_dataset.py index 4eefdcb5..e8369f3c 100644 --- a/python/test/test_ogr_source_dataset.py +++ b/python/test/test_ogr_source_dataset.py @@ -48,7 +48,9 @@ def make_instance(self, include_optional) -> OgrSourceDataset: float = [ '' ], - format_specifics = null, + format_specifics = geoengine_openapi_client.models.format_specifics.FormatSpecifics( + csv = geoengine_openapi_client.models.format_specifics_csv.FormatSpecifics_csv( + header = 'yes', ), ), int = [ '' ], diff --git a/python/test/test_typed_result_descriptor.py b/python/test/test_typed_result_descriptor.py index 2ac0d37e..fe0f85a1 100644 --- a/python/test/test_typed_result_descriptor.py +++ b/python/test/test_typed_result_descriptor.py @@ -36,11 +36,6 @@ def make_instance(self, include_optional) -> TypedResultDescriptor: model = TypedResultDescriptor() if include_optional: return TypedResultDescriptor( - bands = [ - geoengine_openapi_client.models.raster_band_descriptor.RasterBandDescriptor( - measurement = null, - name = '', ) - ], bbox = geoengine_openapi_client.models.bounding_box2_d.BoundingBox2D( lower_left_coordinate = geoengine_openapi_client.models.coordinate2_d.Coordinate2D( x = 1.337, @@ -48,15 +43,20 @@ def make_instance(self, include_optional) -> TypedResultDescriptor: upper_right_coordinate = geoengine_openapi_client.models.coordinate2_d.Coordinate2D( x = 1.337, y = 1.337, ), ), - data_type = 'Data', - resolution = geoengine_openapi_client.models.spatial_resolution.SpatialResolution( - x = 1.337, - y = 1.337, ), spatial_reference = '', time = geoengine_openapi_client.models.time_interval.TimeInterval( end = 56, start = 56, ), - type = 'raster', + type = 'plot', + bands = [ + geoengine_openapi_client.models.raster_band_descriptor.RasterBandDescriptor( + measurement = null, + name = '', ) + ], + data_type = 'Data', + resolution = geoengine_openapi_client.models.spatial_resolution.SpatialResolution( + x = 1.337, + y = 1.337, ), columns = { 'key' : geoengine_openapi_client.models.vector_column_info.VectorColumnInfo( data_type = 'category', @@ -65,14 +65,14 @@ def make_instance(self, include_optional) -> TypedResultDescriptor: ) else: return TypedResultDescriptor( + spatial_reference = '', + type = 'plot', bands = [ geoengine_openapi_client.models.raster_band_descriptor.RasterBandDescriptor( measurement = null, name = '', ) ], data_type = 'Data', - spatial_reference = '', - type = 'raster', columns = { 'key' : geoengine_openapi_client.models.vector_column_info.VectorColumnInfo( data_type = 'category', diff --git a/rust/.gitignore b/rust/.gitignore new file mode 100644 index 00000000..6aa10640 --- /dev/null +++ b/rust/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/rust/.openapi-generator-ignore b/rust/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/rust/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/rust/.openapi-generator/FILES b/rust/.openapi-generator/FILES new file mode 100644 index 00000000..964fb323 --- /dev/null +++ b/rust/.openapi-generator/FILES @@ -0,0 +1,525 @@ +.gitignore +.travis.yml +Cargo.toml +README.md +docs/AddDataset.md +docs/AddLayer.md +docs/AddLayerCollection.md +docs/AddRole.md +docs/ArunaDataProviderDefinition.md +docs/AuthCodeRequestUrl.md +docs/AuthCodeResponse.md +docs/AutoCreateDataset.md +docs/AxisOrder.md +docs/BoundingBox2D.md +docs/Breakpoint.md +docs/ClassificationMeasurement.md +docs/CollectionItem.md +docs/CollectionType.md +docs/ColorParam.md +docs/Colorizer.md +docs/ComputationQuota.md +docs/ContinuousMeasurement.md +docs/Coordinate2D.md +docs/CopernicusDataspaceDataProviderDefinition.md +docs/CreateDataset.md +docs/CreateProject.md +docs/CsvHeader.md +docs/DataId.md +docs/DataPath.md +docs/DataPathOneOf.md +docs/DataPathOneOf1.md +docs/DataProviderResource.md +docs/DataUsage.md +docs/DataUsageSummary.md +docs/DatabaseConnectionConfig.md +docs/Dataset.md +docs/DatasetDefinition.md +docs/DatasetLayerListingCollection.md +docs/DatasetLayerListingProviderDefinition.md +docs/DatasetListing.md +docs/DatasetNameResponse.md +docs/DatasetResource.md +docs/DatasetsApi.md +docs/DerivedColor.md +docs/DerivedNumber.md +docs/DescribeCoverageRequest.md +docs/EbvPortalDataProviderDefinition.md +docs/EdrDataProviderDefinition.md +docs/EdrVectorSpec.md +docs/ErrorResponse.md +docs/ExternalDataId.md +docs/FeatureDataType.md +docs/FileNotFoundHandling.md +docs/FormatSpecifics.md +docs/FormatSpecificsCsv.md +docs/GbifDataProviderDefinition.md +docs/GdalDatasetGeoTransform.md +docs/GdalDatasetParameters.md +docs/GdalLoadingInfoTemporalSlice.md +docs/GdalMetaDataList.md +docs/GdalMetaDataRegular.md +docs/GdalMetaDataStatic.md +docs/GdalMetadataMapping.md +docs/GdalMetadataNetCdfCf.md +docs/GdalSourceTimePlaceholder.md +docs/GeneralApi.md +docs/GeoJson.md +docs/GetCapabilitiesFormat.md +docs/GetCapabilitiesRequest.md +docs/GetCoverageFormat.md +docs/GetCoverageRequest.md +docs/GetFeatureRequest.md +docs/GetLegendGraphicRequest.md +docs/GetMapExceptionFormat.md +docs/GetMapFormat.md +docs/GetMapRequest.md +docs/GfbioAbcdDataProviderDefinition.md +docs/GfbioCollectionsDataProviderDefinition.md +docs/IdResponse.md +docs/InternalDataId.md +docs/Layer.md +docs/LayerCollection.md +docs/LayerCollectionListing.md +docs/LayerCollectionResource.md +docs/LayerListing.md +docs/LayerProviderListing.md +docs/LayerResource.md +docs/LayerVisibility.md +docs/LayersApi.md +docs/LineSymbology.md +docs/LinearGradient.md +docs/LogarithmicGradient.md +docs/Measurement.md +docs/MetaDataDefinition.md +docs/MetaDataSuggestion.md +docs/MlApi.md +docs/MlModel.md +docs/MlModelInputNoDataHandling.md +docs/MlModelInputNoDataHandlingVariant.md +docs/MlModelMetadata.md +docs/MlModelNameResponse.md +docs/MlModelOutputNoDataHandling.md +docs/MlModelOutputNoDataHandlingVariant.md +docs/MlModelResource.md +docs/MlTensorShape3D.md +docs/MockDatasetDataSourceLoadingInfo.md +docs/MockMetaData.md +docs/MultiBandRasterColorizer.md +docs/MultiLineString.md +docs/MultiPoint.md +docs/MultiPolygon.md +docs/NetCdfCfDataProviderDefinition.md +docs/NumberParam.md +docs/OgcwcsApi.md +docs/OgcwfsApi.md +docs/OgcwmsApi.md +docs/OgrMetaData.md +docs/OgrSourceColumnSpec.md +docs/OgrSourceDataset.md +docs/OgrSourceDatasetTimeType.md +docs/OgrSourceDatasetTimeTypeNone.md +docs/OgrSourceDatasetTimeTypeStart.md +docs/OgrSourceDatasetTimeTypeStartDuration.md +docs/OgrSourceDatasetTimeTypeStartEnd.md +docs/OgrSourceDurationSpec.md +docs/OgrSourceDurationSpecInfinite.md +docs/OgrSourceDurationSpecValue.md +docs/OgrSourceDurationSpecZero.md +docs/OgrSourceErrorSpec.md +docs/OgrSourceTimeFormat.md +docs/OgrSourceTimeFormatAuto.md +docs/OgrSourceTimeFormatCustom.md +docs/OgrSourceTimeFormatUnixTimeStamp.md +docs/OperatorQuota.md +docs/OrderBy.md +docs/PaletteColorizer.md +docs/PangaeaDataProviderDefinition.md +docs/Permission.md +docs/PermissionListOptions.md +docs/PermissionListing.md +docs/PermissionRequest.md +docs/PermissionsApi.md +docs/Plot.md +docs/PlotOutputFormat.md +docs/PlotQueryRectangle.md +docs/PlotResultDescriptor.md +docs/PlotsApi.md +docs/PointSymbology.md +docs/PolygonSymbology.md +docs/Project.md +docs/ProjectLayer.md +docs/ProjectListing.md +docs/ProjectResource.md +docs/ProjectUpdateToken.md +docs/ProjectVersion.md +docs/ProjectsApi.md +docs/Provenance.md +docs/ProvenanceEntry.md +docs/ProvenanceOutput.md +docs/Provenances.md +docs/ProviderCapabilities.md +docs/ProviderLayerCollectionId.md +docs/ProviderLayerId.md +docs/Quota.md +docs/RasterBandDescriptor.md +docs/RasterColorizer.md +docs/RasterDataType.md +docs/RasterDatasetFromWorkflow.md +docs/RasterDatasetFromWorkflowResult.md +docs/RasterPropertiesEntryType.md +docs/RasterPropertiesKey.md +docs/RasterQueryRectangle.md +docs/RasterResultDescriptor.md +docs/RasterStreamWebsocketResultType.md +docs/RasterSymbology.md +docs/Resource.md +docs/Role.md +docs/RoleDescription.md +docs/SearchCapabilities.md +docs/SearchType.md +docs/SearchTypes.md +docs/SentinelS2L2ACogsProviderDefinition.md +docs/ServerInfo.md +docs/SessionApi.md +docs/SingleBandRasterColorizer.md +docs/SpatialPartition2D.md +docs/SpatialReferenceAuthority.md +docs/SpatialReferenceSpecification.md +docs/SpatialReferencesApi.md +docs/SpatialResolution.md +docs/StRectangle.md +docs/StacApiRetries.md +docs/StacBand.md +docs/StacQueryBuffer.md +docs/StacZone.md +docs/StaticColor.md +docs/StaticNumber.md +docs/StrokeParam.md +docs/SuggestMetaData.md +docs/Symbology.md +docs/TaskAbortOptions.md +docs/TaskFilter.md +docs/TaskListOptions.md +docs/TaskResponse.md +docs/TaskStatus.md +docs/TaskStatusAborted.md +docs/TaskStatusCompleted.md +docs/TaskStatusFailed.md +docs/TaskStatusRunning.md +docs/TaskStatusWithId.md +docs/TasksApi.md +docs/TextSymbology.md +docs/TimeGranularity.md +docs/TimeInterval.md +docs/TimeReference.md +docs/TimeStep.md +docs/TypedDataProviderDefinition.md +docs/TypedGeometry.md +docs/TypedGeometryOneOf.md +docs/TypedGeometryOneOf1.md +docs/TypedGeometryOneOf2.md +docs/TypedGeometryOneOf3.md +docs/TypedOperator.md +docs/TypedOperatorOperator.md +docs/TypedPlotResultDescriptor.md +docs/TypedRasterResultDescriptor.md +docs/TypedResultDescriptor.md +docs/TypedVectorResultDescriptor.md +docs/UnitlessMeasurement.md +docs/UnixTimeStampType.md +docs/UpdateDataset.md +docs/UpdateLayer.md +docs/UpdateLayerCollection.md +docs/UpdateProject.md +docs/UpdateQuota.md +docs/UploadFileLayersResponse.md +docs/UploadFilesResponse.md +docs/UploadsApi.md +docs/UsageSummaryGranularity.md +docs/UserApi.md +docs/UserCredentials.md +docs/UserInfo.md +docs/UserRegistration.md +docs/UserSession.md +docs/VecUpdate.md +docs/VectorColumnInfo.md +docs/VectorDataType.md +docs/VectorQueryRectangle.md +docs/VectorResultDescriptor.md +docs/Volume.md +docs/VolumeFileLayersResponse.md +docs/WcsBoundingbox.md +docs/WcsService.md +docs/WcsVersion.md +docs/WfsService.md +docs/WfsVersion.md +docs/WildliveDataConnectorDefinition.md +docs/WmsService.md +docs/WmsVersion.md +docs/Workflow.md +docs/WorkflowsApi.md +docs/WrappedPlotOutput.md +git_push.sh +src/apis/configuration.rs +src/apis/datasets_api.rs +src/apis/general_api.rs +src/apis/layers_api.rs +src/apis/ml_api.rs +src/apis/mod.rs +src/apis/ogcwcs_api.rs +src/apis/ogcwfs_api.rs +src/apis/ogcwms_api.rs +src/apis/permissions_api.rs +src/apis/plots_api.rs +src/apis/projects_api.rs +src/apis/session_api.rs +src/apis/spatial_references_api.rs +src/apis/tasks_api.rs +src/apis/uploads_api.rs +src/apis/user_api.rs +src/apis/workflows_api.rs +src/lib.rs +src/models/add_dataset.rs +src/models/add_layer.rs +src/models/add_layer_collection.rs +src/models/add_role.rs +src/models/aruna_data_provider_definition.rs +src/models/auth_code_request_url.rs +src/models/auth_code_response.rs +src/models/auto_create_dataset.rs +src/models/axis_order.rs +src/models/bounding_box2_d.rs +src/models/breakpoint.rs +src/models/classification_measurement.rs +src/models/collection_item.rs +src/models/collection_type.rs +src/models/color_param.rs +src/models/colorizer.rs +src/models/computation_quota.rs +src/models/continuous_measurement.rs +src/models/coordinate2_d.rs +src/models/copernicus_dataspace_data_provider_definition.rs +src/models/create_dataset.rs +src/models/create_project.rs +src/models/csv_header.rs +src/models/data_id.rs +src/models/data_path.rs +src/models/data_path_one_of.rs +src/models/data_path_one_of_1.rs +src/models/data_provider_resource.rs +src/models/data_usage.rs +src/models/data_usage_summary.rs +src/models/database_connection_config.rs +src/models/dataset.rs +src/models/dataset_definition.rs +src/models/dataset_layer_listing_collection.rs +src/models/dataset_layer_listing_provider_definition.rs +src/models/dataset_listing.rs +src/models/dataset_name_response.rs +src/models/dataset_resource.rs +src/models/derived_color.rs +src/models/derived_number.rs +src/models/describe_coverage_request.rs +src/models/ebv_portal_data_provider_definition.rs +src/models/edr_data_provider_definition.rs +src/models/edr_vector_spec.rs +src/models/error_response.rs +src/models/external_data_id.rs +src/models/feature_data_type.rs +src/models/file_not_found_handling.rs +src/models/format_specifics.rs +src/models/format_specifics_csv.rs +src/models/gbif_data_provider_definition.rs +src/models/gdal_dataset_geo_transform.rs +src/models/gdal_dataset_parameters.rs +src/models/gdal_loading_info_temporal_slice.rs +src/models/gdal_meta_data_list.rs +src/models/gdal_meta_data_regular.rs +src/models/gdal_meta_data_static.rs +src/models/gdal_metadata_mapping.rs +src/models/gdal_metadata_net_cdf_cf.rs +src/models/gdal_source_time_placeholder.rs +src/models/geo_json.rs +src/models/get_capabilities_format.rs +src/models/get_capabilities_request.rs +src/models/get_coverage_format.rs +src/models/get_coverage_request.rs +src/models/get_feature_request.rs +src/models/get_legend_graphic_request.rs +src/models/get_map_exception_format.rs +src/models/get_map_format.rs +src/models/get_map_request.rs +src/models/gfbio_abcd_data_provider_definition.rs +src/models/gfbio_collections_data_provider_definition.rs +src/models/id_response.rs +src/models/internal_data_id.rs +src/models/layer.rs +src/models/layer_collection.rs +src/models/layer_collection_listing.rs +src/models/layer_collection_resource.rs +src/models/layer_listing.rs +src/models/layer_provider_listing.rs +src/models/layer_resource.rs +src/models/layer_visibility.rs +src/models/line_symbology.rs +src/models/linear_gradient.rs +src/models/logarithmic_gradient.rs +src/models/measurement.rs +src/models/meta_data_definition.rs +src/models/meta_data_suggestion.rs +src/models/ml_model.rs +src/models/ml_model_input_no_data_handling.rs +src/models/ml_model_input_no_data_handling_variant.rs +src/models/ml_model_metadata.rs +src/models/ml_model_name_response.rs +src/models/ml_model_output_no_data_handling.rs +src/models/ml_model_output_no_data_handling_variant.rs +src/models/ml_model_resource.rs +src/models/ml_tensor_shape3_d.rs +src/models/mock_dataset_data_source_loading_info.rs +src/models/mock_meta_data.rs +src/models/mod.rs +src/models/multi_band_raster_colorizer.rs +src/models/multi_line_string.rs +src/models/multi_point.rs +src/models/multi_polygon.rs +src/models/net_cdf_cf_data_provider_definition.rs +src/models/number_param.rs +src/models/ogr_meta_data.rs +src/models/ogr_source_column_spec.rs +src/models/ogr_source_dataset.rs +src/models/ogr_source_dataset_time_type.rs +src/models/ogr_source_dataset_time_type_none.rs +src/models/ogr_source_dataset_time_type_start.rs +src/models/ogr_source_dataset_time_type_start_duration.rs +src/models/ogr_source_dataset_time_type_start_end.rs +src/models/ogr_source_duration_spec.rs +src/models/ogr_source_duration_spec_infinite.rs +src/models/ogr_source_duration_spec_value.rs +src/models/ogr_source_duration_spec_zero.rs +src/models/ogr_source_error_spec.rs +src/models/ogr_source_time_format.rs +src/models/ogr_source_time_format_auto.rs +src/models/ogr_source_time_format_custom.rs +src/models/ogr_source_time_format_unix_time_stamp.rs +src/models/operator_quota.rs +src/models/order_by.rs +src/models/palette_colorizer.rs +src/models/pangaea_data_provider_definition.rs +src/models/permission.rs +src/models/permission_list_options.rs +src/models/permission_listing.rs +src/models/permission_request.rs +src/models/plot.rs +src/models/plot_output_format.rs +src/models/plot_query_rectangle.rs +src/models/plot_result_descriptor.rs +src/models/point_symbology.rs +src/models/polygon_symbology.rs +src/models/project.rs +src/models/project_layer.rs +src/models/project_listing.rs +src/models/project_resource.rs +src/models/project_update_token.rs +src/models/project_version.rs +src/models/provenance.rs +src/models/provenance_entry.rs +src/models/provenance_output.rs +src/models/provenances.rs +src/models/provider_capabilities.rs +src/models/provider_layer_collection_id.rs +src/models/provider_layer_id.rs +src/models/quota.rs +src/models/raster_band_descriptor.rs +src/models/raster_colorizer.rs +src/models/raster_data_type.rs +src/models/raster_dataset_from_workflow.rs +src/models/raster_dataset_from_workflow_result.rs +src/models/raster_properties_entry_type.rs +src/models/raster_properties_key.rs +src/models/raster_query_rectangle.rs +src/models/raster_result_descriptor.rs +src/models/raster_stream_websocket_result_type.rs +src/models/raster_symbology.rs +src/models/resource.rs +src/models/role.rs +src/models/role_description.rs +src/models/search_capabilities.rs +src/models/search_type.rs +src/models/search_types.rs +src/models/sentinel_s2_l2_a_cogs_provider_definition.rs +src/models/server_info.rs +src/models/single_band_raster_colorizer.rs +src/models/spatial_partition2_d.rs +src/models/spatial_reference_authority.rs +src/models/spatial_reference_specification.rs +src/models/spatial_resolution.rs +src/models/st_rectangle.rs +src/models/stac_api_retries.rs +src/models/stac_band.rs +src/models/stac_query_buffer.rs +src/models/stac_zone.rs +src/models/static_color.rs +src/models/static_number.rs +src/models/stroke_param.rs +src/models/suggest_meta_data.rs +src/models/symbology.rs +src/models/task_abort_options.rs +src/models/task_filter.rs +src/models/task_list_options.rs +src/models/task_response.rs +src/models/task_status.rs +src/models/task_status_aborted.rs +src/models/task_status_completed.rs +src/models/task_status_failed.rs +src/models/task_status_running.rs +src/models/task_status_with_id.rs +src/models/text_symbology.rs +src/models/time_granularity.rs +src/models/time_interval.rs +src/models/time_reference.rs +src/models/time_step.rs +src/models/typed_data_provider_definition.rs +src/models/typed_geometry.rs +src/models/typed_geometry_one_of.rs +src/models/typed_geometry_one_of_1.rs +src/models/typed_geometry_one_of_2.rs +src/models/typed_geometry_one_of_3.rs +src/models/typed_operator.rs +src/models/typed_operator_operator.rs +src/models/typed_plot_result_descriptor.rs +src/models/typed_raster_result_descriptor.rs +src/models/typed_result_descriptor.rs +src/models/typed_vector_result_descriptor.rs +src/models/unitless_measurement.rs +src/models/unix_time_stamp_type.rs +src/models/update_dataset.rs +src/models/update_layer.rs +src/models/update_layer_collection.rs +src/models/update_project.rs +src/models/update_quota.rs +src/models/upload_file_layers_response.rs +src/models/upload_files_response.rs +src/models/usage_summary_granularity.rs +src/models/user_credentials.rs +src/models/user_info.rs +src/models/user_registration.rs +src/models/user_session.rs +src/models/vec_update.rs +src/models/vector_column_info.rs +src/models/vector_data_type.rs +src/models/vector_query_rectangle.rs +src/models/vector_result_descriptor.rs +src/models/volume.rs +src/models/volume_file_layers_response.rs +src/models/wcs_boundingbox.rs +src/models/wcs_service.rs +src/models/wcs_version.rs +src/models/wfs_service.rs +src/models/wfs_version.rs +src/models/wildlive_data_connector_definition.rs +src/models/wms_service.rs +src/models/wms_version.rs +src/models/workflow.rs +src/models/wrapped_plot_output.rs diff --git a/rust/.openapi-generator/VERSION b/rust/.openapi-generator/VERSION new file mode 100644 index 00000000..6328c542 --- /dev/null +++ b/rust/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.17.0 diff --git a/rust/.travis.yml b/rust/.travis.yml new file mode 100644 index 00000000..22761ba7 --- /dev/null +++ b/rust/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 00000000..b7f0898f --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "geoengine-openapi-client" +version = "0.0.28" +authors = ["dev@geoengine.de"] +description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +license = "Apache-2.0" +edition = "2021" + +[dependencies] +serde = { version = "^1.0", features = ["derive"] } +serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] } +serde_json = "^1.0" +serde_repr = "^0.1" +url = "^2.5" +uuid = { version = "^1.8", features = ["serde", "v4"] } +reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] } + +[features] +default = ["native-tls"] +native-tls = ["reqwest/native-tls"] +rustls-tls = ["reqwest/rustls-tls"] diff --git a/rust/README.md b/rust/README.md new file mode 100644 index 00000000..ea7b52a6 --- /dev/null +++ b/rust/README.md @@ -0,0 +1,382 @@ +# Rust API client for geoengine-openapi-client + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. + +- API version: 0.8.0 +- Package version: 0.0.28 +- Generator version: 7.17.0 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` + +## Installation + +Put the package under your project folder in a directory named `geoengine-openapi-client` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +geoengine-openapi-client = { path = "./geoengine-openapi-client" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://geoengine.io/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. The format of the files will be automatically detected when possible. +*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_volume_file_layers_handler**](docs/DatasetsApi.md#list_volume_file_layers_handler) | **GET** /dataset/volumes/{volume_name}/files/{file_name}/layers | List the layers of a file in a volume. +*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) | **POST** /dataset/suggest | Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. +*DatasetsApi* | [**update_dataset_handler**](docs/DatasetsApi.md#update_dataset_handler) | **POST** /dataset/{dataset} | Update details about a dataset using the internal name. +*DatasetsApi* | [**update_dataset_provenance_handler**](docs/DatasetsApi.md#update_dataset_provenance_handler) | **PUT** /dataset/{dataset}/provenance | +*DatasetsApi* | [**update_dataset_symbology_handler**](docs/DatasetsApi.md#update_dataset_symbology_handler) | **PUT** /dataset/{dataset}/symbology | Updates the dataset's symbology +*DatasetsApi* | [**update_loading_info_handler**](docs/DatasetsApi.md#update_loading_info_handler) | **PUT** /dataset/{dataset}/loadingInfo | Updates the dataset's loading info +*GeneralApi* | [**available_handler**](docs/GeneralApi.md#available_handler) | **GET** /available | Server availablity check. +*GeneralApi* | [**server_info_handler**](docs/GeneralApi.md#server_info_handler) | **GET** /info | Shows information about the server software version. +*LayersApi* | [**add_collection**](docs/LayersApi.md#add_collection) | **POST** /layerDb/collections/{collection}/collections | Add a new collection to an existing collection +*LayersApi* | [**add_existing_collection_to_collection**](docs/LayersApi.md#add_existing_collection_to_collection) | **POST** /layerDb/collections/{parent}/collections/{collection} | Add an existing collection to a collection +*LayersApi* | [**add_existing_layer_to_collection**](docs/LayersApi.md#add_existing_layer_to_collection) | **POST** /layerDb/collections/{collection}/layers/{layer} | Add an existing layer to a collection +*LayersApi* | [**add_layer**](docs/LayersApi.md#add_layer) | **POST** /layerDb/collections/{collection}/layers | Add a new layer to a collection +*LayersApi* | [**add_provider**](docs/LayersApi.md#add_provider) | **POST** /layerDb/providers | Add a new provider +*LayersApi* | [**autocomplete_handler**](docs/LayersApi.md#autocomplete_handler) | **GET** /layers/collections/search/autocomplete/{provider}/{collection} | Autocompletes the search on the contents of the collection of the given provider +*LayersApi* | [**delete_provider**](docs/LayersApi.md#delete_provider) | **DELETE** /layerDb/providers/{provider} | Delete an existing provider +*LayersApi* | [**get_provider_definition**](docs/LayersApi.md#get_provider_definition) | **GET** /layerDb/providers/{provider} | Get an existing provider's definition +*LayersApi* | [**layer_handler**](docs/LayersApi.md#layer_handler) | **GET** /layers/{provider}/{layer} | Retrieves the layer of the given provider +*LayersApi* | [**layer_to_dataset**](docs/LayersApi.md#layer_to_dataset) | **POST** /layers/{provider}/{layer}/dataset | Persist a raster layer from a provider as a dataset. +*LayersApi* | [**layer_to_workflow_id_handler**](docs/LayersApi.md#layer_to_workflow_id_handler) | **POST** /layers/{provider}/{layer}/workflowId | Registers a layer from a provider as a workflow and returns the workflow id +*LayersApi* | [**list_collection_handler**](docs/LayersApi.md#list_collection_handler) | **GET** /layers/collections/{provider}/{collection} | List the contents of the collection of the given provider +*LayersApi* | [**list_providers**](docs/LayersApi.md#list_providers) | **GET** /layerDb/providers | List all providers +*LayersApi* | [**list_root_collections_handler**](docs/LayersApi.md#list_root_collections_handler) | **GET** /layers/collections | List all layer collections +*LayersApi* | [**provider_capabilities_handler**](docs/LayersApi.md#provider_capabilities_handler) | **GET** /layers/{provider}/capabilities | +*LayersApi* | [**remove_collection**](docs/LayersApi.md#remove_collection) | **DELETE** /layerDb/collections/{collection} | Remove a collection +*LayersApi* | [**remove_collection_from_collection**](docs/LayersApi.md#remove_collection_from_collection) | **DELETE** /layerDb/collections/{parent}/collections/{collection} | Delete a collection from a collection +*LayersApi* | [**remove_layer**](docs/LayersApi.md#remove_layer) | **DELETE** /layerDb/layers/{layer} | Remove a collection +*LayersApi* | [**remove_layer_from_collection**](docs/LayersApi.md#remove_layer_from_collection) | **DELETE** /layerDb/collections/{collection}/layers/{layer} | Remove a layer from a collection +*LayersApi* | [**search_handler**](docs/LayersApi.md#search_handler) | **GET** /layers/collections/search/{provider}/{collection} | Searches the contents of the collection of the given provider +*LayersApi* | [**update_collection**](docs/LayersApi.md#update_collection) | **PUT** /layerDb/collections/{collection} | Update a collection +*LayersApi* | [**update_layer**](docs/LayersApi.md#update_layer) | **PUT** /layerDb/layers/{layer} | Update a layer +*LayersApi* | [**update_provider_definition**](docs/LayersApi.md#update_provider_definition) | **PUT** /layerDb/providers/{provider} | Update an existing provider's definition +*MlApi* | [**add_ml_model**](docs/MlApi.md#add_ml_model) | **POST** /ml/models | Create a new ml model. +*MlApi* | [**get_ml_model**](docs/MlApi.md#get_ml_model) | **GET** /ml/models/{model_name} | Get ml model by name. +*MlApi* | [**list_ml_models**](docs/MlApi.md#list_ml_models) | **GET** /ml/models | List ml models. +*OgcwcsApi* | [**wcs_capabilities_handler**](docs/OgcwcsApi.md#wcs_capabilities_handler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities +*OgcwcsApi* | [**wcs_describe_coverage_handler**](docs/OgcwcsApi.md#wcs_describe_coverage_handler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description +*OgcwcsApi* | [**wcs_get_coverage_handler**](docs/OgcwcsApi.md#wcs_get_coverage_handler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage +*OgcwfsApi* | [**wfs_capabilities_handler**](docs/OgcwfsApi.md#wfs_capabilities_handler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities +*OgcwfsApi* | [**wfs_feature_handler**](docs/OgcwfsApi.md#wfs_feature_handler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features +*OgcwmsApi* | [**wms_capabilities_handler**](docs/OgcwmsApi.md#wms_capabilities_handler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities +*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. +*ProjectsApi* | [**delete_project_handler**](docs/ProjectsApi.md#delete_project_handler) | **DELETE** /project/{project} | Deletes a project. +*ProjectsApi* | [**list_projects_handler**](docs/ProjectsApi.md#list_projects_handler) | **GET** /projects | List all projects accessible to the user that match the selected criteria. +*ProjectsApi* | [**load_project_latest_handler**](docs/ProjectsApi.md#load_project_latest_handler) | **GET** /project/{project} | Retrieves details about the latest version of a project. +*ProjectsApi* | [**load_project_version_handler**](docs/ProjectsApi.md#load_project_version_handler) | **GET** /project/{project}/{version} | Retrieves details about the given version of a project. +*ProjectsApi* | [**project_versions_handler**](docs/ProjectsApi.md#project_versions_handler) | **GET** /project/{project}/versions | Lists all available versions of a project. +*ProjectsApi* | [**update_project_handler**](docs/ProjectsApi.md#update_project_handler) | **PATCH** /project/{project} | Updates a project. This will create a new version. +*SessionApi* | [**anonymous_handler**](docs/SessionApi.md#anonymous_handler) | **POST** /anonymous | Creates session for anonymous user. The session's id serves as a Bearer token for requests. +*SessionApi* | [**login_handler**](docs/SessionApi.md#login_handler) | **POST** /login | Creates a session by providing user credentials. The session's id serves as a Bearer token for requests. +*SessionApi* | [**logout_handler**](docs/SessionApi.md#logout_handler) | **POST** /logout | Ends a session. +*SessionApi* | [**oidc_init**](docs/SessionApi.md#oidc_init) | **POST** /oidcInit | Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. +*SessionApi* | [**oidc_login**](docs/SessionApi.md#oidc_login) | **POST** /oidcLogin | Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. +*SessionApi* | [**register_user_handler**](docs/SessionApi.md#register_user_handler) | **POST** /user | Registers a user. +*SessionApi* | [**session_handler**](docs/SessionApi.md#session_handler) | **GET** /session | Retrieves details about the current session. +*SessionApi* | [**session_project_handler**](docs/SessionApi.md#session_project_handler) | **POST** /session/project/{project} | Sets the active project of the session. +*SessionApi* | [**session_view_handler**](docs/SessionApi.md#session_view_handler) | **POST** /session/view | +*SpatialReferencesApi* | [**get_spatial_reference_specification_handler**](docs/SpatialReferencesApi.md#get_spatial_reference_specification_handler) | **GET** /spatialReferenceSpecification/{srsString} | +*TasksApi* | [**abort_handler**](docs/TasksApi.md#abort_handler) | **DELETE** /tasks/{id} | Abort a running task. +*TasksApi* | [**list_handler**](docs/TasksApi.md#list_handler) | **GET** /tasks/list | Retrieve the status of all tasks. +*TasksApi* | [**status_handler**](docs/TasksApi.md#status_handler) | **GET** /tasks/{id}/status | Retrieve the status of a task. +*UploadsApi* | [**list_upload_file_layers_handler**](docs/UploadsApi.md#list_upload_file_layers_handler) | **GET** /uploads/{upload_id}/files/{file_name}/layers | List the layers of on uploaded file. +*UploadsApi* | [**list_upload_files_handler**](docs/UploadsApi.md#list_upload_files_handler) | **GET** /uploads/{upload_id}/files | List the files of on upload. +*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* | [**computation_quota_handler**](docs/UserApi.md#computation_quota_handler) | **GET** /quota/computations/{computation} | Retrieves the quota used by computation with the given computation id +*UserApi* | [**computations_quota_handler**](docs/UserApi.md#computations_quota_handler) | **GET** /quota/computations | Retrieves the quota used by computations +*UserApi* | [**data_usage_handler**](docs/UserApi.md#data_usage_handler) | **GET** /quota/dataUsage | Retrieves the data usage +*UserApi* | [**data_usage_summary_handler**](docs/UserApi.md#data_usage_summary_handler) | **GET** /quota/dataUsage/summary | Retrieves the data usage summary +*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. +*UserApi* | [**quota_handler**](docs/UserApi.md#quota_handler) | **GET** /quota | Retrieves the available and used quota of the current user. +*UserApi* | [**remove_role_handler**](docs/UserApi.md#remove_role_handler) | **DELETE** /roles/{role} | Remove a role. Requires admin privilige. +*UserApi* | [**revoke_role_handler**](docs/UserApi.md#revoke_role_handler) | **DELETE** /users/{user}/roles/{role} | Revoke a role from a user. Requires admin privilige. +*UserApi* | [**update_user_quota_handler**](docs/UserApi.md#update_user_quota_handler) | **POST** /quotas/{user} | Update the available quota of a specific user. +*WorkflowsApi* | [**dataset_from_workflow_handler**](docs/WorkflowsApi.md#dataset_from_workflow_handler) | **POST** /datasetFromWorkflow/{id} | Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task +*WorkflowsApi* | [**get_workflow_all_metadata_zip_handler**](docs/WorkflowsApi.md#get_workflow_all_metadata_zip_handler) | **GET** /workflow/{id}/allMetadata/zip | Gets a ZIP archive of the worklow, its provenance and the output metadata. +*WorkflowsApi* | [**get_workflow_metadata_handler**](docs/WorkflowsApi.md#get_workflow_metadata_handler) | **GET** /workflow/{id}/metadata | Gets the metadata of a workflow +*WorkflowsApi* | [**get_workflow_provenance_handler**](docs/WorkflowsApi.md#get_workflow_provenance_handler) | **GET** /workflow/{id}/provenance | Gets the provenance of all datasets used in a workflow. +*WorkflowsApi* | [**load_workflow_handler**](docs/WorkflowsApi.md#load_workflow_handler) | **GET** /workflow/{id} | Retrieves an existing Workflow. +*WorkflowsApi* | [**raster_stream_websocket**](docs/WorkflowsApi.md#raster_stream_websocket) | **GET** /workflow/{id}/rasterStream | Query a workflow raster result as a stream of tiles via a websocket connection. +*WorkflowsApi* | [**register_workflow_handler**](docs/WorkflowsApi.md#register_workflow_handler) | **POST** /workflow | Registers a new Workflow. + + +## Documentation For Models + + - [AddDataset](docs/AddDataset.md) + - [AddLayer](docs/AddLayer.md) + - [AddLayerCollection](docs/AddLayerCollection.md) + - [AddRole](docs/AddRole.md) + - [ArunaDataProviderDefinition](docs/ArunaDataProviderDefinition.md) + - [AuthCodeRequestUrl](docs/AuthCodeRequestUrl.md) + - [AuthCodeResponse](docs/AuthCodeResponse.md) + - [AutoCreateDataset](docs/AutoCreateDataset.md) + - [AxisOrder](docs/AxisOrder.md) + - [BoundingBox2D](docs/BoundingBox2D.md) + - [Breakpoint](docs/Breakpoint.md) + - [ClassificationMeasurement](docs/ClassificationMeasurement.md) + - [CollectionItem](docs/CollectionItem.md) + - [CollectionType](docs/CollectionType.md) + - [ColorParam](docs/ColorParam.md) + - [Colorizer](docs/Colorizer.md) + - [ComputationQuota](docs/ComputationQuota.md) + - [ContinuousMeasurement](docs/ContinuousMeasurement.md) + - [Coordinate2D](docs/Coordinate2D.md) + - [CopernicusDataspaceDataProviderDefinition](docs/CopernicusDataspaceDataProviderDefinition.md) + - [CreateDataset](docs/CreateDataset.md) + - [CreateProject](docs/CreateProject.md) + - [CsvHeader](docs/CsvHeader.md) + - [DataId](docs/DataId.md) + - [DataPath](docs/DataPath.md) + - [DataPathOneOf](docs/DataPathOneOf.md) + - [DataPathOneOf1](docs/DataPathOneOf1.md) + - [DataProviderResource](docs/DataProviderResource.md) + - [DataUsage](docs/DataUsage.md) + - [DataUsageSummary](docs/DataUsageSummary.md) + - [DatabaseConnectionConfig](docs/DatabaseConnectionConfig.md) + - [Dataset](docs/Dataset.md) + - [DatasetDefinition](docs/DatasetDefinition.md) + - [DatasetLayerListingCollection](docs/DatasetLayerListingCollection.md) + - [DatasetLayerListingProviderDefinition](docs/DatasetLayerListingProviderDefinition.md) + - [DatasetListing](docs/DatasetListing.md) + - [DatasetNameResponse](docs/DatasetNameResponse.md) + - [DatasetResource](docs/DatasetResource.md) + - [DerivedColor](docs/DerivedColor.md) + - [DerivedNumber](docs/DerivedNumber.md) + - [DescribeCoverageRequest](docs/DescribeCoverageRequest.md) + - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) + - [EdrDataProviderDefinition](docs/EdrDataProviderDefinition.md) + - [EdrVectorSpec](docs/EdrVectorSpec.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [ExternalDataId](docs/ExternalDataId.md) + - [FeatureDataType](docs/FeatureDataType.md) + - [FileNotFoundHandling](docs/FileNotFoundHandling.md) + - [FormatSpecifics](docs/FormatSpecifics.md) + - [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) + - [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) + - [GdalDatasetGeoTransform](docs/GdalDatasetGeoTransform.md) + - [GdalDatasetParameters](docs/GdalDatasetParameters.md) + - [GdalLoadingInfoTemporalSlice](docs/GdalLoadingInfoTemporalSlice.md) + - [GdalMetaDataList](docs/GdalMetaDataList.md) + - [GdalMetaDataRegular](docs/GdalMetaDataRegular.md) + - [GdalMetaDataStatic](docs/GdalMetaDataStatic.md) + - [GdalMetadataMapping](docs/GdalMetadataMapping.md) + - [GdalMetadataNetCdfCf](docs/GdalMetadataNetCdfCf.md) + - [GdalSourceTimePlaceholder](docs/GdalSourceTimePlaceholder.md) + - [GeoJson](docs/GeoJson.md) + - [GetCapabilitiesFormat](docs/GetCapabilitiesFormat.md) + - [GetCapabilitiesRequest](docs/GetCapabilitiesRequest.md) + - [GetCoverageFormat](docs/GetCoverageFormat.md) + - [GetCoverageRequest](docs/GetCoverageRequest.md) + - [GetFeatureRequest](docs/GetFeatureRequest.md) + - [GetLegendGraphicRequest](docs/GetLegendGraphicRequest.md) + - [GetMapExceptionFormat](docs/GetMapExceptionFormat.md) + - [GetMapFormat](docs/GetMapFormat.md) + - [GetMapRequest](docs/GetMapRequest.md) + - [GfbioAbcdDataProviderDefinition](docs/GfbioAbcdDataProviderDefinition.md) + - [GfbioCollectionsDataProviderDefinition](docs/GfbioCollectionsDataProviderDefinition.md) + - [IdResponse](docs/IdResponse.md) + - [InternalDataId](docs/InternalDataId.md) + - [Layer](docs/Layer.md) + - [LayerCollection](docs/LayerCollection.md) + - [LayerCollectionListing](docs/LayerCollectionListing.md) + - [LayerCollectionResource](docs/LayerCollectionResource.md) + - [LayerListing](docs/LayerListing.md) + - [LayerProviderListing](docs/LayerProviderListing.md) + - [LayerResource](docs/LayerResource.md) + - [LayerVisibility](docs/LayerVisibility.md) + - [LineSymbology](docs/LineSymbology.md) + - [LinearGradient](docs/LinearGradient.md) + - [LogarithmicGradient](docs/LogarithmicGradient.md) + - [Measurement](docs/Measurement.md) + - [MetaDataDefinition](docs/MetaDataDefinition.md) + - [MetaDataSuggestion](docs/MetaDataSuggestion.md) + - [MlModel](docs/MlModel.md) + - [MlModelInputNoDataHandling](docs/MlModelInputNoDataHandling.md) + - [MlModelInputNoDataHandlingVariant](docs/MlModelInputNoDataHandlingVariant.md) + - [MlModelMetadata](docs/MlModelMetadata.md) + - [MlModelNameResponse](docs/MlModelNameResponse.md) + - [MlModelOutputNoDataHandling](docs/MlModelOutputNoDataHandling.md) + - [MlModelOutputNoDataHandlingVariant](docs/MlModelOutputNoDataHandlingVariant.md) + - [MlModelResource](docs/MlModelResource.md) + - [MlTensorShape3D](docs/MlTensorShape3D.md) + - [MockDatasetDataSourceLoadingInfo](docs/MockDatasetDataSourceLoadingInfo.md) + - [MockMetaData](docs/MockMetaData.md) + - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) + - [MultiLineString](docs/MultiLineString.md) + - [MultiPoint](docs/MultiPoint.md) + - [MultiPolygon](docs/MultiPolygon.md) + - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) + - [NumberParam](docs/NumberParam.md) + - [OgrMetaData](docs/OgrMetaData.md) + - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) + - [OgrSourceDataset](docs/OgrSourceDataset.md) + - [OgrSourceDatasetTimeType](docs/OgrSourceDatasetTimeType.md) + - [OgrSourceDatasetTimeTypeNone](docs/OgrSourceDatasetTimeTypeNone.md) + - [OgrSourceDatasetTimeTypeStart](docs/OgrSourceDatasetTimeTypeStart.md) + - [OgrSourceDatasetTimeTypeStartDuration](docs/OgrSourceDatasetTimeTypeStartDuration.md) + - [OgrSourceDatasetTimeTypeStartEnd](docs/OgrSourceDatasetTimeTypeStartEnd.md) + - [OgrSourceDurationSpec](docs/OgrSourceDurationSpec.md) + - [OgrSourceDurationSpecInfinite](docs/OgrSourceDurationSpecInfinite.md) + - [OgrSourceDurationSpecValue](docs/OgrSourceDurationSpecValue.md) + - [OgrSourceDurationSpecZero](docs/OgrSourceDurationSpecZero.md) + - [OgrSourceErrorSpec](docs/OgrSourceErrorSpec.md) + - [OgrSourceTimeFormat](docs/OgrSourceTimeFormat.md) + - [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md) + - [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md) + - [OgrSourceTimeFormatUnixTimeStamp](docs/OgrSourceTimeFormatUnixTimeStamp.md) + - [OperatorQuota](docs/OperatorQuota.md) + - [OrderBy](docs/OrderBy.md) + - [PaletteColorizer](docs/PaletteColorizer.md) + - [PangaeaDataProviderDefinition](docs/PangaeaDataProviderDefinition.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) + - [PlotQueryRectangle](docs/PlotQueryRectangle.md) + - [PlotResultDescriptor](docs/PlotResultDescriptor.md) + - [PointSymbology](docs/PointSymbology.md) + - [PolygonSymbology](docs/PolygonSymbology.md) + - [Project](docs/Project.md) + - [ProjectLayer](docs/ProjectLayer.md) + - [ProjectListing](docs/ProjectListing.md) + - [ProjectResource](docs/ProjectResource.md) + - [ProjectUpdateToken](docs/ProjectUpdateToken.md) + - [ProjectVersion](docs/ProjectVersion.md) + - [Provenance](docs/Provenance.md) + - [ProvenanceEntry](docs/ProvenanceEntry.md) + - [ProvenanceOutput](docs/ProvenanceOutput.md) + - [Provenances](docs/Provenances.md) + - [ProviderCapabilities](docs/ProviderCapabilities.md) + - [ProviderLayerCollectionId](docs/ProviderLayerCollectionId.md) + - [ProviderLayerId](docs/ProviderLayerId.md) + - [Quota](docs/Quota.md) + - [RasterBandDescriptor](docs/RasterBandDescriptor.md) + - [RasterColorizer](docs/RasterColorizer.md) + - [RasterDataType](docs/RasterDataType.md) + - [RasterDatasetFromWorkflow](docs/RasterDatasetFromWorkflow.md) + - [RasterDatasetFromWorkflowResult](docs/RasterDatasetFromWorkflowResult.md) + - [RasterPropertiesEntryType](docs/RasterPropertiesEntryType.md) + - [RasterPropertiesKey](docs/RasterPropertiesKey.md) + - [RasterQueryRectangle](docs/RasterQueryRectangle.md) + - [RasterResultDescriptor](docs/RasterResultDescriptor.md) + - [RasterStreamWebsocketResultType](docs/RasterStreamWebsocketResultType.md) + - [RasterSymbology](docs/RasterSymbology.md) + - [Resource](docs/Resource.md) + - [Role](docs/Role.md) + - [RoleDescription](docs/RoleDescription.md) + - [SearchCapabilities](docs/SearchCapabilities.md) + - [SearchType](docs/SearchType.md) + - [SearchTypes](docs/SearchTypes.md) + - [SentinelS2L2ACogsProviderDefinition](docs/SentinelS2L2ACogsProviderDefinition.md) + - [ServerInfo](docs/ServerInfo.md) + - [SingleBandRasterColorizer](docs/SingleBandRasterColorizer.md) + - [SpatialPartition2D](docs/SpatialPartition2D.md) + - [SpatialReferenceAuthority](docs/SpatialReferenceAuthority.md) + - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) + - [SpatialResolution](docs/SpatialResolution.md) + - [StRectangle](docs/StRectangle.md) + - [StacApiRetries](docs/StacApiRetries.md) + - [StacBand](docs/StacBand.md) + - [StacQueryBuffer](docs/StacQueryBuffer.md) + - [StacZone](docs/StacZone.md) + - [StaticColor](docs/StaticColor.md) + - [StaticNumber](docs/StaticNumber.md) + - [StrokeParam](docs/StrokeParam.md) + - [SuggestMetaData](docs/SuggestMetaData.md) + - [Symbology](docs/Symbology.md) + - [TaskAbortOptions](docs/TaskAbortOptions.md) + - [TaskFilter](docs/TaskFilter.md) + - [TaskListOptions](docs/TaskListOptions.md) + - [TaskResponse](docs/TaskResponse.md) + - [TaskStatus](docs/TaskStatus.md) + - [TaskStatusAborted](docs/TaskStatusAborted.md) + - [TaskStatusCompleted](docs/TaskStatusCompleted.md) + - [TaskStatusFailed](docs/TaskStatusFailed.md) + - [TaskStatusRunning](docs/TaskStatusRunning.md) + - [TaskStatusWithId](docs/TaskStatusWithId.md) + - [TextSymbology](docs/TextSymbology.md) + - [TimeGranularity](docs/TimeGranularity.md) + - [TimeInterval](docs/TimeInterval.md) + - [TimeReference](docs/TimeReference.md) + - [TimeStep](docs/TimeStep.md) + - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) + - [TypedGeometry](docs/TypedGeometry.md) + - [TypedGeometryOneOf](docs/TypedGeometryOneOf.md) + - [TypedGeometryOneOf1](docs/TypedGeometryOneOf1.md) + - [TypedGeometryOneOf2](docs/TypedGeometryOneOf2.md) + - [TypedGeometryOneOf3](docs/TypedGeometryOneOf3.md) + - [TypedOperator](docs/TypedOperator.md) + - [TypedOperatorOperator](docs/TypedOperatorOperator.md) + - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) + - [TypedRasterResultDescriptor](docs/TypedRasterResultDescriptor.md) + - [TypedResultDescriptor](docs/TypedResultDescriptor.md) + - [TypedVectorResultDescriptor](docs/TypedVectorResultDescriptor.md) + - [UnitlessMeasurement](docs/UnitlessMeasurement.md) + - [UnixTimeStampType](docs/UnixTimeStampType.md) + - [UpdateDataset](docs/UpdateDataset.md) + - [UpdateLayer](docs/UpdateLayer.md) + - [UpdateLayerCollection](docs/UpdateLayerCollection.md) + - [UpdateProject](docs/UpdateProject.md) + - [UpdateQuota](docs/UpdateQuota.md) + - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) + - [UploadFilesResponse](docs/UploadFilesResponse.md) + - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) + - [UserCredentials](docs/UserCredentials.md) + - [UserInfo](docs/UserInfo.md) + - [UserRegistration](docs/UserRegistration.md) + - [UserSession](docs/UserSession.md) + - [VecUpdate](docs/VecUpdate.md) + - [VectorColumnInfo](docs/VectorColumnInfo.md) + - [VectorDataType](docs/VectorDataType.md) + - [VectorQueryRectangle](docs/VectorQueryRectangle.md) + - [VectorResultDescriptor](docs/VectorResultDescriptor.md) + - [Volume](docs/Volume.md) + - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) + - [WcsBoundingbox](docs/WcsBoundingbox.md) + - [WcsService](docs/WcsService.md) + - [WcsVersion](docs/WcsVersion.md) + - [WfsService](docs/WfsService.md) + - [WfsVersion](docs/WfsVersion.md) + - [WildliveDataConnectorDefinition](docs/WildliveDataConnectorDefinition.md) + - [WmsService](docs/WmsService.md) + - [WmsVersion](docs/WmsVersion.md) + - [Workflow](docs/Workflow.md) + - [WrappedPlotOutput](docs/WrappedPlotOutput.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + +dev@geoengine.de + diff --git a/rust/docs/AddDataset.md b/rust/docs/AddDataset.md new file mode 100644 index 00000000..677f2a21 --- /dev/null +++ b/rust/docs/AddDataset.md @@ -0,0 +1,17 @@ +# AddDataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**display_name** | **String** | | +**name** | Option<**String**> | | [optional] +**provenance** | Option<[**Vec**](Provenance.md)> | | [optional] +**source_operator** | **String** | | +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AddLayer.md b/rust/docs/AddLayer.md new file mode 100644 index 00000000..b30c7646 --- /dev/null +++ b/rust/docs/AddLayer.md @@ -0,0 +1,16 @@ +# AddLayer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | metadata used for loading the data | [optional] +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | properties, for instance, to be rendered in the UI | [optional] +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**workflow** | [**models::Workflow**](Workflow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AddLayerCollection.md b/rust/docs/AddLayerCollection.md new file mode 100644 index 00000000..a0c34672 --- /dev/null +++ b/rust/docs/AddLayerCollection.md @@ -0,0 +1,13 @@ +# AddLayerCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AddRole.md b/rust/docs/AddRole.md new file mode 100644 index 00000000..3d970726 --- /dev/null +++ b/rust/docs/AddRole.md @@ -0,0 +1,11 @@ +# AddRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ArunaDataProviderDefinition.md b/rust/docs/ArunaDataProviderDefinition.md new file mode 100644 index 00000000..7bf739c2 --- /dev/null +++ b/rust/docs/ArunaDataProviderDefinition.md @@ -0,0 +1,20 @@ +# ArunaDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_token** | **String** | | +**api_url** | **String** | | +**cache_ttl** | Option<**i32**> | | [optional] +**description** | **String** | | +**filter_label** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**project_id** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AuthCodeRequestUrl.md b/rust/docs/AuthCodeRequestUrl.md new file mode 100644 index 00000000..11d55d25 --- /dev/null +++ b/rust/docs/AuthCodeRequestUrl.md @@ -0,0 +1,11 @@ +# AuthCodeRequestUrl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AuthCodeResponse.md b/rust/docs/AuthCodeResponse.md new file mode 100644 index 00000000..f54efbb1 --- /dev/null +++ b/rust/docs/AuthCodeResponse.md @@ -0,0 +1,13 @@ +# AuthCodeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**session_state** | **String** | | +**state** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AutoCreateDataset.md b/rust/docs/AutoCreateDataset.md new file mode 100644 index 00000000..503f7323 --- /dev/null +++ b/rust/docs/AutoCreateDataset.md @@ -0,0 +1,16 @@ +# AutoCreateDataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataset_description** | **String** | | +**dataset_name** | **String** | | +**layer_name** | Option<**String**> | | [optional] +**main_file** | **String** | | +**tags** | Option<**Vec**> | | [optional] +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/AxisOrder.md b/rust/docs/AxisOrder.md new file mode 100644 index 00000000..74d50130 --- /dev/null +++ b/rust/docs/AxisOrder.md @@ -0,0 +1,13 @@ +# AxisOrder + +## Enum Variants + +| Name | Value | +|---- | -----| +| NorthEast | northEast | +| EastNorth | eastNorth | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/BoundingBox2D.md b/rust/docs/BoundingBox2D.md new file mode 100644 index 00000000..f1e22ff2 --- /dev/null +++ b/rust/docs/BoundingBox2D.md @@ -0,0 +1,12 @@ +# BoundingBox2D + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lower_left_coordinate** | [**models::Coordinate2D**](Coordinate2D.md) | | +**upper_right_coordinate** | [**models::Coordinate2D**](Coordinate2D.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Breakpoint.md b/rust/docs/Breakpoint.md new file mode 100644 index 00000000..4ab6b424 --- /dev/null +++ b/rust/docs/Breakpoint.md @@ -0,0 +1,12 @@ +# Breakpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **Vec** | | +**value** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ClassificationMeasurement.md b/rust/docs/ClassificationMeasurement.md new file mode 100644 index 00000000..631e30a6 --- /dev/null +++ b/rust/docs/ClassificationMeasurement.md @@ -0,0 +1,13 @@ +# ClassificationMeasurement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**classes** | **std::collections::HashMap** | | +**measurement** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CollectionItem.md b/rust/docs/CollectionItem.md new file mode 100644 index 00000000..cf4c6359 --- /dev/null +++ b/rust/docs/CollectionItem.md @@ -0,0 +1,10 @@ +# CollectionItem + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CollectionType.md b/rust/docs/CollectionType.md new file mode 100644 index 00000000..22a9fe9b --- /dev/null +++ b/rust/docs/CollectionType.md @@ -0,0 +1,12 @@ +# CollectionType + +## Enum Variants + +| Name | Value | +|---- | -----| +| FeatureCollection | FeatureCollection | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ColorParam.md b/rust/docs/ColorParam.md new file mode 100644 index 00000000..e5858ac4 --- /dev/null +++ b/rust/docs/ColorParam.md @@ -0,0 +1,10 @@ +# ColorParam + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Colorizer.md b/rust/docs/Colorizer.md new file mode 100644 index 00000000..792feac8 --- /dev/null +++ b/rust/docs/Colorizer.md @@ -0,0 +1,10 @@ +# Colorizer + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ComputationQuota.md b/rust/docs/ComputationQuota.md new file mode 100644 index 00000000..f90849f6 --- /dev/null +++ b/rust/docs/ComputationQuota.md @@ -0,0 +1,14 @@ +# ComputationQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**computation_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**count** | **i64** | | +**timestamp** | **String** | | +**workflow_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ContinuousMeasurement.md b/rust/docs/ContinuousMeasurement.md new file mode 100644 index 00000000..7af6677d --- /dev/null +++ b/rust/docs/ContinuousMeasurement.md @@ -0,0 +1,13 @@ +# ContinuousMeasurement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**measurement** | **String** | | +**r#type** | **String** | | +**unit** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Coordinate2D.md b/rust/docs/Coordinate2D.md new file mode 100644 index 00000000..bdf5c270 --- /dev/null +++ b/rust/docs/Coordinate2D.md @@ -0,0 +1,12 @@ +# Coordinate2D + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **f64** | | +**y** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CopernicusDataspaceDataProviderDefinition.md b/rust/docs/CopernicusDataspaceDataProviderDefinition.md new file mode 100644 index 00000000..450fa57e --- /dev/null +++ b/rust/docs/CopernicusDataspaceDataProviderDefinition.md @@ -0,0 +1,20 @@ +# CopernicusDataspaceDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**gdal_config** | [**Vec>**](Vec.md) | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**s3_access_key** | **String** | | +**s3_secret_key** | **String** | | +**s3_url** | **String** | | +**stac_url** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CreateDataset.md b/rust/docs/CreateDataset.md new file mode 100644 index 00000000..fcc660a9 --- /dev/null +++ b/rust/docs/CreateDataset.md @@ -0,0 +1,12 @@ +# CreateDataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_path** | [**models::DataPath**](DataPath.md) | | +**definition** | [**models::DatasetDefinition**](DatasetDefinition.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CreateProject.md b/rust/docs/CreateProject.md new file mode 100644 index 00000000..dc20020a --- /dev/null +++ b/rust/docs/CreateProject.md @@ -0,0 +1,14 @@ +# CreateProject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bounds** | [**models::StRectangle**](STRectangle.md) | | +**description** | **String** | | +**name** | **String** | | +**time_step** | Option<[**models::TimeStep**](TimeStep.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CsvHeader.md b/rust/docs/CsvHeader.md new file mode 100644 index 00000000..5b76f3d6 --- /dev/null +++ b/rust/docs/CsvHeader.md @@ -0,0 +1,14 @@ +# CsvHeader + +## Enum Variants + +| Name | Value | +|---- | -----| +| Yes | yes | +| No | no | +| Auto | auto | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataId.md b/rust/docs/DataId.md new file mode 100644 index 00000000..cbfdce80 --- /dev/null +++ b/rust/docs/DataId.md @@ -0,0 +1,10 @@ +# DataId + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataPath.md b/rust/docs/DataPath.md new file mode 100644 index 00000000..6bf19d41 --- /dev/null +++ b/rust/docs/DataPath.md @@ -0,0 +1,12 @@ +# DataPath + +## Enum Variants + +| Name | Description | +|---- | -----| +| DataPathOneOf | | +| DataPathOneOf1 | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataPathOneOf.md b/rust/docs/DataPathOneOf.md new file mode 100644 index 00000000..44c6c724 --- /dev/null +++ b/rust/docs/DataPathOneOf.md @@ -0,0 +1,11 @@ +# DataPathOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**volume** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataPathOneOf1.md b/rust/docs/DataPathOneOf1.md new file mode 100644 index 00000000..f0e66ce7 --- /dev/null +++ b/rust/docs/DataPathOneOf1.md @@ -0,0 +1,11 @@ +# DataPathOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataProviderResource.md b/rust/docs/DataProviderResource.md new file mode 100644 index 00000000..a34a1687 --- /dev/null +++ b/rust/docs/DataProviderResource.md @@ -0,0 +1,12 @@ +# DataProviderResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataUsage.md b/rust/docs/DataUsage.md new file mode 100644 index 00000000..1c1a0648 --- /dev/null +++ b/rust/docs/DataUsage.md @@ -0,0 +1,15 @@ +# DataUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**computation_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**count** | **i64** | | +**data** | **String** | | +**timestamp** | **String** | | +**user_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataUsageSummary.md b/rust/docs/DataUsageSummary.md new file mode 100644 index 00000000..759d0a97 --- /dev/null +++ b/rust/docs/DataUsageSummary.md @@ -0,0 +1,13 @@ +# DataUsageSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **i64** | | +**data** | **String** | | +**timestamp** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatabaseConnectionConfig.md b/rust/docs/DatabaseConnectionConfig.md new file mode 100644 index 00000000..c0544023 --- /dev/null +++ b/rust/docs/DatabaseConnectionConfig.md @@ -0,0 +1,16 @@ +# DatabaseConnectionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**database** | **String** | | +**host** | **String** | | +**password** | **String** | | +**port** | **i32** | | +**schema** | **String** | | +**user** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Dataset.md b/rust/docs/Dataset.md new file mode 100644 index 00000000..2907649b --- /dev/null +++ b/rust/docs/Dataset.md @@ -0,0 +1,19 @@ +# Dataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**display_name** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**provenance** | Option<[**Vec**](Provenance.md)> | | [optional] +**result_descriptor** | [**models::TypedResultDescriptor**](TypedResultDescriptor.md) | | +**source_operator** | **String** | | +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetDefinition.md b/rust/docs/DatasetDefinition.md new file mode 100644 index 00000000..5398ae04 --- /dev/null +++ b/rust/docs/DatasetDefinition.md @@ -0,0 +1,12 @@ +# DatasetDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta_data** | [**models::MetaDataDefinition**](MetaDataDefinition.md) | | +**properties** | [**models::AddDataset**](AddDataset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetLayerListingCollection.md b/rust/docs/DatasetLayerListingCollection.md new file mode 100644 index 00000000..4430595b --- /dev/null +++ b/rust/docs/DatasetLayerListingCollection.md @@ -0,0 +1,13 @@ +# DatasetLayerListingCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**name** | **String** | | +**tags** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetLayerListingProviderDefinition.md b/rust/docs/DatasetLayerListingProviderDefinition.md new file mode 100644 index 00000000..61ffeaa5 --- /dev/null +++ b/rust/docs/DatasetLayerListingProviderDefinition.md @@ -0,0 +1,16 @@ +# DatasetLayerListingProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**collections** | [**Vec**](DatasetLayerListingCollection.md) | | +**description** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetListing.md b/rust/docs/DatasetListing.md new file mode 100644 index 00000000..773f6080 --- /dev/null +++ b/rust/docs/DatasetListing.md @@ -0,0 +1,18 @@ +# DatasetListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**display_name** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**result_descriptor** | [**models::TypedResultDescriptor**](TypedResultDescriptor.md) | | +**source_operator** | **String** | | +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**tags** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetNameResponse.md b/rust/docs/DatasetNameResponse.md new file mode 100644 index 00000000..5929d1d2 --- /dev/null +++ b/rust/docs/DatasetNameResponse.md @@ -0,0 +1,11 @@ +# DatasetNameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataset_name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetResource.md b/rust/docs/DatasetResource.md new file mode 100644 index 00000000..eb550192 --- /dev/null +++ b/rust/docs/DatasetResource.md @@ -0,0 +1,12 @@ +# DatasetResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DatasetsApi.md b/rust/docs/DatasetsApi.md new file mode 100644 index 00000000..4cea2c09 --- /dev/null +++ b/rust/docs/DatasetsApi.md @@ -0,0 +1,391 @@ +# \DatasetsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**auto_create_dataset_handler**](DatasetsApi.md#auto_create_dataset_handler) | **POST** /dataset/auto | Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. +[**create_dataset_handler**](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. +[**delete_dataset_handler**](DatasetsApi.md#delete_dataset_handler) | **DELETE** /dataset/{dataset} | Delete a dataset +[**get_dataset_handler**](DatasetsApi.md#get_dataset_handler) | **GET** /dataset/{dataset} | Retrieves details about a dataset using the internal name. +[**get_loading_info_handler**](DatasetsApi.md#get_loading_info_handler) | **GET** /dataset/{dataset}/loadingInfo | Retrieves the loading information of a dataset +[**list_datasets_handler**](DatasetsApi.md#list_datasets_handler) | **GET** /datasets | Lists available datasets. +[**list_volume_file_layers_handler**](DatasetsApi.md#list_volume_file_layers_handler) | **GET** /dataset/volumes/{volume_name}/files/{file_name}/layers | List the layers of a file in a volume. +[**list_volumes_handler**](DatasetsApi.md#list_volumes_handler) | **GET** /dataset/volumes | Lists available volumes. +[**suggest_meta_data_handler**](DatasetsApi.md#suggest_meta_data_handler) | **POST** /dataset/suggest | Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. +[**update_dataset_handler**](DatasetsApi.md#update_dataset_handler) | **POST** /dataset/{dataset} | Update details about a dataset using the internal name. +[**update_dataset_provenance_handler**](DatasetsApi.md#update_dataset_provenance_handler) | **PUT** /dataset/{dataset}/provenance | +[**update_dataset_symbology_handler**](DatasetsApi.md#update_dataset_symbology_handler) | **PUT** /dataset/{dataset}/symbology | Updates the dataset's symbology +[**update_loading_info_handler**](DatasetsApi.md#update_loading_info_handler) | **PUT** /dataset/{dataset}/loadingInfo | Updates the dataset's loading info + + + +## auto_create_dataset_handler + +> models::DatasetNameResponse auto_create_dataset_handler(auto_create_dataset) +Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auto_create_dataset** | [**AutoCreateDataset**](AutoCreateDataset.md) | | [required] | + +### Return type + +[**models::DatasetNameResponse**](DatasetNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_dataset_handler + +> models::DatasetNameResponse create_dataset_handler(create_dataset) +Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_dataset** | [**CreateDataset**](CreateDataset.md) | | [required] | + +### Return type + +[**models::DatasetNameResponse**](DatasetNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_dataset_handler + +> delete_dataset_handler(dataset) +Delete a dataset + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_dataset_handler + +> models::Dataset get_dataset_handler(dataset) +Retrieves details about a dataset using the internal name. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | + +### Return type + +[**models::Dataset**](Dataset.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_loading_info_handler + +> models::MetaDataDefinition get_loading_info_handler(dataset) +Retrieves the loading information of a dataset + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | + +### Return type + +[**models::MetaDataDefinition**](MetaDataDefinition.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_datasets_handler + +> Vec list_datasets_handler(order, offset, limit, filter, tags) +Lists available datasets. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**order** | [**OrderBy**](.md) | | [required] | +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | +**filter** | Option<**String**> | | | +**tags** | Option<[**Vec**](String.md)> | | | + +### Return type + +[**Vec**](DatasetListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_volume_file_layers_handler + +> models::VolumeFileLayersResponse list_volume_file_layers_handler(volume_name, file_name) +List the layers of a file in a volume. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**volume_name** | **String** | Volume name | [required] | +**file_name** | **String** | File name | [required] | + +### Return type + +[**models::VolumeFileLayersResponse**](VolumeFileLayersResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_volumes_handler + +> Vec list_volumes_handler() +Lists available volumes. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](Volume.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## suggest_meta_data_handler + +> models::MetaDataSuggestion suggest_meta_data_handler(suggest_meta_data) +Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**suggest_meta_data** | [**SuggestMetaData**](SuggestMetaData.md) | | [required] | + +### Return type + +[**models::MetaDataSuggestion**](MetaDataSuggestion.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_dataset_handler + +> update_dataset_handler(dataset, update_dataset) +Update details about a dataset using the internal name. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | +**update_dataset** | [**UpdateDataset**](UpdateDataset.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_dataset_provenance_handler + +> update_dataset_provenance_handler(dataset, provenances) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | +**provenances** | [**Provenances**](Provenances.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_dataset_symbology_handler + +> update_dataset_symbology_handler(dataset, symbology) +Updates the dataset's symbology + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | +**symbology** | [**Symbology**](Symbology.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_loading_info_handler + +> update_loading_info_handler(dataset, meta_data_definition) +Updates the dataset's loading info + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dataset** | **String** | Dataset Name | [required] | +**meta_data_definition** | [**MetaDataDefinition**](MetaDataDefinition.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/DerivedColor.md b/rust/docs/DerivedColor.md new file mode 100644 index 00000000..3a52ee99 --- /dev/null +++ b/rust/docs/DerivedColor.md @@ -0,0 +1,13 @@ +# DerivedColor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute** | **String** | | +**colorizer** | [**models::Colorizer**](Colorizer.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DerivedNumber.md b/rust/docs/DerivedNumber.md new file mode 100644 index 00000000..ad62f6fb --- /dev/null +++ b/rust/docs/DerivedNumber.md @@ -0,0 +1,14 @@ +# DerivedNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute** | **String** | | +**default_value** | **f64** | | +**factor** | **f64** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DescribeCoverageRequest.md b/rust/docs/DescribeCoverageRequest.md new file mode 100644 index 00000000..92b05f3c --- /dev/null +++ b/rust/docs/DescribeCoverageRequest.md @@ -0,0 +1,12 @@ +# DescribeCoverageRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| DescribeCoverage | DescribeCoverage | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/EbvPortalDataProviderDefinition.md b/rust/docs/EbvPortalDataProviderDefinition.md new file mode 100644 index 00000000..48ae4576 --- /dev/null +++ b/rust/docs/EbvPortalDataProviderDefinition.md @@ -0,0 +1,18 @@ +# EbvPortalDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**base_url** | **String** | | +**cache_ttl** | Option<**i32**> | | [optional] +**data** | **String** | Path were the `NetCDF` data can be found | +**description** | **String** | | +**name** | **String** | | +**overviews** | **String** | Path were overview files are stored | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/EdrDataProviderDefinition.md b/rust/docs/EdrDataProviderDefinition.md new file mode 100644 index 00000000..3a67e591 --- /dev/null +++ b/rust/docs/EdrDataProviderDefinition.md @@ -0,0 +1,20 @@ +# EdrDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**base_url** | **String** | | +**cache_ttl** | Option<**i32**> | | [optional] +**description** | **String** | | +**discrete_vrs** | Option<**Vec**> | List of vertical reference systems with a discrete scale | [optional] +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**provenance** | Option<[**Vec**](Provenance.md)> | | [optional] +**r#type** | **String** | | +**vector_spec** | Option<[**models::EdrVectorSpec**](EdrVectorSpec.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/EdrVectorSpec.md b/rust/docs/EdrVectorSpec.md new file mode 100644 index 00000000..e62a7a7c --- /dev/null +++ b/rust/docs/EdrVectorSpec.md @@ -0,0 +1,13 @@ +# EdrVectorSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **String** | | +**x** | **String** | | +**y** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ErrorResponse.md b/rust/docs/ErrorResponse.md new file mode 100644 index 00000000..542f616e --- /dev/null +++ b/rust/docs/ErrorResponse.md @@ -0,0 +1,12 @@ +# ErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | | +**message** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ExternalDataId.md b/rust/docs/ExternalDataId.md new file mode 100644 index 00000000..9ef146b4 --- /dev/null +++ b/rust/docs/ExternalDataId.md @@ -0,0 +1,13 @@ +# ExternalDataId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layer_id** | **String** | | +**provider_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/FeatureDataType.md b/rust/docs/FeatureDataType.md new file mode 100644 index 00000000..0c85b7ab --- /dev/null +++ b/rust/docs/FeatureDataType.md @@ -0,0 +1,17 @@ +# FeatureDataType + +## Enum Variants + +| Name | Value | +|---- | -----| +| Category | category | +| Int | int | +| Float | float | +| Text | text | +| Bool | bool | +| DateTime | dateTime | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/FileNotFoundHandling.md b/rust/docs/FileNotFoundHandling.md new file mode 100644 index 00000000..f47eb76c --- /dev/null +++ b/rust/docs/FileNotFoundHandling.md @@ -0,0 +1,13 @@ +# FileNotFoundHandling + +## Enum Variants + +| Name | Value | +|---- | -----| +| NoData | NoData | +| Error | Error | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/FormatSpecifics.md b/rust/docs/FormatSpecifics.md new file mode 100644 index 00000000..f7096e2c --- /dev/null +++ b/rust/docs/FormatSpecifics.md @@ -0,0 +1,11 @@ +# FormatSpecifics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**csv** | [**models::FormatSpecificsCsv**](FormatSpecifics_csv.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/FormatSpecificsCsv.md b/rust/docs/FormatSpecificsCsv.md new file mode 100644 index 00000000..cc05f22b --- /dev/null +++ b/rust/docs/FormatSpecificsCsv.md @@ -0,0 +1,11 @@ +# FormatSpecificsCsv + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**models::CsvHeader**](CsvHeader.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GbifDataProviderDefinition.md b/rust/docs/GbifDataProviderDefinition.md new file mode 100644 index 00000000..bf8f226c --- /dev/null +++ b/rust/docs/GbifDataProviderDefinition.md @@ -0,0 +1,18 @@ +# GbifDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocomplete_timeout** | **i32** | | +**cache_ttl** | Option<**i32**> | | [optional] +**columns** | **Vec** | | +**db_config** | [**models::DatabaseConnectionConfig**](DatabaseConnectionConfig.md) | | +**description** | **String** | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalDatasetGeoTransform.md b/rust/docs/GdalDatasetGeoTransform.md new file mode 100644 index 00000000..6e89c429 --- /dev/null +++ b/rust/docs/GdalDatasetGeoTransform.md @@ -0,0 +1,13 @@ +# GdalDatasetGeoTransform + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**origin_coordinate** | [**models::Coordinate2D**](Coordinate2D.md) | | +**x_pixel_size** | **f64** | | +**y_pixel_size** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalDatasetParameters.md b/rust/docs/GdalDatasetParameters.md new file mode 100644 index 00000000..4b572722 --- /dev/null +++ b/rust/docs/GdalDatasetParameters.md @@ -0,0 +1,21 @@ +# GdalDatasetParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_alphaband_as_mask** | Option<**bool**> | | [optional] +**file_not_found_handling** | [**models::FileNotFoundHandling**](FileNotFoundHandling.md) | | +**file_path** | **String** | | +**gdal_config_options** | Option<[**Vec>**](Vec.md)> | | [optional] +**gdal_open_options** | Option<**Vec**> | | [optional] +**geo_transform** | [**models::GdalDatasetGeoTransform**](GdalDatasetGeoTransform.md) | | +**height** | **i32** | | +**no_data_value** | Option<**f64**> | | [optional] +**properties_mapping** | Option<[**Vec**](GdalMetadataMapping.md)> | | [optional] +**rasterband_channel** | **i32** | | +**width** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalLoadingInfoTemporalSlice.md b/rust/docs/GdalLoadingInfoTemporalSlice.md new file mode 100644 index 00000000..8fcd7185 --- /dev/null +++ b/rust/docs/GdalLoadingInfoTemporalSlice.md @@ -0,0 +1,13 @@ +# GdalLoadingInfoTemporalSlice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_ttl** | Option<**i32**> | | [optional] +**params** | Option<[**models::GdalDatasetParameters**](GdalDatasetParameters.md)> | | [optional] +**time** | [**models::TimeInterval**](TimeInterval.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalMetaDataList.md b/rust/docs/GdalMetaDataList.md new file mode 100644 index 00000000..07b9bce9 --- /dev/null +++ b/rust/docs/GdalMetaDataList.md @@ -0,0 +1,13 @@ +# GdalMetaDataList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**Vec**](GdalLoadingInfoTemporalSlice.md) | | +**result_descriptor** | [**models::RasterResultDescriptor**](RasterResultDescriptor.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalMetaDataRegular.md b/rust/docs/GdalMetaDataRegular.md new file mode 100644 index 00000000..a156d5ad --- /dev/null +++ b/rust/docs/GdalMetaDataRegular.md @@ -0,0 +1,17 @@ +# GdalMetaDataRegular + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_ttl** | Option<**i32**> | | [optional] +**data_time** | [**models::TimeInterval**](TimeInterval.md) | | +**params** | [**models::GdalDatasetParameters**](GdalDatasetParameters.md) | | +**result_descriptor** | [**models::RasterResultDescriptor**](RasterResultDescriptor.md) | | +**step** | [**models::TimeStep**](TimeStep.md) | | +**time_placeholders** | [**std::collections::HashMap**](GdalSourceTimePlaceholder.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalMetaDataStatic.md b/rust/docs/GdalMetaDataStatic.md new file mode 100644 index 00000000..00cbf691 --- /dev/null +++ b/rust/docs/GdalMetaDataStatic.md @@ -0,0 +1,15 @@ +# GdalMetaDataStatic + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_ttl** | Option<**i32**> | | [optional] +**params** | [**models::GdalDatasetParameters**](GdalDatasetParameters.md) | | +**result_descriptor** | [**models::RasterResultDescriptor**](RasterResultDescriptor.md) | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalMetadataMapping.md b/rust/docs/GdalMetadataMapping.md new file mode 100644 index 00000000..3f58bf9b --- /dev/null +++ b/rust/docs/GdalMetadataMapping.md @@ -0,0 +1,13 @@ +# GdalMetadataMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source_key** | [**models::RasterPropertiesKey**](RasterPropertiesKey.md) | | +**target_key** | [**models::RasterPropertiesKey**](RasterPropertiesKey.md) | | +**target_type** | [**models::RasterPropertiesEntryType**](RasterPropertiesEntryType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalMetadataNetCdfCf.md b/rust/docs/GdalMetadataNetCdfCf.md new file mode 100644 index 00000000..a6fe4e0c --- /dev/null +++ b/rust/docs/GdalMetadataNetCdfCf.md @@ -0,0 +1,18 @@ +# GdalMetadataNetCdfCf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**band_offset** | **i32** | A band offset specifies the first band index to use for the first point in time. All other time steps are added to this offset. | +**cache_ttl** | Option<**i32**> | | [optional] +**end** | **i64** | | +**params** | [**models::GdalDatasetParameters**](GdalDatasetParameters.md) | | +**result_descriptor** | [**models::RasterResultDescriptor**](RasterResultDescriptor.md) | | +**start** | **i64** | | +**step** | [**models::TimeStep**](TimeStep.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GdalSourceTimePlaceholder.md b/rust/docs/GdalSourceTimePlaceholder.md new file mode 100644 index 00000000..cadaa2aa --- /dev/null +++ b/rust/docs/GdalSourceTimePlaceholder.md @@ -0,0 +1,12 @@ +# GdalSourceTimePlaceholder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **String** | | +**reference** | [**models::TimeReference**](TimeReference.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GeneralApi.md b/rust/docs/GeneralApi.md new file mode 100644 index 00000000..5dc1ae73 --- /dev/null +++ b/rust/docs/GeneralApi.md @@ -0,0 +1,60 @@ +# \GeneralApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**available_handler**](GeneralApi.md#available_handler) | **GET** /available | Server availablity check. +[**server_info_handler**](GeneralApi.md#server_info_handler) | **GET** /info | Shows information about the server software version. + + + +## available_handler + +> available_handler() +Server availablity check. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## server_info_handler + +> models::ServerInfo server_info_handler() +Shows information about the server software version. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::ServerInfo**](ServerInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/GeoJson.md b/rust/docs/GeoJson.md new file mode 100644 index 00000000..4be19dd5 --- /dev/null +++ b/rust/docs/GeoJson.md @@ -0,0 +1,12 @@ +# GeoJson + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**features** | [**Vec**](serde_json::Value.md) | | +**r#type** | [**models::CollectionType**](CollectionType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetCapabilitiesFormat.md b/rust/docs/GetCapabilitiesFormat.md new file mode 100644 index 00000000..273e8fac --- /dev/null +++ b/rust/docs/GetCapabilitiesFormat.md @@ -0,0 +1,12 @@ +# GetCapabilitiesFormat + +## Enum Variants + +| Name | Value | +|---- | -----| +| TextSlashXml | text/xml | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetCapabilitiesRequest.md b/rust/docs/GetCapabilitiesRequest.md new file mode 100644 index 00000000..54ea5876 --- /dev/null +++ b/rust/docs/GetCapabilitiesRequest.md @@ -0,0 +1,12 @@ +# GetCapabilitiesRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| GetCapabilities | GetCapabilities | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetCoverageFormat.md b/rust/docs/GetCoverageFormat.md new file mode 100644 index 00000000..bf25853e --- /dev/null +++ b/rust/docs/GetCoverageFormat.md @@ -0,0 +1,12 @@ +# GetCoverageFormat + +## Enum Variants + +| Name | Value | +|---- | -----| +| ImageSlashTiff | image/tiff | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetCoverageRequest.md b/rust/docs/GetCoverageRequest.md new file mode 100644 index 00000000..246ce41e --- /dev/null +++ b/rust/docs/GetCoverageRequest.md @@ -0,0 +1,12 @@ +# GetCoverageRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| GetCoverage | GetCoverage | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetFeatureRequest.md b/rust/docs/GetFeatureRequest.md new file mode 100644 index 00000000..e8f24864 --- /dev/null +++ b/rust/docs/GetFeatureRequest.md @@ -0,0 +1,12 @@ +# GetFeatureRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| GetFeature | GetFeature | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetLegendGraphicRequest.md b/rust/docs/GetLegendGraphicRequest.md new file mode 100644 index 00000000..a0aa5ccb --- /dev/null +++ b/rust/docs/GetLegendGraphicRequest.md @@ -0,0 +1,12 @@ +# GetLegendGraphicRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| GetLegendGraphic | GetLegendGraphic | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetMapExceptionFormat.md b/rust/docs/GetMapExceptionFormat.md new file mode 100644 index 00000000..5ae2ef96 --- /dev/null +++ b/rust/docs/GetMapExceptionFormat.md @@ -0,0 +1,13 @@ +# GetMapExceptionFormat + +## Enum Variants + +| Name | Value | +|---- | -----| +| Xml | XML | +| Json | JSON | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetMapFormat.md b/rust/docs/GetMapFormat.md new file mode 100644 index 00000000..96e11530 --- /dev/null +++ b/rust/docs/GetMapFormat.md @@ -0,0 +1,12 @@ +# GetMapFormat + +## Enum Variants + +| Name | Value | +|---- | -----| +| ImageSlashPng | image/png | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GetMapRequest.md b/rust/docs/GetMapRequest.md new file mode 100644 index 00000000..d9036c33 --- /dev/null +++ b/rust/docs/GetMapRequest.md @@ -0,0 +1,12 @@ +# GetMapRequest + +## Enum Variants + +| Name | Value | +|---- | -----| +| GetMap | GetMap | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GfbioAbcdDataProviderDefinition.md b/rust/docs/GfbioAbcdDataProviderDefinition.md new file mode 100644 index 00000000..5ac4bee7 --- /dev/null +++ b/rust/docs/GfbioAbcdDataProviderDefinition.md @@ -0,0 +1,16 @@ +# GfbioAbcdDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_ttl** | Option<**i32**> | | [optional] +**db_config** | [**models::DatabaseConnectionConfig**](DatabaseConnectionConfig.md) | | +**description** | **String** | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/GfbioCollectionsDataProviderDefinition.md b/rust/docs/GfbioCollectionsDataProviderDefinition.md new file mode 100644 index 00000000..f66667fb --- /dev/null +++ b/rust/docs/GfbioCollectionsDataProviderDefinition.md @@ -0,0 +1,19 @@ +# GfbioCollectionsDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abcd_db_config** | [**models::DatabaseConnectionConfig**](DatabaseConnectionConfig.md) | | +**cache_ttl** | Option<**i32**> | | [optional] +**collection_api_auth_token** | **String** | | +**collection_api_url** | **String** | | +**description** | **String** | | +**name** | **String** | | +**pangaea_url** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/IdResponse.md b/rust/docs/IdResponse.md new file mode 100644 index 00000000..b8be2cbc --- /dev/null +++ b/rust/docs/IdResponse.md @@ -0,0 +1,11 @@ +# IdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/InternalDataId.md b/rust/docs/InternalDataId.md new file mode 100644 index 00000000..b2dff0c3 --- /dev/null +++ b/rust/docs/InternalDataId.md @@ -0,0 +1,12 @@ +# InternalDataId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataset_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Layer.md b/rust/docs/Layer.md new file mode 100644 index 00000000..41615911 --- /dev/null +++ b/rust/docs/Layer.md @@ -0,0 +1,17 @@ +# Layer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**id** | [**models::ProviderLayerId**](ProviderLayerId.md) | | +**metadata** | Option<**std::collections::HashMap**> | metadata used for loading the data | [optional] +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | properties, for instance, to be rendered in the UI | [optional] +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**workflow** | [**models::Workflow**](Workflow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerCollection.md b/rust/docs/LayerCollection.md new file mode 100644 index 00000000..ded86c42 --- /dev/null +++ b/rust/docs/LayerCollection.md @@ -0,0 +1,16 @@ +# LayerCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**entry_label** | Option<**String**> | a common label for the collection's entries, if there is any | [optional] +**id** | [**models::ProviderLayerCollectionId**](ProviderLayerCollectionId.md) | | +**items** | [**Vec**](CollectionItem.md) | | +**name** | **String** | | +**properties** | [**Vec>**](Vec.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerCollectionListing.md b/rust/docs/LayerCollectionListing.md new file mode 100644 index 00000000..86a04dda --- /dev/null +++ b/rust/docs/LayerCollectionListing.md @@ -0,0 +1,15 @@ +# LayerCollectionListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**id** | [**models::ProviderLayerCollectionId**](ProviderLayerCollectionId.md) | | +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerCollectionResource.md b/rust/docs/LayerCollectionResource.md new file mode 100644 index 00000000..c8871ed4 --- /dev/null +++ b/rust/docs/LayerCollectionResource.md @@ -0,0 +1,12 @@ +# LayerCollectionResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerListing.md b/rust/docs/LayerListing.md new file mode 100644 index 00000000..850ed15e --- /dev/null +++ b/rust/docs/LayerListing.md @@ -0,0 +1,15 @@ +# LayerListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**id** | [**models::ProviderLayerId**](ProviderLayerId.md) | | +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | properties, for instance, to be rendered in the UI | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerProviderListing.md b/rust/docs/LayerProviderListing.md new file mode 100644 index 00000000..3155bf03 --- /dev/null +++ b/rust/docs/LayerProviderListing.md @@ -0,0 +1,13 @@ +# LayerProviderListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerResource.md b/rust/docs/LayerResource.md new file mode 100644 index 00000000..62960f7c --- /dev/null +++ b/rust/docs/LayerResource.md @@ -0,0 +1,12 @@ +# LayerResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayerVisibility.md b/rust/docs/LayerVisibility.md new file mode 100644 index 00000000..b18b459d --- /dev/null +++ b/rust/docs/LayerVisibility.md @@ -0,0 +1,12 @@ +# LayerVisibility + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **bool** | | +**legend** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LayersApi.md b/rust/docs/LayersApi.md new file mode 100644 index 00000000..bbd670cb --- /dev/null +++ b/rust/docs/LayersApi.md @@ -0,0 +1,702 @@ +# \LayersApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_collection**](LayersApi.md#add_collection) | **POST** /layerDb/collections/{collection}/collections | Add a new collection to an existing collection +[**add_existing_collection_to_collection**](LayersApi.md#add_existing_collection_to_collection) | **POST** /layerDb/collections/{parent}/collections/{collection} | Add an existing collection to a collection +[**add_existing_layer_to_collection**](LayersApi.md#add_existing_layer_to_collection) | **POST** /layerDb/collections/{collection}/layers/{layer} | Add an existing layer to a collection +[**add_layer**](LayersApi.md#add_layer) | **POST** /layerDb/collections/{collection}/layers | Add a new layer to a collection +[**add_provider**](LayersApi.md#add_provider) | **POST** /layerDb/providers | Add a new provider +[**autocomplete_handler**](LayersApi.md#autocomplete_handler) | **GET** /layers/collections/search/autocomplete/{provider}/{collection} | Autocompletes the search on the contents of the collection of the given provider +[**delete_provider**](LayersApi.md#delete_provider) | **DELETE** /layerDb/providers/{provider} | Delete an existing provider +[**get_provider_definition**](LayersApi.md#get_provider_definition) | **GET** /layerDb/providers/{provider} | Get an existing provider's definition +[**layer_handler**](LayersApi.md#layer_handler) | **GET** /layers/{provider}/{layer} | Retrieves the layer of the given provider +[**layer_to_dataset**](LayersApi.md#layer_to_dataset) | **POST** /layers/{provider}/{layer}/dataset | Persist a raster layer from a provider as a dataset. +[**layer_to_workflow_id_handler**](LayersApi.md#layer_to_workflow_id_handler) | **POST** /layers/{provider}/{layer}/workflowId | Registers a layer from a provider as a workflow and returns the workflow id +[**list_collection_handler**](LayersApi.md#list_collection_handler) | **GET** /layers/collections/{provider}/{collection} | List the contents of the collection of the given provider +[**list_providers**](LayersApi.md#list_providers) | **GET** /layerDb/providers | List all providers +[**list_root_collections_handler**](LayersApi.md#list_root_collections_handler) | **GET** /layers/collections | List all layer collections +[**provider_capabilities_handler**](LayersApi.md#provider_capabilities_handler) | **GET** /layers/{provider}/capabilities | +[**remove_collection**](LayersApi.md#remove_collection) | **DELETE** /layerDb/collections/{collection} | Remove a collection +[**remove_collection_from_collection**](LayersApi.md#remove_collection_from_collection) | **DELETE** /layerDb/collections/{parent}/collections/{collection} | Delete a collection from a collection +[**remove_layer**](LayersApi.md#remove_layer) | **DELETE** /layerDb/layers/{layer} | Remove a collection +[**remove_layer_from_collection**](LayersApi.md#remove_layer_from_collection) | **DELETE** /layerDb/collections/{collection}/layers/{layer} | Remove a layer from a collection +[**search_handler**](LayersApi.md#search_handler) | **GET** /layers/collections/search/{provider}/{collection} | Searches the contents of the collection of the given provider +[**update_collection**](LayersApi.md#update_collection) | **PUT** /layerDb/collections/{collection} | Update a collection +[**update_layer**](LayersApi.md#update_layer) | **PUT** /layerDb/layers/{layer} | Update a layer +[**update_provider_definition**](LayersApi.md#update_provider_definition) | **PUT** /layerDb/providers/{provider} | Update an existing provider's definition + + + +## add_collection + +> models::IdResponse add_collection(collection, add_layer_collection) +Add a new collection to an existing collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | +**add_layer_collection** | [**AddLayerCollection**](AddLayerCollection.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_existing_collection_to_collection + +> add_existing_collection_to_collection(parent, collection) +Add an existing collection to a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**parent** | **String** | Parent layer collection id | [required] | +**collection** | **String** | Layer collection id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_existing_layer_to_collection + +> add_existing_layer_to_collection(collection, layer) +Add an existing layer to a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | +**layer** | **String** | Layer id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_layer + +> models::IdResponse add_layer(collection, add_layer) +Add a new layer to a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | +**add_layer** | [**AddLayer**](AddLayer.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_provider + +> models::IdResponse add_provider(typed_data_provider_definition) +Add a new provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**typed_data_provider_definition** | [**TypedDataProviderDefinition**](TypedDataProviderDefinition.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## autocomplete_handler + +> Vec autocomplete_handler(provider, collection, search_type, search_string, limit, offset) +Autocompletes the search on the contents of the collection of the given provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**collection** | **String** | Layer collection id | [required] | +**search_type** | [**SearchType**](.md) | | [required] | +**search_string** | **String** | | [required] | +**limit** | **i32** | | [required] | +**offset** | **i32** | | [required] | + +### Return type + +**Vec** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_provider + +> delete_provider(provider) +Delete an existing provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Layer provider id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_provider_definition + +> models::TypedDataProviderDefinition get_provider_definition(provider) +Get an existing provider's definition + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Layer provider id | [required] | + +### Return type + +[**models::TypedDataProviderDefinition**](TypedDataProviderDefinition.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## layer_handler + +> models::Layer layer_handler(provider, layer) +Retrieves the layer of the given provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**layer** | **String** | Layer id | [required] | + +### Return type + +[**models::Layer**](Layer.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## layer_to_dataset + +> models::TaskResponse layer_to_dataset(provider, layer) +Persist a raster layer from a provider as a dataset. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**layer** | **String** | Layer id | [required] | + +### Return type + +[**models::TaskResponse**](TaskResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## layer_to_workflow_id_handler + +> models::IdResponse layer_to_workflow_id_handler(provider, layer) +Registers a layer from a provider as a workflow and returns the workflow id + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**layer** | **String** | Layer id | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_collection_handler + +> models::LayerCollection list_collection_handler(provider, collection, offset, limit) +List the contents of the collection of the given provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**collection** | **String** | Layer collection id | [required] | +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**models::LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_providers + +> Vec list_providers(offset, limit) +List all providers + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**Vec**](LayerProviderListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_root_collections_handler + +> models::LayerCollection list_root_collections_handler(offset, limit) +List all layer collections + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**models::LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## provider_capabilities_handler + +> models::ProviderCapabilities provider_capabilities_handler(provider) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | + +### Return type + +[**models::ProviderCapabilities**](ProviderCapabilities.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_collection + +> remove_collection(collection) +Remove a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_collection_from_collection + +> remove_collection_from_collection(parent, collection) +Delete a collection from a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**parent** | **String** | Parent layer collection id | [required] | +**collection** | **String** | Layer collection id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_layer + +> remove_layer(layer) +Remove a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**layer** | **String** | Layer id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_layer_from_collection + +> remove_layer_from_collection(collection, layer) +Remove a layer from a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | +**layer** | **String** | Layer id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## search_handler + +> models::LayerCollection search_handler(provider, collection, search_type, search_string, limit, offset) +Searches the contents of the collection of the given provider + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Data provider id | [required] | +**collection** | **String** | Layer collection id | [required] | +**search_type** | [**SearchType**](.md) | | [required] | +**search_string** | **String** | | [required] | +**limit** | **i32** | | [required] | +**offset** | **i32** | | [required] | + +### Return type + +[**models::LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_collection + +> update_collection(collection, update_layer_collection) +Update a collection + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**collection** | **String** | Layer collection id | [required] | +**update_layer_collection** | [**UpdateLayerCollection**](UpdateLayerCollection.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_layer + +> update_layer(layer, update_layer) +Update a layer + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**layer** | **String** | Layer id | [required] | +**update_layer** | [**UpdateLayer**](UpdateLayer.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_provider_definition + +> update_provider_definition(provider, typed_data_provider_definition) +Update an existing provider's definition + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**provider** | **uuid::Uuid** | Layer provider id | [required] | +**typed_data_provider_definition** | [**TypedDataProviderDefinition**](TypedDataProviderDefinition.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/LineSymbology.md b/rust/docs/LineSymbology.md new file mode 100644 index 00000000..3097ef5d --- /dev/null +++ b/rust/docs/LineSymbology.md @@ -0,0 +1,14 @@ +# LineSymbology + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auto_simplified** | **bool** | | +**stroke** | [**models::StrokeParam**](StrokeParam.md) | | +**text** | Option<[**models::TextSymbology**](TextSymbology.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LinearGradient.md b/rust/docs/LinearGradient.md new file mode 100644 index 00000000..d7bb39fa --- /dev/null +++ b/rust/docs/LinearGradient.md @@ -0,0 +1,15 @@ +# LinearGradient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**breakpoints** | [**Vec**](Breakpoint.md) | | +**no_data_color** | **Vec** | | +**over_color** | **Vec** | | +**r#type** | **String** | | +**under_color** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LogarithmicGradient.md b/rust/docs/LogarithmicGradient.md new file mode 100644 index 00000000..10f12743 --- /dev/null +++ b/rust/docs/LogarithmicGradient.md @@ -0,0 +1,15 @@ +# LogarithmicGradient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**breakpoints** | [**Vec**](Breakpoint.md) | | +**no_data_color** | **Vec** | | +**over_color** | **Vec** | | +**r#type** | **String** | | +**under_color** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Measurement.md b/rust/docs/Measurement.md new file mode 100644 index 00000000..e7464086 --- /dev/null +++ b/rust/docs/Measurement.md @@ -0,0 +1,10 @@ +# Measurement + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MetaDataDefinition.md b/rust/docs/MetaDataDefinition.md new file mode 100644 index 00000000..8c5754fe --- /dev/null +++ b/rust/docs/MetaDataDefinition.md @@ -0,0 +1,10 @@ +# MetaDataDefinition + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MetaDataSuggestion.md b/rust/docs/MetaDataSuggestion.md new file mode 100644 index 00000000..3b79289d --- /dev/null +++ b/rust/docs/MetaDataSuggestion.md @@ -0,0 +1,13 @@ +# MetaDataSuggestion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layer_name** | **String** | | +**main_file** | **String** | | +**meta_data** | [**models::MetaDataDefinition**](MetaDataDefinition.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlApi.md b/rust/docs/MlApi.md new file mode 100644 index 00000000..3428ae5d --- /dev/null +++ b/rust/docs/MlApi.md @@ -0,0 +1,92 @@ +# \MlApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_ml_model**](MlApi.md#add_ml_model) | **POST** /ml/models | Create a new ml model. +[**get_ml_model**](MlApi.md#get_ml_model) | **GET** /ml/models/{model_name} | Get ml model by name. +[**list_ml_models**](MlApi.md#list_ml_models) | **GET** /ml/models | List ml models. + + + +## add_ml_model + +> models::MlModelNameResponse add_ml_model(ml_model) +Create a new ml model. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**ml_model** | [**MlModel**](MlModel.md) | | [required] | + +### Return type + +[**models::MlModelNameResponse**](MlModelNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_ml_model + +> models::MlModel get_ml_model(model_name) +Get ml model by name. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**model_name** | **String** | Ml Model Name | [required] | + +### Return type + +[**models::MlModel**](MlModel.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_ml_models + +> Vec list_ml_models() +List ml models. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](MlModel.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/MlModel.md b/rust/docs/MlModel.md new file mode 100644 index 00000000..dbf2e491 --- /dev/null +++ b/rust/docs/MlModel.md @@ -0,0 +1,16 @@ +# MlModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**display_name** | **String** | | +**file_name** | **String** | | +**metadata** | [**models::MlModelMetadata**](MlModelMetadata.md) | | +**name** | **String** | | +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelInputNoDataHandling.md b/rust/docs/MlModelInputNoDataHandling.md new file mode 100644 index 00000000..435a40a4 --- /dev/null +++ b/rust/docs/MlModelInputNoDataHandling.md @@ -0,0 +1,12 @@ +# MlModelInputNoDataHandling + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**no_data_value** | Option<**f32**> | | [optional] +**variant** | [**models::MlModelInputNoDataHandlingVariant**](MlModelInputNoDataHandlingVariant.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelInputNoDataHandlingVariant.md b/rust/docs/MlModelInputNoDataHandlingVariant.md new file mode 100644 index 00000000..d62d4bb1 --- /dev/null +++ b/rust/docs/MlModelInputNoDataHandlingVariant.md @@ -0,0 +1,13 @@ +# MlModelInputNoDataHandlingVariant + +## Enum Variants + +| Name | Value | +|---- | -----| +| EncodedNoData | encodedNoData | +| SkipIfNoData | skipIfNoData | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelMetadata.md b/rust/docs/MlModelMetadata.md new file mode 100644 index 00000000..0b86e0ae --- /dev/null +++ b/rust/docs/MlModelMetadata.md @@ -0,0 +1,16 @@ +# MlModelMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_no_data_handling** | [**models::MlModelInputNoDataHandling**](MlModelInputNoDataHandling.md) | | +**input_shape** | [**models::MlTensorShape3D**](MlTensorShape3D.md) | | +**input_type** | [**models::RasterDataType**](RasterDataType.md) | | +**output_no_data_handling** | [**models::MlModelOutputNoDataHandling**](MlModelOutputNoDataHandling.md) | | +**output_shape** | [**models::MlTensorShape3D**](MlTensorShape3D.md) | | +**output_type** | [**models::RasterDataType**](RasterDataType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelNameResponse.md b/rust/docs/MlModelNameResponse.md new file mode 100644 index 00000000..c7fac44a --- /dev/null +++ b/rust/docs/MlModelNameResponse.md @@ -0,0 +1,11 @@ +# MlModelNameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ml_model_name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelOutputNoDataHandling.md b/rust/docs/MlModelOutputNoDataHandling.md new file mode 100644 index 00000000..48b09d0e --- /dev/null +++ b/rust/docs/MlModelOutputNoDataHandling.md @@ -0,0 +1,12 @@ +# MlModelOutputNoDataHandling + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**no_data_value** | Option<**f32**> | | [optional] +**variant** | [**models::MlModelOutputNoDataHandlingVariant**](MlModelOutputNoDataHandlingVariant.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelOutputNoDataHandlingVariant.md b/rust/docs/MlModelOutputNoDataHandlingVariant.md new file mode 100644 index 00000000..3b8d6036 --- /dev/null +++ b/rust/docs/MlModelOutputNoDataHandlingVariant.md @@ -0,0 +1,13 @@ +# MlModelOutputNoDataHandlingVariant + +## Enum Variants + +| Name | Value | +|---- | -----| +| EncodedNoData | encodedNoData | +| NanIsNoData | nanIsNoData | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlModelResource.md b/rust/docs/MlModelResource.md new file mode 100644 index 00000000..7fd3cd6e --- /dev/null +++ b/rust/docs/MlModelResource.md @@ -0,0 +1,12 @@ +# MlModelResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MlTensorShape3D.md b/rust/docs/MlTensorShape3D.md new file mode 100644 index 00000000..88d968d2 --- /dev/null +++ b/rust/docs/MlTensorShape3D.md @@ -0,0 +1,13 @@ +# MlTensorShape3D + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bands** | **i32** | | +**x** | **i32** | | +**y** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MockDatasetDataSourceLoadingInfo.md b/rust/docs/MockDatasetDataSourceLoadingInfo.md new file mode 100644 index 00000000..fb6f00c1 --- /dev/null +++ b/rust/docs/MockDatasetDataSourceLoadingInfo.md @@ -0,0 +1,11 @@ +# MockDatasetDataSourceLoadingInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**points** | [**Vec**](Coordinate2D.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MockMetaData.md b/rust/docs/MockMetaData.md new file mode 100644 index 00000000..fd5be903 --- /dev/null +++ b/rust/docs/MockMetaData.md @@ -0,0 +1,13 @@ +# MockMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loading_info** | [**models::MockDatasetDataSourceLoadingInfo**](MockDatasetDataSourceLoadingInfo.md) | | +**result_descriptor** | [**models::VectorResultDescriptor**](VectorResultDescriptor.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiBandRasterColorizer.md b/rust/docs/MultiBandRasterColorizer.md new file mode 100644 index 00000000..bffda966 --- /dev/null +++ b/rust/docs/MultiBandRasterColorizer.md @@ -0,0 +1,24 @@ +# MultiBandRasterColorizer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blue_band** | **i32** | The band index of the blue channel. | +**blue_max** | **f64** | The maximum value for the red channel. | +**blue_min** | **f64** | The minimum value for the red channel. | +**blue_scale** | Option<**f64**> | A scaling factor for the blue channel between 0 and 1. | [optional] +**green_band** | **i32** | The band index of the green channel. | +**green_max** | **f64** | The maximum value for the red channel. | +**green_min** | **f64** | The minimum value for the red channel. | +**green_scale** | Option<**f64**> | A scaling factor for the green channel between 0 and 1. | [optional] +**no_data_color** | Option<**Vec**> | | [optional] +**red_band** | **i32** | The band index of the red channel. | +**red_max** | **f64** | The maximum value for the red channel. | +**red_min** | **f64** | The minimum value for the red channel. | +**red_scale** | Option<**f64**> | A scaling factor for the red channel between 0 and 1. | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiLineString.md b/rust/docs/MultiLineString.md new file mode 100644 index 00000000..26730019 --- /dev/null +++ b/rust/docs/MultiLineString.md @@ -0,0 +1,11 @@ +# MultiLineString + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coordinates** | [**Vec>**](Vec.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiPoint.md b/rust/docs/MultiPoint.md new file mode 100644 index 00000000..0a9cbf71 --- /dev/null +++ b/rust/docs/MultiPoint.md @@ -0,0 +1,11 @@ +# MultiPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coordinates** | [**Vec**](Coordinate2D.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiPolygon.md b/rust/docs/MultiPolygon.md new file mode 100644 index 00000000..a2756afe --- /dev/null +++ b/rust/docs/MultiPolygon.md @@ -0,0 +1,11 @@ +# MultiPolygon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**polygons** | [**Vec>>**](Vec.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/NetCdfCfDataProviderDefinition.md b/rust/docs/NetCdfCfDataProviderDefinition.md new file mode 100644 index 00000000..7027a349 --- /dev/null +++ b/rust/docs/NetCdfCfDataProviderDefinition.md @@ -0,0 +1,17 @@ +# NetCdfCfDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_ttl** | Option<**i32**> | | [optional] +**data** | **String** | Path were the `NetCDF` data can be found | +**description** | **String** | | +**name** | **String** | | +**overviews** | **String** | Path were overview files are stored | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/NumberParam.md b/rust/docs/NumberParam.md new file mode 100644 index 00000000..94898610 --- /dev/null +++ b/rust/docs/NumberParam.md @@ -0,0 +1,10 @@ +# NumberParam + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgcwcsApi.md b/rust/docs/OgcwcsApi.md new file mode 100644 index 00000000..665b4e45 --- /dev/null +++ b/rust/docs/OgcwcsApi.md @@ -0,0 +1,115 @@ +# \OgcwcsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**wcs_capabilities_handler**](OgcwcsApi.md#wcs_capabilities_handler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities +[**wcs_describe_coverage_handler**](OgcwcsApi.md#wcs_describe_coverage_handler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description +[**wcs_get_coverage_handler**](OgcwcsApi.md#wcs_get_coverage_handler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage + + + +## wcs_capabilities_handler + +> String wcs_capabilities_handler(workflow, service, request, version) +Get WCS Capabilities + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**service** | [**WcsService**](.md) | | [required] | +**request** | [**GetCapabilitiesRequest**](.md) | | [required] | +**version** | Option<[**WcsVersion**](.md)> | | | + +### Return type + +**String** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## wcs_describe_coverage_handler + +> String wcs_describe_coverage_handler(workflow, version, service, request, identifiers) +Get WCS Coverage Description + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | [**WcsVersion**](.md) | | [required] | +**service** | [**WcsService**](.md) | | [required] | +**request** | [**DescribeCoverageRequest**](.md) | | [required] | +**identifiers** | **String** | | [required] | + +### Return type + +**String** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## wcs_get_coverage_handler + +> std::path::PathBuf wcs_get_coverage_handler(workflow, version, service, request, format, identifier, boundingbox, gridbasecrs, gridorigin, gridoffsets, time, resx, resy, nodatavalue) +Get WCS Coverage + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | [**WcsVersion**](.md) | | [required] | +**service** | [**WcsService**](.md) | | [required] | +**request** | [**GetCoverageRequest**](.md) | | [required] | +**format** | [**GetCoverageFormat**](.md) | | [required] | +**identifier** | **String** | | [required] | +**boundingbox** | **String** | | [required] | +**gridbasecrs** | **String** | | [required] | +**gridorigin** | Option<**String**> | | | +**gridoffsets** | Option<**String**> | | | +**time** | Option<**String**> | | | +**resx** | Option<**f64**> | | | +**resy** | Option<**f64**> | | | +**nodatavalue** | Option<**f64**> | | | + +### Return type + +[**std::path::PathBuf**](std::path::PathBuf.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: image/png + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/OgcwfsApi.md b/rust/docs/OgcwfsApi.md new file mode 100644 index 00000000..e67554c3 --- /dev/null +++ b/rust/docs/OgcwfsApi.md @@ -0,0 +1,83 @@ +# \OgcwfsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**wfs_capabilities_handler**](OgcwfsApi.md#wfs_capabilities_handler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities +[**wfs_feature_handler**](OgcwfsApi.md#wfs_feature_handler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features + + + +## wfs_capabilities_handler + +> String wfs_capabilities_handler(workflow, version, service, request) +Get WFS Capabilities + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | Option<[**WfsVersion**](.md)> | | [required] | +**service** | [**WfsService**](.md) | | [required] | +**request** | [**GetCapabilitiesRequest**](.md) | | [required] | + +### Return type + +**String** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## wfs_feature_handler + +> models::GeoJson wfs_feature_handler(workflow, service, request, type_names, bbox, version, time, srs_name, namespaces, count, sort_by, result_type, filter, property_name, query_resolution) +Get WCS Features + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**service** | [**WfsService**](.md) | | [required] | +**request** | [**GetFeatureRequest**](.md) | | [required] | +**type_names** | **String** | | [required] | +**bbox** | **String** | | [required] | +**version** | Option<[**WfsVersion**](.md)> | | | +**time** | Option<**String**> | | | +**srs_name** | Option<**String**> | | | +**namespaces** | Option<**String**> | | | +**count** | Option<**i64**> | | | +**sort_by** | Option<**String**> | | | +**result_type** | Option<**String**> | | | +**filter** | Option<**String**> | | | +**property_name** | Option<**String**> | | | +**query_resolution** | Option<**String**> | Vendor parameter for specifying a spatial query resolution | | + +### Return type + +[**models::GeoJson**](GeoJson.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/OgcwmsApi.md b/rust/docs/OgcwmsApi.md new file mode 100644 index 00000000..5b3921c3 --- /dev/null +++ b/rust/docs/OgcwmsApi.md @@ -0,0 +1,120 @@ +# \OgcwmsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**wms_capabilities_handler**](OgcwmsApi.md#wms_capabilities_handler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities +[**wms_legend_graphic_handler**](OgcwmsApi.md#wms_legend_graphic_handler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic +[**wms_map_handler**](OgcwmsApi.md#wms_map_handler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map + + + +## wms_capabilities_handler + +> String wms_capabilities_handler(workflow, version, service, request, format) +Get WMS Capabilities + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | Option<[**WmsVersion**](.md)> | | [required] | +**service** | [**WmsService**](.md) | | [required] | +**request** | [**GetCapabilitiesRequest**](.md) | | [required] | +**format** | Option<[**GetCapabilitiesFormat**](.md)> | | [required] | + +### Return type + +**String** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## wms_legend_graphic_handler + +> wms_legend_graphic_handler(workflow, version, service, request, layer) +Get WMS Legend Graphic + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | [**WmsVersion**](.md) | | [required] | +**service** | [**WmsService**](.md) | | [required] | +**request** | [**GetLegendGraphicRequest**](.md) | | [required] | +**layer** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## wms_map_handler + +> std::path::PathBuf wms_map_handler(workflow, version, service, request, width, height, bbox, format, layers, styles, crs, time, transparent, bgcolor, sld, sld_body, elevation, exceptions) +Get WMS Map + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | **uuid::Uuid** | Workflow id | [required] | +**version** | [**WmsVersion**](.md) | | [required] | +**service** | [**WmsService**](.md) | | [required] | +**request** | [**GetMapRequest**](.md) | | [required] | +**width** | **i32** | | [required] | +**height** | **i32** | | [required] | +**bbox** | **String** | | [required] | +**format** | [**GetMapFormat**](.md) | | [required] | +**layers** | **String** | | [required] | +**styles** | **String** | | [required] | +**crs** | Option<**String**> | | | +**time** | Option<**String**> | | | +**transparent** | Option<**bool**> | | | +**bgcolor** | Option<**String**> | | | +**sld** | Option<**String**> | | | +**sld_body** | Option<**String**> | | | +**elevation** | Option<**String**> | | | +**exceptions** | Option<[**GetMapExceptionFormat**](.md)> | | | + +### Return type + +[**std::path::PathBuf**](std::path::PathBuf.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: image/png + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/OgrMetaData.md b/rust/docs/OgrMetaData.md new file mode 100644 index 00000000..bff42288 --- /dev/null +++ b/rust/docs/OgrMetaData.md @@ -0,0 +1,13 @@ +# OgrMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loading_info** | [**models::OgrSourceDataset**](OgrSourceDataset.md) | | +**result_descriptor** | [**models::VectorResultDescriptor**](VectorResultDescriptor.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceColumnSpec.md b/rust/docs/OgrSourceColumnSpec.md new file mode 100644 index 00000000..e022b809 --- /dev/null +++ b/rust/docs/OgrSourceColumnSpec.md @@ -0,0 +1,19 @@ +# OgrSourceColumnSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bool** | Option<**Vec**> | | [optional] +**datetime** | Option<**Vec**> | | [optional] +**float** | Option<**Vec**> | | [optional] +**format_specifics** | Option<[**models::FormatSpecifics**](FormatSpecifics.md)> | | [optional] +**int** | Option<**Vec**> | | [optional] +**rename** | Option<**std::collections::HashMap**> | | [optional] +**text** | Option<**Vec**> | | [optional] +**x** | **String** | | +**y** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDataset.md b/rust/docs/OgrSourceDataset.md new file mode 100644 index 00000000..eb3fce77 --- /dev/null +++ b/rust/docs/OgrSourceDataset.md @@ -0,0 +1,22 @@ +# OgrSourceDataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_query** | Option<**String**> | | [optional] +**cache_ttl** | Option<**i32**> | | [optional] +**columns** | Option<[**models::OgrSourceColumnSpec**](OgrSourceColumnSpec.md)> | | [optional] +**data_type** | Option<[**models::VectorDataType**](VectorDataType.md)> | | [optional] +**default_geometry** | Option<[**models::TypedGeometry**](TypedGeometry.md)> | | [optional] +**file_name** | **String** | | +**force_ogr_spatial_filter** | Option<**bool**> | | [optional] +**force_ogr_time_filter** | Option<**bool**> | | [optional] +**layer_name** | **String** | | +**on_error** | [**models::OgrSourceErrorSpec**](OgrSourceErrorSpec.md) | | +**sql_query** | Option<**String**> | | [optional] +**time** | Option<[**models::OgrSourceDatasetTimeType**](OgrSourceDatasetTimeType.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDatasetTimeType.md b/rust/docs/OgrSourceDatasetTimeType.md new file mode 100644 index 00000000..8038b9da --- /dev/null +++ b/rust/docs/OgrSourceDatasetTimeType.md @@ -0,0 +1,10 @@ +# OgrSourceDatasetTimeType + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDatasetTimeTypeNone.md b/rust/docs/OgrSourceDatasetTimeTypeNone.md new file mode 100644 index 00000000..ed49e298 --- /dev/null +++ b/rust/docs/OgrSourceDatasetTimeTypeNone.md @@ -0,0 +1,11 @@ +# OgrSourceDatasetTimeTypeNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDatasetTimeTypeStart.md b/rust/docs/OgrSourceDatasetTimeTypeStart.md new file mode 100644 index 00000000..a0333a6f --- /dev/null +++ b/rust/docs/OgrSourceDatasetTimeTypeStart.md @@ -0,0 +1,14 @@ +# OgrSourceDatasetTimeTypeStart + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | [**models::OgrSourceDurationSpec**](OgrSourceDurationSpec.md) | | +**start_field** | **String** | | +**start_format** | [**models::OgrSourceTimeFormat**](OgrSourceTimeFormat.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDatasetTimeTypeStartDuration.md b/rust/docs/OgrSourceDatasetTimeTypeStartDuration.md new file mode 100644 index 00000000..339e7743 --- /dev/null +++ b/rust/docs/OgrSourceDatasetTimeTypeStartDuration.md @@ -0,0 +1,14 @@ +# OgrSourceDatasetTimeTypeStartDuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration_field** | **String** | | +**start_field** | **String** | | +**start_format** | [**models::OgrSourceTimeFormat**](OgrSourceTimeFormat.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDatasetTimeTypeStartEnd.md b/rust/docs/OgrSourceDatasetTimeTypeStartEnd.md new file mode 100644 index 00000000..a444ed0d --- /dev/null +++ b/rust/docs/OgrSourceDatasetTimeTypeStartEnd.md @@ -0,0 +1,15 @@ +# OgrSourceDatasetTimeTypeStartEnd + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_field** | **String** | | +**end_format** | [**models::OgrSourceTimeFormat**](OgrSourceTimeFormat.md) | | +**start_field** | **String** | | +**start_format** | [**models::OgrSourceTimeFormat**](OgrSourceTimeFormat.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDurationSpec.md b/rust/docs/OgrSourceDurationSpec.md new file mode 100644 index 00000000..8b9cc4e4 --- /dev/null +++ b/rust/docs/OgrSourceDurationSpec.md @@ -0,0 +1,10 @@ +# OgrSourceDurationSpec + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDurationSpecInfinite.md b/rust/docs/OgrSourceDurationSpecInfinite.md new file mode 100644 index 00000000..8e2a0e95 --- /dev/null +++ b/rust/docs/OgrSourceDurationSpecInfinite.md @@ -0,0 +1,11 @@ +# OgrSourceDurationSpecInfinite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDurationSpecValue.md b/rust/docs/OgrSourceDurationSpecValue.md new file mode 100644 index 00000000..99d5b135 --- /dev/null +++ b/rust/docs/OgrSourceDurationSpecValue.md @@ -0,0 +1,13 @@ +# OgrSourceDurationSpecValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**granularity** | [**models::TimeGranularity**](TimeGranularity.md) | | +**step** | **i32** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceDurationSpecZero.md b/rust/docs/OgrSourceDurationSpecZero.md new file mode 100644 index 00000000..928210f4 --- /dev/null +++ b/rust/docs/OgrSourceDurationSpecZero.md @@ -0,0 +1,11 @@ +# OgrSourceDurationSpecZero + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceErrorSpec.md b/rust/docs/OgrSourceErrorSpec.md new file mode 100644 index 00000000..fe33a1e7 --- /dev/null +++ b/rust/docs/OgrSourceErrorSpec.md @@ -0,0 +1,13 @@ +# OgrSourceErrorSpec + +## Enum Variants + +| Name | Value | +|---- | -----| +| Ignore | ignore | +| Abort | abort | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceTimeFormat.md b/rust/docs/OgrSourceTimeFormat.md new file mode 100644 index 00000000..3d75c693 --- /dev/null +++ b/rust/docs/OgrSourceTimeFormat.md @@ -0,0 +1,10 @@ +# OgrSourceTimeFormat + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceTimeFormatAuto.md b/rust/docs/OgrSourceTimeFormatAuto.md new file mode 100644 index 00000000..71080e0c --- /dev/null +++ b/rust/docs/OgrSourceTimeFormatAuto.md @@ -0,0 +1,11 @@ +# OgrSourceTimeFormatAuto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceTimeFormatCustom.md b/rust/docs/OgrSourceTimeFormatCustom.md new file mode 100644 index 00000000..03b2b5d5 --- /dev/null +++ b/rust/docs/OgrSourceTimeFormatCustom.md @@ -0,0 +1,12 @@ +# OgrSourceTimeFormatCustom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_format** | **String** | | +**format** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OgrSourceTimeFormatUnixTimeStamp.md b/rust/docs/OgrSourceTimeFormatUnixTimeStamp.md new file mode 100644 index 00000000..862a139c --- /dev/null +++ b/rust/docs/OgrSourceTimeFormatUnixTimeStamp.md @@ -0,0 +1,12 @@ +# OgrSourceTimeFormatUnixTimeStamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **String** | | +**timestamp_type** | [**models::UnixTimeStampType**](UnixTimeStampType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OperatorQuota.md b/rust/docs/OperatorQuota.md new file mode 100644 index 00000000..cd2d57c9 --- /dev/null +++ b/rust/docs/OperatorQuota.md @@ -0,0 +1,13 @@ +# OperatorQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **i64** | | +**operator_name** | **String** | | +**operator_path** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/OrderBy.md b/rust/docs/OrderBy.md new file mode 100644 index 00000000..12369127 --- /dev/null +++ b/rust/docs/OrderBy.md @@ -0,0 +1,13 @@ +# OrderBy + +## Enum Variants + +| Name | Value | +|---- | -----| +| NameAsc | NameAsc | +| NameDesc | NameDesc | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PaletteColorizer.md b/rust/docs/PaletteColorizer.md new file mode 100644 index 00000000..07eaac89 --- /dev/null +++ b/rust/docs/PaletteColorizer.md @@ -0,0 +1,14 @@ +# PaletteColorizer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**colors** | [**std::collections::HashMap>**](Vec.md) | A map from value to color It is assumed that is has at least one and at most 256 entries. | +**default_color** | **Vec** | | +**no_data_color** | **Vec** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PangaeaDataProviderDefinition.md b/rust/docs/PangaeaDataProviderDefinition.md new file mode 100644 index 00000000..d8469970 --- /dev/null +++ b/rust/docs/PangaeaDataProviderDefinition.md @@ -0,0 +1,16 @@ +# PangaeaDataProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**base_url** | **String** | | +**cache_ttl** | **i32** | | +**description** | **String** | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Permission.md b/rust/docs/Permission.md new file mode 100644 index 00000000..887b6a95 --- /dev/null +++ b/rust/docs/Permission.md @@ -0,0 +1,13 @@ +# Permission + +## Enum Variants + +| Name | Value | +|---- | -----| +| Read | Read | +| Owner | Owner | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PermissionListOptions.md b/rust/docs/PermissionListOptions.md new file mode 100644 index 00000000..e02f0038 --- /dev/null +++ b/rust/docs/PermissionListOptions.md @@ -0,0 +1,12 @@ +# PermissionListOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **i32** | | +**offset** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PermissionListing.md b/rust/docs/PermissionListing.md new file mode 100644 index 00000000..18ea64eb --- /dev/null +++ b/rust/docs/PermissionListing.md @@ -0,0 +1,13 @@ +# PermissionListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | [**models::Permission**](Permission.md) | | +**resource** | [**models::Resource**](Resource.md) | | +**role** | [**models::Role**](Role.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PermissionRequest.md b/rust/docs/PermissionRequest.md new file mode 100644 index 00000000..e10660e8 --- /dev/null +++ b/rust/docs/PermissionRequest.md @@ -0,0 +1,13 @@ +# PermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | [**models::Permission**](Permission.md) | | +**resource** | [**models::Resource**](Resource.md) | | +**role_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PermissionsApi.md b/rust/docs/PermissionsApi.md new file mode 100644 index 00000000..66e642d6 --- /dev/null +++ b/rust/docs/PermissionsApi.md @@ -0,0 +1,98 @@ +# \PermissionsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_permission_handler**](PermissionsApi.md#add_permission_handler) | **PUT** /permissions | Adds a new permission. +[**get_resource_permissions_handler**](PermissionsApi.md#get_resource_permissions_handler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource. +[**remove_permission_handler**](PermissionsApi.md#remove_permission_handler) | **DELETE** /permissions | Removes an existing permission. + + + +## add_permission_handler + +> add_permission_handler(permission_request) +Adds a new permission. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_request** | [**PermissionRequest**](PermissionRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_resource_permissions_handler + +> Vec get_resource_permissions_handler(resource_type, resource_id, limit, offset) +Lists permission for a given resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**resource_type** | **String** | Resource Type | [required] | +**resource_id** | **String** | Resource Id | [required] | +**limit** | **i32** | | [required] | +**offset** | **i32** | | [required] | + +### Return type + +[**Vec**](PermissionListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_permission_handler + +> remove_permission_handler(permission_request) +Removes an existing permission. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_request** | [**PermissionRequest**](PermissionRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/Plot.md b/rust/docs/Plot.md new file mode 100644 index 00000000..8c4817f3 --- /dev/null +++ b/rust/docs/Plot.md @@ -0,0 +1,12 @@ +# Plot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**workflow** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PlotOutputFormat.md b/rust/docs/PlotOutputFormat.md new file mode 100644 index 00000000..438169ab --- /dev/null +++ b/rust/docs/PlotOutputFormat.md @@ -0,0 +1,14 @@ +# PlotOutputFormat + +## Enum Variants + +| Name | Value | +|---- | -----| +| JsonPlain | JsonPlain | +| JsonVega | JsonVega | +| ImagePng | ImagePng | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PlotQueryRectangle.md b/rust/docs/PlotQueryRectangle.md new file mode 100644 index 00000000..47e63776 --- /dev/null +++ b/rust/docs/PlotQueryRectangle.md @@ -0,0 +1,13 @@ +# PlotQueryRectangle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spatial_bounds** | [**models::BoundingBox2D**](BoundingBox2D.md) | | +**spatial_resolution** | [**models::SpatialResolution**](SpatialResolution.md) | | +**time_interval** | [**models::TimeInterval**](TimeInterval.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PlotResultDescriptor.md b/rust/docs/PlotResultDescriptor.md new file mode 100644 index 00000000..3b2376a2 --- /dev/null +++ b/rust/docs/PlotResultDescriptor.md @@ -0,0 +1,13 @@ +# PlotResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | Option<[**models::BoundingBox2D**](BoundingBox2D.md)> | | [optional] +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PlotsApi.md b/rust/docs/PlotsApi.md new file mode 100644 index 00000000..30188fa6 --- /dev/null +++ b/rust/docs/PlotsApi.md @@ -0,0 +1,43 @@ +# \PlotsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_plot_handler**](PlotsApi.md#get_plot_handler) | **GET** /plot/{id} | Generates a plot. + + + +## get_plot_handler + +> models::WrappedPlotOutput get_plot_handler(bbox, time, spatial_resolution, id, crs) +Generates a plot. + +# Example 1. Upload the file `plain_data.csv` with the following content: ```csv a 1 2 ``` 2. Create a dataset from it using the \"Plain Data\" example at `/dataset`. 3. Create a statistics workflow using the \"Statistics Plot\" example at `/workflow`. 4. Generate the plot with this handler. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**bbox** | **String** | | [required] | +**time** | **String** | | [required] | +**spatial_resolution** | **String** | | [required] | +**id** | **uuid::Uuid** | Workflow id | [required] | +**crs** | Option<**String**> | | | + +### Return type + +[**models::WrappedPlotOutput**](WrappedPlotOutput.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/PointSymbology.md b/rust/docs/PointSymbology.md new file mode 100644 index 00000000..b6ed46f0 --- /dev/null +++ b/rust/docs/PointSymbology.md @@ -0,0 +1,15 @@ +# PointSymbology + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fill_color** | [**models::ColorParam**](ColorParam.md) | | +**radius** | [**models::NumberParam**](NumberParam.md) | | +**stroke** | [**models::StrokeParam**](StrokeParam.md) | | +**text** | Option<[**models::TextSymbology**](TextSymbology.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PolygonSymbology.md b/rust/docs/PolygonSymbology.md new file mode 100644 index 00000000..76b2bd23 --- /dev/null +++ b/rust/docs/PolygonSymbology.md @@ -0,0 +1,15 @@ +# PolygonSymbology + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auto_simplified** | **bool** | | +**fill_color** | [**models::ColorParam**](ColorParam.md) | | +**stroke** | [**models::StrokeParam**](StrokeParam.md) | | +**text** | Option<[**models::TextSymbology**](TextSymbology.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Project.md b/rust/docs/Project.md new file mode 100644 index 00000000..1cb1f418 --- /dev/null +++ b/rust/docs/Project.md @@ -0,0 +1,18 @@ +# Project + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bounds** | [**models::StRectangle**](STRectangle.md) | | +**description** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**layers** | [**Vec**](ProjectLayer.md) | | +**name** | **String** | | +**plots** | [**Vec**](Plot.md) | | +**time_step** | [**models::TimeStep**](TimeStep.md) | | +**version** | [**models::ProjectVersion**](ProjectVersion.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectLayer.md b/rust/docs/ProjectLayer.md new file mode 100644 index 00000000..b6536cbf --- /dev/null +++ b/rust/docs/ProjectLayer.md @@ -0,0 +1,14 @@ +# ProjectLayer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**symbology** | [**models::Symbology**](Symbology.md) | | +**visibility** | [**models::LayerVisibility**](LayerVisibility.md) | | +**workflow** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectListing.md b/rust/docs/ProjectListing.md new file mode 100644 index 00000000..9f67a215 --- /dev/null +++ b/rust/docs/ProjectListing.md @@ -0,0 +1,16 @@ +# ProjectListing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changed** | **String** | | +**description** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**layer_names** | **Vec** | | +**name** | **String** | | +**plot_names** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectResource.md b/rust/docs/ProjectResource.md new file mode 100644 index 00000000..fd0707eb --- /dev/null +++ b/rust/docs/ProjectResource.md @@ -0,0 +1,12 @@ +# ProjectResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectUpdateToken.md b/rust/docs/ProjectUpdateToken.md new file mode 100644 index 00000000..6e96ad15 --- /dev/null +++ b/rust/docs/ProjectUpdateToken.md @@ -0,0 +1,13 @@ +# ProjectUpdateToken + +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Delete | delete | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectVersion.md b/rust/docs/ProjectVersion.md new file mode 100644 index 00000000..e40a3d53 --- /dev/null +++ b/rust/docs/ProjectVersion.md @@ -0,0 +1,12 @@ +# ProjectVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changed** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProjectsApi.md b/rust/docs/ProjectsApi.md new file mode 100644 index 00000000..c9b4db27 --- /dev/null +++ b/rust/docs/ProjectsApi.md @@ -0,0 +1,215 @@ +# \ProjectsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_project_handler**](ProjectsApi.md#create_project_handler) | **POST** /project | Create a new project for the user. +[**delete_project_handler**](ProjectsApi.md#delete_project_handler) | **DELETE** /project/{project} | Deletes a project. +[**list_projects_handler**](ProjectsApi.md#list_projects_handler) | **GET** /projects | List all projects accessible to the user that match the selected criteria. +[**load_project_latest_handler**](ProjectsApi.md#load_project_latest_handler) | **GET** /project/{project} | Retrieves details about the latest version of a project. +[**load_project_version_handler**](ProjectsApi.md#load_project_version_handler) | **GET** /project/{project}/{version} | Retrieves details about the given version of a project. +[**project_versions_handler**](ProjectsApi.md#project_versions_handler) | **GET** /project/{project}/versions | Lists all available versions of a project. +[**update_project_handler**](ProjectsApi.md#update_project_handler) | **PATCH** /project/{project} | Updates a project. This will create a new version. + + + +## create_project_handler + +> models::IdResponse create_project_handler(create_project) +Create a new project for the user. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_project** | [**CreateProject**](CreateProject.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_project_handler + +> delete_project_handler(project) +Deletes a project. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_projects_handler + +> Vec list_projects_handler(order, offset, limit) +List all projects accessible to the user that match the selected criteria. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**order** | [**OrderBy**](.md) | | [required] | +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**Vec**](ProjectListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## load_project_latest_handler + +> models::Project load_project_latest_handler(project) +Retrieves details about the latest version of a project. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | + +### Return type + +[**models::Project**](Project.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## load_project_version_handler + +> models::Project load_project_version_handler(project, version) +Retrieves details about the given version of a project. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | +**version** | **uuid::Uuid** | Version id | [required] | + +### Return type + +[**models::Project**](Project.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## project_versions_handler + +> Vec project_versions_handler(project) +Lists all available versions of a project. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | + +### Return type + +[**Vec**](ProjectVersion.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_project_handler + +> update_project_handler(project, update_project) +Updates a project. This will create a new version. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | +**update_project** | [**UpdateProject**](UpdateProject.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/Provenance.md b/rust/docs/Provenance.md new file mode 100644 index 00000000..2309c300 --- /dev/null +++ b/rust/docs/Provenance.md @@ -0,0 +1,13 @@ +# Provenance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**citation** | **String** | | +**license** | **String** | | +**uri** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProvenanceEntry.md b/rust/docs/ProvenanceEntry.md new file mode 100644 index 00000000..67b99b92 --- /dev/null +++ b/rust/docs/ProvenanceEntry.md @@ -0,0 +1,12 @@ +# ProvenanceEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](DataId.md) | | +**provenance** | [**models::Provenance**](Provenance.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProvenanceOutput.md b/rust/docs/ProvenanceOutput.md new file mode 100644 index 00000000..8db015b7 --- /dev/null +++ b/rust/docs/ProvenanceOutput.md @@ -0,0 +1,12 @@ +# ProvenanceOutput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::DataId**](DataId.md) | | +**provenance** | Option<[**Vec**](Provenance.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Provenances.md b/rust/docs/Provenances.md new file mode 100644 index 00000000..e1de20f5 --- /dev/null +++ b/rust/docs/Provenances.md @@ -0,0 +1,11 @@ +# Provenances + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provenances** | [**Vec**](Provenance.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProviderCapabilities.md b/rust/docs/ProviderCapabilities.md new file mode 100644 index 00000000..b537c4bc --- /dev/null +++ b/rust/docs/ProviderCapabilities.md @@ -0,0 +1,12 @@ +# ProviderCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listing** | **bool** | | +**search** | [**models::SearchCapabilities**](SearchCapabilities.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProviderLayerCollectionId.md b/rust/docs/ProviderLayerCollectionId.md new file mode 100644 index 00000000..162867bd --- /dev/null +++ b/rust/docs/ProviderLayerCollectionId.md @@ -0,0 +1,12 @@ +# ProviderLayerCollectionId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**collection_id** | **String** | | +**provider_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ProviderLayerId.md b/rust/docs/ProviderLayerId.md new file mode 100644 index 00000000..a8aafe43 --- /dev/null +++ b/rust/docs/ProviderLayerId.md @@ -0,0 +1,12 @@ +# ProviderLayerId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layer_id** | **String** | | +**provider_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Quota.md b/rust/docs/Quota.md new file mode 100644 index 00000000..2cbe5546 --- /dev/null +++ b/rust/docs/Quota.md @@ -0,0 +1,12 @@ +# Quota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | **i64** | | +**used** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterBandDescriptor.md b/rust/docs/RasterBandDescriptor.md new file mode 100644 index 00000000..67b7412e --- /dev/null +++ b/rust/docs/RasterBandDescriptor.md @@ -0,0 +1,12 @@ +# RasterBandDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**measurement** | [**models::Measurement**](Measurement.md) | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterColorizer.md b/rust/docs/RasterColorizer.md new file mode 100644 index 00000000..02ea27de --- /dev/null +++ b/rust/docs/RasterColorizer.md @@ -0,0 +1,10 @@ +# RasterColorizer + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterDataType.md b/rust/docs/RasterDataType.md new file mode 100644 index 00000000..dd1561c7 --- /dev/null +++ b/rust/docs/RasterDataType.md @@ -0,0 +1,21 @@ +# RasterDataType + +## Enum Variants + +| Name | Value | +|---- | -----| +| U8 | U8 | +| U16 | U16 | +| U32 | U32 | +| U64 | U64 | +| I8 | I8 | +| I16 | I16 | +| I32 | I32 | +| I64 | I64 | +| F32 | F32 | +| F64 | F64 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterDatasetFromWorkflow.md b/rust/docs/RasterDatasetFromWorkflow.md new file mode 100644 index 00000000..712b7b08 --- /dev/null +++ b/rust/docs/RasterDatasetFromWorkflow.md @@ -0,0 +1,15 @@ +# RasterDatasetFromWorkflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**as_cog** | Option<**bool**> | | [optional][default to true] +**description** | Option<**String**> | | [optional] +**display_name** | **String** | | +**name** | Option<**String**> | | [optional] +**query** | [**models::RasterQueryRectangle**](RasterQueryRectangle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterDatasetFromWorkflowResult.md b/rust/docs/RasterDatasetFromWorkflowResult.md new file mode 100644 index 00000000..84b5363c --- /dev/null +++ b/rust/docs/RasterDatasetFromWorkflowResult.md @@ -0,0 +1,12 @@ +# RasterDatasetFromWorkflowResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataset** | **String** | | +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterPropertiesEntryType.md b/rust/docs/RasterPropertiesEntryType.md new file mode 100644 index 00000000..f02505f9 --- /dev/null +++ b/rust/docs/RasterPropertiesEntryType.md @@ -0,0 +1,13 @@ +# RasterPropertiesEntryType + +## Enum Variants + +| Name | Value | +|---- | -----| +| Number | Number | +| String | String | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterPropertiesKey.md b/rust/docs/RasterPropertiesKey.md new file mode 100644 index 00000000..d6944dc9 --- /dev/null +++ b/rust/docs/RasterPropertiesKey.md @@ -0,0 +1,12 @@ +# RasterPropertiesKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | Option<**String**> | | [optional] +**key** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterQueryRectangle.md b/rust/docs/RasterQueryRectangle.md new file mode 100644 index 00000000..b40a5ab2 --- /dev/null +++ b/rust/docs/RasterQueryRectangle.md @@ -0,0 +1,13 @@ +# RasterQueryRectangle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spatial_bounds** | [**models::SpatialPartition2D**](SpatialPartition2D.md) | | +**spatial_resolution** | [**models::SpatialResolution**](SpatialResolution.md) | | +**time_interval** | [**models::TimeInterval**](TimeInterval.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterResultDescriptor.md b/rust/docs/RasterResultDescriptor.md new file mode 100644 index 00000000..c21b715c --- /dev/null +++ b/rust/docs/RasterResultDescriptor.md @@ -0,0 +1,16 @@ +# RasterResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bands** | [**Vec**](RasterBandDescriptor.md) | | +**bbox** | Option<[**models::SpatialPartition2D**](SpatialPartition2D.md)> | | [optional] +**data_type** | [**models::RasterDataType**](RasterDataType.md) | | +**resolution** | Option<[**models::SpatialResolution**](SpatialResolution.md)> | | [optional] +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterStreamWebsocketResultType.md b/rust/docs/RasterStreamWebsocketResultType.md new file mode 100644 index 00000000..7e7575dd --- /dev/null +++ b/rust/docs/RasterStreamWebsocketResultType.md @@ -0,0 +1,12 @@ +# RasterStreamWebsocketResultType + +## Enum Variants + +| Name | Value | +|---- | -----| +| Arrow | arrow | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterSymbology.md b/rust/docs/RasterSymbology.md new file mode 100644 index 00000000..a61af822 --- /dev/null +++ b/rust/docs/RasterSymbology.md @@ -0,0 +1,13 @@ +# RasterSymbology + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opacity** | **f64** | | +**raster_colorizer** | [**models::RasterColorizer**](RasterColorizer.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Resource.md b/rust/docs/Resource.md new file mode 100644 index 00000000..bd3ddaf3 --- /dev/null +++ b/rust/docs/Resource.md @@ -0,0 +1,10 @@ +# Resource + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Role.md b/rust/docs/Role.md new file mode 100644 index 00000000..e8db33b9 --- /dev/null +++ b/rust/docs/Role.md @@ -0,0 +1,12 @@ +# Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RoleDescription.md b/rust/docs/RoleDescription.md new file mode 100644 index 00000000..c040d8a8 --- /dev/null +++ b/rust/docs/RoleDescription.md @@ -0,0 +1,12 @@ +# RoleDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**individual** | **bool** | | +**role** | [**models::Role**](Role.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SearchCapabilities.md b/rust/docs/SearchCapabilities.md new file mode 100644 index 00000000..19cd8454 --- /dev/null +++ b/rust/docs/SearchCapabilities.md @@ -0,0 +1,13 @@ +# SearchCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocomplete** | **bool** | | +**filters** | Option<**Vec**> | | [optional] +**search_types** | [**models::SearchTypes**](SearchTypes.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SearchType.md b/rust/docs/SearchType.md new file mode 100644 index 00000000..ddb66520 --- /dev/null +++ b/rust/docs/SearchType.md @@ -0,0 +1,13 @@ +# SearchType + +## Enum Variants + +| Name | Value | +|---- | -----| +| Fulltext | fulltext | +| Prefix | prefix | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SearchTypes.md b/rust/docs/SearchTypes.md new file mode 100644 index 00000000..63efa307 --- /dev/null +++ b/rust/docs/SearchTypes.md @@ -0,0 +1,12 @@ +# SearchTypes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fulltext** | **bool** | | +**prefix** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SentinelS2L2ACogsProviderDefinition.md b/rust/docs/SentinelS2L2ACogsProviderDefinition.md new file mode 100644 index 00000000..d94ec1ed --- /dev/null +++ b/rust/docs/SentinelS2L2ACogsProviderDefinition.md @@ -0,0 +1,22 @@ +# SentinelS2L2ACogsProviderDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_url** | **String** | | +**bands** | [**Vec**](StacBand.md) | | +**cache_ttl** | Option<**i32**> | | [optional] +**description** | **String** | | +**gdal_retries** | Option<**i32**> | | [optional] +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**query_buffer** | Option<[**models::StacQueryBuffer**](StacQueryBuffer.md)> | | [optional] +**stac_api_retries** | Option<[**models::StacApiRetries**](StacApiRetries.md)> | | [optional] +**r#type** | **String** | | +**zones** | [**Vec**](StacZone.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ServerInfo.md b/rust/docs/ServerInfo.md new file mode 100644 index 00000000..338d956f --- /dev/null +++ b/rust/docs/ServerInfo.md @@ -0,0 +1,14 @@ +# ServerInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_date** | **String** | | +**commit_hash** | **String** | | +**features** | **String** | | +**version** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SessionApi.md b/rust/docs/SessionApi.md new file mode 100644 index 00000000..c553d52b --- /dev/null +++ b/rust/docs/SessionApi.md @@ -0,0 +1,265 @@ +# \SessionApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**anonymous_handler**](SessionApi.md#anonymous_handler) | **POST** /anonymous | Creates session for anonymous user. The session's id serves as a Bearer token for requests. +[**login_handler**](SessionApi.md#login_handler) | **POST** /login | Creates a session by providing user credentials. The session's id serves as a Bearer token for requests. +[**logout_handler**](SessionApi.md#logout_handler) | **POST** /logout | Ends a session. +[**oidc_init**](SessionApi.md#oidc_init) | **POST** /oidcInit | Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. +[**oidc_login**](SessionApi.md#oidc_login) | **POST** /oidcLogin | Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. +[**register_user_handler**](SessionApi.md#register_user_handler) | **POST** /user | Registers a user. +[**session_handler**](SessionApi.md#session_handler) | **GET** /session | Retrieves details about the current session. +[**session_project_handler**](SessionApi.md#session_project_handler) | **POST** /session/project/{project} | Sets the active project of the session. +[**session_view_handler**](SessionApi.md#session_view_handler) | **POST** /session/view | + + + +## anonymous_handler + +> models::UserSession anonymous_handler() +Creates session for anonymous user. The session's id serves as a Bearer token for requests. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## login_handler + +> models::UserSession login_handler(user_credentials) +Creates a session by providing user credentials. The session's id serves as a Bearer token for requests. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_credentials** | [**UserCredentials**](UserCredentials.md) | | [required] | + +### Return type + +[**models::UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## logout_handler + +> logout_handler() +Ends a session. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## oidc_init + +> models::AuthCodeRequestUrl oidc_init(redirect_uri) +Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. + +# Errors This call fails if Open ID Connect is disabled, misconfigured or the Id Provider is unreachable. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**redirect_uri** | **String** | | [required] | + +### Return type + +[**models::AuthCodeRequestUrl**](AuthCodeRequestURL.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## oidc_login + +> models::UserSession oidc_login(redirect_uri, auth_code_response) +Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. + +# Errors This call fails if the [`AuthCodeResponse`] is invalid, if a previous oidcLogin call with the same state was already successfully or unsuccessfully resolved, if the Open Id Connect configuration is invalid, or if the Id Provider is unreachable. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**redirect_uri** | **String** | | [required] | +**auth_code_response** | [**AuthCodeResponse**](AuthCodeResponse.md) | | [required] | + +### Return type + +[**models::UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## register_user_handler + +> uuid::Uuid register_user_handler(user_registration) +Registers a user. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_registration** | [**UserRegistration**](UserRegistration.md) | | [required] | + +### Return type + +[**uuid::Uuid**](uuid::Uuid.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## session_handler + +> models::UserSession session_handler() +Retrieves details about the current session. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::UserSession**](UserSession.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## session_project_handler + +> session_project_handler(project) +Sets the active project of the session. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**project** | **uuid::Uuid** | Project id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## session_view_handler + +> session_view_handler(st_rectangle) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**st_rectangle** | [**StRectangle**](StRectangle.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/SingleBandRasterColorizer.md b/rust/docs/SingleBandRasterColorizer.md new file mode 100644 index 00000000..4ef57ed3 --- /dev/null +++ b/rust/docs/SingleBandRasterColorizer.md @@ -0,0 +1,13 @@ +# SingleBandRasterColorizer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**band** | **i32** | | +**band_colorizer** | [**models::Colorizer**](Colorizer.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SpatialPartition2D.md b/rust/docs/SpatialPartition2D.md new file mode 100644 index 00000000..174a0364 --- /dev/null +++ b/rust/docs/SpatialPartition2D.md @@ -0,0 +1,12 @@ +# SpatialPartition2D + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lower_right_coordinate** | [**models::Coordinate2D**](Coordinate2D.md) | | +**upper_left_coordinate** | [**models::Coordinate2D**](Coordinate2D.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SpatialReferenceAuthority.md b/rust/docs/SpatialReferenceAuthority.md new file mode 100644 index 00000000..7e7bb8e3 --- /dev/null +++ b/rust/docs/SpatialReferenceAuthority.md @@ -0,0 +1,15 @@ +# SpatialReferenceAuthority + +## Enum Variants + +| Name | Value | +|---- | -----| +| Epsg | EPSG | +| SrOrg | SR-ORG | +| Iau2000 | IAU2000 | +| Esri | ESRI | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SpatialReferenceSpecification.md b/rust/docs/SpatialReferenceSpecification.md new file mode 100644 index 00000000..832b64a8 --- /dev/null +++ b/rust/docs/SpatialReferenceSpecification.md @@ -0,0 +1,16 @@ +# SpatialReferenceSpecification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**axis_labels** | Option<**Vec**> | | [optional] +**axis_order** | Option<[**models::AxisOrder**](AxisOrder.md)> | | [optional] +**extent** | [**models::BoundingBox2D**](BoundingBox2D.md) | | +**name** | **String** | | +**proj_string** | **String** | | +**spatial_reference** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SpatialReferencesApi.md b/rust/docs/SpatialReferencesApi.md new file mode 100644 index 00000000..54dba70f --- /dev/null +++ b/rust/docs/SpatialReferencesApi.md @@ -0,0 +1,37 @@ +# \SpatialReferencesApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_spatial_reference_specification_handler**](SpatialReferencesApi.md#get_spatial_reference_specification_handler) | **GET** /spatialReferenceSpecification/{srsString} | + + + +## get_spatial_reference_specification_handler + +> models::SpatialReferenceSpecification get_spatial_reference_specification_handler(srs_string) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**srs_string** | **String** | | [required] | + +### Return type + +[**models::SpatialReferenceSpecification**](SpatialReferenceSpecification.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/SpatialResolution.md b/rust/docs/SpatialResolution.md new file mode 100644 index 00000000..a1d301b2 --- /dev/null +++ b/rust/docs/SpatialResolution.md @@ -0,0 +1,12 @@ +# SpatialResolution + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **f64** | | +**y** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StRectangle.md b/rust/docs/StRectangle.md new file mode 100644 index 00000000..7411edf0 --- /dev/null +++ b/rust/docs/StRectangle.md @@ -0,0 +1,13 @@ +# StRectangle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bounding_box** | [**models::BoundingBox2D**](BoundingBox2D.md) | | +**spatial_reference** | **String** | | +**time_interval** | [**models::TimeInterval**](TimeInterval.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StacApiRetries.md b/rust/docs/StacApiRetries.md new file mode 100644 index 00000000..fb160afd --- /dev/null +++ b/rust/docs/StacApiRetries.md @@ -0,0 +1,13 @@ +# StacApiRetries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exponential_backoff_factor** | **f64** | | +**initial_delay_ms** | **i64** | | +**number_of_retries** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StacBand.md b/rust/docs/StacBand.md new file mode 100644 index 00000000..f3c8f8a7 --- /dev/null +++ b/rust/docs/StacBand.md @@ -0,0 +1,13 @@ +# StacBand + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_type** | [**models::RasterDataType**](RasterDataType.md) | | +**name** | **String** | | +**no_data_value** | Option<**f64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StacQueryBuffer.md b/rust/docs/StacQueryBuffer.md new file mode 100644 index 00000000..d40a44b7 --- /dev/null +++ b/rust/docs/StacQueryBuffer.md @@ -0,0 +1,12 @@ +# StacQueryBuffer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_seconds** | **i64** | | +**start_seconds** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StacZone.md b/rust/docs/StacZone.md new file mode 100644 index 00000000..10b1948d --- /dev/null +++ b/rust/docs/StacZone.md @@ -0,0 +1,12 @@ +# StacZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**epsg** | **i32** | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StaticColor.md b/rust/docs/StaticColor.md new file mode 100644 index 00000000..b39c9f0b --- /dev/null +++ b/rust/docs/StaticColor.md @@ -0,0 +1,12 @@ +# StaticColor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **Vec** | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StaticNumber.md b/rust/docs/StaticNumber.md new file mode 100644 index 00000000..2f01e372 --- /dev/null +++ b/rust/docs/StaticNumber.md @@ -0,0 +1,12 @@ +# StaticNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | +**value** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/StrokeParam.md b/rust/docs/StrokeParam.md new file mode 100644 index 00000000..0b87c1b7 --- /dev/null +++ b/rust/docs/StrokeParam.md @@ -0,0 +1,12 @@ +# StrokeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | [**models::ColorParam**](ColorParam.md) | | +**width** | [**models::NumberParam**](NumberParam.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SuggestMetaData.md b/rust/docs/SuggestMetaData.md new file mode 100644 index 00000000..4bbc5dc9 --- /dev/null +++ b/rust/docs/SuggestMetaData.md @@ -0,0 +1,13 @@ +# SuggestMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_path** | [**models::DataPath**](DataPath.md) | | +**layer_name** | Option<**String**> | | [optional] +**main_file** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Symbology.md b/rust/docs/Symbology.md new file mode 100644 index 00000000..b3e067d0 --- /dev/null +++ b/rust/docs/Symbology.md @@ -0,0 +1,10 @@ +# Symbology + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskAbortOptions.md b/rust/docs/TaskAbortOptions.md new file mode 100644 index 00000000..1f6f5565 --- /dev/null +++ b/rust/docs/TaskAbortOptions.md @@ -0,0 +1,11 @@ +# TaskAbortOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**force** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskFilter.md b/rust/docs/TaskFilter.md new file mode 100644 index 00000000..978a2880 --- /dev/null +++ b/rust/docs/TaskFilter.md @@ -0,0 +1,15 @@ +# TaskFilter + +## Enum Variants + +| Name | Value | +|---- | -----| +| Running | running | +| Aborted | aborted | +| Failed | failed | +| Completed | completed | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskListOptions.md b/rust/docs/TaskListOptions.md new file mode 100644 index 00000000..cae9fe44 --- /dev/null +++ b/rust/docs/TaskListOptions.md @@ -0,0 +1,13 @@ +# TaskListOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | Option<[**models::TaskFilter**](TaskFilter.md)> | | [optional] +**limit** | Option<**i32**> | | [optional] +**offset** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskResponse.md b/rust/docs/TaskResponse.md new file mode 100644 index 00000000..776f9513 --- /dev/null +++ b/rust/docs/TaskResponse.md @@ -0,0 +1,11 @@ +# TaskResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatus.md b/rust/docs/TaskStatus.md new file mode 100644 index 00000000..e7c2d975 --- /dev/null +++ b/rust/docs/TaskStatus.md @@ -0,0 +1,10 @@ +# TaskStatus + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatusAborted.md b/rust/docs/TaskStatusAborted.md new file mode 100644 index 00000000..33b60b9e --- /dev/null +++ b/rust/docs/TaskStatusAborted.md @@ -0,0 +1,12 @@ +# TaskStatusAborted + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clean_up** | Option<[**serde_json::Value**](.md)> | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatusCompleted.md b/rust/docs/TaskStatusCompleted.md new file mode 100644 index 00000000..f6a8988c --- /dev/null +++ b/rust/docs/TaskStatusCompleted.md @@ -0,0 +1,16 @@ +# TaskStatusCompleted + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**info** | Option<[**serde_json::Value**](.md)> | | [optional] +**status** | **String** | | +**task_type** | **String** | | +**time_started** | **String** | | +**time_total** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatusFailed.md b/rust/docs/TaskStatusFailed.md new file mode 100644 index 00000000..e9ba13d2 --- /dev/null +++ b/rust/docs/TaskStatusFailed.md @@ -0,0 +1,13 @@ +# TaskStatusFailed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clean_up** | Option<[**serde_json::Value**](.md)> | | +**error** | Option<[**serde_json::Value**](.md)> | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatusRunning.md b/rust/docs/TaskStatusRunning.md new file mode 100644 index 00000000..6c7a6769 --- /dev/null +++ b/rust/docs/TaskStatusRunning.md @@ -0,0 +1,17 @@ +# TaskStatusRunning + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**estimated_time_remaining** | **String** | | +**info** | Option<[**serde_json::Value**](.md)> | | [optional] +**pct_complete** | **String** | | +**status** | **String** | | +**task_type** | **String** | | +**time_started** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TaskStatusWithId.md b/rust/docs/TaskStatusWithId.md new file mode 100644 index 00000000..f5a895f4 --- /dev/null +++ b/rust/docs/TaskStatusWithId.md @@ -0,0 +1,21 @@ +# TaskStatusWithId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**estimated_time_remaining** | **String** | | +**info** | Option<[**serde_json::Value**](.md)> | | [optional] +**pct_complete** | **String** | | +**status** | **String** | | +**task_type** | **String** | | +**time_started** | **String** | | +**time_total** | **String** | | +**clean_up** | Option<[**serde_json::Value**](.md)> | | +**error** | Option<[**serde_json::Value**](.md)> | | +**task_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TasksApi.md b/rust/docs/TasksApi.md new file mode 100644 index 00000000..dc1b3086 --- /dev/null +++ b/rust/docs/TasksApi.md @@ -0,0 +1,100 @@ +# \TasksApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**abort_handler**](TasksApi.md#abort_handler) | **DELETE** /tasks/{id} | Abort a running task. +[**list_handler**](TasksApi.md#list_handler) | **GET** /tasks/list | Retrieve the status of all tasks. +[**status_handler**](TasksApi.md#status_handler) | **GET** /tasks/{id}/status | Retrieve the status of a task. + + + +## abort_handler + +> abort_handler(id, force) +Abort a running task. + +# Parameters * `force` - If true, the task will be aborted without clean-up. You can abort a task that is already in the process of aborting. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Task id | [required] | +**force** | Option<**bool**> | | | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_handler + +> Vec list_handler(filter, offset, limit) +Retrieve the status of all tasks. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**filter** | Option<[**TaskFilter**](.md)> | | [required] | +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**Vec**](TaskStatusWithId.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## status_handler + +> models::TaskStatus status_handler(id) +Retrieve the status of a task. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Task id | [required] | + +### Return type + +[**models::TaskStatus**](TaskStatus.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/TextSymbology.md b/rust/docs/TextSymbology.md new file mode 100644 index 00000000..8765004a --- /dev/null +++ b/rust/docs/TextSymbology.md @@ -0,0 +1,13 @@ +# TextSymbology + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute** | **String** | | +**fill_color** | [**models::ColorParam**](ColorParam.md) | | +**stroke** | [**models::StrokeParam**](StrokeParam.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TimeGranularity.md b/rust/docs/TimeGranularity.md new file mode 100644 index 00000000..fffb03a3 --- /dev/null +++ b/rust/docs/TimeGranularity.md @@ -0,0 +1,18 @@ +# TimeGranularity + +## Enum Variants + +| Name | Value | +|---- | -----| +| Millis | millis | +| Seconds | seconds | +| Minutes | minutes | +| Hours | hours | +| Days | days | +| Months | months | +| Years | years | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TimeInterval.md b/rust/docs/TimeInterval.md new file mode 100644 index 00000000..cadb1631 --- /dev/null +++ b/rust/docs/TimeInterval.md @@ -0,0 +1,12 @@ +# TimeInterval + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end** | **i64** | | +**start** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TimeReference.md b/rust/docs/TimeReference.md new file mode 100644 index 00000000..bce473c6 --- /dev/null +++ b/rust/docs/TimeReference.md @@ -0,0 +1,13 @@ +# TimeReference + +## Enum Variants + +| Name | Value | +|---- | -----| +| Start | start | +| End | end | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TimeStep.md b/rust/docs/TimeStep.md new file mode 100644 index 00000000..87d4442e --- /dev/null +++ b/rust/docs/TimeStep.md @@ -0,0 +1,12 @@ +# TimeStep + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**granularity** | [**models::TimeGranularity**](TimeGranularity.md) | | +**step** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedDataProviderDefinition.md b/rust/docs/TypedDataProviderDefinition.md new file mode 100644 index 00000000..35b85493 --- /dev/null +++ b/rust/docs/TypedDataProviderDefinition.md @@ -0,0 +1,10 @@ +# TypedDataProviderDefinition + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedGeometry.md b/rust/docs/TypedGeometry.md new file mode 100644 index 00000000..ce0df27c --- /dev/null +++ b/rust/docs/TypedGeometry.md @@ -0,0 +1,14 @@ +# TypedGeometry + +## Enum Variants + +| Name | Description | +|---- | -----| +| TypedGeometryOneOf | | +| TypedGeometryOneOf1 | | +| TypedGeometryOneOf2 | | +| TypedGeometryOneOf3 | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedGeometryOneOf.md b/rust/docs/TypedGeometryOneOf.md new file mode 100644 index 00000000..a9e4e170 --- /dev/null +++ b/rust/docs/TypedGeometryOneOf.md @@ -0,0 +1,11 @@ +# TypedGeometryOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | Option<[**serde_json::Value**](.md)> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedGeometryOneOf1.md b/rust/docs/TypedGeometryOneOf1.md new file mode 100644 index 00000000..9db9a364 --- /dev/null +++ b/rust/docs/TypedGeometryOneOf1.md @@ -0,0 +1,11 @@ +# TypedGeometryOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_point** | [**models::MultiPoint**](MultiPoint.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedGeometryOneOf2.md b/rust/docs/TypedGeometryOneOf2.md new file mode 100644 index 00000000..f5d7e42b --- /dev/null +++ b/rust/docs/TypedGeometryOneOf2.md @@ -0,0 +1,11 @@ +# TypedGeometryOneOf2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_line_string** | [**models::MultiLineString**](MultiLineString.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedGeometryOneOf3.md b/rust/docs/TypedGeometryOneOf3.md new file mode 100644 index 00000000..e11ced93 --- /dev/null +++ b/rust/docs/TypedGeometryOneOf3.md @@ -0,0 +1,11 @@ +# TypedGeometryOneOf3 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_polygon** | [**models::MultiPolygon**](MultiPolygon.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedOperator.md b/rust/docs/TypedOperator.md new file mode 100644 index 00000000..7d7f7792 --- /dev/null +++ b/rust/docs/TypedOperator.md @@ -0,0 +1,12 @@ +# TypedOperator + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | [**models::TypedOperatorOperator**](TypedOperator_operator.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedOperatorOperator.md b/rust/docs/TypedOperatorOperator.md new file mode 100644 index 00000000..c61d8bee --- /dev/null +++ b/rust/docs/TypedOperatorOperator.md @@ -0,0 +1,13 @@ +# TypedOperatorOperator + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | Option<[**serde_json::Value**](.md)> | | [optional] +**sources** | Option<[**serde_json::Value**](.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedPlotResultDescriptor.md b/rust/docs/TypedPlotResultDescriptor.md new file mode 100644 index 00000000..f2826339 --- /dev/null +++ b/rust/docs/TypedPlotResultDescriptor.md @@ -0,0 +1,14 @@ +# TypedPlotResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | Option<[**models::BoundingBox2D**](BoundingBox2D.md)> | | [optional] +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedRasterResultDescriptor.md b/rust/docs/TypedRasterResultDescriptor.md new file mode 100644 index 00000000..c18044e4 --- /dev/null +++ b/rust/docs/TypedRasterResultDescriptor.md @@ -0,0 +1,17 @@ +# TypedRasterResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bands** | [**Vec**](RasterBandDescriptor.md) | | +**bbox** | Option<[**models::SpatialPartition2D**](SpatialPartition2D.md)> | | [optional] +**data_type** | [**models::RasterDataType**](RasterDataType.md) | | +**resolution** | Option<[**models::SpatialResolution**](SpatialResolution.md)> | | [optional] +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedResultDescriptor.md b/rust/docs/TypedResultDescriptor.md new file mode 100644 index 00000000..e297592c --- /dev/null +++ b/rust/docs/TypedResultDescriptor.md @@ -0,0 +1,10 @@ +# TypedResultDescriptor + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TypedVectorResultDescriptor.md b/rust/docs/TypedVectorResultDescriptor.md new file mode 100644 index 00000000..201b2601 --- /dev/null +++ b/rust/docs/TypedVectorResultDescriptor.md @@ -0,0 +1,16 @@ +# TypedVectorResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | Option<[**models::BoundingBox2D**](BoundingBox2D.md)> | | [optional] +**columns** | [**std::collections::HashMap**](VectorColumnInfo.md) | | +**data_type** | [**models::VectorDataType**](VectorDataType.md) | | +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UnitlessMeasurement.md b/rust/docs/UnitlessMeasurement.md new file mode 100644 index 00000000..155762e6 --- /dev/null +++ b/rust/docs/UnitlessMeasurement.md @@ -0,0 +1,11 @@ +# UnitlessMeasurement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UnixTimeStampType.md b/rust/docs/UnixTimeStampType.md new file mode 100644 index 00000000..35ad5746 --- /dev/null +++ b/rust/docs/UnixTimeStampType.md @@ -0,0 +1,13 @@ +# UnixTimeStampType + +## Enum Variants + +| Name | Value | +|---- | -----| +| EpochSeconds | epochSeconds | +| EpochMilliseconds | epochMilliseconds | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UpdateDataset.md b/rust/docs/UpdateDataset.md new file mode 100644 index 00000000..3c287b0a --- /dev/null +++ b/rust/docs/UpdateDataset.md @@ -0,0 +1,14 @@ +# UpdateDataset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**display_name** | **String** | | +**name** | **String** | | +**tags** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UpdateLayer.md b/rust/docs/UpdateLayer.md new file mode 100644 index 00000000..ac59305e --- /dev/null +++ b/rust/docs/UpdateLayer.md @@ -0,0 +1,16 @@ +# UpdateLayer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | metadata used for loading the data | [optional] +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | properties, for instance, to be rendered in the UI | [optional] +**symbology** | Option<[**models::Symbology**](Symbology.md)> | | [optional] +**workflow** | [**models::Workflow**](Workflow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UpdateLayerCollection.md b/rust/docs/UpdateLayerCollection.md new file mode 100644 index 00000000..321c0223 --- /dev/null +++ b/rust/docs/UpdateLayerCollection.md @@ -0,0 +1,13 @@ +# UpdateLayerCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**name** | **String** | | +**properties** | Option<[**Vec>**](Vec.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UpdateProject.md b/rust/docs/UpdateProject.md new file mode 100644 index 00000000..16cf41fe --- /dev/null +++ b/rust/docs/UpdateProject.md @@ -0,0 +1,17 @@ +# UpdateProject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bounds** | Option<[**models::StRectangle**](STRectangle.md)> | | [optional] +**description** | Option<**String**> | | [optional] +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**layers** | Option<[**Vec**](VecUpdate.md)> | | [optional] +**name** | Option<**String**> | | [optional] +**plots** | Option<[**Vec**](VecUpdate.md)> | | [optional] +**time_step** | Option<[**models::TimeStep**](TimeStep.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UpdateQuota.md b/rust/docs/UpdateQuota.md new file mode 100644 index 00000000..5a0cedde --- /dev/null +++ b/rust/docs/UpdateQuota.md @@ -0,0 +1,11 @@ +# UpdateQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UploadFileLayersResponse.md b/rust/docs/UploadFileLayersResponse.md new file mode 100644 index 00000000..3eba2514 --- /dev/null +++ b/rust/docs/UploadFileLayersResponse.md @@ -0,0 +1,11 @@ +# UploadFileLayersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layers** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UploadFilesResponse.md b/rust/docs/UploadFilesResponse.md new file mode 100644 index 00000000..1cfb2bf9 --- /dev/null +++ b/rust/docs/UploadFilesResponse.md @@ -0,0 +1,11 @@ +# UploadFilesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UploadsApi.md b/rust/docs/UploadsApi.md new file mode 100644 index 00000000..afd617f8 --- /dev/null +++ b/rust/docs/UploadsApi.md @@ -0,0 +1,96 @@ +# \UploadsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_upload_file_layers_handler**](UploadsApi.md#list_upload_file_layers_handler) | **GET** /uploads/{upload_id}/files/{file_name}/layers | List the layers of on uploaded file. +[**list_upload_files_handler**](UploadsApi.md#list_upload_files_handler) | **GET** /uploads/{upload_id}/files | List the files of on upload. +[**upload_handler**](UploadsApi.md#upload_handler) | **POST** /upload | Uploads files. + + + +## list_upload_file_layers_handler + +> models::UploadFileLayersResponse list_upload_file_layers_handler(upload_id, file_name) +List the layers of on uploaded file. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**upload_id** | **uuid::Uuid** | Upload id | [required] | +**file_name** | **String** | File name | [required] | + +### Return type + +[**models::UploadFileLayersResponse**](UploadFileLayersResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_upload_files_handler + +> models::UploadFilesResponse list_upload_files_handler(upload_id) +List the files of on upload. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**upload_id** | **uuid::Uuid** | Upload id | [required] | + +### Return type + +[**models::UploadFilesResponse**](UploadFilesResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## upload_handler + +> models::IdResponse upload_handler(files_left_square_bracket_right_square_bracket) +Uploads files. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**files_left_square_bracket_right_square_bracket** | [**Vec**](std::path::PathBuf.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/UsageSummaryGranularity.md b/rust/docs/UsageSummaryGranularity.md new file mode 100644 index 00000000..0c0db8e9 --- /dev/null +++ b/rust/docs/UsageSummaryGranularity.md @@ -0,0 +1,16 @@ +# UsageSummaryGranularity + +## Enum Variants + +| Name | Value | +|---- | -----| +| Minutes | minutes | +| Hours | hours | +| Days | days | +| Months | months | +| Years | years | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UserApi.md b/rust/docs/UserApi.md new file mode 100644 index 00000000..0ab7952c --- /dev/null +++ b/rust/docs/UserApi.md @@ -0,0 +1,387 @@ +# \UserApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_role_handler**](UserApi.md#add_role_handler) | **PUT** /roles | Add a new role. Requires admin privilige. +[**assign_role_handler**](UserApi.md#assign_role_handler) | **POST** /users/{user}/roles/{role} | Assign a role to a user. Requires admin privilige. +[**computation_quota_handler**](UserApi.md#computation_quota_handler) | **GET** /quota/computations/{computation} | Retrieves the quota used by computation with the given computation id +[**computations_quota_handler**](UserApi.md#computations_quota_handler) | **GET** /quota/computations | Retrieves the quota used by computations +[**data_usage_handler**](UserApi.md#data_usage_handler) | **GET** /quota/dataUsage | Retrieves the data usage +[**data_usage_summary_handler**](UserApi.md#data_usage_summary_handler) | **GET** /quota/dataUsage/summary | Retrieves the data usage summary +[**get_role_by_name_handler**](UserApi.md#get_role_by_name_handler) | **GET** /roles/byName/{name} | Get role by name +[**get_role_descriptions**](UserApi.md#get_role_descriptions) | **GET** /user/roles/descriptions | Query roles for the current user. +[**get_user_quota_handler**](UserApi.md#get_user_quota_handler) | **GET** /quotas/{user} | Retrieves the available and used quota of a specific user. +[**quota_handler**](UserApi.md#quota_handler) | **GET** /quota | Retrieves the available and used quota of the current user. +[**remove_role_handler**](UserApi.md#remove_role_handler) | **DELETE** /roles/{role} | Remove a role. Requires admin privilige. +[**revoke_role_handler**](UserApi.md#revoke_role_handler) | **DELETE** /users/{user}/roles/{role} | Revoke a role from a user. Requires admin privilige. +[**update_user_quota_handler**](UserApi.md#update_user_quota_handler) | **POST** /quotas/{user} | Update the available quota of a specific user. + + + +## add_role_handler + +> uuid::Uuid add_role_handler(add_role) +Add a new role. Requires admin privilige. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**add_role** | [**AddRole**](AddRole.md) | | [required] | + +### Return type + +[**uuid::Uuid**](uuid::Uuid.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## assign_role_handler + +> assign_role_handler(user, role) +Assign a role to a user. Requires admin privilige. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user** | **uuid::Uuid** | User id | [required] | +**role** | **uuid::Uuid** | Role id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## computation_quota_handler + +> Vec computation_quota_handler(computation) +Retrieves the quota used by computation with the given computation id + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**computation** | **uuid::Uuid** | Computation id | [required] | + +### Return type + +[**Vec**](OperatorQuota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## computations_quota_handler + +> Vec computations_quota_handler(offset, limit) +Retrieves the quota used by computations + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**offset** | **i32** | | [required] | +**limit** | **i32** | | [required] | + +### Return type + +[**Vec**](ComputationQuota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## data_usage_handler + +> Vec data_usage_handler(offset, limit) +Retrieves the data usage + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**offset** | **i64** | | [required] | +**limit** | **i64** | | [required] | + +### Return type + +[**Vec**](DataUsage.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## data_usage_summary_handler + +> Vec data_usage_summary_handler(granularity, offset, limit, dataset) +Retrieves the data usage summary + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**granularity** | [**UsageSummaryGranularity**](.md) | | [required] | +**offset** | **i64** | | [required] | +**limit** | **i64** | | [required] | +**dataset** | Option<**String**> | | | + +### Return type + +[**Vec**](DataUsageSummary.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_role_by_name_handler + +> models::IdResponse get_role_by_name_handler(name) +Get role by name + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**name** | **String** | Role Name | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_role_descriptions + +> Vec get_role_descriptions() +Query roles for the current user. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](RoleDescription.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_user_quota_handler + +> models::Quota get_user_quota_handler(user) +Retrieves the available and used quota of a specific user. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user** | **uuid::Uuid** | User id | [required] | + +### Return type + +[**models::Quota**](Quota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## quota_handler + +> models::Quota quota_handler() +Retrieves the available and used quota of the current user. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::Quota**](Quota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_role_handler + +> remove_role_handler(role) +Remove a role. Requires admin privilige. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role** | **uuid::Uuid** | Role id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## revoke_role_handler + +> revoke_role_handler(user, role) +Revoke a role from a user. Requires admin privilige. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user** | **uuid::Uuid** | User id | [required] | +**role** | **uuid::Uuid** | Role id | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_user_quota_handler + +> update_user_quota_handler(user, update_quota) +Update the available quota of a specific user. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user** | **uuid::Uuid** | User id | [required] | +**update_quota** | [**UpdateQuota**](UpdateQuota.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/UserCredentials.md b/rust/docs/UserCredentials.md new file mode 100644 index 00000000..ae6a997a --- /dev/null +++ b/rust/docs/UserCredentials.md @@ -0,0 +1,12 @@ +# UserCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | +**password** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UserInfo.md b/rust/docs/UserInfo.md new file mode 100644 index 00000000..5a21eb68 --- /dev/null +++ b/rust/docs/UserInfo.md @@ -0,0 +1,13 @@ +# UserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | Option<**String**> | | [optional] +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**real_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UserRegistration.md b/rust/docs/UserRegistration.md new file mode 100644 index 00000000..5a33fe1e --- /dev/null +++ b/rust/docs/UserRegistration.md @@ -0,0 +1,13 @@ +# UserRegistration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | +**password** | **String** | | +**real_name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/UserSession.md b/rust/docs/UserSession.md new file mode 100644 index 00000000..0152581f --- /dev/null +++ b/rust/docs/UserSession.md @@ -0,0 +1,17 @@ +# UserSession + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**project** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**roles** | [**Vec**](uuid::Uuid.md) | | +**user** | [**models::UserInfo**](UserInfo.md) | | +**valid_until** | **String** | | +**view** | Option<[**models::StRectangle**](STRectangle.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VecUpdate.md b/rust/docs/VecUpdate.md new file mode 100644 index 00000000..e003d45f --- /dev/null +++ b/rust/docs/VecUpdate.md @@ -0,0 +1,12 @@ +# VecUpdate + +## Enum Variants + +| Name | Description | +|---- | -----| +| Plot | | +| ProjectUpdateToken | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VectorColumnInfo.md b/rust/docs/VectorColumnInfo.md new file mode 100644 index 00000000..7763c871 --- /dev/null +++ b/rust/docs/VectorColumnInfo.md @@ -0,0 +1,12 @@ +# VectorColumnInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_type** | [**models::FeatureDataType**](FeatureDataType.md) | | +**measurement** | [**models::Measurement**](Measurement.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VectorDataType.md b/rust/docs/VectorDataType.md new file mode 100644 index 00000000..25a224a4 --- /dev/null +++ b/rust/docs/VectorDataType.md @@ -0,0 +1,15 @@ +# VectorDataType + +## Enum Variants + +| Name | Value | +|---- | -----| +| Data | Data | +| MultiPoint | MultiPoint | +| MultiLineString | MultiLineString | +| MultiPolygon | MultiPolygon | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VectorQueryRectangle.md b/rust/docs/VectorQueryRectangle.md new file mode 100644 index 00000000..de5a1264 --- /dev/null +++ b/rust/docs/VectorQueryRectangle.md @@ -0,0 +1,13 @@ +# VectorQueryRectangle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spatial_bounds** | [**models::BoundingBox2D**](BoundingBox2D.md) | | +**spatial_resolution** | [**models::SpatialResolution**](SpatialResolution.md) | | +**time_interval** | [**models::TimeInterval**](TimeInterval.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VectorResultDescriptor.md b/rust/docs/VectorResultDescriptor.md new file mode 100644 index 00000000..6fa9c91d --- /dev/null +++ b/rust/docs/VectorResultDescriptor.md @@ -0,0 +1,15 @@ +# VectorResultDescriptor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | Option<[**models::BoundingBox2D**](BoundingBox2D.md)> | | [optional] +**columns** | [**std::collections::HashMap**](VectorColumnInfo.md) | | +**data_type** | [**models::VectorDataType**](VectorDataType.md) | | +**spatial_reference** | **String** | | +**time** | Option<[**models::TimeInterval**](TimeInterval.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Volume.md b/rust/docs/Volume.md new file mode 100644 index 00000000..36922783 --- /dev/null +++ b/rust/docs/Volume.md @@ -0,0 +1,12 @@ +# Volume + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**path** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/VolumeFileLayersResponse.md b/rust/docs/VolumeFileLayersResponse.md new file mode 100644 index 00000000..472c299d --- /dev/null +++ b/rust/docs/VolumeFileLayersResponse.md @@ -0,0 +1,11 @@ +# VolumeFileLayersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layers** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WcsBoundingbox.md b/rust/docs/WcsBoundingbox.md new file mode 100644 index 00000000..352ac119 --- /dev/null +++ b/rust/docs/WcsBoundingbox.md @@ -0,0 +1,12 @@ +# WcsBoundingbox + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | **Vec** | | +**spatial_reference** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WcsService.md b/rust/docs/WcsService.md new file mode 100644 index 00000000..3b07c2bf --- /dev/null +++ b/rust/docs/WcsService.md @@ -0,0 +1,12 @@ +# WcsService + +## Enum Variants + +| Name | Value | +|---- | -----| +| Wcs | WCS | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WcsVersion.md b/rust/docs/WcsVersion.md new file mode 100644 index 00000000..49c22ac2 --- /dev/null +++ b/rust/docs/WcsVersion.md @@ -0,0 +1,13 @@ +# WcsVersion + +## Enum Variants + +| Name | Value | +|---- | -----| +| Variant110 | 1.1.0 | +| Variant111 | 1.1.1 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WfsService.md b/rust/docs/WfsService.md new file mode 100644 index 00000000..7e2ce080 --- /dev/null +++ b/rust/docs/WfsService.md @@ -0,0 +1,12 @@ +# WfsService + +## Enum Variants + +| Name | Value | +|---- | -----| +| Wfs | WFS | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WfsVersion.md b/rust/docs/WfsVersion.md new file mode 100644 index 00000000..4fabd2d2 --- /dev/null +++ b/rust/docs/WfsVersion.md @@ -0,0 +1,12 @@ +# WfsVersion + +## Enum Variants + +| Name | Value | +|---- | -----| +| Variant200 | 2.0.0 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WildliveDataConnectorDefinition.md b/rust/docs/WildliveDataConnectorDefinition.md new file mode 100644 index 00000000..1dd60e41 --- /dev/null +++ b/rust/docs/WildliveDataConnectorDefinition.md @@ -0,0 +1,16 @@ +# WildliveDataConnectorDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | Option<**String**> | | [optional] +**description** | **String** | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**priority** | Option<**i32**> | | [optional] +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WmsService.md b/rust/docs/WmsService.md new file mode 100644 index 00000000..abce5956 --- /dev/null +++ b/rust/docs/WmsService.md @@ -0,0 +1,12 @@ +# WmsService + +## Enum Variants + +| Name | Value | +|---- | -----| +| Wms | WMS | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WmsVersion.md b/rust/docs/WmsVersion.md new file mode 100644 index 00000000..ea43215b --- /dev/null +++ b/rust/docs/WmsVersion.md @@ -0,0 +1,12 @@ +# WmsVersion + +## Enum Variants + +| Name | Value | +|---- | -----| +| Variant130 | 1.3.0 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Workflow.md b/rust/docs/Workflow.md new file mode 100644 index 00000000..7aa256af --- /dev/null +++ b/rust/docs/Workflow.md @@ -0,0 +1,12 @@ +# Workflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | [**models::TypedOperatorOperator**](TypedOperator_operator.md) | | +**r#type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/WorkflowsApi.md b/rust/docs/WorkflowsApi.md new file mode 100644 index 00000000..e272bb1a --- /dev/null +++ b/rust/docs/WorkflowsApi.md @@ -0,0 +1,217 @@ +# \WorkflowsApi + +All URIs are relative to *https://geoengine.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**dataset_from_workflow_handler**](WorkflowsApi.md#dataset_from_workflow_handler) | **POST** /datasetFromWorkflow/{id} | Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task +[**get_workflow_all_metadata_zip_handler**](WorkflowsApi.md#get_workflow_all_metadata_zip_handler) | **GET** /workflow/{id}/allMetadata/zip | Gets a ZIP archive of the worklow, its provenance and the output metadata. +[**get_workflow_metadata_handler**](WorkflowsApi.md#get_workflow_metadata_handler) | **GET** /workflow/{id}/metadata | Gets the metadata of a workflow +[**get_workflow_provenance_handler**](WorkflowsApi.md#get_workflow_provenance_handler) | **GET** /workflow/{id}/provenance | Gets the provenance of all datasets used in a workflow. +[**load_workflow_handler**](WorkflowsApi.md#load_workflow_handler) | **GET** /workflow/{id} | Retrieves an existing Workflow. +[**raster_stream_websocket**](WorkflowsApi.md#raster_stream_websocket) | **GET** /workflow/{id}/rasterStream | Query a workflow raster result as a stream of tiles via a websocket connection. +[**register_workflow_handler**](WorkflowsApi.md#register_workflow_handler) | **POST** /workflow | Registers a new Workflow. + + + +## dataset_from_workflow_handler + +> models::TaskResponse dataset_from_workflow_handler(id, raster_dataset_from_workflow) +Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | +**raster_dataset_from_workflow** | [**RasterDatasetFromWorkflow**](RasterDatasetFromWorkflow.md) | | [required] | + +### Return type + +[**models::TaskResponse**](TaskResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_workflow_all_metadata_zip_handler + +> std::path::PathBuf get_workflow_all_metadata_zip_handler(id) +Gets a ZIP archive of the worklow, its provenance and the output metadata. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | + +### Return type + +[**std::path::PathBuf**](std::path::PathBuf.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/zip + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_workflow_metadata_handler + +> models::TypedResultDescriptor get_workflow_metadata_handler(id) +Gets the metadata of a workflow + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | + +### Return type + +[**models::TypedResultDescriptor**](TypedResultDescriptor.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_workflow_provenance_handler + +> Vec get_workflow_provenance_handler(id) +Gets the provenance of all datasets used in a workflow. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | + +### Return type + +[**Vec**](ProvenanceEntry.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## load_workflow_handler + +> models::Workflow load_workflow_handler(id) +Retrieves an existing Workflow. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | + +### Return type + +[**models::Workflow**](Workflow.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## raster_stream_websocket + +> raster_stream_websocket(id, spatial_bounds, time_interval, spatial_resolution, attributes, result_type) +Query a workflow raster result as a stream of tiles via a websocket connection. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**id** | **uuid::Uuid** | Workflow id | [required] | +**spatial_bounds** | [**SpatialPartition2D**](.md) | | [required] | +**time_interval** | **String** | | [required] | +**spatial_resolution** | [**SpatialResolution**](.md) | | [required] | +**attributes** | **String** | | [required] | +**result_type** | [**RasterStreamWebsocketResultType**](.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## register_workflow_handler + +> models::IdResponse register_workflow_handler(workflow) +Registers a new Workflow. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**workflow** | [**Workflow**](Workflow.md) | | [required] | + +### Return type + +[**models::IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/rust/docs/WrappedPlotOutput.md b/rust/docs/WrappedPlotOutput.md new file mode 100644 index 00000000..bcee07da --- /dev/null +++ b/rust/docs/WrappedPlotOutput.md @@ -0,0 +1,13 @@ +# WrappedPlotOutput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**serde_json::Value**](.md) | | +**output_format** | [**models::PlotOutputFormat**](PlotOutputFormat.md) | | +**plot_type** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/git_push.sh b/rust/git_push.sh new file mode 100644 index 00000000..fcbb04dc --- /dev/null +++ b/rust/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="geo-engine" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="openapi-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/rust/src/apis/configuration.rs b/rust/src/apis/configuration.rs new file mode 100644 index 00000000..09b45d41 --- /dev/null +++ b/rust/src/apis/configuration.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, +} + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + Configuration { + base_path: "https://geoengine.io/api".to_owned(), + user_agent: Some("OpenAPI-Generator/0.8.0/rust".to_owned()), + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + } + } +} diff --git a/rust/src/apis/datasets_api.rs b/rust/src/apis/datasets_api.rs new file mode 100644 index 00000000..7395fd02 --- /dev/null +++ b/rust/src/apis/datasets_api.rs @@ -0,0 +1,608 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`auto_create_dataset_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AutoCreateDatasetHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + Status413(models::ErrorResponse), + Status415(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_dataset_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateDatasetHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_dataset_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteDatasetHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_dataset_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetDatasetHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_loading_info_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLoadingInfoHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_datasets_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListDatasetsHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_volume_file_layers_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListVolumeFileLayersHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_volumes_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListVolumesHandlerError { + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`suggest_meta_data_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SuggestMetaDataHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_dataset_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateDatasetHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_dataset_provenance_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateDatasetProvenanceHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_dataset_symbology_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateDatasetSymbologyHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_loading_info_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateLoadingInfoHandlerError { + Status400(models::ErrorResponse), + Status401(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + + +pub async fn auto_create_dataset_handler(configuration: &configuration::Configuration, auto_create_dataset: models::AutoCreateDataset) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_auto_create_dataset = auto_create_dataset; + + let uri_str = format!("{}/dataset/auto", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_auto_create_dataset); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DatasetNameResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DatasetNameResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn create_dataset_handler(configuration: &configuration::Configuration, create_dataset: models::CreateDataset) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_create_dataset = create_dataset; + + let uri_str = format!("{}/dataset", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_create_dataset); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DatasetNameResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DatasetNameResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn delete_dataset_handler(configuration: &configuration::Configuration, dataset: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + + let uri_str = format!("{}/dataset/{dataset}", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_dataset_handler(configuration: &configuration::Configuration, dataset: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + + let uri_str = format!("{}/dataset/{dataset}", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Dataset`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Dataset`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_loading_info_handler(configuration: &configuration::Configuration, dataset: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + + let uri_str = format!("{}/dataset/{dataset}/loadingInfo", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::MetaDataDefinition`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::MetaDataDefinition`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_datasets_handler(configuration: &configuration::Configuration, order: models::OrderBy, offset: i32, limit: i32, filter: Option<&str>, tags: Option>) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_order = order; + let p_query_offset = offset; + let p_query_limit = limit; + let p_query_filter = filter; + let p_query_tags = tags; + + let uri_str = format!("{}/datasets", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = p_query_filter { + req_builder = req_builder.query(&[("filter", ¶m_value.to_string())]); + } + req_builder = req_builder.query(&[("order", &p_query_order.to_string())]); + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref param_value) = p_query_tags { + req_builder = match "multi" { + "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("tags".to_owned(), p.to_string())).collect::>()), + _ => req_builder.query(&[("tags", ¶m_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::DatasetListing>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::DatasetListing>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_volume_file_layers_handler(configuration: &configuration::Configuration, volume_name: &str, file_name: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_volume_name = volume_name; + let p_path_file_name = file_name; + + let uri_str = format!("{}/dataset/volumes/{volume_name}/files/{file_name}/layers", configuration.base_path, volume_name=crate::apis::urlencode(p_path_volume_name), file_name=crate::apis::urlencode(p_path_file_name)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VolumeFileLayersResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::VolumeFileLayersResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_volumes_handler(configuration: &configuration::Configuration, ) -> Result, Error> { + + let uri_str = format!("{}/dataset/volumes", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Volume>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Volume>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn suggest_meta_data_handler(configuration: &configuration::Configuration, suggest_meta_data: models::SuggestMetaData) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_suggest_meta_data = suggest_meta_data; + + let uri_str = format!("{}/dataset/suggest", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_suggest_meta_data); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::MetaDataSuggestion`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::MetaDataSuggestion`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_dataset_handler(configuration: &configuration::Configuration, dataset: &str, update_dataset: models::UpdateDataset) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + let p_body_update_dataset = update_dataset; + + let uri_str = format!("{}/dataset/{dataset}", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_update_dataset); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_dataset_provenance_handler(configuration: &configuration::Configuration, dataset: &str, provenances: models::Provenances) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + let p_body_provenances = provenances; + + let uri_str = format!("{}/dataset/{dataset}/provenance", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_provenances); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_dataset_symbology_handler(configuration: &configuration::Configuration, dataset: &str, symbology: models::Symbology) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + let p_body_symbology = symbology; + + let uri_str = format!("{}/dataset/{dataset}/symbology", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_symbology); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_loading_info_handler(configuration: &configuration::Configuration, dataset: &str, meta_data_definition: models::MetaDataDefinition) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_dataset = dataset; + let p_body_meta_data_definition = meta_data_definition; + + let uri_str = format!("{}/dataset/{dataset}/loadingInfo", configuration.base_path, dataset=crate::apis::urlencode(p_path_dataset)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_meta_data_definition); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/general_api.rs b/rust/src/apis/general_api.rs new file mode 100644 index 00000000..238006f4 --- /dev/null +++ b/rust/src/apis/general_api.rs @@ -0,0 +1,89 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`available_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AvailableHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`server_info_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServerInfoHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn available_handler(configuration: &configuration::Configuration, ) -> Result<(), Error> { + + let uri_str = format!("{}/available", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn server_info_handler(configuration: &configuration::Configuration, ) -> Result> { + + let uri_str = format!("{}/info", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ServerInfo`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ServerInfo`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/layers_api.rs b/rust/src/apis/layers_api.rs new file mode 100644 index 00000000..91261c85 --- /dev/null +++ b/rust/src/apis/layers_api.rs @@ -0,0 +1,1013 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`add_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_existing_collection_to_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddExistingCollectionToCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_existing_layer_to_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddExistingLayerToCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_layer`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddLayerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_provider`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddProviderError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`autocomplete_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AutocompleteHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_provider`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteProviderError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_provider_definition`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetProviderDefinitionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`layer_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LayerHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`layer_to_dataset`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LayerToDatasetError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`layer_to_workflow_id_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LayerToWorkflowIdHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_collection_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCollectionHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_providers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListProvidersError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_root_collections_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRootCollectionsHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`provider_capabilities_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProviderCapabilitiesHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemoveCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_collection_from_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemoveCollectionFromCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_layer`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemoveLayerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_layer_from_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemoveLayerFromCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`search_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SearchHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_collection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCollectionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_layer`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateLayerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_provider_definition`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateProviderDefinitionError { + UnknownValue(serde_json::Value), +} + + +pub async fn add_collection(configuration: &configuration::Configuration, collection: &str, add_layer_collection: models::AddLayerCollection) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + let p_body_add_layer_collection = add_layer_collection; + + let uri_str = format!("{}/layerDb/collections/{collection}/collections", configuration.base_path, collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_add_layer_collection); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn add_existing_collection_to_collection(configuration: &configuration::Configuration, parent: &str, collection: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_parent = parent; + let p_path_collection = collection; + + let uri_str = format!("{}/layerDb/collections/{parent}/collections/{collection}", configuration.base_path, parent=crate::apis::urlencode(p_path_parent), collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn add_existing_layer_to_collection(configuration: &configuration::Configuration, collection: &str, layer: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + let p_path_layer = layer; + + let uri_str = format!("{}/layerDb/collections/{collection}/layers/{layer}", configuration.base_path, collection=crate::apis::urlencode(p_path_collection), layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn add_layer(configuration: &configuration::Configuration, collection: &str, add_layer: models::AddLayer) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + let p_body_add_layer = add_layer; + + let uri_str = format!("{}/layerDb/collections/{collection}/layers", configuration.base_path, collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_add_layer); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn add_provider(configuration: &configuration::Configuration, typed_data_provider_definition: models::TypedDataProviderDefinition) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_typed_data_provider_definition = typed_data_provider_definition; + + let uri_str = format!("{}/layerDb/providers", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_typed_data_provider_definition); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn autocomplete_handler(configuration: &configuration::Configuration, provider: &str, collection: &str, search_type: models::SearchType, search_string: &str, limit: i32, offset: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_collection = collection; + let p_query_search_type = search_type; + let p_query_search_string = search_string; + let p_query_limit = limit; + let p_query_offset = offset; + + let uri_str = format!("{}/layers/collections/search/autocomplete/{provider}/{collection}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("searchType", &p_query_search_type.to_string())]); + req_builder = req_builder.query(&[("searchString", &p_query_search_string.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<String>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<String>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn delete_provider(configuration: &configuration::Configuration, provider: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + + let uri_str = format!("{}/layerDb/providers/{provider}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_provider_definition(configuration: &configuration::Configuration, provider: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + + let uri_str = format!("{}/layerDb/providers/{provider}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TypedDataProviderDefinition`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TypedDataProviderDefinition`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn layer_handler(configuration: &configuration::Configuration, provider: &str, layer: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_layer = layer; + + let uri_str = format!("{}/layers/{provider}/{layer}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Layer`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Layer`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn layer_to_dataset(configuration: &configuration::Configuration, provider: &str, layer: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_layer = layer; + + let uri_str = format!("{}/layers/{provider}/{layer}/dataset", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TaskResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TaskResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn layer_to_workflow_id_handler(configuration: &configuration::Configuration, provider: &str, layer: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_layer = layer; + + let uri_str = format!("{}/layers/{provider}/{layer}/workflowId", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_collection_handler(configuration: &configuration::Configuration, provider: &str, collection: &str, offset: i32, limit: i32) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_collection = collection; + let p_query_offset = offset; + let p_query_limit = limit; + + let uri_str = format!("{}/layers/collections/{provider}/{collection}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::LayerCollection`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::LayerCollection`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_providers(configuration: &configuration::Configuration, offset: i32, limit: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_offset = offset; + let p_query_limit = limit; + + let uri_str = format!("{}/layerDb/providers", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::LayerProviderListing>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::LayerProviderListing>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_root_collections_handler(configuration: &configuration::Configuration, offset: i32, limit: i32) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_offset = offset; + let p_query_limit = limit; + + let uri_str = format!("{}/layers/collections", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::LayerCollection`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::LayerCollection`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn provider_capabilities_handler(configuration: &configuration::Configuration, provider: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + + let uri_str = format!("{}/layers/{provider}/capabilities", configuration.base_path, provider=crate::apis::urlencode(p_path_provider)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ProviderCapabilities`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ProviderCapabilities`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_collection(configuration: &configuration::Configuration, collection: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + + let uri_str = format!("{}/layerDb/collections/{collection}", configuration.base_path, collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_collection_from_collection(configuration: &configuration::Configuration, parent: &str, collection: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_parent = parent; + let p_path_collection = collection; + + let uri_str = format!("{}/layerDb/collections/{parent}/collections/{collection}", configuration.base_path, parent=crate::apis::urlencode(p_path_parent), collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_layer(configuration: &configuration::Configuration, layer: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_layer = layer; + + let uri_str = format!("{}/layerDb/layers/{layer}", configuration.base_path, layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_layer_from_collection(configuration: &configuration::Configuration, collection: &str, layer: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + let p_path_layer = layer; + + let uri_str = format!("{}/layerDb/collections/{collection}/layers/{layer}", configuration.base_path, collection=crate::apis::urlencode(p_path_collection), layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn search_handler(configuration: &configuration::Configuration, provider: &str, collection: &str, search_type: models::SearchType, search_string: &str, limit: i32, offset: i32) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_path_collection = collection; + let p_query_search_type = search_type; + let p_query_search_string = search_string; + let p_query_limit = limit; + let p_query_offset = offset; + + let uri_str = format!("{}/layers/collections/search/{provider}/{collection}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider), collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("searchType", &p_query_search_type.to_string())]); + req_builder = req_builder.query(&[("searchString", &p_query_search_string.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::LayerCollection`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::LayerCollection`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_collection(configuration: &configuration::Configuration, collection: &str, update_layer_collection: models::UpdateLayerCollection) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_collection = collection; + let p_body_update_layer_collection = update_layer_collection; + + let uri_str = format!("{}/layerDb/collections/{collection}", configuration.base_path, collection=crate::apis::urlencode(p_path_collection)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_update_layer_collection); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_layer(configuration: &configuration::Configuration, layer: &str, update_layer: models::UpdateLayer) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_layer = layer; + let p_body_update_layer = update_layer; + + let uri_str = format!("{}/layerDb/layers/{layer}", configuration.base_path, layer=crate::apis::urlencode(p_path_layer)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_update_layer); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_provider_definition(configuration: &configuration::Configuration, provider: &str, typed_data_provider_definition: models::TypedDataProviderDefinition) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_provider = provider; + let p_body_typed_data_provider_definition = typed_data_provider_definition; + + let uri_str = format!("{}/layerDb/providers/{provider}", configuration.base_path, provider=crate::apis::urlencode(p_path_provider)); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_typed_data_provider_definition); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/ml_api.rs b/rust/src/apis/ml_api.rs new file mode 100644 index 00000000..0d8a0f39 --- /dev/null +++ b/rust/src/apis/ml_api.rs @@ -0,0 +1,155 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`add_ml_model`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddMlModelError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_ml_model`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMlModelError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_ml_models`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMlModelsError { + UnknownValue(serde_json::Value), +} + + +pub async fn add_ml_model(configuration: &configuration::Configuration, ml_model: models::MlModel) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_ml_model = ml_model; + + let uri_str = format!("{}/ml/models", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_ml_model); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::MlModelNameResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::MlModelNameResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_ml_model(configuration: &configuration::Configuration, model_name: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_model_name = model_name; + + let uri_str = format!("{}/ml/models/{model_name}", configuration.base_path, model_name=crate::apis::urlencode(p_path_model_name)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::MlModel`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::MlModel`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_ml_models(configuration: &configuration::Configuration, ) -> Result, Error> { + + let uri_str = format!("{}/ml/models", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::MlModel>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::MlModel>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/mod.rs b/rust/src/apis/mod.rs new file mode 100644 index 00000000..0ec7b3dd --- /dev/null +++ b/rust/src/apis/mod.rs @@ -0,0 +1,131 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +/// Internal use only +/// A content type supported by this client. +#[allow(dead_code)] +enum ContentType { + Json, + Text, + Unsupported(String) +} + +impl From<&str> for ContentType { + fn from(content_type: &str) -> Self { + if content_type.starts_with("application") && content_type.contains("json") { + return Self::Json; + } else if content_type.starts_with("text/plain") { + return Self::Text; + } else { + return Self::Unsupported(content_type.to_string()); + } + } +} + +pub mod datasets_api; +pub mod general_api; +pub mod layers_api; +pub mod ml_api; +pub mod ogcwcs_api; +pub mod ogcwfs_api; +pub mod ogcwms_api; +pub mod permissions_api; +pub mod plots_api; +pub mod projects_api; +pub mod session_api; +pub mod spatial_references_api; +pub mod tasks_api; +pub mod uploads_api; +pub mod user_api; +pub mod workflows_api; + +pub mod configuration; diff --git a/rust/src/apis/ogcwcs_api.rs b/rust/src/apis/ogcwcs_api.rs new file mode 100644 index 00000000..9ac81bed --- /dev/null +++ b/rust/src/apis/ogcwcs_api.rs @@ -0,0 +1,199 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`wcs_capabilities_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WcsCapabilitiesHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`wcs_describe_coverage_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WcsDescribeCoverageHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`wcs_get_coverage_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WcsGetCoverageHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn wcs_capabilities_handler(configuration: &configuration::Configuration, workflow: &str, service: models::WcsService, request: models::GetCapabilitiesRequest, version: Option) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_query_service = service; + let p_query_request = request; + let p_query_version = version; + + let uri_str = format!("{}/wcs/{workflow}?request=GetCapabilities", configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = p_query_version { + req_builder = req_builder.query(&[("version", ¶m_value.to_string())]); + } + req_builder = req_builder.query(&[("service", &p_query_service.to_string())]); + req_builder = req_builder.query(&[("request", &p_query_request.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `String`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `String`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn wcs_describe_coverage_handler(configuration: &configuration::Configuration, workflow: &str, version: models::WcsVersion, service: models::WcsService, request: models::DescribeCoverageRequest, identifiers: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_query_version = version; + let p_query_service = service; + let p_query_request = request; + let p_query_identifiers = identifiers; + + let uri_str = format!("{}/wcs/{workflow}?request=DescribeCoverage", configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("version", &p_query_version.to_string())]); + req_builder = req_builder.query(&[("service", &p_query_service.to_string())]); + req_builder = req_builder.query(&[("request", &p_query_request.to_string())]); + req_builder = req_builder.query(&[("identifiers", &p_query_identifiers.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `String`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `String`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn wcs_get_coverage_handler(configuration: &configuration::Configuration, workflow: &str, version: models::WcsVersion, service: models::WcsService, request: models::GetCoverageRequest, format: models::GetCoverageFormat, identifier: &str, boundingbox: &str, gridbasecrs: &str, gridorigin: Option<&str>, gridoffsets: Option<&str>, time: Option<&str>, resx: Option, resy: Option, nodatavalue: Option) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_query_version = version; + let p_query_service = service; + let p_query_request = request; + let p_query_format = format; + let p_query_identifier = identifier; + let p_query_boundingbox = boundingbox; + let p_query_gridbasecrs = gridbasecrs; + let p_query_gridorigin = gridorigin; + let p_query_gridoffsets = gridoffsets; + let p_query_time = time; + let p_query_resx = resx; + let p_query_resy = resy; + let p_query_nodatavalue = nodatavalue; + + let uri_str = format!("{}/wcs/{workflow}?request=GetCoverage", configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("version", &p_query_version.to_string())]); + req_builder = req_builder.query(&[("service", &p_query_service.to_string())]); + req_builder = req_builder.query(&[("request", &p_query_request.to_string())]); + req_builder = req_builder.query(&[("format", &p_query_format.to_string())]); + req_builder = req_builder.query(&[("identifier", &p_query_identifier.to_string())]); + req_builder = req_builder.query(&[("boundingbox", &p_query_boundingbox.to_string())]); + req_builder = req_builder.query(&[("gridbasecrs", &p_query_gridbasecrs.to_string())]); + if let Some(ref param_value) = p_query_gridorigin { + req_builder = req_builder.query(&[("gridorigin", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_gridoffsets { + req_builder = req_builder.query(&[("gridoffsets", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_time { + req_builder = req_builder.query(&[("time", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_resx { + req_builder = req_builder.query(&[("resx", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_resy { + req_builder = req_builder.query(&[("resy", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_nodatavalue { + req_builder = req_builder.query(&[("nodatavalue", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(resp) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/ogcwfs_api.rs b/rust/src/apis/ogcwfs_api.rs new file mode 100644 index 00000000..168d93be --- /dev/null +++ b/rust/src/apis/ogcwfs_api.rs @@ -0,0 +1,168 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`wfs_capabilities_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WfsCapabilitiesHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`wfs_feature_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WfsFeatureHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn wfs_capabilities_handler(configuration: &configuration::Configuration, workflow: &str, version: Option, service: models::WfsService, request: models::GetCapabilitiesRequest) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_path_version = version; + let p_path_service = service; + let p_path_request = request; + + let uri_str = format!( + "{}/wfs/{workflow}?request={request}&service={service}&version={version}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.unwrap().to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string() + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `String`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `String`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn wfs_feature_handler(configuration: &configuration::Configuration, workflow: &str, service: models::WfsService, request: models::GetFeatureRequest, type_names: &str, bbox: &str, version: Option, time: Option<&str>, srs_name: Option<&str>, namespaces: Option<&str>, count: Option, sort_by: Option<&str>, result_type: Option<&str>, filter: Option<&str>, property_name: Option<&str>, query_resolution: Option<&str>) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_query_service = service; + let p_query_request = request; + let p_query_type_names = type_names; + let p_query_bbox = bbox; + let p_query_version = version; + let p_query_time = time; + let p_query_srs_name = srs_name; + let p_query_namespaces = namespaces; + let p_query_count = count; + let p_query_sort_by = sort_by; + let p_query_result_type = result_type; + let p_query_filter = filter; + let p_query_property_name = property_name; + let p_query_query_resolution = query_resolution; + + let uri_str = format!("{}/wfs/{workflow}", configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = p_query_version { + req_builder = req_builder.query(&[("version", ¶m_value.to_string())]); + } + req_builder = req_builder.query(&[("service", &p_query_service.to_string())]); + req_builder = req_builder.query(&[("request", &p_query_request.to_string())]); + req_builder = req_builder.query(&[("typeNames", &p_query_type_names.to_string())]); + req_builder = req_builder.query(&[("bbox", &p_query_bbox.to_string())]); + if let Some(ref param_value) = p_query_time { + req_builder = req_builder.query(&[("time", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_srs_name { + req_builder = req_builder.query(&[("srsName", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_namespaces { + req_builder = req_builder.query(&[("namespaces", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_count { + req_builder = req_builder.query(&[("count", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_sort_by { + req_builder = req_builder.query(&[("sortBy", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_result_type { + req_builder = req_builder.query(&[("resultType", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_filter { + req_builder = req_builder.query(&[("filter", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_property_name { + req_builder = req_builder.query(&[("propertyName", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_query_resolution { + req_builder = req_builder.query(&[("queryResolution", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GeoJson`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GeoJson`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/ogcwms_api.rs b/rust/src/apis/ogcwms_api.rs new file mode 100644 index 00000000..30bfd3d3 --- /dev/null +++ b/rust/src/apis/ogcwms_api.rs @@ -0,0 +1,209 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`wms_capabilities_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WmsCapabilitiesHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`wms_legend_graphic_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WmsLegendGraphicHandlerError { + Status501(), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`wms_map_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum WmsMapHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn wms_capabilities_handler(configuration: &configuration::Configuration, workflow: &str, version: Option, service: models::WmsService, request: models::GetCapabilitiesRequest, format: Option) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_path_version = version; + let p_path_service = service; + let p_path_request = request; + let p_path_format = format; + + let uri_str = format!( + "{}/wms/{workflow}?request={request}&service={service}&version={version}&format={format}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.unwrap().to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string(), + format = p_path_format.unwrap().to_string() + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `String`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `String`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn wms_legend_graphic_handler(configuration: &configuration::Configuration, workflow: &str, version: models::WmsVersion, service: models::WmsService, request: models::GetLegendGraphicRequest, layer: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_path_version = version; + let p_path_service = service; + let p_path_request = request; + let p_path_layer = layer; + + let uri_str = format!( + "{}/wms/{workflow}?request={request}&version={version}&service={service}&layer={layer}", + configuration.base_path, + workflow = crate::apis::urlencode(p_path_workflow), + version = p_path_version.to_string(), + service = p_path_service.to_string(), + request = p_path_request.to_string(), + layer = crate::apis::urlencode(p_path_layer) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn wms_map_handler(configuration: &configuration::Configuration, workflow: &str, version: models::WmsVersion, service: models::WmsService, request: models::GetMapRequest, width: i32, height: i32, bbox: &str, format: models::GetMapFormat, layers: &str, styles: &str, crs: Option<&str>, time: Option<&str>, transparent: Option, bgcolor: Option<&str>, sld: Option<&str>, sld_body: Option<&str>, elevation: Option<&str>, exceptions: Option) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_workflow = workflow; + let p_query_version = version; + let p_query_service = service; + let p_query_request = request; + let p_query_width = width; + let p_query_height = height; + let p_query_bbox = bbox; + let p_query_format = format; + let p_query_layers = layers; + let p_query_styles = styles; + let p_query_crs = crs; + let p_query_time = time; + let p_query_transparent = transparent; + let p_query_bgcolor = bgcolor; + let p_query_sld = sld; + let p_query_sld_body = sld_body; + let p_query_elevation = elevation; + let p_query_exceptions = exceptions; + + let uri_str = format!("{}/wms/{workflow}?request=GetMap", configuration.base_path, workflow=crate::apis::urlencode(p_path_workflow)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("version", &p_query_version.to_string())]); + req_builder = req_builder.query(&[("service", &p_query_service.to_string())]); + req_builder = req_builder.query(&[("request", &p_query_request.to_string())]); + req_builder = req_builder.query(&[("width", &p_query_width.to_string())]); + req_builder = req_builder.query(&[("height", &p_query_height.to_string())]); + req_builder = req_builder.query(&[("bbox", &p_query_bbox.to_string())]); + req_builder = req_builder.query(&[("format", &p_query_format.to_string())]); + req_builder = req_builder.query(&[("layers", &p_query_layers.to_string())]); + if let Some(ref param_value) = p_query_crs { + req_builder = req_builder.query(&[("crs", ¶m_value.to_string())]); + } + req_builder = req_builder.query(&[("styles", &p_query_styles.to_string())]); + if let Some(ref param_value) = p_query_time { + req_builder = req_builder.query(&[("time", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_transparent { + req_builder = req_builder.query(&[("transparent", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_bgcolor { + req_builder = req_builder.query(&[("bgcolor", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_sld { + req_builder = req_builder.query(&[("sld", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_sld_body { + req_builder = req_builder.query(&[("sld_body", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_elevation { + req_builder = req_builder.query(&[("elevation", ¶m_value.to_string())]); + } + if let Some(ref param_value) = p_query_exceptions { + req_builder = req_builder.query(&[("exceptions", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(resp) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/permissions_api.rs b/rust/src/apis/permissions_api.rs new file mode 100644 index 00000000..307b17b3 --- /dev/null +++ b/rust/src/apis/permissions_api.rs @@ -0,0 +1,141 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`add_permission_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddPermissionHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_resource_permissions_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetResourcePermissionsHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_permission_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemovePermissionHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn add_permission_handler(configuration: &configuration::Configuration, permission_request: models::PermissionRequest) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_permission_request = permission_request; + + let uri_str = format!("{}/permissions", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_permission_request); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_resource_permissions_handler(configuration: &configuration::Configuration, resource_type: &str, resource_id: &str, limit: i32, offset: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_resource_type = resource_type; + let p_path_resource_id = resource_id; + let p_query_limit = limit; + let p_query_offset = offset; + + let uri_str = format!("{}/permissions/resources/{resource_type}/{resource_id}", configuration.base_path, resource_type=crate::apis::urlencode(p_path_resource_type), resource_id=crate::apis::urlencode(p_path_resource_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::PermissionListing>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::PermissionListing>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_permission_handler(configuration: &configuration::Configuration, permission_request: models::PermissionRequest) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_permission_request = permission_request; + + let uri_str = format!("{}/permissions", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_permission_request); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/plots_api.rs b/rust/src/apis/plots_api.rs new file mode 100644 index 00000000..34cd682e --- /dev/null +++ b/rust/src/apis/plots_api.rs @@ -0,0 +1,75 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`get_plot_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetPlotHandlerError { + UnknownValue(serde_json::Value), +} + + +/// # Example 1. Upload the file `plain_data.csv` with the following content: ```csv a 1 2 ``` 2. Create a dataset from it using the \"Plain Data\" example at `/dataset`. 3. Create a statistics workflow using the \"Statistics Plot\" example at `/workflow`. 4. Generate the plot with this handler. +pub async fn get_plot_handler(configuration: &configuration::Configuration, bbox: &str, time: &str, spatial_resolution: &str, id: &str, crs: Option<&str>) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_bbox = bbox; + let p_query_time = time; + let p_query_spatial_resolution = spatial_resolution; + let p_path_id = id; + let p_query_crs = crs; + + let uri_str = format!("{}/plot/{id}", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("bbox", &p_query_bbox.to_string())]); + if let Some(ref param_value) = p_query_crs { + req_builder = req_builder.query(&[("crs", ¶m_value.to_string())]); + } + req_builder = req_builder.query(&[("time", &p_query_time.to_string())]); + req_builder = req_builder.query(&[("spatialResolution", &p_query_spatial_resolution.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::WrappedPlotOutput`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::WrappedPlotOutput`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/projects_api.rs b/rust/src/apis/projects_api.rs new file mode 100644 index 00000000..394652eb --- /dev/null +++ b/rust/src/apis/projects_api.rs @@ -0,0 +1,330 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`create_project_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateProjectHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_project_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteProjectHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_projects_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListProjectsHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`load_project_latest_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LoadProjectLatestHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`load_project_version_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LoadProjectVersionHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`project_versions_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProjectVersionsHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_project_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateProjectHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn create_project_handler(configuration: &configuration::Configuration, create_project: models::CreateProject) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_create_project = create_project; + + let uri_str = format!("{}/project", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_create_project); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn delete_project_handler(configuration: &configuration::Configuration, project: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + + let uri_str = format!("{}/project/{project}", configuration.base_path, project=crate::apis::urlencode(p_path_project)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_projects_handler(configuration: &configuration::Configuration, order: models::OrderBy, offset: i32, limit: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_order = order; + let p_path_offset = offset; + let p_path_limit = limit; + + let uri_str = format!( + "{}/projects?order={}&offset={}&limit={}", + configuration.base_path, + p_path_order.to_string(), + p_path_offset, + p_path_limit + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProjectListing>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProjectListing>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn load_project_latest_handler(configuration: &configuration::Configuration, project: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + + let uri_str = format!("{}/project/{project}", configuration.base_path, project=crate::apis::urlencode(p_path_project)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Project`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Project`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn load_project_version_handler(configuration: &configuration::Configuration, project: &str, version: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + let p_path_version = version; + + let uri_str = format!("{}/project/{project}/{version}", configuration.base_path, project=crate::apis::urlencode(p_path_project), version=crate::apis::urlencode(p_path_version)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Project`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Project`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn project_versions_handler(configuration: &configuration::Configuration, project: &str) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + + let uri_str = format!("{}/project/{project}/versions", configuration.base_path, project=crate::apis::urlencode(p_path_project)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProjectVersion>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProjectVersion>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_project_handler(configuration: &configuration::Configuration, project: &str, update_project: models::UpdateProject) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + let p_body_update_project = update_project; + + let uri_str = format!("{}/project/{project}", configuration.base_path, project=crate::apis::urlencode(p_path_project)); + let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_update_project); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/session_api.rs b/rust/src/apis/session_api.rs new file mode 100644 index 00000000..430d06a8 --- /dev/null +++ b/rust/src/apis/session_api.rs @@ -0,0 +1,387 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`anonymous_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AnonymousHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`login_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LoginHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`logout_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LogoutHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`oidc_init`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum OidcInitError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`oidc_login`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum OidcLoginError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`register_user_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RegisterUserHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`session_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SessionHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`session_project_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SessionProjectHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`session_view_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SessionViewHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn anonymous_handler(configuration: &configuration::Configuration, ) -> Result> { + + let uri_str = format!("{}/anonymous", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserSession`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserSession`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn login_handler(configuration: &configuration::Configuration, user_credentials: models::UserCredentials) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_user_credentials = user_credentials; + + let uri_str = format!("{}/login", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(&p_body_user_credentials); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserSession`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserSession`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn logout_handler(configuration: &configuration::Configuration, ) -> Result<(), Error> { + + let uri_str = format!("{}/logout", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +/// # Errors This call fails if Open ID Connect is disabled, misconfigured or the Id Provider is unreachable. +pub async fn oidc_init(configuration: &configuration::Configuration, redirect_uri: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_redirect_uri = redirect_uri; + + let uri_str = format!("{}/oidcInit", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + req_builder = req_builder.query(&[("redirectUri", &p_query_redirect_uri.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthCodeRequestUrl`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthCodeRequestUrl`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +/// # Errors This call fails if the [`AuthCodeResponse`] is invalid, if a previous oidcLogin call with the same state was already successfully or unsuccessfully resolved, if the Open Id Connect configuration is invalid, or if the Id Provider is unreachable. +pub async fn oidc_login(configuration: &configuration::Configuration, redirect_uri: &str, auth_code_response: models::AuthCodeResponse) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_redirect_uri = redirect_uri; + let p_body_auth_code_response = auth_code_response; + + let uri_str = format!("{}/oidcLogin", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + req_builder = req_builder.query(&[("redirectUri", &p_query_redirect_uri.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(&p_body_auth_code_response); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserSession`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserSession`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn register_user_handler(configuration: &configuration::Configuration, user_registration: models::UserRegistration) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_user_registration = user_registration; + + let uri_str = format!("{}/user", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(&p_body_user_registration); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `uuid::Uuid`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `uuid::Uuid`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn session_handler(configuration: &configuration::Configuration, ) -> Result> { + + let uri_str = format!("{}/session", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserSession`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserSession`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn session_project_handler(configuration: &configuration::Configuration, project: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_project = project; + + let uri_str = format!("{}/session/project/{project}", configuration.base_path, project=crate::apis::urlencode(p_path_project)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn session_view_handler(configuration: &configuration::Configuration, st_rectangle: models::StRectangle) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_st_rectangle = st_rectangle; + + let uri_str = format!("{}/session/view", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_st_rectangle); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/spatial_references_api.rs b/rust/src/apis/spatial_references_api.rs new file mode 100644 index 00000000..87707990 --- /dev/null +++ b/rust/src/apis/spatial_references_api.rs @@ -0,0 +1,64 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`get_spatial_reference_specification_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSpatialReferenceSpecificationHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn get_spatial_reference_specification_handler(configuration: &configuration::Configuration, srs_string: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_srs_string = srs_string; + + let uri_str = format!("{}/spatialReferenceSpecification/{srsString}", configuration.base_path, srsString=crate::apis::urlencode(p_path_srs_string)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SpatialReferenceSpecification`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SpatialReferenceSpecification`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/tasks_api.rs b/rust/src/apis/tasks_api.rs new file mode 100644 index 00000000..b7c9a8cc --- /dev/null +++ b/rust/src/apis/tasks_api.rs @@ -0,0 +1,158 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`abort_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AbortHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`status_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum StatusHandlerError { + UnknownValue(serde_json::Value), +} + + +/// # Parameters * `force` - If true, the task will be aborted without clean-up. You can abort a task that is already in the process of aborting. +pub async fn abort_handler(configuration: &configuration::Configuration, id: &str, force: Option) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + let p_query_force = force; + + let uri_str = format!("{}/tasks/{id}", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref param_value) = p_query_force { + req_builder = req_builder.query(&[("force", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_handler(configuration: &configuration::Configuration, filter: Option, offset: i32, limit: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_filter = filter; + let p_path_offset = offset; + let p_path_limit = limit; + + let uri_str = format!( + "{}/tasks/list?filter={}&offset={}&limit={}", + configuration.base_path, + p_path_filter.unwrap().to_string(), + p_path_offset, + p_path_limit + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::TaskStatusWithId>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::TaskStatusWithId>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn status_handler(configuration: &configuration::Configuration, id: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + + let uri_str = format!("{}/tasks/{id}/status", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TaskStatus`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TaskStatus`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/uploads_api.rs b/rust/src/apis/uploads_api.rs new file mode 100644 index 00000000..a5e576d8 --- /dev/null +++ b/rust/src/apis/uploads_api.rs @@ -0,0 +1,158 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`list_upload_file_layers_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUploadFileLayersHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_upload_files_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUploadFilesHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`upload_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UploadHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn list_upload_file_layers_handler(configuration: &configuration::Configuration, upload_id: &str, file_name: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_upload_id = upload_id; + let p_path_file_name = file_name; + + let uri_str = format!("{}/uploads/{upload_id}/files/{file_name}/layers", configuration.base_path, upload_id=crate::apis::urlencode(p_path_upload_id), file_name=crate::apis::urlencode(p_path_file_name)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UploadFileLayersResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UploadFileLayersResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn list_upload_files_handler(configuration: &configuration::Configuration, upload_id: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_upload_id = upload_id; + + let uri_str = format!("{}/uploads/{upload_id}/files", configuration.base_path, upload_id=crate::apis::urlencode(p_path_upload_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UploadFilesResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UploadFilesResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn upload_handler(configuration: &configuration::Configuration, files_left_square_bracket_right_square_bracket: Vec) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let _p_form_files_left_square_bracket_right_square_bracket = files_left_square_bracket_right_square_bracket; + let uri_str = format!("{}/upload", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + let multipart_form = reqwest::multipart::Form::new(); // TODO: support file upload for 'files[]' parameter + req_builder = req_builder.multipart(multipart_form); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/user_api.rs b/rust/src/apis/user_api.rs new file mode 100644 index 00000000..3c073d41 --- /dev/null +++ b/rust/src/apis/user_api.rs @@ -0,0 +1,588 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`add_role_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddRoleHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`assign_role_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AssignRoleHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`computation_quota_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ComputationQuotaHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`computations_quota_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ComputationsQuotaHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`data_usage_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DataUsageHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`data_usage_summary_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DataUsageSummaryHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_role_by_name_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetRoleByNameHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_role_descriptions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetRoleDescriptionsError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_user_quota_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUserQuotaHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`quota_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum QuotaHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`remove_role_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RemoveRoleHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`revoke_role_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RevokeRoleHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_user_quota_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateUserQuotaHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn add_role_handler(configuration: &configuration::Configuration, add_role: models::AddRole) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_add_role = add_role; + + let uri_str = format!("{}/roles", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_add_role); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `uuid::Uuid`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `uuid::Uuid`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn assign_role_handler(configuration: &configuration::Configuration, user: &str, role: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_user = user; + let p_path_role = role; + + let uri_str = format!("{}/users/{user}/roles/{role}", configuration.base_path, user=crate::apis::urlencode(p_path_user), role=crate::apis::urlencode(p_path_role)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn computation_quota_handler(configuration: &configuration::Configuration, computation: &str) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_computation = computation; + + let uri_str = format!("{}/quota/computations/{computation}", configuration.base_path, computation=crate::apis::urlencode(p_path_computation)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::OperatorQuota>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::OperatorQuota>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn computations_quota_handler(configuration: &configuration::Configuration, offset: i32, limit: i32) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_offset = offset; + let p_query_limit = limit; + + let uri_str = format!("{}/quota/computations", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ComputationQuota>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ComputationQuota>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn data_usage_handler(configuration: &configuration::Configuration, offset: i64, limit: i64) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_offset = offset; + let p_query_limit = limit; + + let uri_str = format!("{}/quota/dataUsage", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::DataUsage>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::DataUsage>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn data_usage_summary_handler(configuration: &configuration::Configuration, granularity: models::UsageSummaryGranularity, offset: i64, limit: i64, dataset: Option<&str>) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_query_granularity = granularity; + let p_query_offset = offset; + let p_query_limit = limit; + let p_query_dataset = dataset; + + let uri_str = format!("{}/quota/dataUsage/summary", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("granularity", &p_query_granularity.to_string())]); + req_builder = req_builder.query(&[("offset", &p_query_offset.to_string())]); + req_builder = req_builder.query(&[("limit", &p_query_limit.to_string())]); + if let Some(ref param_value) = p_query_dataset { + req_builder = req_builder.query(&[("dataset", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::DataUsageSummary>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::DataUsageSummary>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_role_by_name_handler(configuration: &configuration::Configuration, name: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_name = name; + + let uri_str = format!("{}/roles/byName/{name}", configuration.base_path, name=crate::apis::urlencode(p_path_name)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_role_descriptions(configuration: &configuration::Configuration, ) -> Result, Error> { + + let uri_str = format!("{}/user/roles/descriptions", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::RoleDescription>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RoleDescription>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_user_quota_handler(configuration: &configuration::Configuration, user: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_user = user; + + let uri_str = format!("{}/quotas/{user}", configuration.base_path, user=crate::apis::urlencode(p_path_user)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Quota`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Quota`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn quota_handler(configuration: &configuration::Configuration, ) -> Result> { + + let uri_str = format!("{}/quota", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Quota`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Quota`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn remove_role_handler(configuration: &configuration::Configuration, role: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_role = role; + + let uri_str = format!("{}/roles/{role}", configuration.base_path, role=crate::apis::urlencode(p_path_role)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn revoke_role_handler(configuration: &configuration::Configuration, user: &str, role: &str) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_user = user; + let p_path_role = role; + + let uri_str = format!("{}/users/{user}/roles/{role}", configuration.base_path, user=crate::apis::urlencode(p_path_user), role=crate::apis::urlencode(p_path_role)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn update_user_quota_handler(configuration: &configuration::Configuration, user: &str, update_quota: models::UpdateQuota) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_user = user; + let p_body_update_quota = update_quota; + + let uri_str = format!("{}/quotas/{user}", configuration.base_path, user=crate::apis::urlencode(p_path_user)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_update_quota); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/apis/workflows_api.rs b/rust/src/apis/workflows_api.rs new file mode 100644 index 00000000..873865cb --- /dev/null +++ b/rust/src/apis/workflows_api.rs @@ -0,0 +1,331 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + + +/// struct for typed errors of method [`dataset_from_workflow_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DatasetFromWorkflowHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_workflow_all_metadata_zip_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWorkflowAllMetadataZipHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_workflow_metadata_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWorkflowMetadataHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_workflow_provenance_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWorkflowProvenanceHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`load_workflow_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LoadWorkflowHandlerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`raster_stream_websocket`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RasterStreamWebsocketError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`register_workflow_handler`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RegisterWorkflowHandlerError { + UnknownValue(serde_json::Value), +} + + +pub async fn dataset_from_workflow_handler(configuration: &configuration::Configuration, id: &str, raster_dataset_from_workflow: models::RasterDatasetFromWorkflow) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + let p_body_raster_dataset_from_workflow = raster_dataset_from_workflow; + + let uri_str = format!("{}/datasetFromWorkflow/{id}", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_raster_dataset_from_workflow); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TaskResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TaskResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_workflow_all_metadata_zip_handler(configuration: &configuration::Configuration, id: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + + let uri_str = format!("{}/workflow/{id}/allMetadata/zip", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(resp) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_workflow_metadata_handler(configuration: &configuration::Configuration, id: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + + let uri_str = format!("{}/workflow/{id}/metadata", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TypedResultDescriptor`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TypedResultDescriptor`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_workflow_provenance_handler(configuration: &configuration::Configuration, id: &str) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + + let uri_str = format!("{}/workflow/{id}/provenance", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProvenanceEntry>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProvenanceEntry>`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn load_workflow_handler(configuration: &configuration::Configuration, id: &str) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + + let uri_str = format!("{}/workflow/{id}", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Workflow`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Workflow`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn raster_stream_websocket(configuration: &configuration::Configuration, id: &str, spatial_bounds: models::SpatialPartition2D, time_interval: &str, spatial_resolution: models::SpatialResolution, attributes: &str, result_type: models::RasterStreamWebsocketResultType) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_path_id = id; + let p_query_spatial_bounds = spatial_bounds; + let p_query_time_interval = time_interval; + let p_query_spatial_resolution = spatial_resolution; + let p_query_attributes = attributes; + let p_query_result_type = result_type; + + let uri_str = format!("{}/workflow/{id}/rasterStream", configuration.base_path, id=crate::apis::urlencode(p_path_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("spatialBounds", &p_query_spatial_bounds.to_string())]); + req_builder = req_builder.query(&[("timeInterval", &p_query_time_interval.to_string())]); + req_builder = req_builder.query(&[("spatialResolution", &p_query_spatial_resolution.to_string())]); + req_builder = req_builder.query(&[("attributes", &p_query_attributes.to_string())]); + req_builder = req_builder.query(&[("resultType", &p_query_result_type.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + Ok(()) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn register_workflow_handler(configuration: &configuration::Configuration, workflow: models::Workflow) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_body_workflow = workflow; + + let uri_str = format!("{}/workflow", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_body_workflow); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::IdResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::IdResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/rust/src/lib.rs b/rust/src/lib.rs new file mode 100644 index 00000000..e1520628 --- /dev/null +++ b/rust/src/lib.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +#![allow(clippy::too_many_arguments)] + +extern crate serde_repr; +extern crate serde; +extern crate serde_json; +extern crate url; +extern crate reqwest; + +pub mod apis; +pub mod models; diff --git a/rust/src/models/add_dataset.rs b/rust/src/models/add_dataset.rs new file mode 100644 index 00000000..1f8f21d1 --- /dev/null +++ b/rust/src/models/add_dataset.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddDataset { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "provenance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provenance: Option>>, + #[serde(rename = "sourceOperator")] + pub source_operator: String, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, +} + +impl AddDataset { + pub fn new(description: String, display_name: String, source_operator: String) -> AddDataset { + AddDataset { + description, + display_name, + name: None, + provenance: None, + source_operator, + symbology: None, + tags: None, + } + } +} + diff --git a/rust/src/models/add_layer.rs b/rust/src/models/add_layer.rs new file mode 100644 index 00000000..73568625 --- /dev/null +++ b/rust/src/models/add_layer.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddLayer { + #[serde(rename = "description")] + pub description: String, + /// metadata used for loading the data + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "name")] + pub name: String, + /// properties, for instance, to be rendered in the UI + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "workflow")] + pub workflow: Box, +} + +impl AddLayer { + pub fn new(description: String, name: String, workflow: models::Workflow) -> AddLayer { + AddLayer { + description, + metadata: None, + name, + properties: None, + symbology: None, + workflow: Box::new(workflow), + } + } +} + diff --git a/rust/src/models/add_layer_collection.rs b/rust/src/models/add_layer_collection.rs new file mode 100644 index 00000000..c17cc98e --- /dev/null +++ b/rust/src/models/add_layer_collection.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddLayerCollection { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, +} + +impl AddLayerCollection { + pub fn new(description: String, name: String) -> AddLayerCollection { + AddLayerCollection { + description, + name, + properties: None, + } + } +} + diff --git a/rust/src/models/add_role.rs b/rust/src/models/add_role.rs new file mode 100644 index 00000000..e5e35373 --- /dev/null +++ b/rust/src/models/add_role.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddRole { + #[serde(rename = "name")] + pub name: String, +} + +impl AddRole { + pub fn new(name: String) -> AddRole { + AddRole { + name, + } + } +} + diff --git a/rust/src/models/aruna_data_provider_definition.rs b/rust/src/models/aruna_data_provider_definition.rs new file mode 100644 index 00000000..a64dbc68 --- /dev/null +++ b/rust/src/models/aruna_data_provider_definition.rs @@ -0,0 +1,66 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ArunaDataProviderDefinition { + #[serde(rename = "apiToken")] + pub api_token: String, + #[serde(rename = "apiUrl")] + pub api_url: String, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "filterLabel")] + pub filter_label: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "projectId")] + pub project_id: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl ArunaDataProviderDefinition { + pub fn new(api_token: String, api_url: String, description: String, filter_label: String, id: uuid::Uuid, name: String, project_id: String, r#type: Type) -> ArunaDataProviderDefinition { + ArunaDataProviderDefinition { + api_token, + api_url, + cache_ttl: None, + description, + filter_label, + id, + name, + priority: None, + project_id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Aruna")] + Aruna, +} + +impl Default for Type { + fn default() -> Type { + Self::Aruna + } +} + diff --git a/rust/src/models/auth_code_request_url.rs b/rust/src/models/auth_code_request_url.rs new file mode 100644 index 00000000..66edbae4 --- /dev/null +++ b/rust/src/models/auth_code_request_url.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AuthCodeRequestUrl { + #[serde(rename = "url")] + pub url: String, +} + +impl AuthCodeRequestUrl { + pub fn new(url: String) -> AuthCodeRequestUrl { + AuthCodeRequestUrl { + url, + } + } +} + diff --git a/rust/src/models/auth_code_response.rs b/rust/src/models/auth_code_response.rs new file mode 100644 index 00000000..8d2e9cf4 --- /dev/null +++ b/rust/src/models/auth_code_response.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AuthCodeResponse { + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "sessionState")] + pub session_state: String, + #[serde(rename = "state")] + pub state: String, +} + +impl AuthCodeResponse { + pub fn new(code: String, session_state: String, state: String) -> AuthCodeResponse { + AuthCodeResponse { + code, + session_state, + state, + } + } +} + diff --git a/rust/src/models/auto_create_dataset.rs b/rust/src/models/auto_create_dataset.rs new file mode 100644 index 00000000..1d31dcca --- /dev/null +++ b/rust/src/models/auto_create_dataset.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AutoCreateDataset { + #[serde(rename = "datasetDescription")] + pub dataset_description: String, + #[serde(rename = "datasetName")] + pub dataset_name: String, + #[serde(rename = "layerName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub layer_name: Option>, + #[serde(rename = "mainFile")] + pub main_file: String, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl AutoCreateDataset { + pub fn new(dataset_description: String, dataset_name: String, main_file: String, upload: uuid::Uuid) -> AutoCreateDataset { + AutoCreateDataset { + dataset_description, + dataset_name, + layer_name: None, + main_file, + tags: None, + upload, + } + } +} + diff --git a/rust/src/models/axis_order.rs b/rust/src/models/axis_order.rs new file mode 100644 index 00000000..3adea312 --- /dev/null +++ b/rust/src/models/axis_order.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AxisOrder { + #[serde(rename = "northEast")] + NorthEast, + #[serde(rename = "eastNorth")] + EastNorth, + +} + +impl std::fmt::Display for AxisOrder { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::NorthEast => write!(f, "northEast"), + Self::EastNorth => write!(f, "eastNorth"), + } + } +} + +impl Default for AxisOrder { + fn default() -> AxisOrder { + Self::NorthEast + } +} + diff --git a/rust/src/models/bounding_box2_d.rs b/rust/src/models/bounding_box2_d.rs new file mode 100644 index 00000000..a86f7225 --- /dev/null +++ b/rust/src/models/bounding_box2_d.rs @@ -0,0 +1,32 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// BoundingBox2D : A bounding box that includes all border points. Note: may degenerate to a point! +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BoundingBox2D { + #[serde(rename = "lowerLeftCoordinate")] + pub lower_left_coordinate: Box, + #[serde(rename = "upperRightCoordinate")] + pub upper_right_coordinate: Box, +} + +impl BoundingBox2D { + /// A bounding box that includes all border points. Note: may degenerate to a point! + pub fn new(lower_left_coordinate: models::Coordinate2D, upper_right_coordinate: models::Coordinate2D) -> BoundingBox2D { + BoundingBox2D { + lower_left_coordinate: Box::new(lower_left_coordinate), + upper_right_coordinate: Box::new(upper_right_coordinate), + } + } +} + diff --git a/rust/src/models/breakpoint.rs b/rust/src/models/breakpoint.rs new file mode 100644 index 00000000..4bd732df --- /dev/null +++ b/rust/src/models/breakpoint.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Breakpoint { + #[serde(rename = "color")] + pub color: Vec, + #[serde(rename = "value")] + pub value: f64, +} + +impl Breakpoint { + pub fn new(color: Vec, value: f64) -> Breakpoint { + Breakpoint { + color, + value, + } + } +} + diff --git a/rust/src/models/classification_measurement.rs b/rust/src/models/classification_measurement.rs new file mode 100644 index 00000000..6505c499 --- /dev/null +++ b/rust/src/models/classification_measurement.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ClassificationMeasurement { + #[serde(rename = "classes")] + pub classes: std::collections::HashMap, + #[serde(rename = "measurement")] + pub measurement: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl ClassificationMeasurement { + pub fn new(classes: std::collections::HashMap, measurement: String, r#type: Type) -> ClassificationMeasurement { + ClassificationMeasurement { + classes, + measurement, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "classification")] + Classification, +} + +impl Default for Type { + fn default() -> Type { + Self::Classification + } +} + diff --git a/rust/src/models/collection_item.rs b/rust/src/models/collection_item.rs new file mode 100644 index 00000000..8eda1206 --- /dev/null +++ b/rust/src/models/collection_item.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum CollectionItem { + #[serde(rename="collection")] + Collection(Box), + #[serde(rename="layer")] + Layer(Box), +} + +impl Default for CollectionItem { + fn default() -> Self { + Self::Collection(Default::default()) + } +} + + diff --git a/rust/src/models/collection_type.rs b/rust/src/models/collection_type.rs new file mode 100644 index 00000000..929f4043 --- /dev/null +++ b/rust/src/models/collection_type.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CollectionType { + #[serde(rename = "FeatureCollection")] + FeatureCollection, + +} + +impl std::fmt::Display for CollectionType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::FeatureCollection => write!(f, "FeatureCollection"), + } + } +} + +impl Default for CollectionType { + fn default() -> CollectionType { + Self::FeatureCollection + } +} + diff --git a/rust/src/models/color_param.rs b/rust/src/models/color_param.rs new file mode 100644 index 00000000..9b5ec649 --- /dev/null +++ b/rust/src/models/color_param.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum ColorParam { + #[serde(rename="static")] + Static(Box), + #[serde(rename="derived")] + Derived(Box), +} + +impl Default for ColorParam { + fn default() -> Self { + Self::Static(Default::default()) + } +} + + diff --git a/rust/src/models/colorizer.rs b/rust/src/models/colorizer.rs new file mode 100644 index 00000000..8b0ef208 --- /dev/null +++ b/rust/src/models/colorizer.rs @@ -0,0 +1,32 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Colorizer : A colorizer specifies a mapping between raster values and an output image There are different variants that perform different kinds of mapping. +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum Colorizer { + #[serde(rename="linearGradient")] + LinearGradient(Box), + #[serde(rename="logarithmicGradient")] + LogarithmicGradient(Box), + #[serde(rename="palette")] + Palette(Box), +} + +impl Default for Colorizer { + fn default() -> Self { + Self::LinearGradient(Default::default()) + } +} + + diff --git a/rust/src/models/computation_quota.rs b/rust/src/models/computation_quota.rs new file mode 100644 index 00000000..376763c6 --- /dev/null +++ b/rust/src/models/computation_quota.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ComputationQuota { + #[serde(rename = "computationId")] + pub computation_id: uuid::Uuid, + #[serde(rename = "count")] + pub count: i64, + #[serde(rename = "timestamp")] + pub timestamp: String, + #[serde(rename = "workflowId")] + pub workflow_id: uuid::Uuid, +} + +impl ComputationQuota { + pub fn new(computation_id: uuid::Uuid, count: i64, timestamp: String, workflow_id: uuid::Uuid) -> ComputationQuota { + ComputationQuota { + computation_id, + count, + timestamp, + workflow_id, + } + } +} + diff --git a/rust/src/models/continuous_measurement.rs b/rust/src/models/continuous_measurement.rs new file mode 100644 index 00000000..31f6f8cb --- /dev/null +++ b/rust/src/models/continuous_measurement.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ContinuousMeasurement { + #[serde(rename = "measurement")] + pub measurement: String, + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unit: Option>, +} + +impl ContinuousMeasurement { + pub fn new(measurement: String, r#type: Type) -> ContinuousMeasurement { + ContinuousMeasurement { + measurement, + r#type, + unit: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "continuous")] + Continuous, +} + +impl Default for Type { + fn default() -> Type { + Self::Continuous + } +} + diff --git a/rust/src/models/coordinate2_d.rs b/rust/src/models/coordinate2_d.rs new file mode 100644 index 00000000..84fd83cc --- /dev/null +++ b/rust/src/models/coordinate2_d.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Coordinate2D { + #[serde(rename = "x")] + pub x: f64, + #[serde(rename = "y")] + pub y: f64, +} + +impl Coordinate2D { + pub fn new(x: f64, y: f64) -> Coordinate2D { + Coordinate2D { + x, + y, + } + } +} + diff --git a/rust/src/models/copernicus_dataspace_data_provider_definition.rs b/rust/src/models/copernicus_dataspace_data_provider_definition.rs new file mode 100644 index 00000000..1a5687ab --- /dev/null +++ b/rust/src/models/copernicus_dataspace_data_provider_definition.rs @@ -0,0 +1,66 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CopernicusDataspaceDataProviderDefinition { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "gdalConfig")] + pub gdal_config: Vec>, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "s3AccessKey")] + pub s3_access_key: String, + #[serde(rename = "s3SecretKey")] + pub s3_secret_key: String, + #[serde(rename = "s3Url")] + pub s3_url: String, + #[serde(rename = "stacUrl")] + pub stac_url: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl CopernicusDataspaceDataProviderDefinition { + pub fn new(description: String, gdal_config: Vec>, id: uuid::Uuid, name: String, s3_access_key: String, s3_secret_key: String, s3_url: String, stac_url: String, r#type: Type) -> CopernicusDataspaceDataProviderDefinition { + CopernicusDataspaceDataProviderDefinition { + description, + gdal_config, + id, + name, + priority: None, + s3_access_key, + s3_secret_key, + s3_url, + stac_url, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "CopernicusDataspace")] + CopernicusDataspace, +} + +impl Default for Type { + fn default() -> Type { + Self::CopernicusDataspace + } +} + diff --git a/rust/src/models/create_dataset.rs b/rust/src/models/create_dataset.rs new file mode 100644 index 00000000..4e77b8f8 --- /dev/null +++ b/rust/src/models/create_dataset.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateDataset { + #[serde(rename = "dataPath")] + pub data_path: Box, + #[serde(rename = "definition")] + pub definition: Box, +} + +impl CreateDataset { + pub fn new(data_path: models::DataPath, definition: models::DatasetDefinition) -> CreateDataset { + CreateDataset { + data_path: Box::new(data_path), + definition: Box::new(definition), + } + } +} + diff --git a/rust/src/models/create_project.rs b/rust/src/models/create_project.rs new file mode 100644 index 00000000..b7319fd3 --- /dev/null +++ b/rust/src/models/create_project.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateProject { + #[serde(rename = "bounds")] + pub bounds: Box, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "timeStep", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time_step: Option>>, +} + +impl CreateProject { + pub fn new(bounds: models::StRectangle, description: String, name: String) -> CreateProject { + CreateProject { + bounds: Box::new(bounds), + description, + name, + time_step: None, + } + } +} + diff --git a/rust/src/models/csv_header.rs b/rust/src/models/csv_header.rs new file mode 100644 index 00000000..7f1e7d9e --- /dev/null +++ b/rust/src/models/csv_header.rs @@ -0,0 +1,41 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CsvHeader { + #[serde(rename = "yes")] + Yes, + #[serde(rename = "no")] + No, + #[serde(rename = "auto")] + Auto, + +} + +impl std::fmt::Display for CsvHeader { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Yes => write!(f, "yes"), + Self::No => write!(f, "no"), + Self::Auto => write!(f, "auto"), + } + } +} + +impl Default for CsvHeader { + fn default() -> CsvHeader { + Self::Yes + } +} + diff --git a/rust/src/models/data_id.rs b/rust/src/models/data_id.rs new file mode 100644 index 00000000..6bada31b --- /dev/null +++ b/rust/src/models/data_id.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// DataId : The identifier for loadable data. It is used in the source operators to get the loading info (aka parametrization) for accessing the data. Internal data is loaded from datasets, external from `DataProvider`s. +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum DataId { + #[serde(rename="internal")] + Internal(Box), + #[serde(rename="external")] + External(Box), +} + +impl Default for DataId { + fn default() -> Self { + Self::Internal(Default::default()) + } +} + + diff --git a/rust/src/models/data_path.rs b/rust/src/models/data_path.rs new file mode 100644 index 00000000..00403934 --- /dev/null +++ b/rust/src/models/data_path.rs @@ -0,0 +1,26 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DataPath { + DataPathOneOf(Box), + DataPathOneOf1(Box), +} + +impl Default for DataPath { + fn default() -> Self { + Self::DataPathOneOf(Default::default()) + } +} + diff --git a/rust/src/models/data_path_one_of.rs b/rust/src/models/data_path_one_of.rs new file mode 100644 index 00000000..19c34dc2 --- /dev/null +++ b/rust/src/models/data_path_one_of.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DataPathOneOf { + #[serde(rename = "volume")] + pub volume: String, +} + +impl DataPathOneOf { + pub fn new(volume: String) -> DataPathOneOf { + DataPathOneOf { + volume, + } + } +} + diff --git a/rust/src/models/data_path_one_of_1.rs b/rust/src/models/data_path_one_of_1.rs new file mode 100644 index 00000000..9c214dad --- /dev/null +++ b/rust/src/models/data_path_one_of_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DataPathOneOf1 { + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl DataPathOneOf1 { + pub fn new(upload: uuid::Uuid) -> DataPathOneOf1 { + DataPathOneOf1 { + upload, + } + } +} + diff --git a/rust/src/models/data_provider_resource.rs b/rust/src/models/data_provider_resource.rs new file mode 100644 index 00000000..3b46f293 --- /dev/null +++ b/rust/src/models/data_provider_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DataProviderResource { + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl DataProviderResource { + pub fn new(id: uuid::Uuid, r#type: Type) -> DataProviderResource { + DataProviderResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "provider")] + Provider, +} + +impl Default for Type { + fn default() -> Type { + Self::Provider + } +} + diff --git a/rust/src/models/data_usage.rs b/rust/src/models/data_usage.rs new file mode 100644 index 00000000..49cd971b --- /dev/null +++ b/rust/src/models/data_usage.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DataUsage { + #[serde(rename = "computationId")] + pub computation_id: uuid::Uuid, + #[serde(rename = "count")] + pub count: i64, + #[serde(rename = "data")] + pub data: String, + #[serde(rename = "timestamp")] + pub timestamp: String, + #[serde(rename = "userId")] + pub user_id: uuid::Uuid, +} + +impl DataUsage { + pub fn new(computation_id: uuid::Uuid, count: i64, data: String, timestamp: String, user_id: uuid::Uuid) -> DataUsage { + DataUsage { + computation_id, + count, + data, + timestamp, + user_id, + } + } +} + diff --git a/rust/src/models/data_usage_summary.rs b/rust/src/models/data_usage_summary.rs new file mode 100644 index 00000000..3bf95a7a --- /dev/null +++ b/rust/src/models/data_usage_summary.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DataUsageSummary { + #[serde(rename = "count")] + pub count: i64, + #[serde(rename = "data")] + pub data: String, + #[serde(rename = "timestamp")] + pub timestamp: String, +} + +impl DataUsageSummary { + pub fn new(count: i64, data: String, timestamp: String) -> DataUsageSummary { + DataUsageSummary { + count, + data, + timestamp, + } + } +} + diff --git a/rust/src/models/database_connection_config.rs b/rust/src/models/database_connection_config.rs new file mode 100644 index 00000000..da35a74e --- /dev/null +++ b/rust/src/models/database_connection_config.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatabaseConnectionConfig { + #[serde(rename = "database")] + pub database: String, + #[serde(rename = "host")] + pub host: String, + #[serde(rename = "password")] + pub password: String, + #[serde(rename = "port")] + pub port: i32, + #[serde(rename = "schema")] + pub schema: String, + #[serde(rename = "user")] + pub user: String, +} + +impl DatabaseConnectionConfig { + pub fn new(database: String, host: String, password: String, port: i32, schema: String, user: String) -> DatabaseConnectionConfig { + DatabaseConnectionConfig { + database, + host, + password, + port, + schema, + user, + } + } +} + diff --git a/rust/src/models/dataset.rs b/rust/src/models/dataset.rs new file mode 100644 index 00000000..650532e2 --- /dev/null +++ b/rust/src/models/dataset.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Dataset { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "provenance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provenance: Option>>, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "sourceOperator")] + pub source_operator: String, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, +} + +impl Dataset { + pub fn new(description: String, display_name: String, id: uuid::Uuid, name: String, result_descriptor: models::TypedResultDescriptor, source_operator: String) -> Dataset { + Dataset { + description, + display_name, + id, + name, + provenance: None, + result_descriptor: Box::new(result_descriptor), + source_operator, + symbology: None, + tags: None, + } + } +} + diff --git a/rust/src/models/dataset_definition.rs b/rust/src/models/dataset_definition.rs new file mode 100644 index 00000000..3bb3f6c0 --- /dev/null +++ b/rust/src/models/dataset_definition.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetDefinition { + #[serde(rename = "metaData")] + pub meta_data: Box, + #[serde(rename = "properties")] + pub properties: Box, +} + +impl DatasetDefinition { + pub fn new(meta_data: models::MetaDataDefinition, properties: models::AddDataset) -> DatasetDefinition { + DatasetDefinition { + meta_data: Box::new(meta_data), + properties: Box::new(properties), + } + } +} + diff --git a/rust/src/models/dataset_layer_listing_collection.rs b/rust/src/models/dataset_layer_listing_collection.rs new file mode 100644 index 00000000..215aea1e --- /dev/null +++ b/rust/src/models/dataset_layer_listing_collection.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetLayerListingCollection { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "tags")] + pub tags: Vec, +} + +impl DatasetLayerListingCollection { + pub fn new(description: String, name: String, tags: Vec) -> DatasetLayerListingCollection { + DatasetLayerListingCollection { + description, + name, + tags, + } + } +} + diff --git a/rust/src/models/dataset_layer_listing_provider_definition.rs b/rust/src/models/dataset_layer_listing_provider_definition.rs new file mode 100644 index 00000000..918abcc4 --- /dev/null +++ b/rust/src/models/dataset_layer_listing_provider_definition.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetLayerListingProviderDefinition { + #[serde(rename = "collections")] + pub collections: Vec, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl DatasetLayerListingProviderDefinition { + pub fn new(collections: Vec, description: String, id: uuid::Uuid, name: String, r#type: Type) -> DatasetLayerListingProviderDefinition { + DatasetLayerListingProviderDefinition { + collections, + description, + id, + name, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "DatasetLayerListing")] + DatasetLayerListing, +} + +impl Default for Type { + fn default() -> Type { + Self::DatasetLayerListing + } +} + diff --git a/rust/src/models/dataset_listing.rs b/rust/src/models/dataset_listing.rs new file mode 100644 index 00000000..24448f67 --- /dev/null +++ b/rust/src/models/dataset_listing.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetListing { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "sourceOperator")] + pub source_operator: String, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "tags")] + pub tags: Vec, +} + +impl DatasetListing { + pub fn new(description: String, display_name: String, id: uuid::Uuid, name: String, result_descriptor: models::TypedResultDescriptor, source_operator: String, tags: Vec) -> DatasetListing { + DatasetListing { + description, + display_name, + id, + name, + result_descriptor: Box::new(result_descriptor), + source_operator, + symbology: None, + tags, + } + } +} + diff --git a/rust/src/models/dataset_name_response.rs b/rust/src/models/dataset_name_response.rs new file mode 100644 index 00000000..aa0c4b6d --- /dev/null +++ b/rust/src/models/dataset_name_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetNameResponse { + #[serde(rename = "datasetName")] + pub dataset_name: String, +} + +impl DatasetNameResponse { + pub fn new(dataset_name: String) -> DatasetNameResponse { + DatasetNameResponse { + dataset_name, + } + } +} + diff --git a/rust/src/models/dataset_resource.rs b/rust/src/models/dataset_resource.rs new file mode 100644 index 00000000..30390c44 --- /dev/null +++ b/rust/src/models/dataset_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DatasetResource { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl DatasetResource { + pub fn new(id: String, r#type: Type) -> DatasetResource { + DatasetResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "dataset")] + Dataset, +} + +impl Default for Type { + fn default() -> Type { + Self::Dataset + } +} + diff --git a/rust/src/models/derived_color.rs b/rust/src/models/derived_color.rs new file mode 100644 index 00000000..fc60d817 --- /dev/null +++ b/rust/src/models/derived_color.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DerivedColor { + #[serde(rename = "attribute")] + pub attribute: String, + #[serde(rename = "colorizer")] + pub colorizer: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl DerivedColor { + pub fn new(attribute: String, colorizer: models::Colorizer, r#type: Type) -> DerivedColor { + DerivedColor { + attribute, + colorizer: Box::new(colorizer), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "derived")] + Derived, +} + +impl Default for Type { + fn default() -> Type { + Self::Derived + } +} + diff --git a/rust/src/models/derived_number.rs b/rust/src/models/derived_number.rs new file mode 100644 index 00000000..a9c4b502 --- /dev/null +++ b/rust/src/models/derived_number.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DerivedNumber { + #[serde(rename = "attribute")] + pub attribute: String, + #[serde(rename = "defaultValue")] + pub default_value: f64, + #[serde(rename = "factor")] + pub factor: f64, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl DerivedNumber { + pub fn new(attribute: String, default_value: f64, factor: f64, r#type: Type) -> DerivedNumber { + DerivedNumber { + attribute, + default_value, + factor, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "derived")] + Derived, +} + +impl Default for Type { + fn default() -> Type { + Self::Derived + } +} + diff --git a/rust/src/models/describe_coverage_request.rs b/rust/src/models/describe_coverage_request.rs new file mode 100644 index 00000000..dd03e2ce --- /dev/null +++ b/rust/src/models/describe_coverage_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DescribeCoverageRequest { + #[serde(rename = "DescribeCoverage")] + DescribeCoverage, + +} + +impl std::fmt::Display for DescribeCoverageRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::DescribeCoverage => write!(f, "DescribeCoverage"), + } + } +} + +impl Default for DescribeCoverageRequest { + fn default() -> DescribeCoverageRequest { + Self::DescribeCoverage + } +} + diff --git a/rust/src/models/ebv_portal_data_provider_definition.rs b/rust/src/models/ebv_portal_data_provider_definition.rs new file mode 100644 index 00000000..76573b35 --- /dev/null +++ b/rust/src/models/ebv_portal_data_provider_definition.rs @@ -0,0 +1,62 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EbvPortalDataProviderDefinition { + #[serde(rename = "baseUrl")] + pub base_url: String, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + /// Path were the `NetCDF` data can be found + #[serde(rename = "data")] + pub data: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + /// Path were overview files are stored + #[serde(rename = "overviews")] + pub overviews: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl EbvPortalDataProviderDefinition { + pub fn new(base_url: String, data: String, description: String, name: String, overviews: String, r#type: Type) -> EbvPortalDataProviderDefinition { + EbvPortalDataProviderDefinition { + base_url, + cache_ttl: None, + data, + description, + name, + overviews, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "EbvPortal")] + EbvPortal, +} + +impl Default for Type { + fn default() -> Type { + Self::EbvPortal + } +} + diff --git a/rust/src/models/edr_data_provider_definition.rs b/rust/src/models/edr_data_provider_definition.rs new file mode 100644 index 00000000..4e2e6ea3 --- /dev/null +++ b/rust/src/models/edr_data_provider_definition.rs @@ -0,0 +1,67 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EdrDataProviderDefinition { + #[serde(rename = "baseUrl")] + pub base_url: String, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "description")] + pub description: String, + /// List of vertical reference systems with a discrete scale + #[serde(rename = "discreteVrs", skip_serializing_if = "Option::is_none")] + pub discrete_vrs: Option>, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "provenance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provenance: Option>>, + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "vectorSpec", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub vector_spec: Option>>, +} + +impl EdrDataProviderDefinition { + pub fn new(base_url: String, description: String, id: uuid::Uuid, name: String, r#type: Type) -> EdrDataProviderDefinition { + EdrDataProviderDefinition { + base_url, + cache_ttl: None, + description, + discrete_vrs: None, + id, + name, + priority: None, + provenance: None, + r#type, + vector_spec: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Edr")] + Edr, +} + +impl Default for Type { + fn default() -> Type { + Self::Edr + } +} + diff --git a/rust/src/models/edr_vector_spec.rs b/rust/src/models/edr_vector_spec.rs new file mode 100644 index 00000000..2817e31e --- /dev/null +++ b/rust/src/models/edr_vector_spec.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EdrVectorSpec { + #[serde(rename = "time")] + pub time: String, + #[serde(rename = "x")] + pub x: String, + #[serde(rename = "y", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub y: Option>, +} + +impl EdrVectorSpec { + pub fn new(time: String, x: String) -> EdrVectorSpec { + EdrVectorSpec { + time, + x, + y: None, + } + } +} + diff --git a/rust/src/models/error_response.rs b/rust/src/models/error_response.rs new file mode 100644 index 00000000..d3d8e292 --- /dev/null +++ b/rust/src/models/error_response.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ErrorResponse { + #[serde(rename = "error")] + pub error: String, + #[serde(rename = "message")] + pub message: String, +} + +impl ErrorResponse { + pub fn new(error: String, message: String) -> ErrorResponse { + ErrorResponse { + error, + message, + } + } +} + diff --git a/rust/src/models/external_data_id.rs b/rust/src/models/external_data_id.rs new file mode 100644 index 00000000..64e2ff27 --- /dev/null +++ b/rust/src/models/external_data_id.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExternalDataId { + #[serde(rename = "layerId")] + pub layer_id: String, + #[serde(rename = "providerId")] + pub provider_id: uuid::Uuid, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl ExternalDataId { + pub fn new(layer_id: String, provider_id: uuid::Uuid, r#type: Type) -> ExternalDataId { + ExternalDataId { + layer_id, + provider_id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "external")] + External, +} + +impl Default for Type { + fn default() -> Type { + Self::External + } +} + diff --git a/rust/src/models/feature_data_type.rs b/rust/src/models/feature_data_type.rs new file mode 100644 index 00000000..2c557bdc --- /dev/null +++ b/rust/src/models/feature_data_type.rs @@ -0,0 +1,50 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum FeatureDataType { + #[serde(rename = "category")] + Category, + #[serde(rename = "int")] + Int, + #[serde(rename = "float")] + Float, + #[serde(rename = "text")] + Text, + #[serde(rename = "bool")] + Bool, + #[serde(rename = "dateTime")] + DateTime, + +} + +impl std::fmt::Display for FeatureDataType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Category => write!(f, "category"), + Self::Int => write!(f, "int"), + Self::Float => write!(f, "float"), + Self::Text => write!(f, "text"), + Self::Bool => write!(f, "bool"), + Self::DateTime => write!(f, "dateTime"), + } + } +} + +impl Default for FeatureDataType { + fn default() -> FeatureDataType { + Self::Category + } +} + diff --git a/rust/src/models/file_not_found_handling.rs b/rust/src/models/file_not_found_handling.rs new file mode 100644 index 00000000..147bf4a6 --- /dev/null +++ b/rust/src/models/file_not_found_handling.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum FileNotFoundHandling { + #[serde(rename = "NoData")] + NoData, + #[serde(rename = "Error")] + Error, + +} + +impl std::fmt::Display for FileNotFoundHandling { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::NoData => write!(f, "NoData"), + Self::Error => write!(f, "Error"), + } + } +} + +impl Default for FileNotFoundHandling { + fn default() -> FileNotFoundHandling { + Self::NoData + } +} + diff --git a/rust/src/models/format_specifics.rs b/rust/src/models/format_specifics.rs new file mode 100644 index 00000000..b87cd7c5 --- /dev/null +++ b/rust/src/models/format_specifics.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FormatSpecifics { + #[serde(rename = "csv")] + pub csv: Box, +} + +impl FormatSpecifics { + pub fn new(csv: models::FormatSpecificsCsv) -> FormatSpecifics { + FormatSpecifics { + csv: Box::new(csv), + } + } +} + diff --git a/rust/src/models/format_specifics_csv.rs b/rust/src/models/format_specifics_csv.rs new file mode 100644 index 00000000..c3e00e63 --- /dev/null +++ b/rust/src/models/format_specifics_csv.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FormatSpecificsCsv { + #[serde(rename = "header")] + pub header: models::CsvHeader, +} + +impl FormatSpecificsCsv { + pub fn new(header: models::CsvHeader) -> FormatSpecificsCsv { + FormatSpecificsCsv { + header, + } + } +} + diff --git a/rust/src/models/gbif_data_provider_definition.rs b/rust/src/models/gbif_data_provider_definition.rs new file mode 100644 index 00000000..2042c4ef --- /dev/null +++ b/rust/src/models/gbif_data_provider_definition.rs @@ -0,0 +1,60 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GbifDataProviderDefinition { + #[serde(rename = "autocompleteTimeout")] + pub autocomplete_timeout: i32, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "columns")] + pub columns: Vec, + #[serde(rename = "dbConfig")] + pub db_config: Box, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GbifDataProviderDefinition { + pub fn new(autocomplete_timeout: i32, columns: Vec, db_config: models::DatabaseConnectionConfig, description: String, name: String, r#type: Type) -> GbifDataProviderDefinition { + GbifDataProviderDefinition { + autocomplete_timeout, + cache_ttl: None, + columns, + db_config: Box::new(db_config), + description, + name, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Gbif")] + Gbif, +} + +impl Default for Type { + fn default() -> Type { + Self::Gbif + } +} + diff --git a/rust/src/models/gdal_dataset_geo_transform.rs b/rust/src/models/gdal_dataset_geo_transform.rs new file mode 100644 index 00000000..adeba40f --- /dev/null +++ b/rust/src/models/gdal_dataset_geo_transform.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalDatasetGeoTransform { + #[serde(rename = "originCoordinate")] + pub origin_coordinate: Box, + #[serde(rename = "xPixelSize")] + pub x_pixel_size: f64, + #[serde(rename = "yPixelSize")] + pub y_pixel_size: f64, +} + +impl GdalDatasetGeoTransform { + pub fn new(origin_coordinate: models::Coordinate2D, x_pixel_size: f64, y_pixel_size: f64) -> GdalDatasetGeoTransform { + GdalDatasetGeoTransform { + origin_coordinate: Box::new(origin_coordinate), + x_pixel_size, + y_pixel_size, + } + } +} + diff --git a/rust/src/models/gdal_dataset_parameters.rs b/rust/src/models/gdal_dataset_parameters.rs new file mode 100644 index 00000000..b0f1a3ed --- /dev/null +++ b/rust/src/models/gdal_dataset_parameters.rs @@ -0,0 +1,59 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// GdalDatasetParameters : Parameters for loading data using Gdal +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalDatasetParameters { + #[serde(rename = "allowAlphabandAsMask", skip_serializing_if = "Option::is_none")] + pub allow_alphaband_as_mask: Option, + #[serde(rename = "fileNotFoundHandling")] + pub file_not_found_handling: models::FileNotFoundHandling, + #[serde(rename = "filePath")] + pub file_path: String, + #[serde(rename = "gdalConfigOptions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub gdal_config_options: Option>>>, + #[serde(rename = "gdalOpenOptions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub gdal_open_options: Option>>, + #[serde(rename = "geoTransform")] + pub geo_transform: Box, + #[serde(rename = "height")] + pub height: i32, + #[serde(rename = "noDataValue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub no_data_value: Option>, + #[serde(rename = "propertiesMapping", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub properties_mapping: Option>>, + #[serde(rename = "rasterbandChannel")] + pub rasterband_channel: i32, + #[serde(rename = "width")] + pub width: i32, +} + +impl GdalDatasetParameters { + /// Parameters for loading data using Gdal + pub fn new(file_not_found_handling: models::FileNotFoundHandling, file_path: String, geo_transform: models::GdalDatasetGeoTransform, height: i32, rasterband_channel: i32, width: i32) -> GdalDatasetParameters { + GdalDatasetParameters { + allow_alphaband_as_mask: None, + file_not_found_handling, + file_path, + gdal_config_options: None, + gdal_open_options: None, + geo_transform: Box::new(geo_transform), + height, + no_data_value: None, + properties_mapping: None, + rasterband_channel, + width, + } + } +} + diff --git a/rust/src/models/gdal_loading_info_temporal_slice.rs b/rust/src/models/gdal_loading_info_temporal_slice.rs new file mode 100644 index 00000000..d980565a --- /dev/null +++ b/rust/src/models/gdal_loading_info_temporal_slice.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// GdalLoadingInfoTemporalSlice : one temporal slice of the dataset that requires reading from exactly one Gdal dataset +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalLoadingInfoTemporalSlice { + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub params: Option>>, + #[serde(rename = "time")] + pub time: Box, +} + +impl GdalLoadingInfoTemporalSlice { + /// one temporal slice of the dataset that requires reading from exactly one Gdal dataset + pub fn new(time: models::TimeInterval) -> GdalLoadingInfoTemporalSlice { + GdalLoadingInfoTemporalSlice { + cache_ttl: None, + params: None, + time: Box::new(time), + } + } +} + diff --git a/rust/src/models/gdal_meta_data_list.rs b/rust/src/models/gdal_meta_data_list.rs new file mode 100644 index 00000000..d312ab0b --- /dev/null +++ b/rust/src/models/gdal_meta_data_list.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalMetaDataList { + #[serde(rename = "params")] + pub params: Vec, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GdalMetaDataList { + pub fn new(params: Vec, result_descriptor: models::RasterResultDescriptor, r#type: Type) -> GdalMetaDataList { + GdalMetaDataList { + params, + result_descriptor: Box::new(result_descriptor), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GdalMetaDataList")] + GdalMetaDataList, +} + +impl Default for Type { + fn default() -> Type { + Self::GdalMetaDataList + } +} + diff --git a/rust/src/models/gdal_meta_data_regular.rs b/rust/src/models/gdal_meta_data_regular.rs new file mode 100644 index 00000000..f146667d --- /dev/null +++ b/rust/src/models/gdal_meta_data_regular.rs @@ -0,0 +1,57 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalMetaDataRegular { + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "dataTime")] + pub data_time: Box, + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "step")] + pub step: Box, + #[serde(rename = "timePlaceholders")] + pub time_placeholders: std::collections::HashMap, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GdalMetaDataRegular { + pub fn new(data_time: models::TimeInterval, params: models::GdalDatasetParameters, result_descriptor: models::RasterResultDescriptor, step: models::TimeStep, time_placeholders: std::collections::HashMap, r#type: Type) -> GdalMetaDataRegular { + GdalMetaDataRegular { + cache_ttl: None, + data_time: Box::new(data_time), + params: Box::new(params), + result_descriptor: Box::new(result_descriptor), + step: Box::new(step), + time_placeholders, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GdalMetaDataRegular")] + GdalMetaDataRegular, +} + +impl Default for Type { + fn default() -> Type { + Self::GdalMetaDataRegular + } +} + diff --git a/rust/src/models/gdal_meta_data_static.rs b/rust/src/models/gdal_meta_data_static.rs new file mode 100644 index 00000000..0c594c22 --- /dev/null +++ b/rust/src/models/gdal_meta_data_static.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalMetaDataStatic { + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GdalMetaDataStatic { + pub fn new(params: models::GdalDatasetParameters, result_descriptor: models::RasterResultDescriptor, r#type: Type) -> GdalMetaDataStatic { + GdalMetaDataStatic { + cache_ttl: None, + params: Box::new(params), + result_descriptor: Box::new(result_descriptor), + time: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GdalStatic")] + GdalStatic, +} + +impl Default for Type { + fn default() -> Type { + Self::GdalStatic + } +} + diff --git a/rust/src/models/gdal_metadata_mapping.rs b/rust/src/models/gdal_metadata_mapping.rs new file mode 100644 index 00000000..c05d2012 --- /dev/null +++ b/rust/src/models/gdal_metadata_mapping.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalMetadataMapping { + #[serde(rename = "source_key")] + pub source_key: Box, + #[serde(rename = "target_key")] + pub target_key: Box, + #[serde(rename = "target_type")] + pub target_type: models::RasterPropertiesEntryType, +} + +impl GdalMetadataMapping { + pub fn new(source_key: models::RasterPropertiesKey, target_key: models::RasterPropertiesKey, target_type: models::RasterPropertiesEntryType) -> GdalMetadataMapping { + GdalMetadataMapping { + source_key: Box::new(source_key), + target_key: Box::new(target_key), + target_type, + } + } +} + diff --git a/rust/src/models/gdal_metadata_net_cdf_cf.rs b/rust/src/models/gdal_metadata_net_cdf_cf.rs new file mode 100644 index 00000000..8ceece2f --- /dev/null +++ b/rust/src/models/gdal_metadata_net_cdf_cf.rs @@ -0,0 +1,63 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// GdalMetadataNetCdfCf : Meta data for 4D `NetCDF` CF datasets +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalMetadataNetCdfCf { + /// A band offset specifies the first band index to use for the first point in time. All other time steps are added to this offset. + #[serde(rename = "bandOffset")] + pub band_offset: i32, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "end")] + pub end: i64, + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "start")] + pub start: i64, + #[serde(rename = "step")] + pub step: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GdalMetadataNetCdfCf { + /// Meta data for 4D `NetCDF` CF datasets + pub fn new(band_offset: i32, end: i64, params: models::GdalDatasetParameters, result_descriptor: models::RasterResultDescriptor, start: i64, step: models::TimeStep, r#type: Type) -> GdalMetadataNetCdfCf { + GdalMetadataNetCdfCf { + band_offset, + cache_ttl: None, + end, + params: Box::new(params), + result_descriptor: Box::new(result_descriptor), + start, + step: Box::new(step), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GdalMetaDataNetCdfCf")] + GdalMetaDataNetCdfCf, +} + +impl Default for Type { + fn default() -> Type { + Self::GdalMetaDataNetCdfCf + } +} + diff --git a/rust/src/models/gdal_source_time_placeholder.rs b/rust/src/models/gdal_source_time_placeholder.rs new file mode 100644 index 00000000..29a8a920 --- /dev/null +++ b/rust/src/models/gdal_source_time_placeholder.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GdalSourceTimePlaceholder { + #[serde(rename = "format")] + pub format: String, + #[serde(rename = "reference")] + pub reference: models::TimeReference, +} + +impl GdalSourceTimePlaceholder { + pub fn new(format: String, reference: models::TimeReference) -> GdalSourceTimePlaceholder { + GdalSourceTimePlaceholder { + format, + reference, + } + } +} + diff --git a/rust/src/models/geo_json.rs b/rust/src/models/geo_json.rs new file mode 100644 index 00000000..53755abc --- /dev/null +++ b/rust/src/models/geo_json.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GeoJson { + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "type")] + pub r#type: models::CollectionType, +} + +impl GeoJson { + pub fn new(features: Vec, r#type: models::CollectionType) -> GeoJson { + GeoJson { + features, + r#type, + } + } +} + diff --git a/rust/src/models/get_capabilities_format.rs b/rust/src/models/get_capabilities_format.rs new file mode 100644 index 00000000..63bf4ce0 --- /dev/null +++ b/rust/src/models/get_capabilities_format.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetCapabilitiesFormat { + #[serde(rename = "text/xml")] + TextSlashXml, + +} + +impl std::fmt::Display for GetCapabilitiesFormat { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::TextSlashXml => write!(f, "text/xml"), + } + } +} + +impl Default for GetCapabilitiesFormat { + fn default() -> GetCapabilitiesFormat { + Self::TextSlashXml + } +} + diff --git a/rust/src/models/get_capabilities_request.rs b/rust/src/models/get_capabilities_request.rs new file mode 100644 index 00000000..a77a8fc1 --- /dev/null +++ b/rust/src/models/get_capabilities_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetCapabilitiesRequest { + #[serde(rename = "GetCapabilities")] + GetCapabilities, + +} + +impl std::fmt::Display for GetCapabilitiesRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::GetCapabilities => write!(f, "GetCapabilities"), + } + } +} + +impl Default for GetCapabilitiesRequest { + fn default() -> GetCapabilitiesRequest { + Self::GetCapabilities + } +} + diff --git a/rust/src/models/get_coverage_format.rs b/rust/src/models/get_coverage_format.rs new file mode 100644 index 00000000..73f62959 --- /dev/null +++ b/rust/src/models/get_coverage_format.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetCoverageFormat { + #[serde(rename = "image/tiff")] + ImageSlashTiff, + +} + +impl std::fmt::Display for GetCoverageFormat { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::ImageSlashTiff => write!(f, "image/tiff"), + } + } +} + +impl Default for GetCoverageFormat { + fn default() -> GetCoverageFormat { + Self::ImageSlashTiff + } +} + diff --git a/rust/src/models/get_coverage_request.rs b/rust/src/models/get_coverage_request.rs new file mode 100644 index 00000000..6b566a19 --- /dev/null +++ b/rust/src/models/get_coverage_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetCoverageRequest { + #[serde(rename = "GetCoverage")] + GetCoverage, + +} + +impl std::fmt::Display for GetCoverageRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::GetCoverage => write!(f, "GetCoverage"), + } + } +} + +impl Default for GetCoverageRequest { + fn default() -> GetCoverageRequest { + Self::GetCoverage + } +} + diff --git a/rust/src/models/get_feature_request.rs b/rust/src/models/get_feature_request.rs new file mode 100644 index 00000000..3f613e4d --- /dev/null +++ b/rust/src/models/get_feature_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetFeatureRequest { + #[serde(rename = "GetFeature")] + GetFeature, + +} + +impl std::fmt::Display for GetFeatureRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::GetFeature => write!(f, "GetFeature"), + } + } +} + +impl Default for GetFeatureRequest { + fn default() -> GetFeatureRequest { + Self::GetFeature + } +} + diff --git a/rust/src/models/get_legend_graphic_request.rs b/rust/src/models/get_legend_graphic_request.rs new file mode 100644 index 00000000..5d049445 --- /dev/null +++ b/rust/src/models/get_legend_graphic_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetLegendGraphicRequest { + #[serde(rename = "GetLegendGraphic")] + GetLegendGraphic, + +} + +impl std::fmt::Display for GetLegendGraphicRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::GetLegendGraphic => write!(f, "GetLegendGraphic"), + } + } +} + +impl Default for GetLegendGraphicRequest { + fn default() -> GetLegendGraphicRequest { + Self::GetLegendGraphic + } +} + diff --git a/rust/src/models/get_map_exception_format.rs b/rust/src/models/get_map_exception_format.rs new file mode 100644 index 00000000..d0030378 --- /dev/null +++ b/rust/src/models/get_map_exception_format.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetMapExceptionFormat { + #[serde(rename = "XML")] + Xml, + #[serde(rename = "JSON")] + Json, + +} + +impl std::fmt::Display for GetMapExceptionFormat { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Xml => write!(f, "XML"), + Self::Json => write!(f, "JSON"), + } + } +} + +impl Default for GetMapExceptionFormat { + fn default() -> GetMapExceptionFormat { + Self::Xml + } +} + diff --git a/rust/src/models/get_map_format.rs b/rust/src/models/get_map_format.rs new file mode 100644 index 00000000..00efa502 --- /dev/null +++ b/rust/src/models/get_map_format.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetMapFormat { + #[serde(rename = "image/png")] + ImageSlashPng, + +} + +impl std::fmt::Display for GetMapFormat { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::ImageSlashPng => write!(f, "image/png"), + } + } +} + +impl Default for GetMapFormat { + fn default() -> GetMapFormat { + Self::ImageSlashPng + } +} + diff --git a/rust/src/models/get_map_request.rs b/rust/src/models/get_map_request.rs new file mode 100644 index 00000000..9b530967 --- /dev/null +++ b/rust/src/models/get_map_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GetMapRequest { + #[serde(rename = "GetMap")] + GetMap, + +} + +impl std::fmt::Display for GetMapRequest { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::GetMap => write!(f, "GetMap"), + } + } +} + +impl Default for GetMapRequest { + fn default() -> GetMapRequest { + Self::GetMap + } +} + diff --git a/rust/src/models/gfbio_abcd_data_provider_definition.rs b/rust/src/models/gfbio_abcd_data_provider_definition.rs new file mode 100644 index 00000000..12fb97ec --- /dev/null +++ b/rust/src/models/gfbio_abcd_data_provider_definition.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GfbioAbcdDataProviderDefinition { + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "dbConfig")] + pub db_config: Box, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GfbioAbcdDataProviderDefinition { + pub fn new(db_config: models::DatabaseConnectionConfig, description: String, name: String, r#type: Type) -> GfbioAbcdDataProviderDefinition { + GfbioAbcdDataProviderDefinition { + cache_ttl: None, + db_config: Box::new(db_config), + description, + name, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GfbioAbcd")] + GfbioAbcd, +} + +impl Default for Type { + fn default() -> Type { + Self::GfbioAbcd + } +} + diff --git a/rust/src/models/gfbio_collections_data_provider_definition.rs b/rust/src/models/gfbio_collections_data_provider_definition.rs new file mode 100644 index 00000000..6136f1a9 --- /dev/null +++ b/rust/src/models/gfbio_collections_data_provider_definition.rs @@ -0,0 +1,63 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GfbioCollectionsDataProviderDefinition { + #[serde(rename = "abcdDbConfig")] + pub abcd_db_config: Box, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "collectionApiAuthToken")] + pub collection_api_auth_token: String, + #[serde(rename = "collectionApiUrl")] + pub collection_api_url: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "pangaeaUrl")] + pub pangaea_url: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl GfbioCollectionsDataProviderDefinition { + pub fn new(abcd_db_config: models::DatabaseConnectionConfig, collection_api_auth_token: String, collection_api_url: String, description: String, name: String, pangaea_url: String, r#type: Type) -> GfbioCollectionsDataProviderDefinition { + GfbioCollectionsDataProviderDefinition { + abcd_db_config: Box::new(abcd_db_config), + cache_ttl: None, + collection_api_auth_token, + collection_api_url, + description, + name, + pangaea_url, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "GfbioCollections")] + GfbioCollections, +} + +impl Default for Type { + fn default() -> Type { + Self::GfbioCollections + } +} + diff --git a/rust/src/models/id_response.rs b/rust/src/models/id_response.rs new file mode 100644 index 00000000..062402d2 --- /dev/null +++ b/rust/src/models/id_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IdResponse { + #[serde(rename = "id")] + pub id: uuid::Uuid, +} + +impl IdResponse { + pub fn new(id: uuid::Uuid) -> IdResponse { + IdResponse { + id, + } + } +} + diff --git a/rust/src/models/internal_data_id.rs b/rust/src/models/internal_data_id.rs new file mode 100644 index 00000000..c16f2533 --- /dev/null +++ b/rust/src/models/internal_data_id.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InternalDataId { + #[serde(rename = "datasetId")] + pub dataset_id: uuid::Uuid, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl InternalDataId { + pub fn new(dataset_id: uuid::Uuid, r#type: Type) -> InternalDataId { + InternalDataId { + dataset_id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "internal")] + Internal, +} + +impl Default for Type { + fn default() -> Type { + Self::Internal + } +} + diff --git a/rust/src/models/layer.rs b/rust/src/models/layer.rs new file mode 100644 index 00000000..2bedb417 --- /dev/null +++ b/rust/src/models/layer.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Layer { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: Box, + /// metadata used for loading the data + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "name")] + pub name: String, + /// properties, for instance, to be rendered in the UI + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "workflow")] + pub workflow: Box, +} + +impl Layer { + pub fn new(description: String, id: models::ProviderLayerId, name: String, workflow: models::Workflow) -> Layer { + Layer { + description, + id: Box::new(id), + metadata: None, + name, + properties: None, + symbology: None, + workflow: Box::new(workflow), + } + } +} + diff --git a/rust/src/models/layer_collection.rs b/rust/src/models/layer_collection.rs new file mode 100644 index 00000000..e198aa7d --- /dev/null +++ b/rust/src/models/layer_collection.rs @@ -0,0 +1,43 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerCollection { + #[serde(rename = "description")] + pub description: String, + /// a common label for the collection's entries, if there is any + #[serde(rename = "entryLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub entry_label: Option>, + #[serde(rename = "id")] + pub id: Box, + #[serde(rename = "items")] + pub items: Vec, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "properties")] + pub properties: Vec>, +} + +impl LayerCollection { + pub fn new(description: String, id: models::ProviderLayerCollectionId, items: Vec, name: String, properties: Vec>) -> LayerCollection { + LayerCollection { + description, + entry_label: None, + id: Box::new(id), + items, + name, + properties, + } + } +} + diff --git a/rust/src/models/layer_collection_listing.rs b/rust/src/models/layer_collection_listing.rs new file mode 100644 index 00000000..238e04e6 --- /dev/null +++ b/rust/src/models/layer_collection_listing.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerCollectionListing { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: Box, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LayerCollectionListing { + pub fn new(description: String, id: models::ProviderLayerCollectionId, name: String, r#type: Type) -> LayerCollectionListing { + LayerCollectionListing { + description, + id: Box::new(id), + name, + properties: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "collection")] + Collection, +} + +impl Default for Type { + fn default() -> Type { + Self::Collection + } +} + diff --git a/rust/src/models/layer_collection_resource.rs b/rust/src/models/layer_collection_resource.rs new file mode 100644 index 00000000..2644b6b1 --- /dev/null +++ b/rust/src/models/layer_collection_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerCollectionResource { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LayerCollectionResource { + pub fn new(id: String, r#type: Type) -> LayerCollectionResource { + LayerCollectionResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "layerCollection")] + LayerCollection, +} + +impl Default for Type { + fn default() -> Type { + Self::LayerCollection + } +} + diff --git a/rust/src/models/layer_listing.rs b/rust/src/models/layer_listing.rs new file mode 100644 index 00000000..4ab4e2e1 --- /dev/null +++ b/rust/src/models/layer_listing.rs @@ -0,0 +1,52 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerListing { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: Box, + #[serde(rename = "name")] + pub name: String, + /// properties, for instance, to be rendered in the UI + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LayerListing { + pub fn new(description: String, id: models::ProviderLayerId, name: String, r#type: Type) -> LayerListing { + LayerListing { + description, + id: Box::new(id), + name, + properties: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "layer")] + Layer, +} + +impl Default for Type { + fn default() -> Type { + Self::Layer + } +} + diff --git a/rust/src/models/layer_provider_listing.rs b/rust/src/models/layer_provider_listing.rs new file mode 100644 index 00000000..71b3c767 --- /dev/null +++ b/rust/src/models/layer_provider_listing.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerProviderListing { + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority")] + pub priority: i32, +} + +impl LayerProviderListing { + pub fn new(id: uuid::Uuid, name: String, priority: i32) -> LayerProviderListing { + LayerProviderListing { + id, + name, + priority, + } + } +} + diff --git a/rust/src/models/layer_resource.rs b/rust/src/models/layer_resource.rs new file mode 100644 index 00000000..ca9da267 --- /dev/null +++ b/rust/src/models/layer_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerResource { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LayerResource { + pub fn new(id: String, r#type: Type) -> LayerResource { + LayerResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "layer")] + Layer, +} + +impl Default for Type { + fn default() -> Type { + Self::Layer + } +} + diff --git a/rust/src/models/layer_visibility.rs b/rust/src/models/layer_visibility.rs new file mode 100644 index 00000000..d5f8a71a --- /dev/null +++ b/rust/src/models/layer_visibility.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LayerVisibility { + #[serde(rename = "data")] + pub data: bool, + #[serde(rename = "legend")] + pub legend: bool, +} + +impl LayerVisibility { + pub fn new(data: bool, legend: bool) -> LayerVisibility { + LayerVisibility { + data, + legend, + } + } +} + diff --git a/rust/src/models/line_symbology.rs b/rust/src/models/line_symbology.rs new file mode 100644 index 00000000..6f4bdf7b --- /dev/null +++ b/rust/src/models/line_symbology.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LineSymbology { + #[serde(rename = "autoSimplified")] + pub auto_simplified: bool, + #[serde(rename = "stroke")] + pub stroke: Box, + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LineSymbology { + pub fn new(auto_simplified: bool, stroke: models::StrokeParam, r#type: Type) -> LineSymbology { + LineSymbology { + auto_simplified, + stroke: Box::new(stroke), + text: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "line")] + Line, +} + +impl Default for Type { + fn default() -> Type { + Self::Line + } +} + diff --git a/rust/src/models/linear_gradient.rs b/rust/src/models/linear_gradient.rs new file mode 100644 index 00000000..41ece55f --- /dev/null +++ b/rust/src/models/linear_gradient.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LinearGradient { + #[serde(rename = "breakpoints")] + pub breakpoints: Vec, + #[serde(rename = "noDataColor")] + pub no_data_color: Vec, + #[serde(rename = "overColor")] + pub over_color: Vec, + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "underColor")] + pub under_color: Vec, +} + +impl LinearGradient { + pub fn new(breakpoints: Vec, no_data_color: Vec, over_color: Vec, r#type: Type, under_color: Vec) -> LinearGradient { + LinearGradient { + breakpoints, + no_data_color, + over_color, + r#type, + under_color, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "linearGradient")] + LinearGradient, +} + +impl Default for Type { + fn default() -> Type { + Self::LinearGradient + } +} + diff --git a/rust/src/models/logarithmic_gradient.rs b/rust/src/models/logarithmic_gradient.rs new file mode 100644 index 00000000..52339dc5 --- /dev/null +++ b/rust/src/models/logarithmic_gradient.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LogarithmicGradient { + #[serde(rename = "breakpoints")] + pub breakpoints: Vec, + #[serde(rename = "noDataColor")] + pub no_data_color: Vec, + #[serde(rename = "overColor")] + pub over_color: Vec, + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "underColor")] + pub under_color: Vec, +} + +impl LogarithmicGradient { + pub fn new(breakpoints: Vec, no_data_color: Vec, over_color: Vec, r#type: Type, under_color: Vec) -> LogarithmicGradient { + LogarithmicGradient { + breakpoints, + no_data_color, + over_color, + r#type, + under_color, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "logarithmicGradient")] + LogarithmicGradient, +} + +impl Default for Type { + fn default() -> Type { + Self::LogarithmicGradient + } +} + diff --git a/rust/src/models/measurement.rs b/rust/src/models/measurement.rs new file mode 100644 index 00000000..48bbd9c1 --- /dev/null +++ b/rust/src/models/measurement.rs @@ -0,0 +1,31 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum Measurement { + #[serde(rename="unitless")] + Unitless(Box), + #[serde(rename="continuous")] + Continuous(Box), + #[serde(rename="classification")] + Classification(Box), +} + +impl Default for Measurement { + fn default() -> Self { + Self::Unitless(Default::default()) + } +} + + diff --git a/rust/src/models/meta_data_definition.rs b/rust/src/models/meta_data_definition.rs new file mode 100644 index 00000000..c9c97e80 --- /dev/null +++ b/rust/src/models/meta_data_definition.rs @@ -0,0 +1,37 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum MetaDataDefinition { + #[serde(rename="MockMetaData")] + MockMetaData(Box), + #[serde(rename="OgrMetaData")] + OgrMetaData(Box), + #[serde(rename="GdalMetaDataRegular")] + GdalMetaDataRegular(Box), + #[serde(rename="GdalStatic")] + GdalStatic(Box), + #[serde(rename="GdalMetaDataNetCdfCf")] + GdalMetaDataNetCdfCf(Box), + #[serde(rename="GdalMetaDataList")] + GdalMetaDataList(Box), +} + +impl Default for MetaDataDefinition { + fn default() -> Self { + Self::MockMetaData(Default::default()) + } +} + + diff --git a/rust/src/models/meta_data_suggestion.rs b/rust/src/models/meta_data_suggestion.rs new file mode 100644 index 00000000..a6d35b87 --- /dev/null +++ b/rust/src/models/meta_data_suggestion.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MetaDataSuggestion { + #[serde(rename = "layerName")] + pub layer_name: String, + #[serde(rename = "mainFile")] + pub main_file: String, + #[serde(rename = "metaData")] + pub meta_data: Box, +} + +impl MetaDataSuggestion { + pub fn new(layer_name: String, main_file: String, meta_data: models::MetaDataDefinition) -> MetaDataSuggestion { + MetaDataSuggestion { + layer_name, + main_file, + meta_data: Box::new(meta_data), + } + } +} + diff --git a/rust/src/models/ml_model.rs b/rust/src/models/ml_model.rs new file mode 100644 index 00000000..599506b6 --- /dev/null +++ b/rust/src/models/ml_model.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModel { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "fileName")] + pub file_name: String, + #[serde(rename = "metadata")] + pub metadata: Box, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl MlModel { + pub fn new(description: String, display_name: String, file_name: String, metadata: models::MlModelMetadata, name: String, upload: uuid::Uuid) -> MlModel { + MlModel { + description, + display_name, + file_name, + metadata: Box::new(metadata), + name, + upload, + } + } +} + diff --git a/rust/src/models/ml_model_input_no_data_handling.rs b/rust/src/models/ml_model_input_no_data_handling.rs new file mode 100644 index 00000000..f9efd7d9 --- /dev/null +++ b/rust/src/models/ml_model_input_no_data_handling.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModelInputNoDataHandling { + #[serde(rename = "noDataValue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub no_data_value: Option>, + #[serde(rename = "variant")] + pub variant: models::MlModelInputNoDataHandlingVariant, +} + +impl MlModelInputNoDataHandling { + pub fn new(variant: models::MlModelInputNoDataHandlingVariant) -> MlModelInputNoDataHandling { + MlModelInputNoDataHandling { + no_data_value: None, + variant, + } + } +} + diff --git a/rust/src/models/ml_model_input_no_data_handling_variant.rs b/rust/src/models/ml_model_input_no_data_handling_variant.rs new file mode 100644 index 00000000..d683819e --- /dev/null +++ b/rust/src/models/ml_model_input_no_data_handling_variant.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MlModelInputNoDataHandlingVariant { + #[serde(rename = "encodedNoData")] + EncodedNoData, + #[serde(rename = "skipIfNoData")] + SkipIfNoData, + +} + +impl std::fmt::Display for MlModelInputNoDataHandlingVariant { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::EncodedNoData => write!(f, "encodedNoData"), + Self::SkipIfNoData => write!(f, "skipIfNoData"), + } + } +} + +impl Default for MlModelInputNoDataHandlingVariant { + fn default() -> MlModelInputNoDataHandlingVariant { + Self::EncodedNoData + } +} + diff --git a/rust/src/models/ml_model_metadata.rs b/rust/src/models/ml_model_metadata.rs new file mode 100644 index 00000000..4155d878 --- /dev/null +++ b/rust/src/models/ml_model_metadata.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModelMetadata { + #[serde(rename = "inputNoDataHandling")] + pub input_no_data_handling: Box, + #[serde(rename = "inputShape")] + pub input_shape: Box, + #[serde(rename = "inputType")] + pub input_type: models::RasterDataType, + #[serde(rename = "outputNoDataHandling")] + pub output_no_data_handling: Box, + #[serde(rename = "outputShape")] + pub output_shape: Box, + #[serde(rename = "outputType")] + pub output_type: models::RasterDataType, +} + +impl MlModelMetadata { + pub fn new(input_no_data_handling: models::MlModelInputNoDataHandling, input_shape: models::MlTensorShape3D, input_type: models::RasterDataType, output_no_data_handling: models::MlModelOutputNoDataHandling, output_shape: models::MlTensorShape3D, output_type: models::RasterDataType) -> MlModelMetadata { + MlModelMetadata { + input_no_data_handling: Box::new(input_no_data_handling), + input_shape: Box::new(input_shape), + input_type, + output_no_data_handling: Box::new(output_no_data_handling), + output_shape: Box::new(output_shape), + output_type, + } + } +} + diff --git a/rust/src/models/ml_model_name_response.rs b/rust/src/models/ml_model_name_response.rs new file mode 100644 index 00000000..e89afd4d --- /dev/null +++ b/rust/src/models/ml_model_name_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModelNameResponse { + #[serde(rename = "mlModelName")] + pub ml_model_name: String, +} + +impl MlModelNameResponse { + pub fn new(ml_model_name: String) -> MlModelNameResponse { + MlModelNameResponse { + ml_model_name, + } + } +} + diff --git a/rust/src/models/ml_model_output_no_data_handling.rs b/rust/src/models/ml_model_output_no_data_handling.rs new file mode 100644 index 00000000..948a0f93 --- /dev/null +++ b/rust/src/models/ml_model_output_no_data_handling.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModelOutputNoDataHandling { + #[serde(rename = "noDataValue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub no_data_value: Option>, + #[serde(rename = "variant")] + pub variant: models::MlModelOutputNoDataHandlingVariant, +} + +impl MlModelOutputNoDataHandling { + pub fn new(variant: models::MlModelOutputNoDataHandlingVariant) -> MlModelOutputNoDataHandling { + MlModelOutputNoDataHandling { + no_data_value: None, + variant, + } + } +} + diff --git a/rust/src/models/ml_model_output_no_data_handling_variant.rs b/rust/src/models/ml_model_output_no_data_handling_variant.rs new file mode 100644 index 00000000..71fe8d22 --- /dev/null +++ b/rust/src/models/ml_model_output_no_data_handling_variant.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MlModelOutputNoDataHandlingVariant { + #[serde(rename = "encodedNoData")] + EncodedNoData, + #[serde(rename = "nanIsNoData")] + NanIsNoData, + +} + +impl std::fmt::Display for MlModelOutputNoDataHandlingVariant { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::EncodedNoData => write!(f, "encodedNoData"), + Self::NanIsNoData => write!(f, "nanIsNoData"), + } + } +} + +impl Default for MlModelOutputNoDataHandlingVariant { + fn default() -> MlModelOutputNoDataHandlingVariant { + Self::EncodedNoData + } +} + diff --git a/rust/src/models/ml_model_resource.rs b/rust/src/models/ml_model_resource.rs new file mode 100644 index 00000000..ea220043 --- /dev/null +++ b/rust/src/models/ml_model_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlModelResource { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MlModelResource { + pub fn new(id: String, r#type: Type) -> MlModelResource { + MlModelResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "mlModel")] + MlModel, +} + +impl Default for Type { + fn default() -> Type { + Self::MlModel + } +} + diff --git a/rust/src/models/ml_tensor_shape3_d.rs b/rust/src/models/ml_tensor_shape3_d.rs new file mode 100644 index 00000000..488bf08f --- /dev/null +++ b/rust/src/models/ml_tensor_shape3_d.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// MlTensorShape3D : A struct describing tensor shape for `MlModelMetadata` +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlTensorShape3D { + #[serde(rename = "bands")] + pub bands: i32, + #[serde(rename = "x")] + pub x: i32, + #[serde(rename = "y")] + pub y: i32, +} + +impl MlTensorShape3D { + /// A struct describing tensor shape for `MlModelMetadata` + pub fn new(bands: i32, x: i32, y: i32) -> MlTensorShape3D { + MlTensorShape3D { + bands, + x, + y, + } + } +} + diff --git a/rust/src/models/mock_dataset_data_source_loading_info.rs b/rust/src/models/mock_dataset_data_source_loading_info.rs new file mode 100644 index 00000000..9e8153c2 --- /dev/null +++ b/rust/src/models/mock_dataset_data_source_loading_info.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MockDatasetDataSourceLoadingInfo { + #[serde(rename = "points")] + pub points: Vec, +} + +impl MockDatasetDataSourceLoadingInfo { + pub fn new(points: Vec) -> MockDatasetDataSourceLoadingInfo { + MockDatasetDataSourceLoadingInfo { + points, + } + } +} + diff --git a/rust/src/models/mock_meta_data.rs b/rust/src/models/mock_meta_data.rs new file mode 100644 index 00000000..b834e094 --- /dev/null +++ b/rust/src/models/mock_meta_data.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MockMetaData { + #[serde(rename = "loadingInfo")] + pub loading_info: Box, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MockMetaData { + pub fn new(loading_info: models::MockDatasetDataSourceLoadingInfo, result_descriptor: models::VectorResultDescriptor, r#type: Type) -> MockMetaData { + MockMetaData { + loading_info: Box::new(loading_info), + result_descriptor: Box::new(result_descriptor), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "MockMetaData")] + MockMetaData, +} + +impl Default for Type { + fn default() -> Type { + Self::MockMetaData + } +} + diff --git a/rust/src/models/mod.rs b/rust/src/models/mod.rs new file mode 100644 index 00000000..3d93afe7 --- /dev/null +++ b/rust/src/models/mod.rs @@ -0,0 +1,484 @@ +pub mod add_dataset; +pub use self::add_dataset::AddDataset; +pub mod add_layer; +pub use self::add_layer::AddLayer; +pub mod add_layer_collection; +pub use self::add_layer_collection::AddLayerCollection; +pub mod add_role; +pub use self::add_role::AddRole; +pub mod aruna_data_provider_definition; +pub use self::aruna_data_provider_definition::ArunaDataProviderDefinition; +pub mod auth_code_request_url; +pub use self::auth_code_request_url::AuthCodeRequestUrl; +pub mod auth_code_response; +pub use self::auth_code_response::AuthCodeResponse; +pub mod auto_create_dataset; +pub use self::auto_create_dataset::AutoCreateDataset; +pub mod axis_order; +pub use self::axis_order::AxisOrder; +pub mod bounding_box2_d; +pub use self::bounding_box2_d::BoundingBox2D; +pub mod breakpoint; +pub use self::breakpoint::Breakpoint; +pub mod classification_measurement; +pub use self::classification_measurement::ClassificationMeasurement; +pub mod collection_item; +pub use self::collection_item::CollectionItem; +pub mod collection_type; +pub use self::collection_type::CollectionType; +pub mod color_param; +pub use self::color_param::ColorParam; +pub mod colorizer; +pub use self::colorizer::Colorizer; +pub mod computation_quota; +pub use self::computation_quota::ComputationQuota; +pub mod continuous_measurement; +pub use self::continuous_measurement::ContinuousMeasurement; +pub mod coordinate2_d; +pub use self::coordinate2_d::Coordinate2D; +pub mod copernicus_dataspace_data_provider_definition; +pub use self::copernicus_dataspace_data_provider_definition::CopernicusDataspaceDataProviderDefinition; +pub mod create_dataset; +pub use self::create_dataset::CreateDataset; +pub mod create_project; +pub use self::create_project::CreateProject; +pub mod csv_header; +pub use self::csv_header::CsvHeader; +pub mod data_id; +pub use self::data_id::DataId; +pub mod data_path; +pub use self::data_path::DataPath; +pub mod data_path_one_of; +pub use self::data_path_one_of::DataPathOneOf; +pub mod data_path_one_of_1; +pub use self::data_path_one_of_1::DataPathOneOf1; +pub mod data_provider_resource; +pub use self::data_provider_resource::DataProviderResource; +pub mod data_usage; +pub use self::data_usage::DataUsage; +pub mod data_usage_summary; +pub use self::data_usage_summary::DataUsageSummary; +pub mod database_connection_config; +pub use self::database_connection_config::DatabaseConnectionConfig; +pub mod dataset; +pub use self::dataset::Dataset; +pub mod dataset_definition; +pub use self::dataset_definition::DatasetDefinition; +pub mod dataset_layer_listing_collection; +pub use self::dataset_layer_listing_collection::DatasetLayerListingCollection; +pub mod dataset_layer_listing_provider_definition; +pub use self::dataset_layer_listing_provider_definition::DatasetLayerListingProviderDefinition; +pub mod dataset_listing; +pub use self::dataset_listing::DatasetListing; +pub mod dataset_name_response; +pub use self::dataset_name_response::DatasetNameResponse; +pub mod dataset_resource; +pub use self::dataset_resource::DatasetResource; +pub mod derived_color; +pub use self::derived_color::DerivedColor; +pub mod derived_number; +pub use self::derived_number::DerivedNumber; +pub mod describe_coverage_request; +pub use self::describe_coverage_request::DescribeCoverageRequest; +pub mod ebv_portal_data_provider_definition; +pub use self::ebv_portal_data_provider_definition::EbvPortalDataProviderDefinition; +pub mod edr_data_provider_definition; +pub use self::edr_data_provider_definition::EdrDataProviderDefinition; +pub mod edr_vector_spec; +pub use self::edr_vector_spec::EdrVectorSpec; +pub mod error_response; +pub use self::error_response::ErrorResponse; +pub mod external_data_id; +pub use self::external_data_id::ExternalDataId; +pub mod feature_data_type; +pub use self::feature_data_type::FeatureDataType; +pub mod file_not_found_handling; +pub use self::file_not_found_handling::FileNotFoundHandling; +pub mod format_specifics; +pub use self::format_specifics::FormatSpecifics; +pub mod format_specifics_csv; +pub use self::format_specifics_csv::FormatSpecificsCsv; +pub mod gbif_data_provider_definition; +pub use self::gbif_data_provider_definition::GbifDataProviderDefinition; +pub mod gdal_dataset_geo_transform; +pub use self::gdal_dataset_geo_transform::GdalDatasetGeoTransform; +pub mod gdal_dataset_parameters; +pub use self::gdal_dataset_parameters::GdalDatasetParameters; +pub mod gdal_loading_info_temporal_slice; +pub use self::gdal_loading_info_temporal_slice::GdalLoadingInfoTemporalSlice; +pub mod gdal_meta_data_list; +pub use self::gdal_meta_data_list::GdalMetaDataList; +pub mod gdal_meta_data_regular; +pub use self::gdal_meta_data_regular::GdalMetaDataRegular; +pub mod gdal_meta_data_static; +pub use self::gdal_meta_data_static::GdalMetaDataStatic; +pub mod gdal_metadata_mapping; +pub use self::gdal_metadata_mapping::GdalMetadataMapping; +pub mod gdal_metadata_net_cdf_cf; +pub use self::gdal_metadata_net_cdf_cf::GdalMetadataNetCdfCf; +pub mod gdal_source_time_placeholder; +pub use self::gdal_source_time_placeholder::GdalSourceTimePlaceholder; +pub mod geo_json; +pub use self::geo_json::GeoJson; +pub mod get_capabilities_format; +pub use self::get_capabilities_format::GetCapabilitiesFormat; +pub mod get_capabilities_request; +pub use self::get_capabilities_request::GetCapabilitiesRequest; +pub mod get_coverage_format; +pub use self::get_coverage_format::GetCoverageFormat; +pub mod get_coverage_request; +pub use self::get_coverage_request::GetCoverageRequest; +pub mod get_feature_request; +pub use self::get_feature_request::GetFeatureRequest; +pub mod get_legend_graphic_request; +pub use self::get_legend_graphic_request::GetLegendGraphicRequest; +pub mod get_map_exception_format; +pub use self::get_map_exception_format::GetMapExceptionFormat; +pub mod get_map_format; +pub use self::get_map_format::GetMapFormat; +pub mod get_map_request; +pub use self::get_map_request::GetMapRequest; +pub mod gfbio_abcd_data_provider_definition; +pub use self::gfbio_abcd_data_provider_definition::GfbioAbcdDataProviderDefinition; +pub mod gfbio_collections_data_provider_definition; +pub use self::gfbio_collections_data_provider_definition::GfbioCollectionsDataProviderDefinition; +pub mod id_response; +pub use self::id_response::IdResponse; +pub mod internal_data_id; +pub use self::internal_data_id::InternalDataId; +pub mod layer; +pub use self::layer::Layer; +pub mod layer_collection; +pub use self::layer_collection::LayerCollection; +pub mod layer_collection_listing; +pub use self::layer_collection_listing::LayerCollectionListing; +pub mod layer_collection_resource; +pub use self::layer_collection_resource::LayerCollectionResource; +pub mod layer_listing; +pub use self::layer_listing::LayerListing; +pub mod layer_provider_listing; +pub use self::layer_provider_listing::LayerProviderListing; +pub mod layer_resource; +pub use self::layer_resource::LayerResource; +pub mod layer_visibility; +pub use self::layer_visibility::LayerVisibility; +pub mod line_symbology; +pub use self::line_symbology::LineSymbology; +pub mod linear_gradient; +pub use self::linear_gradient::LinearGradient; +pub mod logarithmic_gradient; +pub use self::logarithmic_gradient::LogarithmicGradient; +pub mod measurement; +pub use self::measurement::Measurement; +pub mod meta_data_definition; +pub use self::meta_data_definition::MetaDataDefinition; +pub mod meta_data_suggestion; +pub use self::meta_data_suggestion::MetaDataSuggestion; +pub mod ml_model; +pub use self::ml_model::MlModel; +pub mod ml_model_input_no_data_handling; +pub use self::ml_model_input_no_data_handling::MlModelInputNoDataHandling; +pub mod ml_model_input_no_data_handling_variant; +pub use self::ml_model_input_no_data_handling_variant::MlModelInputNoDataHandlingVariant; +pub mod ml_model_metadata; +pub use self::ml_model_metadata::MlModelMetadata; +pub mod ml_model_name_response; +pub use self::ml_model_name_response::MlModelNameResponse; +pub mod ml_model_output_no_data_handling; +pub use self::ml_model_output_no_data_handling::MlModelOutputNoDataHandling; +pub mod ml_model_output_no_data_handling_variant; +pub use self::ml_model_output_no_data_handling_variant::MlModelOutputNoDataHandlingVariant; +pub mod ml_model_resource; +pub use self::ml_model_resource::MlModelResource; +pub mod ml_tensor_shape3_d; +pub use self::ml_tensor_shape3_d::MlTensorShape3D; +pub mod mock_dataset_data_source_loading_info; +pub use self::mock_dataset_data_source_loading_info::MockDatasetDataSourceLoadingInfo; +pub mod mock_meta_data; +pub use self::mock_meta_data::MockMetaData; +pub mod multi_band_raster_colorizer; +pub use self::multi_band_raster_colorizer::MultiBandRasterColorizer; +pub mod multi_line_string; +pub use self::multi_line_string::MultiLineString; +pub mod multi_point; +pub use self::multi_point::MultiPoint; +pub mod multi_polygon; +pub use self::multi_polygon::MultiPolygon; +pub mod net_cdf_cf_data_provider_definition; +pub use self::net_cdf_cf_data_provider_definition::NetCdfCfDataProviderDefinition; +pub mod number_param; +pub use self::number_param::NumberParam; +pub mod ogr_meta_data; +pub use self::ogr_meta_data::OgrMetaData; +pub mod ogr_source_column_spec; +pub use self::ogr_source_column_spec::OgrSourceColumnSpec; +pub mod ogr_source_dataset; +pub use self::ogr_source_dataset::OgrSourceDataset; +pub mod ogr_source_dataset_time_type; +pub use self::ogr_source_dataset_time_type::OgrSourceDatasetTimeType; +pub mod ogr_source_dataset_time_type_none; +pub use self::ogr_source_dataset_time_type_none::OgrSourceDatasetTimeTypeNone; +pub mod ogr_source_dataset_time_type_start; +pub use self::ogr_source_dataset_time_type_start::OgrSourceDatasetTimeTypeStart; +pub mod ogr_source_dataset_time_type_start_duration; +pub use self::ogr_source_dataset_time_type_start_duration::OgrSourceDatasetTimeTypeStartDuration; +pub mod ogr_source_dataset_time_type_start_end; +pub use self::ogr_source_dataset_time_type_start_end::OgrSourceDatasetTimeTypeStartEnd; +pub mod ogr_source_duration_spec; +pub use self::ogr_source_duration_spec::OgrSourceDurationSpec; +pub mod ogr_source_duration_spec_infinite; +pub use self::ogr_source_duration_spec_infinite::OgrSourceDurationSpecInfinite; +pub mod ogr_source_duration_spec_value; +pub use self::ogr_source_duration_spec_value::OgrSourceDurationSpecValue; +pub mod ogr_source_duration_spec_zero; +pub use self::ogr_source_duration_spec_zero::OgrSourceDurationSpecZero; +pub mod ogr_source_error_spec; +pub use self::ogr_source_error_spec::OgrSourceErrorSpec; +pub mod ogr_source_time_format; +pub use self::ogr_source_time_format::OgrSourceTimeFormat; +pub mod ogr_source_time_format_auto; +pub use self::ogr_source_time_format_auto::OgrSourceTimeFormatAuto; +pub mod ogr_source_time_format_custom; +pub use self::ogr_source_time_format_custom::OgrSourceTimeFormatCustom; +pub mod ogr_source_time_format_unix_time_stamp; +pub use self::ogr_source_time_format_unix_time_stamp::OgrSourceTimeFormatUnixTimeStamp; +pub mod operator_quota; +pub use self::operator_quota::OperatorQuota; +pub mod order_by; +pub use self::order_by::OrderBy; +pub mod palette_colorizer; +pub use self::palette_colorizer::PaletteColorizer; +pub mod pangaea_data_provider_definition; +pub use self::pangaea_data_provider_definition::PangaeaDataProviderDefinition; +pub mod permission; +pub use self::permission::Permission; +pub mod permission_list_options; +pub use self::permission_list_options::PermissionListOptions; +pub mod permission_listing; +pub use self::permission_listing::PermissionListing; +pub mod permission_request; +pub use self::permission_request::PermissionRequest; +pub mod plot; +pub use self::plot::Plot; +pub mod plot_output_format; +pub use self::plot_output_format::PlotOutputFormat; +pub mod plot_query_rectangle; +pub use self::plot_query_rectangle::PlotQueryRectangle; +pub mod plot_result_descriptor; +pub use self::plot_result_descriptor::PlotResultDescriptor; +pub mod point_symbology; +pub use self::point_symbology::PointSymbology; +pub mod polygon_symbology; +pub use self::polygon_symbology::PolygonSymbology; +pub mod project; +pub use self::project::Project; +pub mod project_layer; +pub use self::project_layer::ProjectLayer; +pub mod project_listing; +pub use self::project_listing::ProjectListing; +pub mod project_resource; +pub use self::project_resource::ProjectResource; +pub mod project_update_token; +pub use self::project_update_token::ProjectUpdateToken; +pub mod project_version; +pub use self::project_version::ProjectVersion; +pub mod provenance; +pub use self::provenance::Provenance; +pub mod provenance_entry; +pub use self::provenance_entry::ProvenanceEntry; +pub mod provenance_output; +pub use self::provenance_output::ProvenanceOutput; +pub mod provenances; +pub use self::provenances::Provenances; +pub mod provider_capabilities; +pub use self::provider_capabilities::ProviderCapabilities; +pub mod provider_layer_collection_id; +pub use self::provider_layer_collection_id::ProviderLayerCollectionId; +pub mod provider_layer_id; +pub use self::provider_layer_id::ProviderLayerId; +pub mod quota; +pub use self::quota::Quota; +pub mod raster_band_descriptor; +pub use self::raster_band_descriptor::RasterBandDescriptor; +pub mod raster_colorizer; +pub use self::raster_colorizer::RasterColorizer; +pub mod raster_data_type; +pub use self::raster_data_type::RasterDataType; +pub mod raster_dataset_from_workflow; +pub use self::raster_dataset_from_workflow::RasterDatasetFromWorkflow; +pub mod raster_dataset_from_workflow_result; +pub use self::raster_dataset_from_workflow_result::RasterDatasetFromWorkflowResult; +pub mod raster_properties_entry_type; +pub use self::raster_properties_entry_type::RasterPropertiesEntryType; +pub mod raster_properties_key; +pub use self::raster_properties_key::RasterPropertiesKey; +pub mod raster_query_rectangle; +pub use self::raster_query_rectangle::RasterQueryRectangle; +pub mod raster_result_descriptor; +pub use self::raster_result_descriptor::RasterResultDescriptor; +pub mod raster_stream_websocket_result_type; +pub use self::raster_stream_websocket_result_type::RasterStreamWebsocketResultType; +pub mod raster_symbology; +pub use self::raster_symbology::RasterSymbology; +pub mod resource; +pub use self::resource::Resource; +pub mod role; +pub use self::role::Role; +pub mod role_description; +pub use self::role_description::RoleDescription; +pub mod search_capabilities; +pub use self::search_capabilities::SearchCapabilities; +pub mod search_type; +pub use self::search_type::SearchType; +pub mod search_types; +pub use self::search_types::SearchTypes; +pub mod sentinel_s2_l2_a_cogs_provider_definition; +pub use self::sentinel_s2_l2_a_cogs_provider_definition::SentinelS2L2ACogsProviderDefinition; +pub mod server_info; +pub use self::server_info::ServerInfo; +pub mod single_band_raster_colorizer; +pub use self::single_band_raster_colorizer::SingleBandRasterColorizer; +pub mod spatial_partition2_d; +pub use self::spatial_partition2_d::SpatialPartition2D; +pub mod spatial_reference_authority; +pub use self::spatial_reference_authority::SpatialReferenceAuthority; +pub mod spatial_reference_specification; +pub use self::spatial_reference_specification::SpatialReferenceSpecification; +pub mod spatial_resolution; +pub use self::spatial_resolution::SpatialResolution; +pub mod st_rectangle; +pub use self::st_rectangle::StRectangle; +pub mod stac_api_retries; +pub use self::stac_api_retries::StacApiRetries; +pub mod stac_band; +pub use self::stac_band::StacBand; +pub mod stac_query_buffer; +pub use self::stac_query_buffer::StacQueryBuffer; +pub mod stac_zone; +pub use self::stac_zone::StacZone; +pub mod static_color; +pub use self::static_color::StaticColor; +pub mod static_number; +pub use self::static_number::StaticNumber; +pub mod stroke_param; +pub use self::stroke_param::StrokeParam; +pub mod suggest_meta_data; +pub use self::suggest_meta_data::SuggestMetaData; +pub mod symbology; +pub use self::symbology::Symbology; +pub mod task_abort_options; +pub use self::task_abort_options::TaskAbortOptions; +pub mod task_filter; +pub use self::task_filter::TaskFilter; +pub mod task_list_options; +pub use self::task_list_options::TaskListOptions; +pub mod task_response; +pub use self::task_response::TaskResponse; +pub mod task_status; +pub use self::task_status::TaskStatus; +pub mod task_status_aborted; +pub use self::task_status_aborted::TaskStatusAborted; +pub mod task_status_completed; +pub use self::task_status_completed::TaskStatusCompleted; +pub mod task_status_failed; +pub use self::task_status_failed::TaskStatusFailed; +pub mod task_status_running; +pub use self::task_status_running::TaskStatusRunning; +pub mod task_status_with_id; +pub use self::task_status_with_id::TaskStatusWithId; +pub mod text_symbology; +pub use self::text_symbology::TextSymbology; +pub mod time_granularity; +pub use self::time_granularity::TimeGranularity; +pub mod time_interval; +pub use self::time_interval::TimeInterval; +pub mod time_reference; +pub use self::time_reference::TimeReference; +pub mod time_step; +pub use self::time_step::TimeStep; +pub mod typed_data_provider_definition; +pub use self::typed_data_provider_definition::TypedDataProviderDefinition; +pub mod typed_geometry; +pub use self::typed_geometry::TypedGeometry; +pub mod typed_geometry_one_of; +pub use self::typed_geometry_one_of::TypedGeometryOneOf; +pub mod typed_geometry_one_of_1; +pub use self::typed_geometry_one_of_1::TypedGeometryOneOf1; +pub mod typed_geometry_one_of_2; +pub use self::typed_geometry_one_of_2::TypedGeometryOneOf2; +pub mod typed_geometry_one_of_3; +pub use self::typed_geometry_one_of_3::TypedGeometryOneOf3; +pub mod typed_operator; +pub use self::typed_operator::TypedOperator; +pub mod typed_operator_operator; +pub use self::typed_operator_operator::TypedOperatorOperator; +pub mod typed_plot_result_descriptor; +pub use self::typed_plot_result_descriptor::TypedPlotResultDescriptor; +pub mod typed_raster_result_descriptor; +pub use self::typed_raster_result_descriptor::TypedRasterResultDescriptor; +pub mod typed_result_descriptor; +pub use self::typed_result_descriptor::TypedResultDescriptor; +pub mod typed_vector_result_descriptor; +pub use self::typed_vector_result_descriptor::TypedVectorResultDescriptor; +pub mod unitless_measurement; +pub use self::unitless_measurement::UnitlessMeasurement; +pub mod unix_time_stamp_type; +pub use self::unix_time_stamp_type::UnixTimeStampType; +pub mod update_dataset; +pub use self::update_dataset::UpdateDataset; +pub mod update_layer; +pub use self::update_layer::UpdateLayer; +pub mod update_layer_collection; +pub use self::update_layer_collection::UpdateLayerCollection; +pub mod update_project; +pub use self::update_project::UpdateProject; +pub mod update_quota; +pub use self::update_quota::UpdateQuota; +pub mod upload_file_layers_response; +pub use self::upload_file_layers_response::UploadFileLayersResponse; +pub mod upload_files_response; +pub use self::upload_files_response::UploadFilesResponse; +pub mod usage_summary_granularity; +pub use self::usage_summary_granularity::UsageSummaryGranularity; +pub mod user_credentials; +pub use self::user_credentials::UserCredentials; +pub mod user_info; +pub use self::user_info::UserInfo; +pub mod user_registration; +pub use self::user_registration::UserRegistration; +pub mod user_session; +pub use self::user_session::UserSession; +pub mod vec_update; +pub use self::vec_update::VecUpdate; +pub mod vector_column_info; +pub use self::vector_column_info::VectorColumnInfo; +pub mod vector_data_type; +pub use self::vector_data_type::VectorDataType; +pub mod vector_query_rectangle; +pub use self::vector_query_rectangle::VectorQueryRectangle; +pub mod vector_result_descriptor; +pub use self::vector_result_descriptor::VectorResultDescriptor; +pub mod volume; +pub use self::volume::Volume; +pub mod volume_file_layers_response; +pub use self::volume_file_layers_response::VolumeFileLayersResponse; +pub mod wcs_boundingbox; +pub use self::wcs_boundingbox::WcsBoundingbox; +pub mod wcs_service; +pub use self::wcs_service::WcsService; +pub mod wcs_version; +pub use self::wcs_version::WcsVersion; +pub mod wfs_service; +pub use self::wfs_service::WfsService; +pub mod wfs_version; +pub use self::wfs_version::WfsVersion; +pub mod wildlive_data_connector_definition; +pub use self::wildlive_data_connector_definition::WildliveDataConnectorDefinition; +pub mod wms_service; +pub use self::wms_service::WmsService; +pub mod wms_version; +pub use self::wms_version::WmsVersion; +pub mod workflow; +pub use self::workflow::Workflow; +pub mod wrapped_plot_output; +pub use self::wrapped_plot_output::WrappedPlotOutput; diff --git a/rust/src/models/multi_band_raster_colorizer.rs b/rust/src/models/multi_band_raster_colorizer.rs new file mode 100644 index 00000000..bb65d84a --- /dev/null +++ b/rust/src/models/multi_band_raster_colorizer.rs @@ -0,0 +1,90 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiBandRasterColorizer { + /// The band index of the blue channel. + #[serde(rename = "blueBand")] + pub blue_band: i32, + /// The maximum value for the red channel. + #[serde(rename = "blueMax")] + pub blue_max: f64, + /// The minimum value for the red channel. + #[serde(rename = "blueMin")] + pub blue_min: f64, + /// A scaling factor for the blue channel between 0 and 1. + #[serde(rename = "blueScale", skip_serializing_if = "Option::is_none")] + pub blue_scale: Option, + /// The band index of the green channel. + #[serde(rename = "greenBand")] + pub green_band: i32, + /// The maximum value for the red channel. + #[serde(rename = "greenMax")] + pub green_max: f64, + /// The minimum value for the red channel. + #[serde(rename = "greenMin")] + pub green_min: f64, + /// A scaling factor for the green channel between 0 and 1. + #[serde(rename = "greenScale", skip_serializing_if = "Option::is_none")] + pub green_scale: Option, + #[serde(rename = "noDataColor", skip_serializing_if = "Option::is_none")] + pub no_data_color: Option>, + /// The band index of the red channel. + #[serde(rename = "redBand")] + pub red_band: i32, + /// The maximum value for the red channel. + #[serde(rename = "redMax")] + pub red_max: f64, + /// The minimum value for the red channel. + #[serde(rename = "redMin")] + pub red_min: f64, + /// A scaling factor for the red channel between 0 and 1. + #[serde(rename = "redScale", skip_serializing_if = "Option::is_none")] + pub red_scale: Option, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MultiBandRasterColorizer { + pub fn new(blue_band: i32, blue_max: f64, blue_min: f64, green_band: i32, green_max: f64, green_min: f64, red_band: i32, red_max: f64, red_min: f64, r#type: Type) -> MultiBandRasterColorizer { + MultiBandRasterColorizer { + blue_band, + blue_max, + blue_min, + blue_scale: None, + green_band, + green_max, + green_min, + green_scale: None, + no_data_color: None, + red_band, + red_max, + red_min, + red_scale: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "multiBand")] + MultiBand, +} + +impl Default for Type { + fn default() -> Type { + Self::MultiBand + } +} + diff --git a/rust/src/models/multi_line_string.rs b/rust/src/models/multi_line_string.rs new file mode 100644 index 00000000..e611e499 --- /dev/null +++ b/rust/src/models/multi_line_string.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiLineString { + #[serde(rename = "coordinates")] + pub coordinates: Vec>, +} + +impl MultiLineString { + pub fn new(coordinates: Vec>) -> MultiLineString { + MultiLineString { + coordinates, + } + } +} + diff --git a/rust/src/models/multi_point.rs b/rust/src/models/multi_point.rs new file mode 100644 index 00000000..1434463c --- /dev/null +++ b/rust/src/models/multi_point.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiPoint { + #[serde(rename = "coordinates")] + pub coordinates: Vec, +} + +impl MultiPoint { + pub fn new(coordinates: Vec) -> MultiPoint { + MultiPoint { + coordinates, + } + } +} + diff --git a/rust/src/models/multi_polygon.rs b/rust/src/models/multi_polygon.rs new file mode 100644 index 00000000..15691a82 --- /dev/null +++ b/rust/src/models/multi_polygon.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiPolygon { + #[serde(rename = "polygons")] + pub polygons: Vec>>, +} + +impl MultiPolygon { + pub fn new(polygons: Vec>>) -> MultiPolygon { + MultiPolygon { + polygons, + } + } +} + diff --git a/rust/src/models/net_cdf_cf_data_provider_definition.rs b/rust/src/models/net_cdf_cf_data_provider_definition.rs new file mode 100644 index 00000000..6b8e33b9 --- /dev/null +++ b/rust/src/models/net_cdf_cf_data_provider_definition.rs @@ -0,0 +1,59 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NetCdfCfDataProviderDefinition { + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + /// Path were the `NetCDF` data can be found + #[serde(rename = "data")] + pub data: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + /// Path were overview files are stored + #[serde(rename = "overviews")] + pub overviews: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl NetCdfCfDataProviderDefinition { + pub fn new(data: String, description: String, name: String, overviews: String, r#type: Type) -> NetCdfCfDataProviderDefinition { + NetCdfCfDataProviderDefinition { + cache_ttl: None, + data, + description, + name, + overviews, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "NetCdfCf")] + NetCdfCf, +} + +impl Default for Type { + fn default() -> Type { + Self::NetCdfCf + } +} + diff --git a/rust/src/models/number_param.rs b/rust/src/models/number_param.rs new file mode 100644 index 00000000..3c3d2c69 --- /dev/null +++ b/rust/src/models/number_param.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum NumberParam { + #[serde(rename="static")] + Static(Box), + #[serde(rename="derived")] + Derived(Box), +} + +impl Default for NumberParam { + fn default() -> Self { + Self::Static(Default::default()) + } +} + + diff --git a/rust/src/models/ogr_meta_data.rs b/rust/src/models/ogr_meta_data.rs new file mode 100644 index 00000000..2ec62d1d --- /dev/null +++ b/rust/src/models/ogr_meta_data.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrMetaData { + #[serde(rename = "loadingInfo")] + pub loading_info: Box, + #[serde(rename = "resultDescriptor")] + pub result_descriptor: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrMetaData { + pub fn new(loading_info: models::OgrSourceDataset, result_descriptor: models::VectorResultDescriptor, r#type: Type) -> OgrMetaData { + OgrMetaData { + loading_info: Box::new(loading_info), + result_descriptor: Box::new(result_descriptor), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "OgrMetaData")] + OgrMetaData, +} + +impl Default for Type { + fn default() -> Type { + Self::OgrMetaData + } +} + diff --git a/rust/src/models/ogr_source_column_spec.rs b/rust/src/models/ogr_source_column_spec.rs new file mode 100644 index 00000000..b2a5dfc8 --- /dev/null +++ b/rust/src/models/ogr_source_column_spec.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceColumnSpec { + #[serde(rename = "bool", skip_serializing_if = "Option::is_none")] + pub bool: Option>, + #[serde(rename = "datetime", skip_serializing_if = "Option::is_none")] + pub datetime: Option>, + #[serde(rename = "float", skip_serializing_if = "Option::is_none")] + pub float: Option>, + #[serde(rename = "formatSpecifics", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub format_specifics: Option>>, + #[serde(rename = "int", skip_serializing_if = "Option::is_none")] + pub int: Option>, + #[serde(rename = "rename", skip_serializing_if = "Option::is_none")] + pub rename: Option>, + #[serde(rename = "text", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "x")] + pub x: String, + #[serde(rename = "y", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub y: Option>, +} + +impl OgrSourceColumnSpec { + pub fn new(x: String) -> OgrSourceColumnSpec { + OgrSourceColumnSpec { + bool: None, + datetime: None, + float: None, + format_specifics: None, + int: None, + rename: None, + text: None, + x, + y: None, + } + } +} + diff --git a/rust/src/models/ogr_source_dataset.rs b/rust/src/models/ogr_source_dataset.rs new file mode 100644 index 00000000..56e10bb2 --- /dev/null +++ b/rust/src/models/ogr_source_dataset.rs @@ -0,0 +1,60 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDataset { + #[serde(rename = "attributeQuery", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attribute_query: Option>, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "columns", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub columns: Option>>, + #[serde(rename = "dataType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub data_type: Option>, + #[serde(rename = "defaultGeometry", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_geometry: Option>>, + #[serde(rename = "fileName")] + pub file_name: String, + #[serde(rename = "forceOgrSpatialFilter", skip_serializing_if = "Option::is_none")] + pub force_ogr_spatial_filter: Option, + #[serde(rename = "forceOgrTimeFilter", skip_serializing_if = "Option::is_none")] + pub force_ogr_time_filter: Option, + #[serde(rename = "layerName")] + pub layer_name: String, + #[serde(rename = "onError")] + pub on_error: models::OgrSourceErrorSpec, + #[serde(rename = "sqlQuery", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sql_query: Option>, + #[serde(rename = "time", skip_serializing_if = "Option::is_none")] + pub time: Option>, +} + +impl OgrSourceDataset { + pub fn new(file_name: String, layer_name: String, on_error: models::OgrSourceErrorSpec) -> OgrSourceDataset { + OgrSourceDataset { + attribute_query: None, + cache_ttl: None, + columns: None, + data_type: None, + default_geometry: None, + file_name, + force_ogr_spatial_filter: None, + force_ogr_time_filter: None, + layer_name, + on_error, + sql_query: None, + time: None, + } + } +} + diff --git a/rust/src/models/ogr_source_dataset_time_type.rs b/rust/src/models/ogr_source_dataset_time_type.rs new file mode 100644 index 00000000..eb21e4c6 --- /dev/null +++ b/rust/src/models/ogr_source_dataset_time_type.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum OgrSourceDatasetTimeType { + #[serde(rename="none")] + None(Box), + #[serde(rename="start")] + Start(Box), + #[serde(rename="start+end")] + StartPlusEnd(Box), + #[serde(rename="start+duration")] + StartPlusDuration(Box), +} + +impl Default for OgrSourceDatasetTimeType { + fn default() -> Self { + Self::None(Default::default()) + } +} + + diff --git a/rust/src/models/ogr_source_dataset_time_type_none.rs b/rust/src/models/ogr_source_dataset_time_type_none.rs new file mode 100644 index 00000000..ef41d60e --- /dev/null +++ b/rust/src/models/ogr_source_dataset_time_type_none.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDatasetTimeTypeNone { + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDatasetTimeTypeNone { + pub fn new(r#type: Type) -> OgrSourceDatasetTimeTypeNone { + OgrSourceDatasetTimeTypeNone { + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "none")] + None, +} + +impl Default for Type { + fn default() -> Type { + Self::None + } +} + diff --git a/rust/src/models/ogr_source_dataset_time_type_start.rs b/rust/src/models/ogr_source_dataset_time_type_start.rs new file mode 100644 index 00000000..2a031184 --- /dev/null +++ b/rust/src/models/ogr_source_dataset_time_type_start.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDatasetTimeTypeStart { + #[serde(rename = "duration")] + pub duration: Box, + #[serde(rename = "startField")] + pub start_field: String, + #[serde(rename = "startFormat")] + pub start_format: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDatasetTimeTypeStart { + pub fn new(duration: models::OgrSourceDurationSpec, start_field: String, start_format: models::OgrSourceTimeFormat, r#type: Type) -> OgrSourceDatasetTimeTypeStart { + OgrSourceDatasetTimeTypeStart { + duration: Box::new(duration), + start_field, + start_format: Box::new(start_format), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "start")] + Start, +} + +impl Default for Type { + fn default() -> Type { + Self::Start + } +} + diff --git a/rust/src/models/ogr_source_dataset_time_type_start_duration.rs b/rust/src/models/ogr_source_dataset_time_type_start_duration.rs new file mode 100644 index 00000000..485cdd2e --- /dev/null +++ b/rust/src/models/ogr_source_dataset_time_type_start_duration.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDatasetTimeTypeStartDuration { + #[serde(rename = "durationField")] + pub duration_field: String, + #[serde(rename = "startField")] + pub start_field: String, + #[serde(rename = "startFormat")] + pub start_format: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDatasetTimeTypeStartDuration { + pub fn new(duration_field: String, start_field: String, start_format: models::OgrSourceTimeFormat, r#type: Type) -> OgrSourceDatasetTimeTypeStartDuration { + OgrSourceDatasetTimeTypeStartDuration { + duration_field, + start_field, + start_format: Box::new(start_format), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "start+duration")] + StartPlusDuration, +} + +impl Default for Type { + fn default() -> Type { + Self::StartPlusDuration + } +} + diff --git a/rust/src/models/ogr_source_dataset_time_type_start_end.rs b/rust/src/models/ogr_source_dataset_time_type_start_end.rs new file mode 100644 index 00000000..b7d667c7 --- /dev/null +++ b/rust/src/models/ogr_source_dataset_time_type_start_end.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDatasetTimeTypeStartEnd { + #[serde(rename = "endField")] + pub end_field: String, + #[serde(rename = "endFormat")] + pub end_format: Box, + #[serde(rename = "startField")] + pub start_field: String, + #[serde(rename = "startFormat")] + pub start_format: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDatasetTimeTypeStartEnd { + pub fn new(end_field: String, end_format: models::OgrSourceTimeFormat, start_field: String, start_format: models::OgrSourceTimeFormat, r#type: Type) -> OgrSourceDatasetTimeTypeStartEnd { + OgrSourceDatasetTimeTypeStartEnd { + end_field, + end_format: Box::new(end_format), + start_field, + start_format: Box::new(start_format), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "start+end")] + StartPlusEnd, +} + +impl Default for Type { + fn default() -> Type { + Self::StartPlusEnd + } +} + diff --git a/rust/src/models/ogr_source_duration_spec.rs b/rust/src/models/ogr_source_duration_spec.rs new file mode 100644 index 00000000..f468e90e --- /dev/null +++ b/rust/src/models/ogr_source_duration_spec.rs @@ -0,0 +1,31 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum OgrSourceDurationSpec { + #[serde(rename="infinite")] + Infinite(Box), + #[serde(rename="zero")] + Zero(Box), + #[serde(rename="value")] + Value(Box), +} + +impl Default for OgrSourceDurationSpec { + fn default() -> Self { + Self::Infinite(Default::default()) + } +} + + diff --git a/rust/src/models/ogr_source_duration_spec_infinite.rs b/rust/src/models/ogr_source_duration_spec_infinite.rs new file mode 100644 index 00000000..01864e60 --- /dev/null +++ b/rust/src/models/ogr_source_duration_spec_infinite.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDurationSpecInfinite { + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDurationSpecInfinite { + pub fn new(r#type: Type) -> OgrSourceDurationSpecInfinite { + OgrSourceDurationSpecInfinite { + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "infinite")] + Infinite, +} + +impl Default for Type { + fn default() -> Type { + Self::Infinite + } +} + diff --git a/rust/src/models/ogr_source_duration_spec_value.rs b/rust/src/models/ogr_source_duration_spec_value.rs new file mode 100644 index 00000000..ba594ecb --- /dev/null +++ b/rust/src/models/ogr_source_duration_spec_value.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDurationSpecValue { + #[serde(rename = "granularity")] + pub granularity: models::TimeGranularity, + #[serde(rename = "step")] + pub step: i32, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDurationSpecValue { + pub fn new(granularity: models::TimeGranularity, step: i32, r#type: Type) -> OgrSourceDurationSpecValue { + OgrSourceDurationSpecValue { + granularity, + step, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "value")] + Value, +} + +impl Default for Type { + fn default() -> Type { + Self::Value + } +} + diff --git a/rust/src/models/ogr_source_duration_spec_zero.rs b/rust/src/models/ogr_source_duration_spec_zero.rs new file mode 100644 index 00000000..27ba3950 --- /dev/null +++ b/rust/src/models/ogr_source_duration_spec_zero.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceDurationSpecZero { + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSourceDurationSpecZero { + pub fn new(r#type: Type) -> OgrSourceDurationSpecZero { + OgrSourceDurationSpecZero { + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "zero")] + Zero, +} + +impl Default for Type { + fn default() -> Type { + Self::Zero + } +} + diff --git a/rust/src/models/ogr_source_error_spec.rs b/rust/src/models/ogr_source_error_spec.rs new file mode 100644 index 00000000..5e9f2954 --- /dev/null +++ b/rust/src/models/ogr_source_error_spec.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum OgrSourceErrorSpec { + #[serde(rename = "ignore")] + Ignore, + #[serde(rename = "abort")] + Abort, + +} + +impl std::fmt::Display for OgrSourceErrorSpec { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Ignore => write!(f, "ignore"), + Self::Abort => write!(f, "abort"), + } + } +} + +impl Default for OgrSourceErrorSpec { + fn default() -> OgrSourceErrorSpec { + Self::Ignore + } +} + diff --git a/rust/src/models/ogr_source_time_format.rs b/rust/src/models/ogr_source_time_format.rs new file mode 100644 index 00000000..5fbb434e --- /dev/null +++ b/rust/src/models/ogr_source_time_format.rs @@ -0,0 +1,31 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "format")] +pub enum OgrSourceTimeFormat { + #[serde(rename="custom")] + Custom(Box), + #[serde(rename="unixTimeStamp")] + UnixTimeStamp(Box), + #[serde(rename="auto")] + Auto(Box), +} + +impl Default for OgrSourceTimeFormat { + fn default() -> Self { + Self::Custom(Default::default()) + } +} + + diff --git a/rust/src/models/ogr_source_time_format_auto.rs b/rust/src/models/ogr_source_time_format_auto.rs new file mode 100644 index 00000000..c036eb87 --- /dev/null +++ b/rust/src/models/ogr_source_time_format_auto.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceTimeFormatAuto { + #[serde(rename = "format")] + pub format: Format, +} + +impl OgrSourceTimeFormatAuto { + pub fn new(format: Format) -> OgrSourceTimeFormatAuto { + OgrSourceTimeFormatAuto { + format, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Format { + #[serde(rename = "auto")] + Auto, +} + +impl Default for Format { + fn default() -> Format { + Self::Auto + } +} + diff --git a/rust/src/models/ogr_source_time_format_custom.rs b/rust/src/models/ogr_source_time_format_custom.rs new file mode 100644 index 00000000..dd9c7e2c --- /dev/null +++ b/rust/src/models/ogr_source_time_format_custom.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceTimeFormatCustom { + #[serde(rename = "customFormat")] + pub custom_format: String, + #[serde(rename = "format")] + pub format: Format, +} + +impl OgrSourceTimeFormatCustom { + pub fn new(custom_format: String, format: Format) -> OgrSourceTimeFormatCustom { + OgrSourceTimeFormatCustom { + custom_format, + format, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Format { + #[serde(rename = "custom")] + Custom, +} + +impl Default for Format { + fn default() -> Format { + Self::Custom + } +} + diff --git a/rust/src/models/ogr_source_time_format_unix_time_stamp.rs b/rust/src/models/ogr_source_time_format_unix_time_stamp.rs new file mode 100644 index 00000000..e31a1402 --- /dev/null +++ b/rust/src/models/ogr_source_time_format_unix_time_stamp.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceTimeFormatUnixTimeStamp { + #[serde(rename = "format")] + pub format: Format, + #[serde(rename = "timestampType")] + pub timestamp_type: models::UnixTimeStampType, +} + +impl OgrSourceTimeFormatUnixTimeStamp { + pub fn new(format: Format, timestamp_type: models::UnixTimeStampType) -> OgrSourceTimeFormatUnixTimeStamp { + OgrSourceTimeFormatUnixTimeStamp { + format, + timestamp_type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Format { + #[serde(rename = "unixTimeStamp")] + UnixTimeStamp, +} + +impl Default for Format { + fn default() -> Format { + Self::UnixTimeStamp + } +} + diff --git a/rust/src/models/operator_quota.rs b/rust/src/models/operator_quota.rs new file mode 100644 index 00000000..b70071cc --- /dev/null +++ b/rust/src/models/operator_quota.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OperatorQuota { + #[serde(rename = "count")] + pub count: i64, + #[serde(rename = "operatorName")] + pub operator_name: String, + #[serde(rename = "operatorPath")] + pub operator_path: String, +} + +impl OperatorQuota { + pub fn new(count: i64, operator_name: String, operator_path: String) -> OperatorQuota { + OperatorQuota { + count, + operator_name, + operator_path, + } + } +} + diff --git a/rust/src/models/order_by.rs b/rust/src/models/order_by.rs new file mode 100644 index 00000000..d0a40e89 --- /dev/null +++ b/rust/src/models/order_by.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum OrderBy { + #[serde(rename = "NameAsc")] + NameAsc, + #[serde(rename = "NameDesc")] + NameDesc, + +} + +impl std::fmt::Display for OrderBy { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::NameAsc => write!(f, "NameAsc"), + Self::NameDesc => write!(f, "NameDesc"), + } + } +} + +impl Default for OrderBy { + fn default() -> OrderBy { + Self::NameAsc + } +} + diff --git a/rust/src/models/palette_colorizer.rs b/rust/src/models/palette_colorizer.rs new file mode 100644 index 00000000..a3afd055 --- /dev/null +++ b/rust/src/models/palette_colorizer.rs @@ -0,0 +1,49 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PaletteColorizer { + /// A map from value to color It is assumed that is has at least one and at most 256 entries. + #[serde(rename = "colors")] + pub colors: std::collections::HashMap>, + #[serde(rename = "defaultColor")] + pub default_color: Vec, + #[serde(rename = "noDataColor")] + pub no_data_color: Vec, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl PaletteColorizer { + pub fn new(colors: std::collections::HashMap>, default_color: Vec, no_data_color: Vec, r#type: Type) -> PaletteColorizer { + PaletteColorizer { + colors, + default_color, + no_data_color, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "palette")] + Palette, +} + +impl Default for Type { + fn default() -> Type { + Self::Palette + } +} + diff --git a/rust/src/models/pangaea_data_provider_definition.rs b/rust/src/models/pangaea_data_provider_definition.rs new file mode 100644 index 00000000..1bbec815 --- /dev/null +++ b/rust/src/models/pangaea_data_provider_definition.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PangaeaDataProviderDefinition { + #[serde(rename = "baseUrl")] + pub base_url: String, + #[serde(rename = "cacheTtl")] + pub cache_ttl: i32, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl PangaeaDataProviderDefinition { + pub fn new(base_url: String, cache_ttl: i32, description: String, name: String, r#type: Type) -> PangaeaDataProviderDefinition { + PangaeaDataProviderDefinition { + base_url, + cache_ttl, + description, + name, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Pangaea")] + Pangaea, +} + +impl Default for Type { + fn default() -> Type { + Self::Pangaea + } +} + diff --git a/rust/src/models/permission.rs b/rust/src/models/permission.rs new file mode 100644 index 00000000..520caded --- /dev/null +++ b/rust/src/models/permission.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Permission { + #[serde(rename = "Read")] + Read, + #[serde(rename = "Owner")] + Owner, + +} + +impl std::fmt::Display for Permission { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Read => write!(f, "Read"), + Self::Owner => write!(f, "Owner"), + } + } +} + +impl Default for Permission { + fn default() -> Permission { + Self::Read + } +} + diff --git a/rust/src/models/permission_list_options.rs b/rust/src/models/permission_list_options.rs new file mode 100644 index 00000000..1f5fd50d --- /dev/null +++ b/rust/src/models/permission_list_options.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PermissionListOptions { + #[serde(rename = "limit")] + pub limit: i32, + #[serde(rename = "offset")] + pub offset: i32, +} + +impl PermissionListOptions { + pub fn new(limit: i32, offset: i32) -> PermissionListOptions { + PermissionListOptions { + limit, + offset, + } + } +} + diff --git a/rust/src/models/permission_listing.rs b/rust/src/models/permission_listing.rs new file mode 100644 index 00000000..be04680c --- /dev/null +++ b/rust/src/models/permission_listing.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PermissionListing { + #[serde(rename = "permission")] + pub permission: models::Permission, + #[serde(rename = "resource")] + pub resource: Box, + #[serde(rename = "role")] + pub role: Box, +} + +impl PermissionListing { + pub fn new(permission: models::Permission, resource: models::Resource, role: models::Role) -> PermissionListing { + PermissionListing { + permission, + resource: Box::new(resource), + role: Box::new(role), + } + } +} + diff --git a/rust/src/models/permission_request.rs b/rust/src/models/permission_request.rs new file mode 100644 index 00000000..c1009396 --- /dev/null +++ b/rust/src/models/permission_request.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// PermissionRequest : Request for adding a new permission to the given role on the given resource +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PermissionRequest { + #[serde(rename = "permission")] + pub permission: models::Permission, + #[serde(rename = "resource")] + pub resource: Box, + #[serde(rename = "roleId")] + pub role_id: uuid::Uuid, +} + +impl PermissionRequest { + /// Request for adding a new permission to the given role on the given resource + pub fn new(permission: models::Permission, resource: models::Resource, role_id: uuid::Uuid) -> PermissionRequest { + PermissionRequest { + permission, + resource: Box::new(resource), + role_id, + } + } +} + diff --git a/rust/src/models/plot.rs b/rust/src/models/plot.rs new file mode 100644 index 00000000..0c2df816 --- /dev/null +++ b/rust/src/models/plot.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Plot { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "workflow")] + pub workflow: uuid::Uuid, +} + +impl Plot { + pub fn new(name: String, workflow: uuid::Uuid) -> Plot { + Plot { + name, + workflow, + } + } +} + diff --git a/rust/src/models/plot_output_format.rs b/rust/src/models/plot_output_format.rs new file mode 100644 index 00000000..821091df --- /dev/null +++ b/rust/src/models/plot_output_format.rs @@ -0,0 +1,41 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PlotOutputFormat { + #[serde(rename = "JsonPlain")] + JsonPlain, + #[serde(rename = "JsonVega")] + JsonVega, + #[serde(rename = "ImagePng")] + ImagePng, + +} + +impl std::fmt::Display for PlotOutputFormat { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::JsonPlain => write!(f, "JsonPlain"), + Self::JsonVega => write!(f, "JsonVega"), + Self::ImagePng => write!(f, "ImagePng"), + } + } +} + +impl Default for PlotOutputFormat { + fn default() -> PlotOutputFormat { + Self::JsonPlain + } +} + diff --git a/rust/src/models/plot_query_rectangle.rs b/rust/src/models/plot_query_rectangle.rs new file mode 100644 index 00000000..31636953 --- /dev/null +++ b/rust/src/models/plot_query_rectangle.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// PlotQueryRectangle : A spatio-temporal rectangle with a specified resolution +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PlotQueryRectangle { + #[serde(rename = "spatialBounds")] + pub spatial_bounds: Box, + #[serde(rename = "spatialResolution")] + pub spatial_resolution: Box, + #[serde(rename = "timeInterval")] + pub time_interval: Box, +} + +impl PlotQueryRectangle { + /// A spatio-temporal rectangle with a specified resolution + pub fn new(spatial_bounds: models::BoundingBox2D, spatial_resolution: models::SpatialResolution, time_interval: models::TimeInterval) -> PlotQueryRectangle { + PlotQueryRectangle { + spatial_bounds: Box::new(spatial_bounds), + spatial_resolution: Box::new(spatial_resolution), + time_interval: Box::new(time_interval), + } + } +} + diff --git a/rust/src/models/plot_result_descriptor.rs b/rust/src/models/plot_result_descriptor.rs new file mode 100644 index 00000000..a04fae18 --- /dev/null +++ b/rust/src/models/plot_result_descriptor.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// PlotResultDescriptor : A `ResultDescriptor` for plot queries +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PlotResultDescriptor { + #[serde(rename = "bbox", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bbox: Option>>, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time: Option>>, +} + +impl PlotResultDescriptor { + /// A `ResultDescriptor` for plot queries + pub fn new(spatial_reference: String) -> PlotResultDescriptor { + PlotResultDescriptor { + bbox: None, + spatial_reference, + time: None, + } + } +} + diff --git a/rust/src/models/point_symbology.rs b/rust/src/models/point_symbology.rs new file mode 100644 index 00000000..c0946444 --- /dev/null +++ b/rust/src/models/point_symbology.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PointSymbology { + #[serde(rename = "fillColor")] + pub fill_color: Box, + #[serde(rename = "radius")] + pub radius: Box, + #[serde(rename = "stroke")] + pub stroke: Box, + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl PointSymbology { + pub fn new(fill_color: models::ColorParam, radius: models::NumberParam, stroke: models::StrokeParam, r#type: Type) -> PointSymbology { + PointSymbology { + fill_color: Box::new(fill_color), + radius: Box::new(radius), + stroke: Box::new(stroke), + text: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "point")] + Point, +} + +impl Default for Type { + fn default() -> Type { + Self::Point + } +} + diff --git a/rust/src/models/polygon_symbology.rs b/rust/src/models/polygon_symbology.rs new file mode 100644 index 00000000..d809e8b1 --- /dev/null +++ b/rust/src/models/polygon_symbology.rs @@ -0,0 +1,51 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PolygonSymbology { + #[serde(rename = "autoSimplified")] + pub auto_simplified: bool, + #[serde(rename = "fillColor")] + pub fill_color: Box, + #[serde(rename = "stroke")] + pub stroke: Box, + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl PolygonSymbology { + pub fn new(auto_simplified: bool, fill_color: models::ColorParam, stroke: models::StrokeParam, r#type: Type) -> PolygonSymbology { + PolygonSymbology { + auto_simplified, + fill_color: Box::new(fill_color), + stroke: Box::new(stroke), + text: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "polygon")] + Polygon, +} + +impl Default for Type { + fn default() -> Type { + Self::Polygon + } +} + diff --git a/rust/src/models/project.rs b/rust/src/models/project.rs new file mode 100644 index 00000000..3c16c1e1 --- /dev/null +++ b/rust/src/models/project.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Project { + #[serde(rename = "bounds")] + pub bounds: Box, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "layers")] + pub layers: Vec, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "plots")] + pub plots: Vec, + #[serde(rename = "timeStep")] + pub time_step: Box, + #[serde(rename = "version")] + pub version: Box, +} + +impl Project { + pub fn new(bounds: models::StRectangle, description: String, id: uuid::Uuid, layers: Vec, name: String, plots: Vec, time_step: models::TimeStep, version: models::ProjectVersion) -> Project { + Project { + bounds: Box::new(bounds), + description, + id, + layers, + name, + plots, + time_step: Box::new(time_step), + version: Box::new(version), + } + } +} + diff --git a/rust/src/models/project_layer.rs b/rust/src/models/project_layer.rs new file mode 100644 index 00000000..f66c0de7 --- /dev/null +++ b/rust/src/models/project_layer.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProjectLayer { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "symbology")] + pub symbology: Box, + #[serde(rename = "visibility")] + pub visibility: Box, + #[serde(rename = "workflow")] + pub workflow: uuid::Uuid, +} + +impl ProjectLayer { + pub fn new(name: String, symbology: models::Symbology, visibility: models::LayerVisibility, workflow: uuid::Uuid) -> ProjectLayer { + ProjectLayer { + name, + symbology: Box::new(symbology), + visibility: Box::new(visibility), + workflow, + } + } +} + diff --git a/rust/src/models/project_listing.rs b/rust/src/models/project_listing.rs new file mode 100644 index 00000000..9d0743b5 --- /dev/null +++ b/rust/src/models/project_listing.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProjectListing { + #[serde(rename = "changed")] + pub changed: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "layerNames")] + pub layer_names: Vec, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "plotNames")] + pub plot_names: Vec, +} + +impl ProjectListing { + pub fn new(changed: String, description: String, id: uuid::Uuid, layer_names: Vec, name: String, plot_names: Vec) -> ProjectListing { + ProjectListing { + changed, + description, + id, + layer_names, + name, + plot_names, + } + } +} + diff --git a/rust/src/models/project_resource.rs b/rust/src/models/project_resource.rs new file mode 100644 index 00000000..a2d563ec --- /dev/null +++ b/rust/src/models/project_resource.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProjectResource { + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl ProjectResource { + pub fn new(id: uuid::Uuid, r#type: Type) -> ProjectResource { + ProjectResource { + id, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "project")] + Project, +} + +impl Default for Type { + fn default() -> Type { + Self::Project + } +} + diff --git a/rust/src/models/project_update_token.rs b/rust/src/models/project_update_token.rs new file mode 100644 index 00000000..6e1d686c --- /dev/null +++ b/rust/src/models/project_update_token.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ProjectUpdateToken { + #[serde(rename = "none")] + None, + #[serde(rename = "delete")] + Delete, + +} + +impl std::fmt::Display for ProjectUpdateToken { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::None => write!(f, "none"), + Self::Delete => write!(f, "delete"), + } + } +} + +impl Default for ProjectUpdateToken { + fn default() -> ProjectUpdateToken { + Self::None + } +} + diff --git a/rust/src/models/project_version.rs b/rust/src/models/project_version.rs new file mode 100644 index 00000000..f03c1ccb --- /dev/null +++ b/rust/src/models/project_version.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProjectVersion { + #[serde(rename = "changed")] + pub changed: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, +} + +impl ProjectVersion { + pub fn new(changed: String, id: uuid::Uuid) -> ProjectVersion { + ProjectVersion { + changed, + id, + } + } +} + diff --git a/rust/src/models/provenance.rs b/rust/src/models/provenance.rs new file mode 100644 index 00000000..865bbecd --- /dev/null +++ b/rust/src/models/provenance.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Provenance { + #[serde(rename = "citation")] + pub citation: String, + #[serde(rename = "license")] + pub license: String, + #[serde(rename = "uri")] + pub uri: String, +} + +impl Provenance { + pub fn new(citation: String, license: String, uri: String) -> Provenance { + Provenance { + citation, + license, + uri, + } + } +} + diff --git a/rust/src/models/provenance_entry.rs b/rust/src/models/provenance_entry.rs new file mode 100644 index 00000000..0fe2f36d --- /dev/null +++ b/rust/src/models/provenance_entry.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProvenanceEntry { + #[serde(rename = "data")] + pub data: Vec, + #[serde(rename = "provenance")] + pub provenance: Box, +} + +impl ProvenanceEntry { + pub fn new(data: Vec, provenance: models::Provenance) -> ProvenanceEntry { + ProvenanceEntry { + data, + provenance: Box::new(provenance), + } + } +} + diff --git a/rust/src/models/provenance_output.rs b/rust/src/models/provenance_output.rs new file mode 100644 index 00000000..8c293a1d --- /dev/null +++ b/rust/src/models/provenance_output.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProvenanceOutput { + #[serde(rename = "data")] + pub data: Box, + #[serde(rename = "provenance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provenance: Option>>, +} + +impl ProvenanceOutput { + pub fn new(data: models::DataId) -> ProvenanceOutput { + ProvenanceOutput { + data: Box::new(data), + provenance: None, + } + } +} + diff --git a/rust/src/models/provenances.rs b/rust/src/models/provenances.rs new file mode 100644 index 00000000..539c8eb0 --- /dev/null +++ b/rust/src/models/provenances.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Provenances { + #[serde(rename = "provenances")] + pub provenances: Vec, +} + +impl Provenances { + pub fn new(provenances: Vec) -> Provenances { + Provenances { + provenances, + } + } +} + diff --git a/rust/src/models/provider_capabilities.rs b/rust/src/models/provider_capabilities.rs new file mode 100644 index 00000000..9105d863 --- /dev/null +++ b/rust/src/models/provider_capabilities.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProviderCapabilities { + #[serde(rename = "listing")] + pub listing: bool, + #[serde(rename = "search")] + pub search: Box, +} + +impl ProviderCapabilities { + pub fn new(listing: bool, search: models::SearchCapabilities) -> ProviderCapabilities { + ProviderCapabilities { + listing, + search: Box::new(search), + } + } +} + diff --git a/rust/src/models/provider_layer_collection_id.rs b/rust/src/models/provider_layer_collection_id.rs new file mode 100644 index 00000000..7a4a8eae --- /dev/null +++ b/rust/src/models/provider_layer_collection_id.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProviderLayerCollectionId { + #[serde(rename = "collectionId")] + pub collection_id: String, + #[serde(rename = "providerId")] + pub provider_id: uuid::Uuid, +} + +impl ProviderLayerCollectionId { + pub fn new(collection_id: String, provider_id: uuid::Uuid) -> ProviderLayerCollectionId { + ProviderLayerCollectionId { + collection_id, + provider_id, + } + } +} + diff --git a/rust/src/models/provider_layer_id.rs b/rust/src/models/provider_layer_id.rs new file mode 100644 index 00000000..701cdf21 --- /dev/null +++ b/rust/src/models/provider_layer_id.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProviderLayerId { + #[serde(rename = "layerId")] + pub layer_id: String, + #[serde(rename = "providerId")] + pub provider_id: uuid::Uuid, +} + +impl ProviderLayerId { + pub fn new(layer_id: String, provider_id: uuid::Uuid) -> ProviderLayerId { + ProviderLayerId { + layer_id, + provider_id, + } + } +} + diff --git a/rust/src/models/quota.rs b/rust/src/models/quota.rs new file mode 100644 index 00000000..071e072f --- /dev/null +++ b/rust/src/models/quota.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Quota { + #[serde(rename = "available")] + pub available: i64, + #[serde(rename = "used")] + pub used: i64, +} + +impl Quota { + pub fn new(available: i64, used: i64) -> Quota { + Quota { + available, + used, + } + } +} + diff --git a/rust/src/models/raster_band_descriptor.rs b/rust/src/models/raster_band_descriptor.rs new file mode 100644 index 00000000..d0c267a9 --- /dev/null +++ b/rust/src/models/raster_band_descriptor.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterBandDescriptor { + #[serde(rename = "measurement")] + pub measurement: Box, + #[serde(rename = "name")] + pub name: String, +} + +impl RasterBandDescriptor { + pub fn new(measurement: models::Measurement, name: String) -> RasterBandDescriptor { + RasterBandDescriptor { + measurement: Box::new(measurement), + name, + } + } +} + diff --git a/rust/src/models/raster_colorizer.rs b/rust/src/models/raster_colorizer.rs new file mode 100644 index 00000000..3c645b2a --- /dev/null +++ b/rust/src/models/raster_colorizer.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum RasterColorizer { + #[serde(rename="singleBand")] + SingleBand(Box), + #[serde(rename="multiBand")] + MultiBand(Box), +} + +impl Default for RasterColorizer { + fn default() -> Self { + Self::SingleBand(Default::default()) + } +} + + diff --git a/rust/src/models/raster_data_type.rs b/rust/src/models/raster_data_type.rs new file mode 100644 index 00000000..5233feb5 --- /dev/null +++ b/rust/src/models/raster_data_type.rs @@ -0,0 +1,62 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RasterDataType { + #[serde(rename = "U8")] + U8, + #[serde(rename = "U16")] + U16, + #[serde(rename = "U32")] + U32, + #[serde(rename = "U64")] + U64, + #[serde(rename = "I8")] + I8, + #[serde(rename = "I16")] + I16, + #[serde(rename = "I32")] + I32, + #[serde(rename = "I64")] + I64, + #[serde(rename = "F32")] + F32, + #[serde(rename = "F64")] + F64, + +} + +impl std::fmt::Display for RasterDataType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::U8 => write!(f, "U8"), + Self::U16 => write!(f, "U16"), + Self::U32 => write!(f, "U32"), + Self::U64 => write!(f, "U64"), + Self::I8 => write!(f, "I8"), + Self::I16 => write!(f, "I16"), + Self::I32 => write!(f, "I32"), + Self::I64 => write!(f, "I64"), + Self::F32 => write!(f, "F32"), + Self::F64 => write!(f, "F64"), + } + } +} + +impl Default for RasterDataType { + fn default() -> RasterDataType { + Self::U8 + } +} + diff --git a/rust/src/models/raster_dataset_from_workflow.rs b/rust/src/models/raster_dataset_from_workflow.rs new file mode 100644 index 00000000..4b19dca7 --- /dev/null +++ b/rust/src/models/raster_dataset_from_workflow.rs @@ -0,0 +1,41 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterDatasetFromWorkflow : parameter for the dataset from workflow handler (body) +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterDatasetFromWorkflow { + #[serde(rename = "asCog", skip_serializing_if = "Option::is_none")] + pub as_cog: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "query")] + pub query: Box, +} + +impl RasterDatasetFromWorkflow { + /// parameter for the dataset from workflow handler (body) + pub fn new(display_name: String, query: models::RasterQueryRectangle) -> RasterDatasetFromWorkflow { + RasterDatasetFromWorkflow { + as_cog: None, + description: None, + display_name, + name: None, + query: Box::new(query), + } + } +} + diff --git a/rust/src/models/raster_dataset_from_workflow_result.rs b/rust/src/models/raster_dataset_from_workflow_result.rs new file mode 100644 index 00000000..9f133522 --- /dev/null +++ b/rust/src/models/raster_dataset_from_workflow_result.rs @@ -0,0 +1,32 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterDatasetFromWorkflowResult : response of the dataset from workflow handler +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterDatasetFromWorkflowResult { + #[serde(rename = "dataset")] + pub dataset: String, + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl RasterDatasetFromWorkflowResult { + /// response of the dataset from workflow handler + pub fn new(dataset: String, upload: uuid::Uuid) -> RasterDatasetFromWorkflowResult { + RasterDatasetFromWorkflowResult { + dataset, + upload, + } + } +} + diff --git a/rust/src/models/raster_properties_entry_type.rs b/rust/src/models/raster_properties_entry_type.rs new file mode 100644 index 00000000..188f8fdb --- /dev/null +++ b/rust/src/models/raster_properties_entry_type.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RasterPropertiesEntryType { + #[serde(rename = "Number")] + Number, + #[serde(rename = "String")] + String, + +} + +impl std::fmt::Display for RasterPropertiesEntryType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Number => write!(f, "Number"), + Self::String => write!(f, "String"), + } + } +} + +impl Default for RasterPropertiesEntryType { + fn default() -> RasterPropertiesEntryType { + Self::Number + } +} + diff --git a/rust/src/models/raster_properties_key.rs b/rust/src/models/raster_properties_key.rs new file mode 100644 index 00000000..9312c1a5 --- /dev/null +++ b/rust/src/models/raster_properties_key.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterPropertiesKey { + #[serde(rename = "domain", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain: Option>, + #[serde(rename = "key")] + pub key: String, +} + +impl RasterPropertiesKey { + pub fn new(key: String) -> RasterPropertiesKey { + RasterPropertiesKey { + domain: None, + key, + } + } +} + diff --git a/rust/src/models/raster_query_rectangle.rs b/rust/src/models/raster_query_rectangle.rs new file mode 100644 index 00000000..41fc8fec --- /dev/null +++ b/rust/src/models/raster_query_rectangle.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterQueryRectangle : A spatio-temporal rectangle with a specified resolution +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterQueryRectangle { + #[serde(rename = "spatialBounds")] + pub spatial_bounds: Box, + #[serde(rename = "spatialResolution")] + pub spatial_resolution: Box, + #[serde(rename = "timeInterval")] + pub time_interval: Box, +} + +impl RasterQueryRectangle { + /// A spatio-temporal rectangle with a specified resolution + pub fn new(spatial_bounds: models::SpatialPartition2D, spatial_resolution: models::SpatialResolution, time_interval: models::TimeInterval) -> RasterQueryRectangle { + RasterQueryRectangle { + spatial_bounds: Box::new(spatial_bounds), + spatial_resolution: Box::new(spatial_resolution), + time_interval: Box::new(time_interval), + } + } +} + diff --git a/rust/src/models/raster_result_descriptor.rs b/rust/src/models/raster_result_descriptor.rs new file mode 100644 index 00000000..eb7853b3 --- /dev/null +++ b/rust/src/models/raster_result_descriptor.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterResultDescriptor : A `ResultDescriptor` for raster queries +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterResultDescriptor { + #[serde(rename = "bands")] + pub bands: Vec, + #[serde(rename = "bbox", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bbox: Option>>, + #[serde(rename = "dataType")] + pub data_type: models::RasterDataType, + #[serde(rename = "resolution", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resolution: Option>>, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time: Option>>, +} + +impl RasterResultDescriptor { + /// A `ResultDescriptor` for raster queries + pub fn new(bands: Vec, data_type: models::RasterDataType, spatial_reference: String) -> RasterResultDescriptor { + RasterResultDescriptor { + bands, + bbox: None, + data_type, + resolution: None, + spatial_reference, + time: None, + } + } +} + diff --git a/rust/src/models/raster_stream_websocket_result_type.rs b/rust/src/models/raster_stream_websocket_result_type.rs new file mode 100644 index 00000000..f7dfd3e6 --- /dev/null +++ b/rust/src/models/raster_stream_websocket_result_type.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterStreamWebsocketResultType : The stream result type for `raster_stream_websocket`. +/// The stream result type for `raster_stream_websocket`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RasterStreamWebsocketResultType { + #[serde(rename = "arrow")] + Arrow, + +} + +impl std::fmt::Display for RasterStreamWebsocketResultType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Arrow => write!(f, "arrow"), + } + } +} + +impl Default for RasterStreamWebsocketResultType { + fn default() -> RasterStreamWebsocketResultType { + Self::Arrow + } +} + diff --git a/rust/src/models/raster_symbology.rs b/rust/src/models/raster_symbology.rs new file mode 100644 index 00000000..347677c9 --- /dev/null +++ b/rust/src/models/raster_symbology.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterSymbology { + #[serde(rename = "opacity")] + pub opacity: f64, + #[serde(rename = "rasterColorizer")] + pub raster_colorizer: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl RasterSymbology { + pub fn new(opacity: f64, raster_colorizer: models::RasterColorizer, r#type: Type) -> RasterSymbology { + RasterSymbology { + opacity, + raster_colorizer: Box::new(raster_colorizer), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "raster")] + Raster, +} + +impl Default for Type { + fn default() -> Type { + Self::Raster + } +} + diff --git a/rust/src/models/resource.rs b/rust/src/models/resource.rs new file mode 100644 index 00000000..3550df42 --- /dev/null +++ b/rust/src/models/resource.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Resource : A resource that is affected by a permission. +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum Resource { + #[serde(rename="layer")] + Layer(Box), + #[serde(rename="layerCollection")] + LayerCollection(Box), + #[serde(rename="project")] + Project(Box), + #[serde(rename="dataset")] + Dataset(Box), + #[serde(rename="mlModel")] + MlModel(Box), + #[serde(rename="provider")] + Provider(Box), +} + +impl Default for Resource { + fn default() -> Self { + Self::Layer(Default::default()) + } +} + + diff --git a/rust/src/models/role.rs b/rust/src/models/role.rs new file mode 100644 index 00000000..97350193 --- /dev/null +++ b/rust/src/models/role.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Role { + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, +} + +impl Role { + pub fn new(id: uuid::Uuid, name: String) -> Role { + Role { + id, + name, + } + } +} + diff --git a/rust/src/models/role_description.rs b/rust/src/models/role_description.rs new file mode 100644 index 00000000..0336d834 --- /dev/null +++ b/rust/src/models/role_description.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RoleDescription { + #[serde(rename = "individual")] + pub individual: bool, + #[serde(rename = "role")] + pub role: Box, +} + +impl RoleDescription { + pub fn new(individual: bool, role: models::Role) -> RoleDescription { + RoleDescription { + individual, + role: Box::new(role), + } + } +} + diff --git a/rust/src/models/search_capabilities.rs b/rust/src/models/search_capabilities.rs new file mode 100644 index 00000000..22d0be5a --- /dev/null +++ b/rust/src/models/search_capabilities.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SearchCapabilities { + #[serde(rename = "autocomplete")] + pub autocomplete: bool, + #[serde(rename = "filters", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub filters: Option>>, + #[serde(rename = "searchTypes")] + pub search_types: Box, +} + +impl SearchCapabilities { + pub fn new(autocomplete: bool, search_types: models::SearchTypes) -> SearchCapabilities { + SearchCapabilities { + autocomplete, + filters: None, + search_types: Box::new(search_types), + } + } +} + diff --git a/rust/src/models/search_type.rs b/rust/src/models/search_type.rs new file mode 100644 index 00000000..b2b2d2eb --- /dev/null +++ b/rust/src/models/search_type.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SearchType { + #[serde(rename = "fulltext")] + Fulltext, + #[serde(rename = "prefix")] + Prefix, + +} + +impl std::fmt::Display for SearchType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Fulltext => write!(f, "fulltext"), + Self::Prefix => write!(f, "prefix"), + } + } +} + +impl Default for SearchType { + fn default() -> SearchType { + Self::Fulltext + } +} + diff --git a/rust/src/models/search_types.rs b/rust/src/models/search_types.rs new file mode 100644 index 00000000..93623503 --- /dev/null +++ b/rust/src/models/search_types.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SearchTypes { + #[serde(rename = "fulltext")] + pub fulltext: bool, + #[serde(rename = "prefix")] + pub prefix: bool, +} + +impl SearchTypes { + pub fn new(fulltext: bool, prefix: bool) -> SearchTypes { + SearchTypes { + fulltext, + prefix, + } + } +} + diff --git a/rust/src/models/sentinel_s2_l2_a_cogs_provider_definition.rs b/rust/src/models/sentinel_s2_l2_a_cogs_provider_definition.rs new file mode 100644 index 00000000..fbf8e047 --- /dev/null +++ b/rust/src/models/sentinel_s2_l2_a_cogs_provider_definition.rs @@ -0,0 +1,72 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SentinelS2L2ACogsProviderDefinition { + #[serde(rename = "apiUrl")] + pub api_url: String, + #[serde(rename = "bands")] + pub bands: Vec, + #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")] + pub cache_ttl: Option, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "gdalRetries", skip_serializing_if = "Option::is_none")] + pub gdal_retries: Option, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "queryBuffer", skip_serializing_if = "Option::is_none")] + pub query_buffer: Option>, + #[serde(rename = "stacApiRetries", skip_serializing_if = "Option::is_none")] + pub stac_api_retries: Option>, + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "zones")] + pub zones: Vec, +} + +impl SentinelS2L2ACogsProviderDefinition { + pub fn new(api_url: String, bands: Vec, description: String, id: uuid::Uuid, name: String, r#type: Type, zones: Vec) -> SentinelS2L2ACogsProviderDefinition { + SentinelS2L2ACogsProviderDefinition { + api_url, + bands, + cache_ttl: None, + description, + gdal_retries: None, + id, + name, + priority: None, + query_buffer: None, + stac_api_retries: None, + r#type, + zones, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "SentinelS2L2ACogs")] + SentinelS2L2ACogs, +} + +impl Default for Type { + fn default() -> Type { + Self::SentinelS2L2ACogs + } +} + diff --git a/rust/src/models/server_info.rs b/rust/src/models/server_info.rs new file mode 100644 index 00000000..0455db48 --- /dev/null +++ b/rust/src/models/server_info.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ServerInfo { + #[serde(rename = "buildDate")] + pub build_date: String, + #[serde(rename = "commitHash")] + pub commit_hash: String, + #[serde(rename = "features")] + pub features: String, + #[serde(rename = "version")] + pub version: String, +} + +impl ServerInfo { + pub fn new(build_date: String, commit_hash: String, features: String, version: String) -> ServerInfo { + ServerInfo { + build_date, + commit_hash, + features, + version, + } + } +} + diff --git a/rust/src/models/single_band_raster_colorizer.rs b/rust/src/models/single_band_raster_colorizer.rs new file mode 100644 index 00000000..f2b19859 --- /dev/null +++ b/rust/src/models/single_band_raster_colorizer.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SingleBandRasterColorizer { + #[serde(rename = "band")] + pub band: i32, + #[serde(rename = "bandColorizer")] + pub band_colorizer: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl SingleBandRasterColorizer { + pub fn new(band: i32, band_colorizer: models::Colorizer, r#type: Type) -> SingleBandRasterColorizer { + SingleBandRasterColorizer { + band, + band_colorizer: Box::new(band_colorizer), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "singleBand")] + SingleBand, +} + +impl Default for Type { + fn default() -> Type { + Self::SingleBand + } +} + diff --git a/rust/src/models/spatial_partition2_d.rs b/rust/src/models/spatial_partition2_d.rs new file mode 100644 index 00000000..74483ebb --- /dev/null +++ b/rust/src/models/spatial_partition2_d.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SpatialPartition2D : A partition of space that include the upper left but excludes the lower right coordinate +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SpatialPartition2D { + #[serde(rename = "lowerRightCoordinate")] + pub lower_right_coordinate: Box, + #[serde(rename = "upperLeftCoordinate")] + pub upper_left_coordinate: Box, +} + +impl SpatialPartition2D { + /// A partition of space that include the upper left but excludes the lower right coordinate + pub fn new(lower_right_coordinate: models::Coordinate2D, upper_left_coordinate: models::Coordinate2D) -> SpatialPartition2D { + SpatialPartition2D { + lower_right_coordinate: Box::new(lower_right_coordinate), + upper_left_coordinate: Box::new(upper_left_coordinate), + } + } +} + +impl std::fmt::Display for SpatialPartition2D { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{xmin},{ymin},{xmax},{ymax}", + xmin = self.upper_left_coordinate.x, + ymin = self.lower_right_coordinate.y, + xmax = self.lower_right_coordinate.x, + ymax = self.upper_left_coordinate.y + ) + } +} diff --git a/rust/src/models/spatial_reference_authority.rs b/rust/src/models/spatial_reference_authority.rs new file mode 100644 index 00000000..bab17473 --- /dev/null +++ b/rust/src/models/spatial_reference_authority.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SpatialReferenceAuthority : A spatial reference authority that is part of a spatial reference definition +/// A spatial reference authority that is part of a spatial reference definition +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SpatialReferenceAuthority { + #[serde(rename = "EPSG")] + Epsg, + #[serde(rename = "SR-ORG")] + SrOrg, + #[serde(rename = "IAU2000")] + Iau2000, + #[serde(rename = "ESRI")] + Esri, + +} + +impl std::fmt::Display for SpatialReferenceAuthority { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Epsg => write!(f, "EPSG"), + Self::SrOrg => write!(f, "SR-ORG"), + Self::Iau2000 => write!(f, "IAU2000"), + Self::Esri => write!(f, "ESRI"), + } + } +} + +impl Default for SpatialReferenceAuthority { + fn default() -> SpatialReferenceAuthority { + Self::Epsg + } +} + diff --git a/rust/src/models/spatial_reference_specification.rs b/rust/src/models/spatial_reference_specification.rs new file mode 100644 index 00000000..9f129bf4 --- /dev/null +++ b/rust/src/models/spatial_reference_specification.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SpatialReferenceSpecification : The specification of a spatial reference, where extent and axis labels are given in natural order (x, y) = (east, north) +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SpatialReferenceSpecification { + #[serde(rename = "axisLabels", skip_serializing_if = "Option::is_none")] + pub axis_labels: Option>, + #[serde(rename = "axisOrder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub axis_order: Option>, + #[serde(rename = "extent")] + pub extent: Box, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "projString")] + pub proj_string: String, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, +} + +impl SpatialReferenceSpecification { + /// The specification of a spatial reference, where extent and axis labels are given in natural order (x, y) = (east, north) + pub fn new(extent: models::BoundingBox2D, name: String, proj_string: String, spatial_reference: String) -> SpatialReferenceSpecification { + SpatialReferenceSpecification { + axis_labels: None, + axis_order: None, + extent: Box::new(extent), + name, + proj_string, + spatial_reference, + } + } +} + diff --git a/rust/src/models/spatial_resolution.rs b/rust/src/models/spatial_resolution.rs new file mode 100644 index 00000000..7a31697b --- /dev/null +++ b/rust/src/models/spatial_resolution.rs @@ -0,0 +1,37 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SpatialResolution : The spatial resolution in SRS units +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SpatialResolution { + #[serde(rename = "x")] + pub x: f64, + #[serde(rename = "y")] + pub y: f64, +} + +impl SpatialResolution { + /// The spatial resolution in SRS units + pub fn new(x: f64, y: f64) -> SpatialResolution { + SpatialResolution { + x, + y, + } + } +} + +impl std::fmt::Display for SpatialResolution { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{},{}", self.x, self.y) + } +} diff --git a/rust/src/models/st_rectangle.rs b/rust/src/models/st_rectangle.rs new file mode 100644 index 00000000..210081c4 --- /dev/null +++ b/rust/src/models/st_rectangle.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StRectangle { + #[serde(rename = "boundingBox")] + pub bounding_box: Box, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "timeInterval")] + pub time_interval: Box, +} + +impl StRectangle { + pub fn new(bounding_box: models::BoundingBox2D, spatial_reference: String, time_interval: models::TimeInterval) -> StRectangle { + StRectangle { + bounding_box: Box::new(bounding_box), + spatial_reference, + time_interval: Box::new(time_interval), + } + } +} + diff --git a/rust/src/models/stac_api_retries.rs b/rust/src/models/stac_api_retries.rs new file mode 100644 index 00000000..79037048 --- /dev/null +++ b/rust/src/models/stac_api_retries.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StacApiRetries { + #[serde(rename = "exponentialBackoffFactor")] + pub exponential_backoff_factor: f64, + #[serde(rename = "initialDelayMs")] + pub initial_delay_ms: i64, + #[serde(rename = "numberOfRetries")] + pub number_of_retries: i32, +} + +impl StacApiRetries { + pub fn new(exponential_backoff_factor: f64, initial_delay_ms: i64, number_of_retries: i32) -> StacApiRetries { + StacApiRetries { + exponential_backoff_factor, + initial_delay_ms, + number_of_retries, + } + } +} + diff --git a/rust/src/models/stac_band.rs b/rust/src/models/stac_band.rs new file mode 100644 index 00000000..72975e43 --- /dev/null +++ b/rust/src/models/stac_band.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StacBand { + #[serde(rename = "dataType")] + pub data_type: models::RasterDataType, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "noDataValue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub no_data_value: Option>, +} + +impl StacBand { + pub fn new(data_type: models::RasterDataType, name: String) -> StacBand { + StacBand { + data_type, + name, + no_data_value: None, + } + } +} + diff --git a/rust/src/models/stac_query_buffer.rs b/rust/src/models/stac_query_buffer.rs new file mode 100644 index 00000000..c5104c7b --- /dev/null +++ b/rust/src/models/stac_query_buffer.rs @@ -0,0 +1,32 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// StacQueryBuffer : A struct that represents buffers to apply to stac requests +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StacQueryBuffer { + #[serde(rename = "endSeconds")] + pub end_seconds: i64, + #[serde(rename = "startSeconds")] + pub start_seconds: i64, +} + +impl StacQueryBuffer { + /// A struct that represents buffers to apply to stac requests + pub fn new(end_seconds: i64, start_seconds: i64) -> StacQueryBuffer { + StacQueryBuffer { + end_seconds, + start_seconds, + } + } +} + diff --git a/rust/src/models/stac_zone.rs b/rust/src/models/stac_zone.rs new file mode 100644 index 00000000..27943b0a --- /dev/null +++ b/rust/src/models/stac_zone.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StacZone { + #[serde(rename = "epsg")] + pub epsg: i32, + #[serde(rename = "name")] + pub name: String, +} + +impl StacZone { + pub fn new(epsg: i32, name: String) -> StacZone { + StacZone { + epsg, + name, + } + } +} + diff --git a/rust/src/models/static_color.rs b/rust/src/models/static_color.rs new file mode 100644 index 00000000..170e0bb2 --- /dev/null +++ b/rust/src/models/static_color.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StaticColor { + #[serde(rename = "color")] + pub color: Vec, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl StaticColor { + pub fn new(color: Vec, r#type: Type) -> StaticColor { + StaticColor { + color, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "static")] + Static, +} + +impl Default for Type { + fn default() -> Type { + Self::Static + } +} + diff --git a/rust/src/models/static_number.rs b/rust/src/models/static_number.rs new file mode 100644 index 00000000..9764cd3d --- /dev/null +++ b/rust/src/models/static_number.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StaticNumber { + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "value")] + pub value: i32, +} + +impl StaticNumber { + pub fn new(r#type: Type, value: i32) -> StaticNumber { + StaticNumber { + r#type, + value, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "static")] + Static, +} + +impl Default for Type { + fn default() -> Type { + Self::Static + } +} + diff --git a/rust/src/models/stroke_param.rs b/rust/src/models/stroke_param.rs new file mode 100644 index 00000000..5a58fae5 --- /dev/null +++ b/rust/src/models/stroke_param.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StrokeParam { + #[serde(rename = "color")] + pub color: Box, + #[serde(rename = "width")] + pub width: Box, +} + +impl StrokeParam { + pub fn new(color: models::ColorParam, width: models::NumberParam) -> StrokeParam { + StrokeParam { + color: Box::new(color), + width: Box::new(width), + } + } +} + diff --git a/rust/src/models/suggest_meta_data.rs b/rust/src/models/suggest_meta_data.rs new file mode 100644 index 00000000..da13f76d --- /dev/null +++ b/rust/src/models/suggest_meta_data.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SuggestMetaData { + #[serde(rename = "dataPath")] + pub data_path: Box, + #[serde(rename = "layerName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub layer_name: Option>, + #[serde(rename = "mainFile", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub main_file: Option>, +} + +impl SuggestMetaData { + pub fn new(data_path: models::DataPath) -> SuggestMetaData { + SuggestMetaData { + data_path: Box::new(data_path), + layer_name: None, + main_file: None, + } + } +} + diff --git a/rust/src/models/symbology.rs b/rust/src/models/symbology.rs new file mode 100644 index 00000000..3349a27c --- /dev/null +++ b/rust/src/models/symbology.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum Symbology { + #[serde(rename="raster")] + Raster(Box), + #[serde(rename="point")] + Point(Box), + #[serde(rename="line")] + Line(Box), + #[serde(rename="polygon")] + Polygon(Box), +} + +impl Default for Symbology { + fn default() -> Self { + Self::Raster(Default::default()) + } +} + + diff --git a/rust/src/models/task_abort_options.rs b/rust/src/models/task_abort_options.rs new file mode 100644 index 00000000..fb4e42a3 --- /dev/null +++ b/rust/src/models/task_abort_options.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskAbortOptions { + #[serde(rename = "force", skip_serializing_if = "Option::is_none")] + pub force: Option, +} + +impl TaskAbortOptions { + pub fn new() -> TaskAbortOptions { + TaskAbortOptions { + force: None, + } + } +} + diff --git a/rust/src/models/task_filter.rs b/rust/src/models/task_filter.rs new file mode 100644 index 00000000..d6725b4d --- /dev/null +++ b/rust/src/models/task_filter.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TaskFilter { + #[serde(rename = "running")] + Running, + #[serde(rename = "aborted")] + Aborted, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "completed")] + Completed, + +} + +impl std::fmt::Display for TaskFilter { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Running => write!(f, "running"), + Self::Aborted => write!(f, "aborted"), + Self::Failed => write!(f, "failed"), + Self::Completed => write!(f, "completed"), + } + } +} + +impl Default for TaskFilter { + fn default() -> TaskFilter { + Self::Running + } +} + diff --git a/rust/src/models/task_list_options.rs b/rust/src/models/task_list_options.rs new file mode 100644 index 00000000..338a1133 --- /dev/null +++ b/rust/src/models/task_list_options.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskListOptions { + #[serde(rename = "filter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub filter: Option>, + #[serde(rename = "limit", skip_serializing_if = "Option::is_none")] + pub limit: Option, + #[serde(rename = "offset", skip_serializing_if = "Option::is_none")] + pub offset: Option, +} + +impl TaskListOptions { + pub fn new() -> TaskListOptions { + TaskListOptions { + filter: None, + limit: None, + offset: None, + } + } +} + diff --git a/rust/src/models/task_response.rs b/rust/src/models/task_response.rs new file mode 100644 index 00000000..091a0140 --- /dev/null +++ b/rust/src/models/task_response.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TaskResponse : Create a task somewhere and respond with a task id to query the task status. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskResponse { + #[serde(rename = "taskId")] + pub task_id: uuid::Uuid, +} + +impl TaskResponse { + /// Create a task somewhere and respond with a task id to query the task status. + pub fn new(task_id: uuid::Uuid) -> TaskResponse { + TaskResponse { + task_id, + } + } +} + diff --git a/rust/src/models/task_status.rs b/rust/src/models/task_status.rs new file mode 100644 index 00000000..6b81e739 --- /dev/null +++ b/rust/src/models/task_status.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "status")] +pub enum TaskStatus { + #[serde(rename="TaskStatusRunning")] + TaskStatusRunning(Box), + #[serde(rename="TaskStatusCompleted")] + TaskStatusCompleted(Box), + #[serde(rename="TaskStatusAborted")] + TaskStatusAborted(Box), + #[serde(rename="TaskStatusFailed")] + TaskStatusFailed(Box), +} + +impl Default for TaskStatus { + fn default() -> Self { + Self::TaskStatusRunning(Default::default()) + } +} + + diff --git a/rust/src/models/task_status_aborted.rs b/rust/src/models/task_status_aborted.rs new file mode 100644 index 00000000..123a3210 --- /dev/null +++ b/rust/src/models/task_status_aborted.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskStatusAborted { + #[serde(rename = "cleanUp", deserialize_with = "Option::deserialize")] + pub clean_up: Option, + #[serde(rename = "status")] + pub status: Status, +} + +impl TaskStatusAborted { + pub fn new(clean_up: Option, status: Status) -> TaskStatusAborted { + TaskStatusAborted { + clean_up, + status, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Status { + #[serde(rename = "aborted")] + Aborted, +} + +impl Default for Status { + fn default() -> Status { + Self::Aborted + } +} + diff --git a/rust/src/models/task_status_completed.rs b/rust/src/models/task_status_completed.rs new file mode 100644 index 00000000..1575e2f6 --- /dev/null +++ b/rust/src/models/task_status_completed.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskStatusCompleted { + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option, + #[serde(rename = "info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub info: Option>, + #[serde(rename = "status")] + pub status: Status, + #[serde(rename = "taskType")] + pub task_type: String, + #[serde(rename = "timeStarted")] + pub time_started: String, + #[serde(rename = "timeTotal")] + pub time_total: String, +} + +impl TaskStatusCompleted { + pub fn new(status: Status, task_type: String, time_started: String, time_total: String) -> TaskStatusCompleted { + TaskStatusCompleted { + description: None, + info: None, + status, + task_type, + time_started, + time_total, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Status { + #[serde(rename = "completed")] + Completed, +} + +impl Default for Status { + fn default() -> Status { + Self::Completed + } +} + diff --git a/rust/src/models/task_status_failed.rs b/rust/src/models/task_status_failed.rs new file mode 100644 index 00000000..8a7a7c99 --- /dev/null +++ b/rust/src/models/task_status_failed.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskStatusFailed { + #[serde(rename = "cleanUp", deserialize_with = "Option::deserialize")] + pub clean_up: Option, + #[serde(rename = "error", deserialize_with = "Option::deserialize")] + pub error: Option, + #[serde(rename = "status")] + pub status: Status, +} + +impl TaskStatusFailed { + pub fn new(clean_up: Option, error: Option, status: Status) -> TaskStatusFailed { + TaskStatusFailed { + clean_up, + error, + status, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Status { + #[serde(rename = "failed")] + Failed, +} + +impl Default for Status { + fn default() -> Status { + Self::Failed + } +} + diff --git a/rust/src/models/task_status_running.rs b/rust/src/models/task_status_running.rs new file mode 100644 index 00000000..d89b3a12 --- /dev/null +++ b/rust/src/models/task_status_running.rs @@ -0,0 +1,57 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskStatusRunning { + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option, + #[serde(rename = "estimatedTimeRemaining")] + pub estimated_time_remaining: String, + #[serde(rename = "info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub info: Option>, + #[serde(rename = "pctComplete")] + pub pct_complete: String, + #[serde(rename = "status")] + pub status: Status, + #[serde(rename = "taskType")] + pub task_type: String, + #[serde(rename = "timeStarted")] + pub time_started: String, +} + +impl TaskStatusRunning { + pub fn new(estimated_time_remaining: String, pct_complete: String, status: Status, task_type: String, time_started: String) -> TaskStatusRunning { + TaskStatusRunning { + description: None, + estimated_time_remaining, + info: None, + pct_complete, + status, + task_type, + time_started, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Status { + #[serde(rename = "running")] + Running, +} + +impl Default for Status { + fn default() -> Status { + Self::Running + } +} + diff --git a/rust/src/models/task_status_with_id.rs b/rust/src/models/task_status_with_id.rs new file mode 100644 index 00000000..f4d4566f --- /dev/null +++ b/rust/src/models/task_status_with_id.rs @@ -0,0 +1,69 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TaskStatusWithId { + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option, + #[serde(rename = "estimatedTimeRemaining")] + pub estimated_time_remaining: String, + #[serde(rename = "info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub info: Option>, + #[serde(rename = "pctComplete")] + pub pct_complete: String, + #[serde(rename = "status")] + pub status: Status, + #[serde(rename = "taskType")] + pub task_type: String, + #[serde(rename = "timeStarted")] + pub time_started: String, + #[serde(rename = "timeTotal")] + pub time_total: String, + #[serde(rename = "cleanUp", deserialize_with = "Option::deserialize")] + pub clean_up: Option, + #[serde(rename = "error", deserialize_with = "Option::deserialize")] + pub error: Option, + #[serde(rename = "taskId")] + pub task_id: uuid::Uuid, +} + +impl TaskStatusWithId { + pub fn new(estimated_time_remaining: String, pct_complete: String, status: Status, task_type: String, time_started: String, time_total: String, clean_up: Option, error: Option, task_id: uuid::Uuid) -> TaskStatusWithId { + TaskStatusWithId { + description: None, + estimated_time_remaining, + info: None, + pct_complete, + status, + task_type, + time_started, + time_total, + clean_up, + error, + task_id, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Status { + #[serde(rename = "failed")] + Failed, +} + +impl Default for Status { + fn default() -> Status { + Self::Failed + } +} + diff --git a/rust/src/models/text_symbology.rs b/rust/src/models/text_symbology.rs new file mode 100644 index 00000000..9528e24e --- /dev/null +++ b/rust/src/models/text_symbology.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TextSymbology { + #[serde(rename = "attribute")] + pub attribute: String, + #[serde(rename = "fillColor")] + pub fill_color: Box, + #[serde(rename = "stroke")] + pub stroke: Box, +} + +impl TextSymbology { + pub fn new(attribute: String, fill_color: models::ColorParam, stroke: models::StrokeParam) -> TextSymbology { + TextSymbology { + attribute, + fill_color: Box::new(fill_color), + stroke: Box::new(stroke), + } + } +} + diff --git a/rust/src/models/time_granularity.rs b/rust/src/models/time_granularity.rs new file mode 100644 index 00000000..0dada284 --- /dev/null +++ b/rust/src/models/time_granularity.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TimeGranularity : A time granularity. +/// A time granularity. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TimeGranularity { + #[serde(rename = "millis")] + Millis, + #[serde(rename = "seconds")] + Seconds, + #[serde(rename = "minutes")] + Minutes, + #[serde(rename = "hours")] + Hours, + #[serde(rename = "days")] + Days, + #[serde(rename = "months")] + Months, + #[serde(rename = "years")] + Years, + +} + +impl std::fmt::Display for TimeGranularity { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Millis => write!(f, "millis"), + Self::Seconds => write!(f, "seconds"), + Self::Minutes => write!(f, "minutes"), + Self::Hours => write!(f, "hours"), + Self::Days => write!(f, "days"), + Self::Months => write!(f, "months"), + Self::Years => write!(f, "years"), + } + } +} + +impl Default for TimeGranularity { + fn default() -> TimeGranularity { + Self::Millis + } +} + diff --git a/rust/src/models/time_interval.rs b/rust/src/models/time_interval.rs new file mode 100644 index 00000000..6086d2cd --- /dev/null +++ b/rust/src/models/time_interval.rs @@ -0,0 +1,32 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TimeInterval : Stores time intervals in ms in close-open semantic [start, end) +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TimeInterval { + #[serde(rename = "end")] + pub end: i64, + #[serde(rename = "start")] + pub start: i64, +} + +impl TimeInterval { + /// Stores time intervals in ms in close-open semantic [start, end) + pub fn new(end: i64, start: i64) -> TimeInterval { + TimeInterval { + end, + start, + } + } +} + diff --git a/rust/src/models/time_reference.rs b/rust/src/models/time_reference.rs new file mode 100644 index 00000000..7a25493d --- /dev/null +++ b/rust/src/models/time_reference.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TimeReference { + #[serde(rename = "start")] + Start, + #[serde(rename = "end")] + End, + +} + +impl std::fmt::Display for TimeReference { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Start => write!(f, "start"), + Self::End => write!(f, "end"), + } + } +} + +impl Default for TimeReference { + fn default() -> TimeReference { + Self::Start + } +} + diff --git a/rust/src/models/time_step.rs b/rust/src/models/time_step.rs new file mode 100644 index 00000000..74b1e2fd --- /dev/null +++ b/rust/src/models/time_step.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TimeStep { + #[serde(rename = "granularity")] + pub granularity: models::TimeGranularity, + #[serde(rename = "step")] + pub step: i32, +} + +impl TimeStep { + pub fn new(granularity: models::TimeGranularity, step: i32) -> TimeStep { + TimeStep { + granularity, + step, + } + } +} + diff --git a/rust/src/models/typed_data_provider_definition.rs b/rust/src/models/typed_data_provider_definition.rs new file mode 100644 index 00000000..606f0f75 --- /dev/null +++ b/rust/src/models/typed_data_provider_definition.rs @@ -0,0 +1,49 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum TypedDataProviderDefinition { + #[serde(rename="Aruna")] + Aruna(Box), + #[serde(rename="CopernicusDataspace")] + CopernicusDataspace(Box), + #[serde(rename="DatasetLayerListing")] + DatasetLayerListing(Box), + #[serde(rename="EbvPortal")] + EbvPortal(Box), + #[serde(rename="Edr")] + Edr(Box), + #[serde(rename="Gbif")] + Gbif(Box), + #[serde(rename="GfbioAbcd")] + GfbioAbcd(Box), + #[serde(rename="GfbioCollections")] + GfbioCollections(Box), + #[serde(rename="NetCdfCf")] + NetCdfCf(Box), + #[serde(rename="Pangaea")] + Pangaea(Box), + #[serde(rename="SentinelS2L2ACogs")] + SentinelS2L2ACogs(Box), + #[serde(rename="WildLIVE!")] + WildLiveExclamation(Box), +} + +impl Default for TypedDataProviderDefinition { + fn default() -> Self { + Self::Aruna(Default::default()) + } +} + + diff --git a/rust/src/models/typed_geometry.rs b/rust/src/models/typed_geometry.rs new file mode 100644 index 00000000..b949e23c --- /dev/null +++ b/rust/src/models/typed_geometry.rs @@ -0,0 +1,28 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TypedGeometry { + TypedGeometryOneOf(Box), + TypedGeometryOneOf1(Box), + TypedGeometryOneOf2(Box), + TypedGeometryOneOf3(Box), +} + +impl Default for TypedGeometry { + fn default() -> Self { + Self::TypedGeometryOneOf(Default::default()) + } +} + diff --git a/rust/src/models/typed_geometry_one_of.rs b/rust/src/models/typed_geometry_one_of.rs new file mode 100644 index 00000000..73446365 --- /dev/null +++ b/rust/src/models/typed_geometry_one_of.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedGeometryOneOf { + #[serde(rename = "Data", deserialize_with = "Option::deserialize")] + pub data: Option, +} + +impl TypedGeometryOneOf { + pub fn new(data: Option) -> TypedGeometryOneOf { + TypedGeometryOneOf { + data, + } + } +} + diff --git a/rust/src/models/typed_geometry_one_of_1.rs b/rust/src/models/typed_geometry_one_of_1.rs new file mode 100644 index 00000000..006c6001 --- /dev/null +++ b/rust/src/models/typed_geometry_one_of_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedGeometryOneOf1 { + #[serde(rename = "MultiPoint")] + pub multi_point: Box, +} + +impl TypedGeometryOneOf1 { + pub fn new(multi_point: models::MultiPoint) -> TypedGeometryOneOf1 { + TypedGeometryOneOf1 { + multi_point: Box::new(multi_point), + } + } +} + diff --git a/rust/src/models/typed_geometry_one_of_2.rs b/rust/src/models/typed_geometry_one_of_2.rs new file mode 100644 index 00000000..46a15c20 --- /dev/null +++ b/rust/src/models/typed_geometry_one_of_2.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedGeometryOneOf2 { + #[serde(rename = "MultiLineString")] + pub multi_line_string: Box, +} + +impl TypedGeometryOneOf2 { + pub fn new(multi_line_string: models::MultiLineString) -> TypedGeometryOneOf2 { + TypedGeometryOneOf2 { + multi_line_string: Box::new(multi_line_string), + } + } +} + diff --git a/rust/src/models/typed_geometry_one_of_3.rs b/rust/src/models/typed_geometry_one_of_3.rs new file mode 100644 index 00000000..ce1e2c80 --- /dev/null +++ b/rust/src/models/typed_geometry_one_of_3.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedGeometryOneOf3 { + #[serde(rename = "MultiPolygon")] + pub multi_polygon: Box, +} + +impl TypedGeometryOneOf3 { + pub fn new(multi_polygon: models::MultiPolygon) -> TypedGeometryOneOf3 { + TypedGeometryOneOf3 { + multi_polygon: Box::new(multi_polygon), + } + } +} + diff --git a/rust/src/models/typed_operator.rs b/rust/src/models/typed_operator.rs new file mode 100644 index 00000000..c01c791f --- /dev/null +++ b/rust/src/models/typed_operator.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TypedOperator : An enum to differentiate between `Operator` variants +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedOperator { + #[serde(rename = "operator")] + pub operator: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl TypedOperator { + /// An enum to differentiate between `Operator` variants + pub fn new(operator: models::TypedOperatorOperator, r#type: Type) -> TypedOperator { + TypedOperator { + operator: Box::new(operator), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Vector")] + Vector, + #[serde(rename = "Raster")] + Raster, + #[serde(rename = "Plot")] + Plot, +} + +impl Default for Type { + fn default() -> Type { + Self::Vector + } +} + diff --git a/rust/src/models/typed_operator_operator.rs b/rust/src/models/typed_operator_operator.rs new file mode 100644 index 00000000..2f666a28 --- /dev/null +++ b/rust/src/models/typed_operator_operator.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedOperatorOperator { + #[serde(rename = "params", skip_serializing_if = "Option::is_none")] + pub params: Option, + #[serde(rename = "sources", skip_serializing_if = "Option::is_none")] + pub sources: Option, + #[serde(rename = "type")] + pub r#type: String, +} + +impl TypedOperatorOperator { + pub fn new(r#type: String) -> TypedOperatorOperator { + TypedOperatorOperator { + params: None, + sources: None, + r#type, + } + } +} + diff --git a/rust/src/models/typed_plot_result_descriptor.rs b/rust/src/models/typed_plot_result_descriptor.rs new file mode 100644 index 00000000..ab3acf64 --- /dev/null +++ b/rust/src/models/typed_plot_result_descriptor.rs @@ -0,0 +1,48 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedPlotResultDescriptor { + #[serde(rename = "bbox", skip_serializing_if = "Option::is_none")] + pub bbox: Option>, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", skip_serializing_if = "Option::is_none")] + pub time: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl TypedPlotResultDescriptor { + pub fn new(spatial_reference: String, r#type: Type) -> TypedPlotResultDescriptor { + TypedPlotResultDescriptor { + bbox: None, + spatial_reference, + time: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "plot")] + Plot, +} + +impl Default for Type { + fn default() -> Type { + Self::Plot + } +} + diff --git a/rust/src/models/typed_raster_result_descriptor.rs b/rust/src/models/typed_raster_result_descriptor.rs new file mode 100644 index 00000000..bb5e5c85 --- /dev/null +++ b/rust/src/models/typed_raster_result_descriptor.rs @@ -0,0 +1,57 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedRasterResultDescriptor { + #[serde(rename = "bands")] + pub bands: Vec, + #[serde(rename = "bbox", skip_serializing_if = "Option::is_none")] + pub bbox: Option>, + #[serde(rename = "dataType")] + pub data_type: models::RasterDataType, + #[serde(rename = "resolution", skip_serializing_if = "Option::is_none")] + pub resolution: Option>, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", skip_serializing_if = "Option::is_none")] + pub time: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl TypedRasterResultDescriptor { + pub fn new(bands: Vec, data_type: models::RasterDataType, spatial_reference: String, r#type: Type) -> TypedRasterResultDescriptor { + TypedRasterResultDescriptor { + bands, + bbox: None, + data_type, + resolution: None, + spatial_reference, + time: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "raster")] + Raster, +} + +impl Default for Type { + fn default() -> Type { + Self::Raster + } +} + diff --git a/rust/src/models/typed_result_descriptor.rs b/rust/src/models/typed_result_descriptor.rs new file mode 100644 index 00000000..394a0c69 --- /dev/null +++ b/rust/src/models/typed_result_descriptor.rs @@ -0,0 +1,31 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(tag = "type")] +pub enum TypedResultDescriptor { + #[serde(rename="plot")] + Plot(Box), + #[serde(rename="raster")] + Raster(Box), + #[serde(rename="vector")] + Vector(Box), +} + +impl Default for TypedResultDescriptor { + fn default() -> Self { + Self::Plot(Default::default()) + } +} + + diff --git a/rust/src/models/typed_vector_result_descriptor.rs b/rust/src/models/typed_vector_result_descriptor.rs new file mode 100644 index 00000000..69efb4b2 --- /dev/null +++ b/rust/src/models/typed_vector_result_descriptor.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TypedVectorResultDescriptor { + #[serde(rename = "bbox", skip_serializing_if = "Option::is_none")] + pub bbox: Option>, + #[serde(rename = "columns")] + pub columns: std::collections::HashMap, + #[serde(rename = "dataType")] + pub data_type: models::VectorDataType, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", skip_serializing_if = "Option::is_none")] + pub time: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl TypedVectorResultDescriptor { + pub fn new(columns: std::collections::HashMap, data_type: models::VectorDataType, spatial_reference: String, r#type: Type) -> TypedVectorResultDescriptor { + TypedVectorResultDescriptor { + bbox: None, + columns, + data_type, + spatial_reference, + time: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "vector")] + Vector, +} + +impl Default for Type { + fn default() -> Type { + Self::Vector + } +} + diff --git a/rust/src/models/unitless_measurement.rs b/rust/src/models/unitless_measurement.rs new file mode 100644 index 00000000..16c843eb --- /dev/null +++ b/rust/src/models/unitless_measurement.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UnitlessMeasurement { + #[serde(rename = "type")] + pub r#type: Type, +} + +impl UnitlessMeasurement { + pub fn new(r#type: Type) -> UnitlessMeasurement { + UnitlessMeasurement { + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "unitless")] + Unitless, +} + +impl Default for Type { + fn default() -> Type { + Self::Unitless + } +} + diff --git a/rust/src/models/unix_time_stamp_type.rs b/rust/src/models/unix_time_stamp_type.rs new file mode 100644 index 00000000..708d5e18 --- /dev/null +++ b/rust/src/models/unix_time_stamp_type.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UnixTimeStampType { + #[serde(rename = "epochSeconds")] + EpochSeconds, + #[serde(rename = "epochMilliseconds")] + EpochMilliseconds, + +} + +impl std::fmt::Display for UnixTimeStampType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::EpochSeconds => write!(f, "epochSeconds"), + Self::EpochMilliseconds => write!(f, "epochMilliseconds"), + } + } +} + +impl Default for UnixTimeStampType { + fn default() -> UnixTimeStampType { + Self::EpochSeconds + } +} + diff --git a/rust/src/models/update_dataset.rs b/rust/src/models/update_dataset.rs new file mode 100644 index 00000000..ff7b9952 --- /dev/null +++ b/rust/src/models/update_dataset.rs @@ -0,0 +1,36 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateDataset { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "tags")] + pub tags: Vec, +} + +impl UpdateDataset { + pub fn new(description: String, display_name: String, name: String, tags: Vec) -> UpdateDataset { + UpdateDataset { + description, + display_name, + name, + tags, + } + } +} + diff --git a/rust/src/models/update_layer.rs b/rust/src/models/update_layer.rs new file mode 100644 index 00000000..591ef0fe --- /dev/null +++ b/rust/src/models/update_layer.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateLayer { + #[serde(rename = "description")] + pub description: String, + /// metadata used for loading the data + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "name")] + pub name: String, + /// properties, for instance, to be rendered in the UI + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, + #[serde(rename = "symbology", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub symbology: Option>>, + #[serde(rename = "workflow")] + pub workflow: Box, +} + +impl UpdateLayer { + pub fn new(description: String, name: String, workflow: models::Workflow) -> UpdateLayer { + UpdateLayer { + description, + metadata: None, + name, + properties: None, + symbology: None, + workflow: Box::new(workflow), + } + } +} + diff --git a/rust/src/models/update_layer_collection.rs b/rust/src/models/update_layer_collection.rs new file mode 100644 index 00000000..ba73ecc1 --- /dev/null +++ b/rust/src/models/update_layer_collection.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateLayerCollection { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] + pub properties: Option>>, +} + +impl UpdateLayerCollection { + pub fn new(description: String, name: String) -> UpdateLayerCollection { + UpdateLayerCollection { + description, + name, + properties: None, + } + } +} + diff --git a/rust/src/models/update_project.rs b/rust/src/models/update_project.rs new file mode 100644 index 00000000..e1440908 --- /dev/null +++ b/rust/src/models/update_project.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateProject { + #[serde(rename = "bounds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bounds: Option>>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "layers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub layers: Option>>, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "plots", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub plots: Option>>, + #[serde(rename = "timeStep", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time_step: Option>>, +} + +impl UpdateProject { + pub fn new(id: uuid::Uuid) -> UpdateProject { + UpdateProject { + bounds: None, + description: None, + id, + layers: None, + name: None, + plots: None, + time_step: None, + } + } +} + diff --git a/rust/src/models/update_quota.rs b/rust/src/models/update_quota.rs new file mode 100644 index 00000000..93be9947 --- /dev/null +++ b/rust/src/models/update_quota.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateQuota { + #[serde(rename = "available")] + pub available: i64, +} + +impl UpdateQuota { + pub fn new(available: i64) -> UpdateQuota { + UpdateQuota { + available, + } + } +} + diff --git a/rust/src/models/upload_file_layers_response.rs b/rust/src/models/upload_file_layers_response.rs new file mode 100644 index 00000000..dfd482cb --- /dev/null +++ b/rust/src/models/upload_file_layers_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UploadFileLayersResponse { + #[serde(rename = "layers")] + pub layers: Vec, +} + +impl UploadFileLayersResponse { + pub fn new(layers: Vec) -> UploadFileLayersResponse { + UploadFileLayersResponse { + layers, + } + } +} + diff --git a/rust/src/models/upload_files_response.rs b/rust/src/models/upload_files_response.rs new file mode 100644 index 00000000..42b5dcfa --- /dev/null +++ b/rust/src/models/upload_files_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UploadFilesResponse { + #[serde(rename = "files")] + pub files: Vec, +} + +impl UploadFilesResponse { + pub fn new(files: Vec) -> UploadFilesResponse { + UploadFilesResponse { + files, + } + } +} + diff --git a/rust/src/models/usage_summary_granularity.rs b/rust/src/models/usage_summary_granularity.rs new file mode 100644 index 00000000..fd41e579 --- /dev/null +++ b/rust/src/models/usage_summary_granularity.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageSummaryGranularity { + #[serde(rename = "minutes")] + Minutes, + #[serde(rename = "hours")] + Hours, + #[serde(rename = "days")] + Days, + #[serde(rename = "months")] + Months, + #[serde(rename = "years")] + Years, + +} + +impl std::fmt::Display for UsageSummaryGranularity { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Minutes => write!(f, "minutes"), + Self::Hours => write!(f, "hours"), + Self::Days => write!(f, "days"), + Self::Months => write!(f, "months"), + Self::Years => write!(f, "years"), + } + } +} + +impl Default for UsageSummaryGranularity { + fn default() -> UsageSummaryGranularity { + Self::Minutes + } +} + diff --git a/rust/src/models/user_credentials.rs b/rust/src/models/user_credentials.rs new file mode 100644 index 00000000..1f657608 --- /dev/null +++ b/rust/src/models/user_credentials.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCredentials { + #[serde(rename = "email")] + pub email: String, + #[serde(rename = "password")] + pub password: String, +} + +impl UserCredentials { + pub fn new(email: String, password: String) -> UserCredentials { + UserCredentials { + email, + password, + } + } +} + diff --git a/rust/src/models/user_info.rs b/rust/src/models/user_info.rs new file mode 100644 index 00000000..2b48efcb --- /dev/null +++ b/rust/src/models/user_info.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserInfo { + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "realName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub real_name: Option>, +} + +impl UserInfo { + pub fn new(id: uuid::Uuid) -> UserInfo { + UserInfo { + email: None, + id, + real_name: None, + } + } +} + diff --git a/rust/src/models/user_registration.rs b/rust/src/models/user_registration.rs new file mode 100644 index 00000000..ae51fbe6 --- /dev/null +++ b/rust/src/models/user_registration.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserRegistration { + #[serde(rename = "email")] + pub email: String, + #[serde(rename = "password")] + pub password: String, + #[serde(rename = "realName")] + pub real_name: String, +} + +impl UserRegistration { + pub fn new(email: String, password: String, real_name: String) -> UserRegistration { + UserRegistration { + email, + password, + real_name, + } + } +} + diff --git a/rust/src/models/user_session.rs b/rust/src/models/user_session.rs new file mode 100644 index 00000000..b9bc2af0 --- /dev/null +++ b/rust/src/models/user_session.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserSession { + #[serde(rename = "created")] + pub created: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "project", skip_serializing_if = "Option::is_none")] + pub project: Option, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "validUntil")] + pub valid_until: String, + #[serde(rename = "view", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub view: Option>>, +} + +impl UserSession { + pub fn new(created: String, id: uuid::Uuid, roles: Vec, user: models::UserInfo, valid_until: String) -> UserSession { + UserSession { + created, + id, + project: None, + roles, + user: Box::new(user), + valid_until, + view: None, + } + } +} + diff --git a/rust/src/models/vec_update.rs b/rust/src/models/vec_update.rs new file mode 100644 index 00000000..a9970c88 --- /dev/null +++ b/rust/src/models/vec_update.rs @@ -0,0 +1,26 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum VecUpdate { + ProjectUpdateToken(models::ProjectUpdateToken), + Plot(Box), +} + +impl Default for VecUpdate { + fn default() -> Self { + Self::ProjectUpdateToken(Default::default()) + } +} + diff --git a/rust/src/models/vector_column_info.rs b/rust/src/models/vector_column_info.rs new file mode 100644 index 00000000..3b89ca99 --- /dev/null +++ b/rust/src/models/vector_column_info.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VectorColumnInfo { + #[serde(rename = "dataType")] + pub data_type: models::FeatureDataType, + #[serde(rename = "measurement")] + pub measurement: Box, +} + +impl VectorColumnInfo { + pub fn new(data_type: models::FeatureDataType, measurement: models::Measurement) -> VectorColumnInfo { + VectorColumnInfo { + data_type, + measurement: Box::new(measurement), + } + } +} + diff --git a/rust/src/models/vector_data_type.rs b/rust/src/models/vector_data_type.rs new file mode 100644 index 00000000..bd70de9e --- /dev/null +++ b/rust/src/models/vector_data_type.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// VectorDataType : An enum that contains all possible vector data types +/// An enum that contains all possible vector data types +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VectorDataType { + #[serde(rename = "Data")] + Data, + #[serde(rename = "MultiPoint")] + MultiPoint, + #[serde(rename = "MultiLineString")] + MultiLineString, + #[serde(rename = "MultiPolygon")] + MultiPolygon, + +} + +impl std::fmt::Display for VectorDataType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Data => write!(f, "Data"), + Self::MultiPoint => write!(f, "MultiPoint"), + Self::MultiLineString => write!(f, "MultiLineString"), + Self::MultiPolygon => write!(f, "MultiPolygon"), + } + } +} + +impl Default for VectorDataType { + fn default() -> VectorDataType { + Self::Data + } +} + diff --git a/rust/src/models/vector_query_rectangle.rs b/rust/src/models/vector_query_rectangle.rs new file mode 100644 index 00000000..10fa276f --- /dev/null +++ b/rust/src/models/vector_query_rectangle.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// VectorQueryRectangle : A spatio-temporal rectangle with a specified resolution +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VectorQueryRectangle { + #[serde(rename = "spatialBounds")] + pub spatial_bounds: Box, + #[serde(rename = "spatialResolution")] + pub spatial_resolution: Box, + #[serde(rename = "timeInterval")] + pub time_interval: Box, +} + +impl VectorQueryRectangle { + /// A spatio-temporal rectangle with a specified resolution + pub fn new(spatial_bounds: models::BoundingBox2D, spatial_resolution: models::SpatialResolution, time_interval: models::TimeInterval) -> VectorQueryRectangle { + VectorQueryRectangle { + spatial_bounds: Box::new(spatial_bounds), + spatial_resolution: Box::new(spatial_resolution), + time_interval: Box::new(time_interval), + } + } +} + diff --git a/rust/src/models/vector_result_descriptor.rs b/rust/src/models/vector_result_descriptor.rs new file mode 100644 index 00000000..23a188e4 --- /dev/null +++ b/rust/src/models/vector_result_descriptor.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VectorResultDescriptor { + #[serde(rename = "bbox", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bbox: Option>>, + #[serde(rename = "columns")] + pub columns: std::collections::HashMap, + #[serde(rename = "dataType")] + pub data_type: models::VectorDataType, + #[serde(rename = "spatialReference")] + pub spatial_reference: String, + #[serde(rename = "time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub time: Option>>, +} + +impl VectorResultDescriptor { + pub fn new(columns: std::collections::HashMap, data_type: models::VectorDataType, spatial_reference: String) -> VectorResultDescriptor { + VectorResultDescriptor { + bbox: None, + columns, + data_type, + spatial_reference, + time: None, + } + } +} + diff --git a/rust/src/models/volume.rs b/rust/src/models/volume.rs new file mode 100644 index 00000000..4ba6dfcc --- /dev/null +++ b/rust/src/models/volume.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Volume { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub path: Option>, +} + +impl Volume { + pub fn new(name: String) -> Volume { + Volume { + name, + path: None, + } + } +} + diff --git a/rust/src/models/volume_file_layers_response.rs b/rust/src/models/volume_file_layers_response.rs new file mode 100644 index 00000000..c05979a7 --- /dev/null +++ b/rust/src/models/volume_file_layers_response.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VolumeFileLayersResponse { + #[serde(rename = "layers")] + pub layers: Vec, +} + +impl VolumeFileLayersResponse { + pub fn new(layers: Vec) -> VolumeFileLayersResponse { + VolumeFileLayersResponse { + layers, + } + } +} + diff --git a/rust/src/models/wcs_boundingbox.rs b/rust/src/models/wcs_boundingbox.rs new file mode 100644 index 00000000..83affe00 --- /dev/null +++ b/rust/src/models/wcs_boundingbox.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WcsBoundingbox { + #[serde(rename = "bbox")] + pub bbox: Vec, + #[serde(rename = "spatial_reference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub spatial_reference: Option>, +} + +impl WcsBoundingbox { + pub fn new(bbox: Vec) -> WcsBoundingbox { + WcsBoundingbox { + bbox, + spatial_reference: None, + } + } +} + diff --git a/rust/src/models/wcs_service.rs b/rust/src/models/wcs_service.rs new file mode 100644 index 00000000..125640e3 --- /dev/null +++ b/rust/src/models/wcs_service.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WcsService { + #[serde(rename = "WCS")] + Wcs, + +} + +impl std::fmt::Display for WcsService { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Wcs => write!(f, "WCS"), + } + } +} + +impl Default for WcsService { + fn default() -> WcsService { + Self::Wcs + } +} + diff --git a/rust/src/models/wcs_version.rs b/rust/src/models/wcs_version.rs new file mode 100644 index 00000000..c5cdb317 --- /dev/null +++ b/rust/src/models/wcs_version.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WcsVersion { + #[serde(rename = "1.1.0")] + Variant110, + #[serde(rename = "1.1.1")] + Variant111, + +} + +impl std::fmt::Display for WcsVersion { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Variant110 => write!(f, "1.1.0"), + Self::Variant111 => write!(f, "1.1.1"), + } + } +} + +impl Default for WcsVersion { + fn default() -> WcsVersion { + Self::Variant110 + } +} + diff --git a/rust/src/models/wfs_service.rs b/rust/src/models/wfs_service.rs new file mode 100644 index 00000000..68bf1150 --- /dev/null +++ b/rust/src/models/wfs_service.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WfsService { + #[serde(rename = "WFS")] + Wfs, + +} + +impl std::fmt::Display for WfsService { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Wfs => write!(f, "WFS"), + } + } +} + +impl Default for WfsService { + fn default() -> WfsService { + Self::Wfs + } +} + diff --git a/rust/src/models/wfs_version.rs b/rust/src/models/wfs_version.rs new file mode 100644 index 00000000..3478c0b8 --- /dev/null +++ b/rust/src/models/wfs_version.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WfsVersion { + #[serde(rename = "2.0.0")] + Variant200, + +} + +impl std::fmt::Display for WfsVersion { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Variant200 => write!(f, "2.0.0"), + } + } +} + +impl Default for WfsVersion { + fn default() -> WfsVersion { + Self::Variant200 + } +} + diff --git a/rust/src/models/wildlive_data_connector_definition.rs b/rust/src/models/wildlive_data_connector_definition.rs new file mode 100644 index 00000000..5fcbaa77 --- /dev/null +++ b/rust/src/models/wildlive_data_connector_definition.rs @@ -0,0 +1,54 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WildliveDataConnectorDefinition { + #[serde(rename = "apiKey", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_key: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub priority: Option>, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl WildliveDataConnectorDefinition { + pub fn new(description: String, id: uuid::Uuid, name: String, r#type: Type) -> WildliveDataConnectorDefinition { + WildliveDataConnectorDefinition { + api_key: None, + description, + id, + name, + priority: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "WildLIVE!")] + WildLiveExclamation, +} + +impl Default for Type { + fn default() -> Type { + Self::WildLiveExclamation + } +} + diff --git a/rust/src/models/wms_service.rs b/rust/src/models/wms_service.rs new file mode 100644 index 00000000..a4d3527b --- /dev/null +++ b/rust/src/models/wms_service.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WmsService { + #[serde(rename = "WMS")] + Wms, + +} + +impl std::fmt::Display for WmsService { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Wms => write!(f, "WMS"), + } + } +} + +impl Default for WmsService { + fn default() -> WmsService { + Self::Wms + } +} + diff --git a/rust/src/models/wms_version.rs b/rust/src/models/wms_version.rs new file mode 100644 index 00000000..88ee25dc --- /dev/null +++ b/rust/src/models/wms_version.rs @@ -0,0 +1,35 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum WmsVersion { + #[serde(rename = "1.3.0")] + Variant130, + +} + +impl std::fmt::Display for WmsVersion { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Variant130 => write!(f, "1.3.0"), + } + } +} + +impl Default for WmsVersion { + fn default() -> WmsVersion { + Self::Variant130 + } +} + diff --git a/rust/src/models/workflow.rs b/rust/src/models/workflow.rs new file mode 100644 index 00000000..3bf3ed70 --- /dev/null +++ b/rust/src/models/workflow.rs @@ -0,0 +1,46 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Workflow { + #[serde(rename = "operator")] + pub operator: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl Workflow { + pub fn new(operator: models::TypedOperatorOperator, r#type: Type) -> Workflow { + Workflow { + operator: Box::new(operator), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Vector")] + Vector, + #[serde(rename = "Raster")] + Raster, + #[serde(rename = "Plot")] + Plot, +} + +impl Default for Type { + fn default() -> Type { + Self::Vector + } +} + diff --git a/rust/src/models/wrapped_plot_output.rs b/rust/src/models/wrapped_plot_output.rs new file mode 100644 index 00000000..208389b9 --- /dev/null +++ b/rust/src/models/wrapped_plot_output.rs @@ -0,0 +1,33 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WrappedPlotOutput { + #[serde(rename = "data")] + pub data: serde_json::Value, + #[serde(rename = "outputFormat")] + pub output_format: models::PlotOutputFormat, + #[serde(rename = "plotType")] + pub plot_type: String, +} + +impl WrappedPlotOutput { + pub fn new(data: serde_json::Value, output_format: models::PlotOutputFormat, plot_type: String) -> WrappedPlotOutput { + WrappedPlotOutput { + data, + output_format, + plot_type, + } + } +} + diff --git a/typescript/README.md b/typescript/README.md index 36941a22..6b06fa60 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -1,46 +1,457 @@ -## @geoengine/openapi-client@0.0.27 +# @geoengine/openapi-client@0.0.28 -This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: +A TypeScript SDK client for the geoengine.io API. -Environment -* Node.js -* Webpack -* Browserify +## Usage -Language level -* ES5 - you must have a Promises/A+ library installed -* ES6 +First, install the SDK from npm. -Module system -* CommonJS -* ES6 module system +```bash +npm install @geoengine/openapi-client --save +``` -It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html)) +Next, try it out. -### Building -To build and compile the typescript sources to javascript use: -``` -npm install -npm run build +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { AutoCreateDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // AutoCreateDataset + autoCreateDataset: ..., + } satisfies AutoCreateDatasetHandlerRequest; + + try { + const data = await api.autoCreateDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); ``` -### Publishing -First build the package then run `npm publish` +## Documentation -### Consuming +### API Endpoints -navigate to the folder of your consuming project and run one of the following commands. +All URIs are relative to *https://geoengine.io/api* -_published:_ +| Class | Method | HTTP request | Description +| ----- | ------ | ------------ | ------------- +*DatasetsApi* | [**autoCreateDatasetHandler**](docs/DatasetsApi.md#autocreatedatasethandler) | **POST** /dataset/auto | Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. +*DatasetsApi* | [**createDatasetHandler**](docs/DatasetsApi.md#createdatasethandler) | **POST** /dataset | Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. +*DatasetsApi* | [**deleteDatasetHandler**](docs/DatasetsApi.md#deletedatasethandler) | **DELETE** /dataset/{dataset} | Delete a dataset +*DatasetsApi* | [**getDatasetHandler**](docs/DatasetsApi.md#getdatasethandler) | **GET** /dataset/{dataset} | Retrieves details about a dataset using the internal name. +*DatasetsApi* | [**getLoadingInfoHandler**](docs/DatasetsApi.md#getloadinginfohandler) | **GET** /dataset/{dataset}/loadingInfo | Retrieves the loading information of a dataset +*DatasetsApi* | [**listDatasetsHandler**](docs/DatasetsApi.md#listdatasetshandler) | **GET** /datasets | Lists available datasets. +*DatasetsApi* | [**listVolumeFileLayersHandler**](docs/DatasetsApi.md#listvolumefilelayershandler) | **GET** /dataset/volumes/{volume_name}/files/{file_name}/layers | List the layers of a file in a volume. +*DatasetsApi* | [**listVolumesHandler**](docs/DatasetsApi.md#listvolumeshandler) | **GET** /dataset/volumes | Lists available volumes. +*DatasetsApi* | [**suggestMetaDataHandler**](docs/DatasetsApi.md#suggestmetadatahandler) | **POST** /dataset/suggest | Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. +*DatasetsApi* | [**updateDatasetHandler**](docs/DatasetsApi.md#updatedatasethandler) | **POST** /dataset/{dataset} | Update details about a dataset using the internal name. +*DatasetsApi* | [**updateDatasetProvenanceHandler**](docs/DatasetsApi.md#updatedatasetprovenancehandler) | **PUT** /dataset/{dataset}/provenance | +*DatasetsApi* | [**updateDatasetSymbologyHandler**](docs/DatasetsApi.md#updatedatasetsymbologyhandler) | **PUT** /dataset/{dataset}/symbology | Updates the dataset\'s symbology +*DatasetsApi* | [**updateLoadingInfoHandler**](docs/DatasetsApi.md#updateloadinginfohandler) | **PUT** /dataset/{dataset}/loadingInfo | Updates the dataset\'s loading info +*GeneralApi* | [**availableHandler**](docs/GeneralApi.md#availablehandler) | **GET** /available | Server availablity check. +*GeneralApi* | [**serverInfoHandler**](docs/GeneralApi.md#serverinfohandler) | **GET** /info | Shows information about the server software version. +*LayersApi* | [**addCollection**](docs/LayersApi.md#addcollection) | **POST** /layerDb/collections/{collection}/collections | Add a new collection to an existing collection +*LayersApi* | [**addExistingCollectionToCollection**](docs/LayersApi.md#addexistingcollectiontocollection) | **POST** /layerDb/collections/{parent}/collections/{collection} | Add an existing collection to a collection +*LayersApi* | [**addExistingLayerToCollection**](docs/LayersApi.md#addexistinglayertocollection) | **POST** /layerDb/collections/{collection}/layers/{layer} | Add an existing layer to a collection +*LayersApi* | [**addLayer**](docs/LayersApi.md#addlayer) | **POST** /layerDb/collections/{collection}/layers | Add a new layer to a collection +*LayersApi* | [**addProvider**](docs/LayersApi.md#addprovider) | **POST** /layerDb/providers | Add a new provider +*LayersApi* | [**autocompleteHandler**](docs/LayersApi.md#autocompletehandler) | **GET** /layers/collections/search/autocomplete/{provider}/{collection} | Autocompletes the search on the contents of the collection of the given provider +*LayersApi* | [**deleteProvider**](docs/LayersApi.md#deleteprovider) | **DELETE** /layerDb/providers/{provider} | Delete an existing provider +*LayersApi* | [**getProviderDefinition**](docs/LayersApi.md#getproviderdefinition) | **GET** /layerDb/providers/{provider} | Get an existing provider\'s definition +*LayersApi* | [**layerHandler**](docs/LayersApi.md#layerhandler) | **GET** /layers/{provider}/{layer} | Retrieves the layer of the given provider +*LayersApi* | [**layerToDataset**](docs/LayersApi.md#layertodataset) | **POST** /layers/{provider}/{layer}/dataset | Persist a raster layer from a provider as a dataset. +*LayersApi* | [**layerToWorkflowIdHandler**](docs/LayersApi.md#layertoworkflowidhandler) | **POST** /layers/{provider}/{layer}/workflowId | Registers a layer from a provider as a workflow and returns the workflow id +*LayersApi* | [**listCollectionHandler**](docs/LayersApi.md#listcollectionhandler) | **GET** /layers/collections/{provider}/{collection} | List the contents of the collection of the given provider +*LayersApi* | [**listProviders**](docs/LayersApi.md#listproviders) | **GET** /layerDb/providers | List all providers +*LayersApi* | [**listRootCollectionsHandler**](docs/LayersApi.md#listrootcollectionshandler) | **GET** /layers/collections | List all layer collections +*LayersApi* | [**providerCapabilitiesHandler**](docs/LayersApi.md#providercapabilitieshandler) | **GET** /layers/{provider}/capabilities | +*LayersApi* | [**removeCollection**](docs/LayersApi.md#removecollection) | **DELETE** /layerDb/collections/{collection} | Remove a collection +*LayersApi* | [**removeCollectionFromCollection**](docs/LayersApi.md#removecollectionfromcollection) | **DELETE** /layerDb/collections/{parent}/collections/{collection} | Delete a collection from a collection +*LayersApi* | [**removeLayer**](docs/LayersApi.md#removelayer) | **DELETE** /layerDb/layers/{layer} | Remove a collection +*LayersApi* | [**removeLayerFromCollection**](docs/LayersApi.md#removelayerfromcollection) | **DELETE** /layerDb/collections/{collection}/layers/{layer} | Remove a layer from a collection +*LayersApi* | [**searchHandler**](docs/LayersApi.md#searchhandler) | **GET** /layers/collections/search/{provider}/{collection} | Searches the contents of the collection of the given provider +*LayersApi* | [**updateCollection**](docs/LayersApi.md#updatecollection) | **PUT** /layerDb/collections/{collection} | Update a collection +*LayersApi* | [**updateLayer**](docs/LayersApi.md#updatelayer) | **PUT** /layerDb/layers/{layer} | Update a layer +*LayersApi* | [**updateProviderDefinition**](docs/LayersApi.md#updateproviderdefinition) | **PUT** /layerDb/providers/{provider} | Update an existing provider\'s definition +*MLApi* | [**addMlModel**](docs/MLApi.md#addmlmodel) | **POST** /ml/models | Create a new ml model. +*MLApi* | [**getMlModel**](docs/MLApi.md#getmlmodel) | **GET** /ml/models/{model_name} | Get ml model by name. +*MLApi* | [**listMlModels**](docs/MLApi.md#listmlmodels) | **GET** /ml/models | List ml models. +*OGCWCSApi* | [**wcsCapabilitiesHandler**](docs/OGCWCSApi.md#wcscapabilitieshandler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities +*OGCWCSApi* | [**wcsDescribeCoverageHandler**](docs/OGCWCSApi.md#wcsdescribecoveragehandler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description +*OGCWCSApi* | [**wcsGetCoverageHandler**](docs/OGCWCSApi.md#wcsgetcoveragehandler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage +*OGCWFSApi* | [**wfsCapabilitiesHandler**](docs/OGCWFSApi.md#wfscapabilitieshandler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities +*OGCWFSApi* | [**wfsFeatureHandler**](docs/OGCWFSApi.md#wfsfeaturehandler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features +*OGCWMSApi* | [**wmsCapabilitiesHandler**](docs/OGCWMSApi.md#wmscapabilitieshandler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities +*OGCWMSApi* | [**wmsLegendGraphicHandler**](docs/OGCWMSApi.md#wmslegendgraphichandler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic +*OGCWMSApi* | [**wmsMapHandler**](docs/OGCWMSApi.md#wmsmaphandler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map +*PermissionsApi* | [**addPermissionHandler**](docs/PermissionsApi.md#addpermissionhandler) | **PUT** /permissions | Adds a new permission. +*PermissionsApi* | [**getResourcePermissionsHandler**](docs/PermissionsApi.md#getresourcepermissionshandler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource. +*PermissionsApi* | [**removePermissionHandler**](docs/PermissionsApi.md#removepermissionhandler) | **DELETE** /permissions | Removes an existing permission. +*PlotsApi* | [**getPlotHandler**](docs/PlotsApi.md#getplothandler) | **GET** /plot/{id} | Generates a plot. +*ProjectsApi* | [**createProjectHandler**](docs/ProjectsApi.md#createprojecthandler) | **POST** /project | Create a new project for the user. +*ProjectsApi* | [**deleteProjectHandler**](docs/ProjectsApi.md#deleteprojecthandler) | **DELETE** /project/{project} | Deletes a project. +*ProjectsApi* | [**listProjectsHandler**](docs/ProjectsApi.md#listprojectshandler) | **GET** /projects | List all projects accessible to the user that match the selected criteria. +*ProjectsApi* | [**loadProjectLatestHandler**](docs/ProjectsApi.md#loadprojectlatesthandler) | **GET** /project/{project} | Retrieves details about the latest version of a project. +*ProjectsApi* | [**loadProjectVersionHandler**](docs/ProjectsApi.md#loadprojectversionhandler) | **GET** /project/{project}/{version} | Retrieves details about the given version of a project. +*ProjectsApi* | [**projectVersionsHandler**](docs/ProjectsApi.md#projectversionshandler) | **GET** /project/{project}/versions | Lists all available versions of a project. +*ProjectsApi* | [**updateProjectHandler**](docs/ProjectsApi.md#updateprojecthandler) | **PATCH** /project/{project} | Updates a project. This will create a new version. +*SessionApi* | [**anonymousHandler**](docs/SessionApi.md#anonymoushandler) | **POST** /anonymous | Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. +*SessionApi* | [**loginHandler**](docs/SessionApi.md#loginhandler) | **POST** /login | Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. +*SessionApi* | [**logoutHandler**](docs/SessionApi.md#logouthandler) | **POST** /logout | Ends a session. +*SessionApi* | [**oidcInit**](docs/SessionApi.md#oidcinit) | **POST** /oidcInit | Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. +*SessionApi* | [**oidcLogin**](docs/SessionApi.md#oidclogin) | **POST** /oidcLogin | Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. +*SessionApi* | [**registerUserHandler**](docs/SessionApi.md#registeruserhandler) | **POST** /user | Registers a user. +*SessionApi* | [**sessionHandler**](docs/SessionApi.md#sessionhandler) | **GET** /session | Retrieves details about the current session. +*SessionApi* | [**sessionProjectHandler**](docs/SessionApi.md#sessionprojecthandler) | **POST** /session/project/{project} | Sets the active project of the session. +*SessionApi* | [**sessionViewHandler**](docs/SessionApi.md#sessionviewhandler) | **POST** /session/view | +*SpatialReferencesApi* | [**getSpatialReferenceSpecificationHandler**](docs/SpatialReferencesApi.md#getspatialreferencespecificationhandler) | **GET** /spatialReferenceSpecification/{srsString} | +*TasksApi* | [**abortHandler**](docs/TasksApi.md#aborthandler) | **DELETE** /tasks/{id} | Abort a running task. +*TasksApi* | [**listHandler**](docs/TasksApi.md#listhandler) | **GET** /tasks/list | Retrieve the status of all tasks. +*TasksApi* | [**statusHandler**](docs/TasksApi.md#statushandler) | **GET** /tasks/{id}/status | Retrieve the status of a task. +*UploadsApi* | [**listUploadFileLayersHandler**](docs/UploadsApi.md#listuploadfilelayershandler) | **GET** /uploads/{upload_id}/files/{file_name}/layers | List the layers of on uploaded file. +*UploadsApi* | [**listUploadFilesHandler**](docs/UploadsApi.md#listuploadfileshandler) | **GET** /uploads/{upload_id}/files | List the files of on upload. +*UploadsApi* | [**uploadHandler**](docs/UploadsApi.md#uploadhandler) | **POST** /upload | Uploads files. +*UserApi* | [**addRoleHandler**](docs/UserApi.md#addrolehandler) | **PUT** /roles | Add a new role. Requires admin privilige. +*UserApi* | [**assignRoleHandler**](docs/UserApi.md#assignrolehandler) | **POST** /users/{user}/roles/{role} | Assign a role to a user. Requires admin privilige. +*UserApi* | [**computationQuotaHandler**](docs/UserApi.md#computationquotahandler) | **GET** /quota/computations/{computation} | Retrieves the quota used by computation with the given computation id +*UserApi* | [**computationsQuotaHandler**](docs/UserApi.md#computationsquotahandler) | **GET** /quota/computations | Retrieves the quota used by computations +*UserApi* | [**dataUsageHandler**](docs/UserApi.md#datausagehandler) | **GET** /quota/dataUsage | Retrieves the data usage +*UserApi* | [**dataUsageSummaryHandler**](docs/UserApi.md#datausagesummaryhandler) | **GET** /quota/dataUsage/summary | Retrieves the data usage summary +*UserApi* | [**getRoleByNameHandler**](docs/UserApi.md#getrolebynamehandler) | **GET** /roles/byName/{name} | Get role by name +*UserApi* | [**getRoleDescriptions**](docs/UserApi.md#getroledescriptions) | **GET** /user/roles/descriptions | Query roles for the current user. +*UserApi* | [**getUserQuotaHandler**](docs/UserApi.md#getuserquotahandler) | **GET** /quotas/{user} | Retrieves the available and used quota of a specific user. +*UserApi* | [**quotaHandler**](docs/UserApi.md#quotahandler) | **GET** /quota | Retrieves the available and used quota of the current user. +*UserApi* | [**removeRoleHandler**](docs/UserApi.md#removerolehandler) | **DELETE** /roles/{role} | Remove a role. Requires admin privilige. +*UserApi* | [**revokeRoleHandler**](docs/UserApi.md#revokerolehandler) | **DELETE** /users/{user}/roles/{role} | Revoke a role from a user. Requires admin privilige. +*UserApi* | [**updateUserQuotaHandler**](docs/UserApi.md#updateuserquotahandler) | **POST** /quotas/{user} | Update the available quota of a specific user. +*WorkflowsApi* | [**datasetFromWorkflowHandler**](docs/WorkflowsApi.md#datasetfromworkflowhandler) | **POST** /datasetFromWorkflow/{id} | Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task +*WorkflowsApi* | [**getWorkflowAllMetadataZipHandler**](docs/WorkflowsApi.md#getworkflowallmetadataziphandler) | **GET** /workflow/{id}/allMetadata/zip | Gets a ZIP archive of the worklow, its provenance and the output metadata. +*WorkflowsApi* | [**getWorkflowMetadataHandler**](docs/WorkflowsApi.md#getworkflowmetadatahandler) | **GET** /workflow/{id}/metadata | Gets the metadata of a workflow +*WorkflowsApi* | [**getWorkflowProvenanceHandler**](docs/WorkflowsApi.md#getworkflowprovenancehandler) | **GET** /workflow/{id}/provenance | Gets the provenance of all datasets used in a workflow. +*WorkflowsApi* | [**loadWorkflowHandler**](docs/WorkflowsApi.md#loadworkflowhandler) | **GET** /workflow/{id} | Retrieves an existing Workflow. +*WorkflowsApi* | [**rasterStreamWebsocket**](docs/WorkflowsApi.md#rasterstreamwebsocket) | **GET** /workflow/{id}/rasterStream | Query a workflow raster result as a stream of tiles via a websocket connection. +*WorkflowsApi* | [**registerWorkflowHandler**](docs/WorkflowsApi.md#registerworkflowhandler) | **POST** /workflow | Registers a new Workflow. + + +### Models + +- [AddDataset](docs/AddDataset.md) +- [AddLayer](docs/AddLayer.md) +- [AddLayerCollection](docs/AddLayerCollection.md) +- [AddRole](docs/AddRole.md) +- [ArunaDataProviderDefinition](docs/ArunaDataProviderDefinition.md) +- [AuthCodeRequestURL](docs/AuthCodeRequestURL.md) +- [AuthCodeResponse](docs/AuthCodeResponse.md) +- [AutoCreateDataset](docs/AutoCreateDataset.md) +- [AxisOrder](docs/AxisOrder.md) +- [BoundingBox2D](docs/BoundingBox2D.md) +- [Breakpoint](docs/Breakpoint.md) +- [ClassificationMeasurement](docs/ClassificationMeasurement.md) +- [CollectionItem](docs/CollectionItem.md) +- [CollectionType](docs/CollectionType.md) +- [ColorParam](docs/ColorParam.md) +- [Colorizer](docs/Colorizer.md) +- [ComputationQuota](docs/ComputationQuota.md) +- [ContinuousMeasurement](docs/ContinuousMeasurement.md) +- [Coordinate2D](docs/Coordinate2D.md) +- [CopernicusDataspaceDataProviderDefinition](docs/CopernicusDataspaceDataProviderDefinition.md) +- [CreateDataset](docs/CreateDataset.md) +- [CreateProject](docs/CreateProject.md) +- [CsvHeader](docs/CsvHeader.md) +- [DataId](docs/DataId.md) +- [DataPath](docs/DataPath.md) +- [DataPathOneOf](docs/DataPathOneOf.md) +- [DataPathOneOf1](docs/DataPathOneOf1.md) +- [DataProviderResource](docs/DataProviderResource.md) +- [DataUsage](docs/DataUsage.md) +- [DataUsageSummary](docs/DataUsageSummary.md) +- [DatabaseConnectionConfig](docs/DatabaseConnectionConfig.md) +- [Dataset](docs/Dataset.md) +- [DatasetDefinition](docs/DatasetDefinition.md) +- [DatasetLayerListingCollection](docs/DatasetLayerListingCollection.md) +- [DatasetLayerListingProviderDefinition](docs/DatasetLayerListingProviderDefinition.md) +- [DatasetListing](docs/DatasetListing.md) +- [DatasetNameResponse](docs/DatasetNameResponse.md) +- [DatasetResource](docs/DatasetResource.md) +- [DerivedColor](docs/DerivedColor.md) +- [DerivedNumber](docs/DerivedNumber.md) +- [DescribeCoverageRequest](docs/DescribeCoverageRequest.md) +- [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) +- [EdrDataProviderDefinition](docs/EdrDataProviderDefinition.md) +- [EdrVectorSpec](docs/EdrVectorSpec.md) +- [ErrorResponse](docs/ErrorResponse.md) +- [ExternalDataId](docs/ExternalDataId.md) +- [FeatureDataType](docs/FeatureDataType.md) +- [FileNotFoundHandling](docs/FileNotFoundHandling.md) +- [FormatSpecifics](docs/FormatSpecifics.md) +- [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) +- [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) +- [GdalDatasetGeoTransform](docs/GdalDatasetGeoTransform.md) +- [GdalDatasetParameters](docs/GdalDatasetParameters.md) +- [GdalLoadingInfoTemporalSlice](docs/GdalLoadingInfoTemporalSlice.md) +- [GdalMetaDataList](docs/GdalMetaDataList.md) +- [GdalMetaDataRegular](docs/GdalMetaDataRegular.md) +- [GdalMetaDataStatic](docs/GdalMetaDataStatic.md) +- [GdalMetadataMapping](docs/GdalMetadataMapping.md) +- [GdalMetadataNetCdfCf](docs/GdalMetadataNetCdfCf.md) +- [GdalSourceTimePlaceholder](docs/GdalSourceTimePlaceholder.md) +- [GeoJson](docs/GeoJson.md) +- [GetCapabilitiesFormat](docs/GetCapabilitiesFormat.md) +- [GetCapabilitiesRequest](docs/GetCapabilitiesRequest.md) +- [GetCoverageFormat](docs/GetCoverageFormat.md) +- [GetCoverageRequest](docs/GetCoverageRequest.md) +- [GetFeatureRequest](docs/GetFeatureRequest.md) +- [GetLegendGraphicRequest](docs/GetLegendGraphicRequest.md) +- [GetMapExceptionFormat](docs/GetMapExceptionFormat.md) +- [GetMapFormat](docs/GetMapFormat.md) +- [GetMapRequest](docs/GetMapRequest.md) +- [GfbioAbcdDataProviderDefinition](docs/GfbioAbcdDataProviderDefinition.md) +- [GfbioCollectionsDataProviderDefinition](docs/GfbioCollectionsDataProviderDefinition.md) +- [IdResponse](docs/IdResponse.md) +- [InternalDataId](docs/InternalDataId.md) +- [Layer](docs/Layer.md) +- [LayerCollection](docs/LayerCollection.md) +- [LayerCollectionListing](docs/LayerCollectionListing.md) +- [LayerCollectionResource](docs/LayerCollectionResource.md) +- [LayerListing](docs/LayerListing.md) +- [LayerProviderListing](docs/LayerProviderListing.md) +- [LayerResource](docs/LayerResource.md) +- [LayerVisibility](docs/LayerVisibility.md) +- [LineSymbology](docs/LineSymbology.md) +- [LinearGradient](docs/LinearGradient.md) +- [LogarithmicGradient](docs/LogarithmicGradient.md) +- [Measurement](docs/Measurement.md) +- [MetaDataDefinition](docs/MetaDataDefinition.md) +- [MetaDataSuggestion](docs/MetaDataSuggestion.md) +- [MlModel](docs/MlModel.md) +- [MlModelInputNoDataHandling](docs/MlModelInputNoDataHandling.md) +- [MlModelInputNoDataHandlingVariant](docs/MlModelInputNoDataHandlingVariant.md) +- [MlModelMetadata](docs/MlModelMetadata.md) +- [MlModelNameResponse](docs/MlModelNameResponse.md) +- [MlModelOutputNoDataHandling](docs/MlModelOutputNoDataHandling.md) +- [MlModelOutputNoDataHandlingVariant](docs/MlModelOutputNoDataHandlingVariant.md) +- [MlModelResource](docs/MlModelResource.md) +- [MlTensorShape3D](docs/MlTensorShape3D.md) +- [MockDatasetDataSourceLoadingInfo](docs/MockDatasetDataSourceLoadingInfo.md) +- [MockMetaData](docs/MockMetaData.md) +- [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) +- [MultiLineString](docs/MultiLineString.md) +- [MultiPoint](docs/MultiPoint.md) +- [MultiPolygon](docs/MultiPolygon.md) +- [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) +- [NumberParam](docs/NumberParam.md) +- [OgrMetaData](docs/OgrMetaData.md) +- [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) +- [OgrSourceDataset](docs/OgrSourceDataset.md) +- [OgrSourceDatasetTimeType](docs/OgrSourceDatasetTimeType.md) +- [OgrSourceDatasetTimeTypeNone](docs/OgrSourceDatasetTimeTypeNone.md) +- [OgrSourceDatasetTimeTypeStart](docs/OgrSourceDatasetTimeTypeStart.md) +- [OgrSourceDatasetTimeTypeStartDuration](docs/OgrSourceDatasetTimeTypeStartDuration.md) +- [OgrSourceDatasetTimeTypeStartEnd](docs/OgrSourceDatasetTimeTypeStartEnd.md) +- [OgrSourceDurationSpec](docs/OgrSourceDurationSpec.md) +- [OgrSourceDurationSpecInfinite](docs/OgrSourceDurationSpecInfinite.md) +- [OgrSourceDurationSpecValue](docs/OgrSourceDurationSpecValue.md) +- [OgrSourceDurationSpecZero](docs/OgrSourceDurationSpecZero.md) +- [OgrSourceErrorSpec](docs/OgrSourceErrorSpec.md) +- [OgrSourceTimeFormat](docs/OgrSourceTimeFormat.md) +- [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md) +- [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md) +- [OgrSourceTimeFormatUnixTimeStamp](docs/OgrSourceTimeFormatUnixTimeStamp.md) +- [OperatorQuota](docs/OperatorQuota.md) +- [OrderBy](docs/OrderBy.md) +- [PaletteColorizer](docs/PaletteColorizer.md) +- [PangaeaDataProviderDefinition](docs/PangaeaDataProviderDefinition.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) +- [PlotQueryRectangle](docs/PlotQueryRectangle.md) +- [PlotResultDescriptor](docs/PlotResultDescriptor.md) +- [PointSymbology](docs/PointSymbology.md) +- [PolygonSymbology](docs/PolygonSymbology.md) +- [Project](docs/Project.md) +- [ProjectLayer](docs/ProjectLayer.md) +- [ProjectListing](docs/ProjectListing.md) +- [ProjectResource](docs/ProjectResource.md) +- [ProjectUpdateToken](docs/ProjectUpdateToken.md) +- [ProjectVersion](docs/ProjectVersion.md) +- [Provenance](docs/Provenance.md) +- [ProvenanceEntry](docs/ProvenanceEntry.md) +- [ProvenanceOutput](docs/ProvenanceOutput.md) +- [Provenances](docs/Provenances.md) +- [ProviderCapabilities](docs/ProviderCapabilities.md) +- [ProviderLayerCollectionId](docs/ProviderLayerCollectionId.md) +- [ProviderLayerId](docs/ProviderLayerId.md) +- [Quota](docs/Quota.md) +- [RasterBandDescriptor](docs/RasterBandDescriptor.md) +- [RasterColorizer](docs/RasterColorizer.md) +- [RasterDataType](docs/RasterDataType.md) +- [RasterDatasetFromWorkflow](docs/RasterDatasetFromWorkflow.md) +- [RasterDatasetFromWorkflowResult](docs/RasterDatasetFromWorkflowResult.md) +- [RasterPropertiesEntryType](docs/RasterPropertiesEntryType.md) +- [RasterPropertiesKey](docs/RasterPropertiesKey.md) +- [RasterQueryRectangle](docs/RasterQueryRectangle.md) +- [RasterResultDescriptor](docs/RasterResultDescriptor.md) +- [RasterStreamWebsocketResultType](docs/RasterStreamWebsocketResultType.md) +- [RasterSymbology](docs/RasterSymbology.md) +- [Resource](docs/Resource.md) +- [Role](docs/Role.md) +- [RoleDescription](docs/RoleDescription.md) +- [STRectangle](docs/STRectangle.md) +- [SearchCapabilities](docs/SearchCapabilities.md) +- [SearchType](docs/SearchType.md) +- [SearchTypes](docs/SearchTypes.md) +- [SentinelS2L2ACogsProviderDefinition](docs/SentinelS2L2ACogsProviderDefinition.md) +- [ServerInfo](docs/ServerInfo.md) +- [SingleBandRasterColorizer](docs/SingleBandRasterColorizer.md) +- [SpatialPartition2D](docs/SpatialPartition2D.md) +- [SpatialReferenceAuthority](docs/SpatialReferenceAuthority.md) +- [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) +- [SpatialResolution](docs/SpatialResolution.md) +- [StacApiRetries](docs/StacApiRetries.md) +- [StacBand](docs/StacBand.md) +- [StacQueryBuffer](docs/StacQueryBuffer.md) +- [StacZone](docs/StacZone.md) +- [StaticColor](docs/StaticColor.md) +- [StaticNumber](docs/StaticNumber.md) +- [StrokeParam](docs/StrokeParam.md) +- [SuggestMetaData](docs/SuggestMetaData.md) +- [Symbology](docs/Symbology.md) +- [TaskAbortOptions](docs/TaskAbortOptions.md) +- [TaskFilter](docs/TaskFilter.md) +- [TaskListOptions](docs/TaskListOptions.md) +- [TaskResponse](docs/TaskResponse.md) +- [TaskStatus](docs/TaskStatus.md) +- [TaskStatusAborted](docs/TaskStatusAborted.md) +- [TaskStatusCompleted](docs/TaskStatusCompleted.md) +- [TaskStatusFailed](docs/TaskStatusFailed.md) +- [TaskStatusRunning](docs/TaskStatusRunning.md) +- [TaskStatusWithId](docs/TaskStatusWithId.md) +- [TextSymbology](docs/TextSymbology.md) +- [TimeGranularity](docs/TimeGranularity.md) +- [TimeInterval](docs/TimeInterval.md) +- [TimeReference](docs/TimeReference.md) +- [TimeStep](docs/TimeStep.md) +- [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) +- [TypedGeometry](docs/TypedGeometry.md) +- [TypedGeometryOneOf](docs/TypedGeometryOneOf.md) +- [TypedGeometryOneOf1](docs/TypedGeometryOneOf1.md) +- [TypedGeometryOneOf2](docs/TypedGeometryOneOf2.md) +- [TypedGeometryOneOf3](docs/TypedGeometryOneOf3.md) +- [TypedOperator](docs/TypedOperator.md) +- [TypedOperatorOperator](docs/TypedOperatorOperator.md) +- [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) +- [TypedRasterResultDescriptor](docs/TypedRasterResultDescriptor.md) +- [TypedResultDescriptor](docs/TypedResultDescriptor.md) +- [TypedVectorResultDescriptor](docs/TypedVectorResultDescriptor.md) +- [UnitlessMeasurement](docs/UnitlessMeasurement.md) +- [UnixTimeStampType](docs/UnixTimeStampType.md) +- [UpdateDataset](docs/UpdateDataset.md) +- [UpdateLayer](docs/UpdateLayer.md) +- [UpdateLayerCollection](docs/UpdateLayerCollection.md) +- [UpdateProject](docs/UpdateProject.md) +- [UpdateQuota](docs/UpdateQuota.md) +- [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) +- [UploadFilesResponse](docs/UploadFilesResponse.md) +- [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) +- [UserCredentials](docs/UserCredentials.md) +- [UserInfo](docs/UserInfo.md) +- [UserRegistration](docs/UserRegistration.md) +- [UserSession](docs/UserSession.md) +- [VecUpdate](docs/VecUpdate.md) +- [VectorColumnInfo](docs/VectorColumnInfo.md) +- [VectorDataType](docs/VectorDataType.md) +- [VectorQueryRectangle](docs/VectorQueryRectangle.md) +- [VectorResultDescriptor](docs/VectorResultDescriptor.md) +- [Volume](docs/Volume.md) +- [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) +- [WcsBoundingbox](docs/WcsBoundingbox.md) +- [WcsService](docs/WcsService.md) +- [WcsVersion](docs/WcsVersion.md) +- [WfsService](docs/WfsService.md) +- [WfsVersion](docs/WfsVersion.md) +- [WildliveDataConnectorDefinition](docs/WildliveDataConnectorDefinition.md) +- [WmsService](docs/WmsService.md) +- [WmsVersion](docs/WmsVersion.md) +- [Workflow](docs/Workflow.md) +- [WrappedPlotOutput](docs/WrappedPlotOutput.md) + +### Authorization + + +Authentication schemes defined for the API: + +#### session_token -``` -npm install @geoengine/openapi-client@0.0.27 --save -``` -_unPublished (not recommended):_ +- **Type**: HTTP Bearer Token authentication (UUID) +## About + +This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/) +and is automatically generated by the +[OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: `0.8.0` +- Package version: `0.0.28` +- Generator version: `7.17.0` +- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen` + +The generated npm module supports the following: + +- Environments + * Node.js + * Webpack + * Browserify +- Language levels + * ES5 - you must have a Promises/A+ library installed + * ES6 +- Module systems + * CommonJS + * ES6 module system + + +## Development + +### Building + +To build the TypeScript source code, you need to have Node.js and npm installed. +After cloning the repository, navigate to the project directory and run: + +```bash +npm install +npm run build ``` -npm install PATH_TO_GENERATED_PACKAGE --save + +### Publishing + +Once you've built the package, you can publish it to npm: + +```bash +npm publish ``` + +## License + +[Apache-2.0](https://github.com/geo-engine/geoengine/blob/main/LICENSE) diff --git a/typescript/dist/apis/DatasetsApi.js b/typescript/dist/apis/DatasetsApi.js index 390168aa..d94c9400 100644 --- a/typescript/dist/apis/DatasetsApi.js +++ b/typescript/dist/apis/DatasetsApi.js @@ -47,8 +47,9 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/auto`; const response = yield this.request({ - path: `/dataset/auto`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -84,8 +85,9 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset`; const response = yield this.request({ - path: `/dataset`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -120,8 +122,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -154,8 +158,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -189,8 +195,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -245,8 +253,9 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/datasets`; const response = yield this.request({ - path: `/datasets`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -283,8 +292,11 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/volumes/{volume_name}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); const response = yield this.request({ - path: `/dataset/volumes/{volume_name}/files/{file_name}/layers`.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -315,8 +327,9 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/volumes`; const response = yield this.request({ - path: `/dataset/volumes`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -351,8 +364,9 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/suggest`; const response = yield this.request({ - path: `/dataset/suggest`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -391,8 +405,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -429,8 +445,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/provenance`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/provenance`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -467,8 +485,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/symbology`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/symbology`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -506,8 +526,10 @@ class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/GeneralApi.js b/typescript/dist/apis/GeneralApi.js index 7cc55137..eb00bc53 100644 --- a/typescript/dist/apis/GeneralApi.js +++ b/typescript/dist/apis/GeneralApi.js @@ -36,8 +36,9 @@ class GeneralApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/available`; const response = yield this.request({ - path: `/available`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -60,8 +61,9 @@ class GeneralApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/info`; const response = yield this.request({ - path: `/info`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/LayersApi.js b/typescript/dist/apis/LayersApi.js index a02f615c..b7135fed 100644 --- a/typescript/dist/apis/LayersApi.js +++ b/typescript/dist/apis/LayersApi.js @@ -50,8 +50,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/collections`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/collections`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -89,8 +91,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -126,8 +131,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -164,8 +172,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -201,8 +211,9 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers`; const response = yield this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -264,8 +275,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/search/autocomplete/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/search/autocomplete/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -299,8 +313,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -333,8 +349,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -371,8 +389,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -409,8 +430,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}/dataset`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}/dataset`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -447,8 +471,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}/workflowId`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}/workflowId`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -497,8 +524,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -541,8 +571,9 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers`; const response = yield this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -585,8 +616,9 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections`; const response = yield this.request({ - path: `/layers/collections`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -619,8 +651,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/capabilities`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layers/{provider}/capabilities`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -653,8 +687,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -690,8 +726,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -724,8 +763,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -761,8 +802,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -822,8 +866,11 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/search/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/search/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -861,8 +908,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -900,8 +949,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -939,8 +990,10 @@ class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/MLApi.js b/typescript/dist/apis/MLApi.js index 688dce93..23395d85 100644 --- a/typescript/dist/apis/MLApi.js +++ b/typescript/dist/apis/MLApi.js @@ -47,8 +47,9 @@ class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models`; const response = yield this.request({ - path: `/ml/models`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -83,8 +84,10 @@ class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models/{model_name}`; + urlPath = urlPath.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))); const response = yield this.request({ - path: `/ml/models/{model_name}`.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -115,8 +118,9 @@ class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models`; const response = yield this.request({ - path: `/ml/models`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/OGCWCSApi.js b/typescript/dist/apis/OGCWCSApi.js index a88dd58d..28d5f366 100644 --- a/typescript/dist/apis/OGCWCSApi.js +++ b/typescript/dist/apis/OGCWCSApi.js @@ -60,8 +60,10 @@ class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -124,8 +126,10 @@ class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=DescribeCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -224,8 +228,10 @@ class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=GetCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=GetCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/OGCWFSApi.js b/typescript/dist/apis/OGCWFSApi.js index ba07c8dd..724d64c7 100644 --- a/typescript/dist/apis/OGCWFSApi.js +++ b/typescript/dist/apis/OGCWFSApi.js @@ -55,8 +55,13 @@ class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wfs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); const response = yield this.request({ - path: `/wfs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -149,8 +154,10 @@ class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wfs/{workflow}?request=GetFeature`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wfs/{workflow}?request=GetFeature`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/OGCWMSApi.js b/typescript/dist/apis/OGCWMSApi.js index 432dbf62..4594bc02 100644 --- a/typescript/dist/apis/OGCWMSApi.js +++ b/typescript/dist/apis/OGCWMSApi.js @@ -57,8 +57,14 @@ class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -109,8 +115,14 @@ class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetLegendGraphic`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -221,8 +233,10 @@ class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetMap`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetMap`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/PermissionsApi.js b/typescript/dist/apis/PermissionsApi.js index 9f7c2573..9adc6671 100644 --- a/typescript/dist/apis/PermissionsApi.js +++ b/typescript/dist/apis/PermissionsApi.js @@ -47,8 +47,9 @@ class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions`; const response = yield this.request({ - path: `/permissions`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -97,8 +98,11 @@ class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions/resources/{resource_type}/{resource_id}`; + urlPath = urlPath.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))); + urlPath = urlPath.replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))); const response = yield this.request({ - path: `/permissions/resources/{resource_type}/{resource_id}`.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))).replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -133,8 +137,9 @@ class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions`; const response = yield this.request({ - path: `/permissions`, + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/PlotsApi.js b/typescript/dist/apis/PlotsApi.js index 512e7bbe..64fac6f6 100644 --- a/typescript/dist/apis/PlotsApi.js +++ b/typescript/dist/apis/PlotsApi.js @@ -68,8 +68,10 @@ class PlotsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/plot/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/plot/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/ProjectsApi.js b/typescript/dist/apis/ProjectsApi.js index a4e50e79..ce699be4 100644 --- a/typescript/dist/apis/ProjectsApi.js +++ b/typescript/dist/apis/ProjectsApi.js @@ -47,8 +47,9 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project`; const response = yield this.request({ - path: `/project`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -83,8 +84,10 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -123,8 +126,12 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/projects`; + urlPath = urlPath.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); const response = yield this.request({ - path: `/projects`.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -158,8 +165,10 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -196,8 +205,11 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}/{version}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); const response = yield this.request({ - path: `/project/{project}/{version}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -231,8 +243,10 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}/versions`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}/versions`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -270,8 +284,10 @@ class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'PATCH', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/SessionApi.js b/typescript/dist/apis/SessionApi.js index 22357e6a..3c619e0f 100644 --- a/typescript/dist/apis/SessionApi.js +++ b/typescript/dist/apis/SessionApi.js @@ -36,8 +36,9 @@ class SessionApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/anonymous`; const response = yield this.request({ - path: `/anonymous`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -65,8 +66,9 @@ class SessionApi extends runtime.BaseAPI { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/login`; const response = yield this.request({ - path: `/login`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -98,8 +100,9 @@ class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/logout`; const response = yield this.request({ - path: `/logout`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -129,8 +132,9 @@ class SessionApi extends runtime.BaseAPI { queryParameters['redirectUri'] = requestParameters['redirectUri']; } const headerParameters = {}; + let urlPath = `/oidcInit`; const response = yield this.request({ - path: `/oidcInit`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -166,8 +170,9 @@ class SessionApi extends runtime.BaseAPI { } const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/oidcLogin`; const response = yield this.request({ - path: `/oidcLogin`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -197,8 +202,9 @@ class SessionApi extends runtime.BaseAPI { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/user`; const response = yield this.request({ - path: `/user`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -235,8 +241,9 @@ class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session`; const response = yield this.request({ - path: `/session`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -270,8 +277,10 @@ class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/session/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -304,8 +313,9 @@ class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session/view`; const response = yield this.request({ - path: `/session/view`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/SpatialReferencesApi.js b/typescript/dist/apis/SpatialReferencesApi.js index f37797e1..bda9636e 100644 --- a/typescript/dist/apis/SpatialReferencesApi.js +++ b/typescript/dist/apis/SpatialReferencesApi.js @@ -45,8 +45,10 @@ class SpatialReferencesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/spatialReferenceSpecification/{srsString}`; + urlPath = urlPath.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))); const response = yield this.request({ - path: `/spatialReferenceSpecification/{srsString}`.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/TasksApi.js b/typescript/dist/apis/TasksApi.js index a14a448a..623370c8 100644 --- a/typescript/dist/apis/TasksApi.js +++ b/typescript/dist/apis/TasksApi.js @@ -50,8 +50,10 @@ class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -91,8 +93,12 @@ class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/list`; + urlPath = urlPath.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); const response = yield this.request({ - path: `/tasks/list`.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -126,8 +132,10 @@ class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/{id}/status`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/UploadsApi.js b/typescript/dist/apis/UploadsApi.js index 39ac3380..66fbebda 100644 --- a/typescript/dist/apis/UploadsApi.js +++ b/typescript/dist/apis/UploadsApi.js @@ -49,8 +49,11 @@ class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/uploads/{upload_id}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); const response = yield this.request({ - path: `/uploads/{upload_id}/files/{file_name}/layers`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -84,8 +87,10 @@ class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/uploads/{upload_id}/files`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); const response = yield this.request({ - path: `/uploads/{upload_id}/files`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -139,8 +144,9 @@ class UploadsApi extends runtime.BaseAPI { formParams.append('files[]', element); }); } + let urlPath = `/upload`; const response = yield this.request({ - path: `/upload`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/UserApi.js b/typescript/dist/apis/UserApi.js index 9430628a..5f2d7ae7 100644 --- a/typescript/dist/apis/UserApi.js +++ b/typescript/dist/apis/UserApi.js @@ -47,8 +47,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles`; const response = yield this.request({ - path: `/roles`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -91,8 +92,11 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -125,8 +129,10 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/computations/{computation}`; + urlPath = urlPath.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))); const response = yield this.request({ - path: `/quota/computations/{computation}`.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -169,8 +175,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/computations`; const response = yield this.request({ - path: `/quota/computations`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -213,8 +220,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/dataUsage`; const response = yield this.request({ - path: `/quota/dataUsage`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -266,8 +274,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/dataUsage/summary`; const response = yield this.request({ - path: `/quota/dataUsage/summary`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -301,8 +310,10 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles/byName/{name}`; + urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))); const response = yield this.request({ - path: `/roles/byName/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -333,8 +344,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/user/roles/descriptions`; const response = yield this.request({ - path: `/user/roles/descriptions`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -368,8 +380,10 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); const response = yield this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -400,8 +414,9 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota`; const response = yield this.request({ - path: `/quota`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -435,8 +450,10 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles/{role}`; + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/roles/{role}`.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -472,8 +489,11 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -510,8 +530,10 @@ class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); const response = yield this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/apis/WorkflowsApi.js b/typescript/dist/apis/WorkflowsApi.js index c2c533b8..fcd564aa 100644 --- a/typescript/dist/apis/WorkflowsApi.js +++ b/typescript/dist/apis/WorkflowsApi.js @@ -50,8 +50,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/datasetFromWorkflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/datasetFromWorkflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -86,8 +88,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/allMetadata/zip`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/allMetadata/zip`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -121,8 +125,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/metadata`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/metadata`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -156,8 +162,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/provenance`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/provenance`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -191,8 +199,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -256,8 +266,10 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/rasterStream`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/rasterStream`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -291,8 +303,9 @@ class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow`; const response = yield this.request({ - path: `/workflow`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/DatasetsApi.js b/typescript/dist/esm/apis/DatasetsApi.js index 8e724f5e..4dea56f9 100644 --- a/typescript/dist/esm/apis/DatasetsApi.js +++ b/typescript/dist/esm/apis/DatasetsApi.js @@ -44,8 +44,9 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/auto`; const response = yield this.request({ - path: `/dataset/auto`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -81,8 +82,9 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset`; const response = yield this.request({ - path: `/dataset`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -117,8 +119,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -151,8 +155,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -186,8 +192,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -242,8 +250,9 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/datasets`; const response = yield this.request({ - path: `/datasets`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -280,8 +289,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/volumes/{volume_name}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); const response = yield this.request({ - path: `/dataset/volumes/{volume_name}/files/{file_name}/layers`.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -312,8 +324,9 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/volumes`; const response = yield this.request({ - path: `/dataset/volumes`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -348,8 +361,9 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/suggest`; const response = yield this.request({ - path: `/dataset/suggest`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -388,8 +402,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -426,8 +442,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/provenance`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/provenance`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -464,8 +482,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/symbology`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/symbology`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -503,8 +523,10 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); const response = yield this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/GeneralApi.js b/typescript/dist/esm/apis/GeneralApi.js index 0d4ea1c8..e128af39 100644 --- a/typescript/dist/esm/apis/GeneralApi.js +++ b/typescript/dist/esm/apis/GeneralApi.js @@ -33,8 +33,9 @@ export class GeneralApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/available`; const response = yield this.request({ - path: `/available`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -57,8 +58,9 @@ export class GeneralApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/info`; const response = yield this.request({ - path: `/info`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/LayersApi.js b/typescript/dist/esm/apis/LayersApi.js index 71545f11..3494ddaf 100644 --- a/typescript/dist/esm/apis/LayersApi.js +++ b/typescript/dist/esm/apis/LayersApi.js @@ -47,8 +47,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/collections`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/collections`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -86,8 +88,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -123,8 +128,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -161,8 +169,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -198,8 +208,9 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers`; const response = yield this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -261,8 +272,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/search/autocomplete/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/search/autocomplete/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -296,8 +310,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -330,8 +346,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -368,8 +386,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -406,8 +427,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}/dataset`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}/dataset`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -444,8 +468,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/{layer}/workflowId`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layers/{provider}/{layer}/workflowId`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -494,8 +521,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -538,8 +568,9 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers`; const response = yield this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -582,8 +613,9 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections`; const response = yield this.request({ - path: `/layers/collections`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -616,8 +648,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/{provider}/capabilities`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layers/{provider}/capabilities`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -650,8 +684,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -687,8 +723,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -721,8 +760,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -758,8 +799,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -819,8 +863,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layers/collections/search/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layers/collections/search/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -858,8 +905,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); const response = yield this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -897,8 +946,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -936,8 +987,10 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); const response = yield this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/MLApi.js b/typescript/dist/esm/apis/MLApi.js index e27fc276..b13b06e8 100644 --- a/typescript/dist/esm/apis/MLApi.js +++ b/typescript/dist/esm/apis/MLApi.js @@ -44,8 +44,9 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models`; const response = yield this.request({ - path: `/ml/models`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -80,8 +81,10 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models/{model_name}`; + urlPath = urlPath.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))); const response = yield this.request({ - path: `/ml/models/{model_name}`.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -112,8 +115,9 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/ml/models`; const response = yield this.request({ - path: `/ml/models`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/OGCWCSApi.js b/typescript/dist/esm/apis/OGCWCSApi.js index 96f29831..a8dfafc3 100644 --- a/typescript/dist/esm/apis/OGCWCSApi.js +++ b/typescript/dist/esm/apis/OGCWCSApi.js @@ -57,8 +57,10 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -121,8 +123,10 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=DescribeCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -221,8 +225,10 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wcs/{workflow}?request=GetCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wcs/{workflow}?request=GetCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/OGCWFSApi.js b/typescript/dist/esm/apis/OGCWFSApi.js index cf5b3823..af25cf07 100644 --- a/typescript/dist/esm/apis/OGCWFSApi.js +++ b/typescript/dist/esm/apis/OGCWFSApi.js @@ -52,8 +52,13 @@ export class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wfs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); const response = yield this.request({ - path: `/wfs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -146,8 +151,10 @@ export class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wfs/{workflow}?request=GetFeature`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wfs/{workflow}?request=GetFeature`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/OGCWMSApi.js b/typescript/dist/esm/apis/OGCWMSApi.js index 791951bf..0c927dd0 100644 --- a/typescript/dist/esm/apis/OGCWMSApi.js +++ b/typescript/dist/esm/apis/OGCWMSApi.js @@ -54,8 +54,14 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -106,8 +112,14 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetLegendGraphic`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -218,8 +230,10 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/wms/{workflow}?request=GetMap`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ - path: `/wms/{workflow}?request=GetMap`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/PermissionsApi.js b/typescript/dist/esm/apis/PermissionsApi.js index 0217a126..5d6dddb8 100644 --- a/typescript/dist/esm/apis/PermissionsApi.js +++ b/typescript/dist/esm/apis/PermissionsApi.js @@ -44,8 +44,9 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions`; const response = yield this.request({ - path: `/permissions`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -94,8 +95,11 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions/resources/{resource_type}/{resource_id}`; + urlPath = urlPath.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))); + urlPath = urlPath.replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))); const response = yield this.request({ - path: `/permissions/resources/{resource_type}/{resource_id}`.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))).replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -130,8 +134,9 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/permissions`; const response = yield this.request({ - path: `/permissions`, + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/PlotsApi.js b/typescript/dist/esm/apis/PlotsApi.js index 5fda9ec1..c1540806 100644 --- a/typescript/dist/esm/apis/PlotsApi.js +++ b/typescript/dist/esm/apis/PlotsApi.js @@ -65,8 +65,10 @@ export class PlotsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/plot/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/plot/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/ProjectsApi.js b/typescript/dist/esm/apis/ProjectsApi.js index 38076862..c1631b0d 100644 --- a/typescript/dist/esm/apis/ProjectsApi.js +++ b/typescript/dist/esm/apis/ProjectsApi.js @@ -44,8 +44,9 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project`; const response = yield this.request({ - path: `/project`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -80,8 +81,10 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -120,8 +123,12 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/projects`; + urlPath = urlPath.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); const response = yield this.request({ - path: `/projects`.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -155,8 +162,10 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -193,8 +202,11 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}/{version}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); const response = yield this.request({ - path: `/project/{project}/{version}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -228,8 +240,10 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}/versions`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}/versions`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -267,8 +281,10 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'PATCH', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/SessionApi.js b/typescript/dist/esm/apis/SessionApi.js index ff414131..39b2b862 100644 --- a/typescript/dist/esm/apis/SessionApi.js +++ b/typescript/dist/esm/apis/SessionApi.js @@ -33,8 +33,9 @@ export class SessionApi extends runtime.BaseAPI { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; + let urlPath = `/anonymous`; const response = yield this.request({ - path: `/anonymous`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -62,8 +63,9 @@ export class SessionApi extends runtime.BaseAPI { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/login`; const response = yield this.request({ - path: `/login`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -95,8 +97,9 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/logout`; const response = yield this.request({ - path: `/logout`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -126,8 +129,9 @@ export class SessionApi extends runtime.BaseAPI { queryParameters['redirectUri'] = requestParameters['redirectUri']; } const headerParameters = {}; + let urlPath = `/oidcInit`; const response = yield this.request({ - path: `/oidcInit`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -163,8 +167,9 @@ export class SessionApi extends runtime.BaseAPI { } const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/oidcLogin`; const response = yield this.request({ - path: `/oidcLogin`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -194,8 +199,9 @@ export class SessionApi extends runtime.BaseAPI { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; + let urlPath = `/user`; const response = yield this.request({ - path: `/user`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -232,8 +238,9 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session`; const response = yield this.request({ - path: `/session`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -267,8 +274,10 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); const response = yield this.request({ - path: `/session/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -301,8 +310,9 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/session/view`; const response = yield this.request({ - path: `/session/view`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/SpatialReferencesApi.js b/typescript/dist/esm/apis/SpatialReferencesApi.js index e43f07de..f73a583f 100644 --- a/typescript/dist/esm/apis/SpatialReferencesApi.js +++ b/typescript/dist/esm/apis/SpatialReferencesApi.js @@ -42,8 +42,10 @@ export class SpatialReferencesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/spatialReferenceSpecification/{srsString}`; + urlPath = urlPath.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))); const response = yield this.request({ - path: `/spatialReferenceSpecification/{srsString}`.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/TasksApi.js b/typescript/dist/esm/apis/TasksApi.js index 4833808a..47d9116e 100644 --- a/typescript/dist/esm/apis/TasksApi.js +++ b/typescript/dist/esm/apis/TasksApi.js @@ -47,8 +47,10 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -88,8 +90,12 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/list`; + urlPath = urlPath.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); const response = yield this.request({ - path: `/tasks/list`.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -123,8 +129,10 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/tasks/{id}/status`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/UploadsApi.js b/typescript/dist/esm/apis/UploadsApi.js index 1eb8e0d2..8fa99376 100644 --- a/typescript/dist/esm/apis/UploadsApi.js +++ b/typescript/dist/esm/apis/UploadsApi.js @@ -46,8 +46,11 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/uploads/{upload_id}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); const response = yield this.request({ - path: `/uploads/{upload_id}/files/{file_name}/layers`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -81,8 +84,10 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/uploads/{upload_id}/files`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); const response = yield this.request({ - path: `/uploads/{upload_id}/files`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -136,8 +141,9 @@ export class UploadsApi extends runtime.BaseAPI { formParams.append('files[]', element); }); } + let urlPath = `/upload`; const response = yield this.request({ - path: `/upload`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/UserApi.js b/typescript/dist/esm/apis/UserApi.js index e567c3c1..c1c9d705 100644 --- a/typescript/dist/esm/apis/UserApi.js +++ b/typescript/dist/esm/apis/UserApi.js @@ -44,8 +44,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles`; const response = yield this.request({ - path: `/roles`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -88,8 +89,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -122,8 +126,10 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/computations/{computation}`; + urlPath = urlPath.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))); const response = yield this.request({ - path: `/quota/computations/{computation}`.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -166,8 +172,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/computations`; const response = yield this.request({ - path: `/quota/computations`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -210,8 +217,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/dataUsage`; const response = yield this.request({ - path: `/quota/dataUsage`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -263,8 +271,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota/dataUsage/summary`; const response = yield this.request({ - path: `/quota/dataUsage/summary`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -298,8 +307,10 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles/byName/{name}`; + urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))); const response = yield this.request({ - path: `/roles/byName/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -330,8 +341,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/user/roles/descriptions`; const response = yield this.request({ - path: `/user/roles/descriptions`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -365,8 +377,10 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); const response = yield this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -397,8 +411,9 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quota`; const response = yield this.request({ - path: `/quota`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -432,8 +447,10 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/roles/{role}`; + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/roles/{role}`.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -469,8 +486,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); const response = yield this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -507,8 +527,10 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); const response = yield this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/apis/WorkflowsApi.js b/typescript/dist/esm/apis/WorkflowsApi.js index c53025f6..ac9cc9c5 100644 --- a/typescript/dist/esm/apis/WorkflowsApi.js +++ b/typescript/dist/esm/apis/WorkflowsApi.js @@ -47,8 +47,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/datasetFromWorkflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/datasetFromWorkflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -83,8 +85,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/allMetadata/zip`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/allMetadata/zip`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -118,8 +122,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/metadata`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/metadata`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -153,8 +159,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/provenance`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/provenance`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -188,8 +196,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -253,8 +263,10 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow/{id}/rasterStream`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); const response = yield this.request({ - path: `/workflow/{id}/rasterStream`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -288,8 +300,9 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + let urlPath = `/workflow`; const response = yield this.request({ - path: `/workflow`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/dist/esm/models/CollectionItem.js b/typescript/dist/esm/models/CollectionItem.js index 12e10e8e..47d28f12 100644 --- a/typescript/dist/esm/models/CollectionItem.js +++ b/typescript/dist/esm/models/CollectionItem.js @@ -26,7 +26,7 @@ export function CollectionItemFromJSONTyped(json, ignoreDiscriminator) { case 'layer': return Object.assign({}, LayerListingFromJSONTyped(json, true), { type: 'layer' }); default: - throw new Error(`No variant of CollectionItem exists with 'type=${json['type']}'`); + return json; } } export function CollectionItemToJSON(json) { @@ -42,6 +42,6 @@ export function CollectionItemToJSONTyped(value, ignoreDiscriminator = false) { case 'layer': return Object.assign({}, LayerListingToJSON(value), { type: 'layer' }); default: - throw new Error(`No variant of CollectionItem exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/ColorParam.js b/typescript/dist/esm/models/ColorParam.js index 2258ce02..f7e3f818 100644 --- a/typescript/dist/esm/models/ColorParam.js +++ b/typescript/dist/esm/models/ColorParam.js @@ -26,7 +26,7 @@ export function ColorParamFromJSONTyped(json, ignoreDiscriminator) { case 'static': return Object.assign({}, StaticColorFromJSONTyped(json, true), { type: 'static' }); default: - throw new Error(`No variant of ColorParam exists with 'type=${json['type']}'`); + return json; } } export function ColorParamToJSON(json) { @@ -42,6 +42,6 @@ export function ColorParamToJSONTyped(value, ignoreDiscriminator = false) { case 'static': return Object.assign({}, StaticColorToJSON(value), { type: 'static' }); default: - throw new Error(`No variant of ColorParam exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/Colorizer.js b/typescript/dist/esm/models/Colorizer.js index 293fb745..72cd0c20 100644 --- a/typescript/dist/esm/models/Colorizer.js +++ b/typescript/dist/esm/models/Colorizer.js @@ -29,7 +29,7 @@ export function ColorizerFromJSONTyped(json, ignoreDiscriminator) { case 'palette': return Object.assign({}, PaletteColorizerFromJSONTyped(json, true), { type: 'palette' }); default: - throw new Error(`No variant of Colorizer exists with 'type=${json['type']}'`); + return json; } } export function ColorizerToJSON(json) { @@ -47,6 +47,6 @@ export function ColorizerToJSONTyped(value, ignoreDiscriminator = false) { case 'palette': return Object.assign({}, PaletteColorizerToJSON(value), { type: 'palette' }); default: - throw new Error(`No variant of Colorizer exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/ComputationQuota.js b/typescript/dist/esm/models/ComputationQuota.js index 4829e2bd..f26d596a 100644 --- a/typescript/dist/esm/models/ComputationQuota.js +++ b/typescript/dist/esm/models/ComputationQuota.js @@ -49,7 +49,7 @@ export function ComputationQuotaToJSONTyped(value, ignoreDiscriminator = false) return { 'computationId': value['computationId'], 'count': value['count'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'workflowId': value['workflowId'], }; } diff --git a/typescript/dist/esm/models/DataId.js b/typescript/dist/esm/models/DataId.js index 5e85fc23..fd9776b7 100644 --- a/typescript/dist/esm/models/DataId.js +++ b/typescript/dist/esm/models/DataId.js @@ -26,7 +26,7 @@ export function DataIdFromJSONTyped(json, ignoreDiscriminator) { case 'internal': return Object.assign({}, InternalDataIdFromJSONTyped(json, true), { type: 'internal' }); default: - throw new Error(`No variant of DataId exists with 'type=${json['type']}'`); + return json; } } export function DataIdToJSON(json) { @@ -42,6 +42,6 @@ export function DataIdToJSONTyped(value, ignoreDiscriminator = false) { case 'internal': return Object.assign({}, InternalDataIdToJSON(value), { type: 'internal' }); default: - throw new Error(`No variant of DataId exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/DataPath.js b/typescript/dist/esm/models/DataPath.js index 0f25ff29..5762879b 100644 --- a/typescript/dist/esm/models/DataPath.js +++ b/typescript/dist/esm/models/DataPath.js @@ -20,6 +20,9 @@ export function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfDataPathOneOf(json)) { return DataPathOneOfFromJSONTyped(json, true); } @@ -35,6 +38,9 @@ export function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if (instanceOfDataPathOneOf(value)) { return DataPathOneOfToJSON(value); } diff --git a/typescript/dist/esm/models/DataUsage.js b/typescript/dist/esm/models/DataUsage.js index f1ff1fb9..208731c2 100644 --- a/typescript/dist/esm/models/DataUsage.js +++ b/typescript/dist/esm/models/DataUsage.js @@ -53,7 +53,7 @@ export function DataUsageToJSONTyped(value, ignoreDiscriminator = false) { 'computationId': value['computationId'], 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'userId': value['userId'], }; } diff --git a/typescript/dist/esm/models/DataUsageSummary.js b/typescript/dist/esm/models/DataUsageSummary.js index 532cf93c..ca2a6142 100644 --- a/typescript/dist/esm/models/DataUsageSummary.js +++ b/typescript/dist/esm/models/DataUsageSummary.js @@ -46,6 +46,6 @@ export function DataUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) return { 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), }; } diff --git a/typescript/dist/esm/models/FormatSpecifics.d.ts b/typescript/dist/esm/models/FormatSpecifics.d.ts index 02aedb0e..4796f32b 100644 --- a/typescript/dist/esm/models/FormatSpecifics.d.ts +++ b/typescript/dist/esm/models/FormatSpecifics.d.ts @@ -9,14 +9,25 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { FormatSpecificsOneOf } from './FormatSpecificsOneOf'; +import type { FormatSpecificsCsv } from './FormatSpecificsCsv'; /** - * @type FormatSpecifics * * @export + * @interface FormatSpecifics */ -export type FormatSpecifics = FormatSpecificsOneOf; +export interface FormatSpecifics { + /** + * + * @type {FormatSpecificsCsv} + * @memberof FormatSpecifics + */ + csv: FormatSpecificsCsv; +} +/** + * Check if a given object implements the FormatSpecifics interface. + */ +export declare function instanceOfFormatSpecifics(value: object): value is FormatSpecifics; export declare function FormatSpecificsFromJSON(json: any): FormatSpecifics; export declare function FormatSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecifics; -export declare function FormatSpecificsToJSON(json: any): any; +export declare function FormatSpecificsToJSON(json: any): FormatSpecifics; export declare function FormatSpecificsToJSONTyped(value?: FormatSpecifics | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/FormatSpecifics.js b/typescript/dist/esm/models/FormatSpecifics.js index 6b3efe52..0d1bc0cf 100644 --- a/typescript/dist/esm/models/FormatSpecifics.js +++ b/typescript/dist/esm/models/FormatSpecifics.js @@ -11,7 +11,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfFormatSpecificsOneOf, FormatSpecificsOneOfFromJSONTyped, FormatSpecificsOneOfToJSON, } from './FormatSpecificsOneOf'; +import { FormatSpecificsCsvFromJSON, FormatSpecificsCsvToJSON, } from './FormatSpecificsCsv'; +/** + * Check if a given object implements the FormatSpecifics interface. + */ +export function instanceOfFormatSpecifics(value) { + if (!('csv' in value) || value['csv'] === undefined) + return false; + return true; +} export function FormatSpecificsFromJSON(json) { return FormatSpecificsFromJSONTyped(json, false); } @@ -19,10 +27,9 @@ export function FormatSpecificsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } - if (instanceOfFormatSpecificsOneOf(json)) { - return FormatSpecificsOneOfFromJSONTyped(json, true); - } - return {}; + return { + 'csv': FormatSpecificsCsvFromJSON(json['csv']), + }; } export function FormatSpecificsToJSON(json) { return FormatSpecificsToJSONTyped(json, false); @@ -31,8 +38,7 @@ export function FormatSpecificsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } - if (instanceOfFormatSpecificsOneOf(value)) { - return FormatSpecificsOneOfToJSON(value); - } - return {}; + return { + 'csv': FormatSpecificsCsvToJSON(value['csv']), + }; } diff --git a/typescript/dist/esm/models/FormatSpecificsCsv.d.ts b/typescript/dist/esm/models/FormatSpecificsCsv.d.ts new file mode 100644 index 00000000..16b6f36e --- /dev/null +++ b/typescript/dist/esm/models/FormatSpecificsCsv.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CsvHeader } from './CsvHeader'; +/** + * + * @export + * @interface FormatSpecificsCsv + */ +export interface FormatSpecificsCsv { + /** + * + * @type {CsvHeader} + * @memberof FormatSpecificsCsv + */ + header: CsvHeader; +} +/** + * Check if a given object implements the FormatSpecificsCsv interface. + */ +export declare function instanceOfFormatSpecificsCsv(value: object): value is FormatSpecificsCsv; +export declare function FormatSpecificsCsvFromJSON(json: any): FormatSpecificsCsv; +export declare function FormatSpecificsCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsCsv; +export declare function FormatSpecificsCsvToJSON(json: any): FormatSpecificsCsv; +export declare function FormatSpecificsCsvToJSONTyped(value?: FormatSpecificsCsv | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/FormatSpecificsOneOfCsv.js b/typescript/dist/esm/models/FormatSpecificsCsv.js similarity index 61% rename from typescript/dist/esm/models/FormatSpecificsOneOfCsv.js rename to typescript/dist/esm/models/FormatSpecificsCsv.js index 18b1f025..332c5869 100644 --- a/typescript/dist/esm/models/FormatSpecificsOneOfCsv.js +++ b/typescript/dist/esm/models/FormatSpecificsCsv.js @@ -13,17 +13,17 @@ */ import { CsvHeaderFromJSON, CsvHeaderToJSON, } from './CsvHeader'; /** - * Check if a given object implements the FormatSpecificsOneOfCsv interface. + * Check if a given object implements the FormatSpecificsCsv interface. */ -export function instanceOfFormatSpecificsOneOfCsv(value) { +export function instanceOfFormatSpecificsCsv(value) { if (!('header' in value) || value['header'] === undefined) return false; return true; } -export function FormatSpecificsOneOfCsvFromJSON(json) { - return FormatSpecificsOneOfCsvFromJSONTyped(json, false); +export function FormatSpecificsCsvFromJSON(json) { + return FormatSpecificsCsvFromJSONTyped(json, false); } -export function FormatSpecificsOneOfCsvFromJSONTyped(json, ignoreDiscriminator) { +export function FormatSpecificsCsvFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function FormatSpecificsOneOfCsvFromJSONTyped(json, ignoreDiscriminator) 'header': CsvHeaderFromJSON(json['header']), }; } -export function FormatSpecificsOneOfCsvToJSON(json) { - return FormatSpecificsOneOfCsvToJSONTyped(json, false); +export function FormatSpecificsCsvToJSON(json) { + return FormatSpecificsCsvToJSONTyped(json, false); } -export function FormatSpecificsOneOfCsvToJSONTyped(value, ignoreDiscriminator = false) { +export function FormatSpecificsCsvToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/FormatSpecificsOneOf.d.ts b/typescript/dist/esm/models/FormatSpecificsOneOf.d.ts deleted file mode 100644 index 3875ba2f..00000000 --- a/typescript/dist/esm/models/FormatSpecificsOneOf.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { FormatSpecificsOneOfCsv } from './FormatSpecificsOneOfCsv'; -/** - * - * @export - * @interface FormatSpecificsOneOf - */ -export interface FormatSpecificsOneOf { - /** - * - * @type {FormatSpecificsOneOfCsv} - * @memberof FormatSpecificsOneOf - */ - csv: FormatSpecificsOneOfCsv; -} -/** - * Check if a given object implements the FormatSpecificsOneOf interface. - */ -export declare function instanceOfFormatSpecificsOneOf(value: object): value is FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfFromJSON(json: any): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfToJSON(json: any): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfToJSONTyped(value?: FormatSpecificsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/FormatSpecificsOneOf.js b/typescript/dist/esm/models/FormatSpecificsOneOf.js deleted file mode 100644 index 4e94c6ea..00000000 --- a/typescript/dist/esm/models/FormatSpecificsOneOf.js +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { FormatSpecificsOneOfCsvFromJSON, FormatSpecificsOneOfCsvToJSON, } from './FormatSpecificsOneOfCsv'; -/** - * Check if a given object implements the FormatSpecificsOneOf interface. - */ -export function instanceOfFormatSpecificsOneOf(value) { - if (!('csv' in value) || value['csv'] === undefined) - return false; - return true; -} -export function FormatSpecificsOneOfFromJSON(json) { - return FormatSpecificsOneOfFromJSONTyped(json, false); -} -export function FormatSpecificsOneOfFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'csv': FormatSpecificsOneOfCsvFromJSON(json['csv']), - }; -} -export function FormatSpecificsOneOfToJSON(json) { - return FormatSpecificsOneOfToJSONTyped(json, false); -} -export function FormatSpecificsOneOfToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'csv': FormatSpecificsOneOfCsvToJSON(value['csv']), - }; -} diff --git a/typescript/dist/esm/models/FormatSpecificsOneOfCsv.d.ts b/typescript/dist/esm/models/FormatSpecificsOneOfCsv.d.ts deleted file mode 100644 index b9b304aa..00000000 --- a/typescript/dist/esm/models/FormatSpecificsOneOfCsv.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { CsvHeader } from './CsvHeader'; -/** - * - * @export - * @interface FormatSpecificsOneOfCsv - */ -export interface FormatSpecificsOneOfCsv { - /** - * - * @type {CsvHeader} - * @memberof FormatSpecificsOneOfCsv - */ - header: CsvHeader; -} -/** - * Check if a given object implements the FormatSpecificsOneOfCsv interface. - */ -export declare function instanceOfFormatSpecificsOneOfCsv(value: object): value is FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvFromJSON(json: any): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvToJSON(json: any): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvToJSONTyped(value?: FormatSpecificsOneOfCsv | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Measurement.js b/typescript/dist/esm/models/Measurement.js index 22294691..9f085d32 100644 --- a/typescript/dist/esm/models/Measurement.js +++ b/typescript/dist/esm/models/Measurement.js @@ -29,7 +29,7 @@ export function MeasurementFromJSONTyped(json, ignoreDiscriminator) { case 'unitless': return Object.assign({}, UnitlessMeasurementFromJSONTyped(json, true), { type: 'unitless' }); default: - throw new Error(`No variant of Measurement exists with 'type=${json['type']}'`); + return json; } } export function MeasurementToJSON(json) { @@ -47,6 +47,6 @@ export function MeasurementToJSONTyped(value, ignoreDiscriminator = false) { case 'unitless': return Object.assign({}, UnitlessMeasurementToJSON(value), { type: 'unitless' }); default: - throw new Error(`No variant of Measurement exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/MetaDataDefinition.js b/typescript/dist/esm/models/MetaDataDefinition.js index 291cbc25..1c7ed0e2 100644 --- a/typescript/dist/esm/models/MetaDataDefinition.js +++ b/typescript/dist/esm/models/MetaDataDefinition.js @@ -38,7 +38,7 @@ export function MetaDataDefinitionFromJSONTyped(json, ignoreDiscriminator) { case 'OgrMetaData': return Object.assign({}, OgrMetaDataFromJSONTyped(json, true), { type: 'OgrMetaData' }); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${json['type']}'`); + return json; } } export function MetaDataDefinitionToJSON(json) { @@ -62,6 +62,6 @@ export function MetaDataDefinitionToJSONTyped(value, ignoreDiscriminator = false case 'OgrMetaData': return Object.assign({}, OgrMetaDataToJSON(value), { type: 'OgrMetaData' }); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/NumberParam.js b/typescript/dist/esm/models/NumberParam.js index 794392a5..ca20893b 100644 --- a/typescript/dist/esm/models/NumberParam.js +++ b/typescript/dist/esm/models/NumberParam.js @@ -26,7 +26,7 @@ export function NumberParamFromJSONTyped(json, ignoreDiscriminator) { case 'static': return Object.assign({}, StaticNumberFromJSONTyped(json, true), { type: 'static' }); default: - throw new Error(`No variant of NumberParam exists with 'type=${json['type']}'`); + return json; } } export function NumberParamToJSON(json) { @@ -42,6 +42,6 @@ export function NumberParamToJSONTyped(value, ignoreDiscriminator = false) { case 'static': return Object.assign({}, StaticNumberToJSON(value), { type: 'static' }); default: - throw new Error(`No variant of NumberParam exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/OgrSourceDatasetTimeType.js b/typescript/dist/esm/models/OgrSourceDatasetTimeType.js index a82dd34d..c395ba62 100644 --- a/typescript/dist/esm/models/OgrSourceDatasetTimeType.js +++ b/typescript/dist/esm/models/OgrSourceDatasetTimeType.js @@ -32,7 +32,7 @@ export function OgrSourceDatasetTimeTypeFromJSONTyped(json, ignoreDiscriminator) case 'start+end': return Object.assign({}, OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true), { type: 'start+end' }); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`); + return json; } } export function OgrSourceDatasetTimeTypeToJSON(json) { @@ -52,6 +52,6 @@ export function OgrSourceDatasetTimeTypeToJSONTyped(value, ignoreDiscriminator = case 'start+end': return Object.assign({}, OgrSourceDatasetTimeTypeStartEndToJSON(value), { type: 'start+end' }); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/OgrSourceDurationSpec.js b/typescript/dist/esm/models/OgrSourceDurationSpec.js index abf9472d..b2fe17e2 100644 --- a/typescript/dist/esm/models/OgrSourceDurationSpec.js +++ b/typescript/dist/esm/models/OgrSourceDurationSpec.js @@ -29,7 +29,7 @@ export function OgrSourceDurationSpecFromJSONTyped(json, ignoreDiscriminator) { case 'zero': return Object.assign({}, OgrSourceDurationSpecZeroFromJSONTyped(json, true), { type: 'zero' }); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${json['type']}'`); + return json; } } export function OgrSourceDurationSpecToJSON(json) { @@ -47,6 +47,6 @@ export function OgrSourceDurationSpecToJSONTyped(value, ignoreDiscriminator = fa case 'zero': return Object.assign({}, OgrSourceDurationSpecZeroToJSON(value), { type: 'zero' }); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/OgrSourceTimeFormat.js b/typescript/dist/esm/models/OgrSourceTimeFormat.js index d01b02ca..0913f9d2 100644 --- a/typescript/dist/esm/models/OgrSourceTimeFormat.js +++ b/typescript/dist/esm/models/OgrSourceTimeFormat.js @@ -29,7 +29,7 @@ export function OgrSourceTimeFormatFromJSONTyped(json, ignoreDiscriminator) { case 'unixTimeStamp': return Object.assign({}, OgrSourceTimeFormatUnixTimeStampFromJSONTyped(json, true), { format: 'unixTimeStamp' }); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${json['format']}'`); + return json; } } export function OgrSourceTimeFormatToJSON(json) { @@ -47,6 +47,6 @@ export function OgrSourceTimeFormatToJSONTyped(value, ignoreDiscriminator = fals case 'unixTimeStamp': return Object.assign({}, OgrSourceTimeFormatUnixTimeStampToJSON(value), { format: 'unixTimeStamp' }); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${value['format']}'`); + return value; } } diff --git a/typescript/dist/esm/models/ProjectListing.js b/typescript/dist/esm/models/ProjectListing.js index 33961eed..2ac537ca 100644 --- a/typescript/dist/esm/models/ProjectListing.js +++ b/typescript/dist/esm/models/ProjectListing.js @@ -53,7 +53,7 @@ export function ProjectListingToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'description': value['description'], 'id': value['id'], 'layerNames': value['layerNames'], diff --git a/typescript/dist/esm/models/ProjectVersion.js b/typescript/dist/esm/models/ProjectVersion.js index b4746582..b3d050c3 100644 --- a/typescript/dist/esm/models/ProjectVersion.js +++ b/typescript/dist/esm/models/ProjectVersion.js @@ -41,7 +41,7 @@ export function ProjectVersionToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'id': value['id'], }; } diff --git a/typescript/dist/esm/models/RasterColorizer.js b/typescript/dist/esm/models/RasterColorizer.js index 92c93334..d2027a6c 100644 --- a/typescript/dist/esm/models/RasterColorizer.js +++ b/typescript/dist/esm/models/RasterColorizer.js @@ -26,7 +26,7 @@ export function RasterColorizerFromJSONTyped(json, ignoreDiscriminator) { case 'singleBand': return Object.assign({}, SingleBandRasterColorizerFromJSONTyped(json, true), { type: 'singleBand' }); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${json['type']}'`); + return json; } } export function RasterColorizerToJSON(json) { @@ -42,6 +42,6 @@ export function RasterColorizerToJSONTyped(value, ignoreDiscriminator = false) { case 'singleBand': return Object.assign({}, SingleBandRasterColorizerToJSON(value), { type: 'singleBand' }); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/Resource.js b/typescript/dist/esm/models/Resource.js index e80d8501..3298d0f9 100644 --- a/typescript/dist/esm/models/Resource.js +++ b/typescript/dist/esm/models/Resource.js @@ -38,7 +38,7 @@ export function ResourceFromJSONTyped(json, ignoreDiscriminator) { case 'provider': return Object.assign({}, DataProviderResourceFromJSONTyped(json, true), { type: 'provider' }); default: - throw new Error(`No variant of Resource exists with 'type=${json['type']}'`); + return json; } } export function ResourceToJSON(json) { @@ -62,6 +62,6 @@ export function ResourceToJSONTyped(value, ignoreDiscriminator = false) { case 'provider': return Object.assign({}, DataProviderResourceToJSON(value), { type: 'provider' }); default: - throw new Error(`No variant of Resource exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/Symbology.js b/typescript/dist/esm/models/Symbology.js index b18a2e65..22e5a696 100644 --- a/typescript/dist/esm/models/Symbology.js +++ b/typescript/dist/esm/models/Symbology.js @@ -32,7 +32,7 @@ export function SymbologyFromJSONTyped(json, ignoreDiscriminator) { case 'raster': return Object.assign({}, RasterSymbologyFromJSONTyped(json, true), { type: 'raster' }); default: - throw new Error(`No variant of Symbology exists with 'type=${json['type']}'`); + return json; } } export function SymbologyToJSON(json) { @@ -52,6 +52,6 @@ export function SymbologyToJSONTyped(value, ignoreDiscriminator = false) { case 'raster': return Object.assign({}, RasterSymbologyToJSON(value), { type: 'raster' }); default: - throw new Error(`No variant of Symbology exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/TaskStatus.js b/typescript/dist/esm/models/TaskStatus.js index 41b28254..c156f414 100644 --- a/typescript/dist/esm/models/TaskStatus.js +++ b/typescript/dist/esm/models/TaskStatus.js @@ -32,7 +32,7 @@ export function TaskStatusFromJSONTyped(json, ignoreDiscriminator) { case 'running': return Object.assign({}, TaskStatusRunningFromJSONTyped(json, true), { status: 'running' }); default: - throw new Error(`No variant of TaskStatus exists with 'status=${json['status']}'`); + return json; } } export function TaskStatusToJSON(json) { @@ -52,6 +52,6 @@ export function TaskStatusToJSONTyped(value, ignoreDiscriminator = false) { case 'running': return Object.assign({}, TaskStatusRunningToJSON(value), { status: 'running' }); default: - throw new Error(`No variant of TaskStatus exists with 'status=${value['status']}'`); + return value; } } diff --git a/typescript/dist/esm/models/TypedDataProviderDefinition.js b/typescript/dist/esm/models/TypedDataProviderDefinition.js index 0ed62da3..a5cb063e 100644 --- a/typescript/dist/esm/models/TypedDataProviderDefinition.js +++ b/typescript/dist/esm/models/TypedDataProviderDefinition.js @@ -56,7 +56,7 @@ export function TypedDataProviderDefinitionFromJSONTyped(json, ignoreDiscriminat case 'WildLIVE!': return Object.assign({}, WildliveDataConnectorDefinitionFromJSONTyped(json, true), { type: 'WildLIVE!' }); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${json['type']}'`); + return json; } } export function TypedDataProviderDefinitionToJSON(json) { @@ -92,6 +92,6 @@ export function TypedDataProviderDefinitionToJSONTyped(value, ignoreDiscriminato case 'WildLIVE!': return Object.assign({}, WildliveDataConnectorDefinitionToJSON(value), { type: 'WildLIVE!' }); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/TypedGeometry.js b/typescript/dist/esm/models/TypedGeometry.js index 266a65c7..35358091 100644 --- a/typescript/dist/esm/models/TypedGeometry.js +++ b/typescript/dist/esm/models/TypedGeometry.js @@ -22,6 +22,9 @@ export function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfTypedGeometryOneOf(json)) { return TypedGeometryOneOfFromJSONTyped(json, true); } @@ -43,6 +46,9 @@ export function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if (instanceOfTypedGeometryOneOf(value)) { return TypedGeometryOneOfToJSON(value); } diff --git a/typescript/dist/esm/models/TypedResultDescriptor.js b/typescript/dist/esm/models/TypedResultDescriptor.js index 022a94c8..88ba33e8 100644 --- a/typescript/dist/esm/models/TypedResultDescriptor.js +++ b/typescript/dist/esm/models/TypedResultDescriptor.js @@ -29,7 +29,7 @@ export function TypedResultDescriptorFromJSONTyped(json, ignoreDiscriminator) { case 'vector': return Object.assign({}, TypedVectorResultDescriptorFromJSONTyped(json, true), { type: 'vector' }); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${json['type']}'`); + return json; } } export function TypedResultDescriptorToJSON(json) { @@ -47,6 +47,6 @@ export function TypedResultDescriptorToJSONTyped(value, ignoreDiscriminator = fa case 'vector': return Object.assign({}, TypedVectorResultDescriptorToJSON(value), { type: 'vector' }); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/esm/models/UserSession.js b/typescript/dist/esm/models/UserSession.js index faa1deed..36377e7e 100644 --- a/typescript/dist/esm/models/UserSession.js +++ b/typescript/dist/esm/models/UserSession.js @@ -54,12 +54,12 @@ export function UserSessionToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'created': ((value['created']).toISOString()), + 'created': value['created'].toISOString(), 'id': value['id'], 'project': value['project'], 'roles': value['roles'], 'user': UserInfoToJSON(value['user']), - 'validUntil': ((value['validUntil']).toISOString()), + 'validUntil': value['validUntil'].toISOString(), 'view': STRectangleToJSON(value['view']), }; } diff --git a/typescript/dist/esm/models/VecUpdate.js b/typescript/dist/esm/models/VecUpdate.js index a30ebe1b..aca45ff2 100644 --- a/typescript/dist/esm/models/VecUpdate.js +++ b/typescript/dist/esm/models/VecUpdate.js @@ -20,6 +20,9 @@ export function VecUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfPlot(json)) { return PlotFromJSONTyped(json, true); } @@ -35,6 +38,9 @@ export function VecUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if (typeof value === 'object' && instanceOfPlot(value)) { return PlotToJSON(value); } diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index 75b183db..f5baa31f 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -47,8 +47,7 @@ export * from './ExternalDataId'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; export * from './FormatSpecifics'; -export * from './FormatSpecificsOneOf'; -export * from './FormatSpecificsOneOfCsv'; +export * from './FormatSpecificsCsv'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetGeoTransform'; export * from './GdalDatasetParameters'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index f18cf8c2..1ca49a0c 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -49,8 +49,7 @@ export * from './ExternalDataId'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; export * from './FormatSpecifics'; -export * from './FormatSpecificsOneOf'; -export * from './FormatSpecificsOneOfCsv'; +export * from './FormatSpecificsCsv'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetGeoTransform'; export * from './GdalDatasetParameters'; diff --git a/typescript/dist/esm/runtime.d.ts b/typescript/dist/esm/runtime.d.ts index 2c52ed3d..ba04f4da 100644 --- a/typescript/dist/esm/runtime.d.ts +++ b/typescript/dist/esm/runtime.d.ts @@ -124,7 +124,9 @@ export interface RequestOpts { } export declare function querystring(params: HTTPQuery, prefix?: string): string; export declare function exists(json: any, key: string): boolean; -export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function mapValues(data: any, fn: (item: any) => any): { + [key: string]: any; +}; export declare function canConsumeForm(consumes: Consume[]): boolean; export interface Consume { contentType: string; diff --git a/typescript/dist/esm/runtime.js b/typescript/dist/esm/runtime.js index 1fa177b5..73206ed8 100644 --- a/typescript/dist/esm/runtime.js +++ b/typescript/dist/esm/runtime.js @@ -69,7 +69,7 @@ export class Configuration { } export const DefaultConfig = new Configuration({ headers: { - 'User-Agent': 'geoengine/openapi-client/typescript/0.0.27' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.28' } }); /** @@ -279,7 +279,11 @@ export function exists(json, key) { return value !== null && value !== undefined; } export function mapValues(data, fn) { - return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); + const result = {}; + for (const key of Object.keys(data)) { + result[key] = fn(data[key]); + } + return result; } export function canConsumeForm(consumes) { for (const consume of consumes) { diff --git a/typescript/dist/models/CollectionItem.js b/typescript/dist/models/CollectionItem.js index fdd91b08..39c778ee 100644 --- a/typescript/dist/models/CollectionItem.js +++ b/typescript/dist/models/CollectionItem.js @@ -32,7 +32,7 @@ function CollectionItemFromJSONTyped(json, ignoreDiscriminator) { case 'layer': return Object.assign({}, (0, LayerListing_1.LayerListingFromJSONTyped)(json, true), { type: 'layer' }); default: - throw new Error(`No variant of CollectionItem exists with 'type=${json['type']}'`); + return json; } } function CollectionItemToJSON(json) { @@ -48,6 +48,6 @@ function CollectionItemToJSONTyped(value, ignoreDiscriminator = false) { case 'layer': return Object.assign({}, (0, LayerListing_1.LayerListingToJSON)(value), { type: 'layer' }); default: - throw new Error(`No variant of CollectionItem exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/ColorParam.js b/typescript/dist/models/ColorParam.js index ce4fdb27..0617cfae 100644 --- a/typescript/dist/models/ColorParam.js +++ b/typescript/dist/models/ColorParam.js @@ -32,7 +32,7 @@ function ColorParamFromJSONTyped(json, ignoreDiscriminator) { case 'static': return Object.assign({}, (0, StaticColor_1.StaticColorFromJSONTyped)(json, true), { type: 'static' }); default: - throw new Error(`No variant of ColorParam exists with 'type=${json['type']}'`); + return json; } } function ColorParamToJSON(json) { @@ -48,6 +48,6 @@ function ColorParamToJSONTyped(value, ignoreDiscriminator = false) { case 'static': return Object.assign({}, (0, StaticColor_1.StaticColorToJSON)(value), { type: 'static' }); default: - throw new Error(`No variant of ColorParam exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/Colorizer.js b/typescript/dist/models/Colorizer.js index 87b8830e..77ab1fa9 100644 --- a/typescript/dist/models/Colorizer.js +++ b/typescript/dist/models/Colorizer.js @@ -35,7 +35,7 @@ function ColorizerFromJSONTyped(json, ignoreDiscriminator) { case 'palette': return Object.assign({}, (0, PaletteColorizer_1.PaletteColorizerFromJSONTyped)(json, true), { type: 'palette' }); default: - throw new Error(`No variant of Colorizer exists with 'type=${json['type']}'`); + return json; } } function ColorizerToJSON(json) { @@ -53,6 +53,6 @@ function ColorizerToJSONTyped(value, ignoreDiscriminator = false) { case 'palette': return Object.assign({}, (0, PaletteColorizer_1.PaletteColorizerToJSON)(value), { type: 'palette' }); default: - throw new Error(`No variant of Colorizer exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/ComputationQuota.js b/typescript/dist/models/ComputationQuota.js index 6746c4b2..4a91fbe4 100644 --- a/typescript/dist/models/ComputationQuota.js +++ b/typescript/dist/models/ComputationQuota.js @@ -56,7 +56,7 @@ function ComputationQuotaToJSONTyped(value, ignoreDiscriminator = false) { return { 'computationId': value['computationId'], 'count': value['count'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'workflowId': value['workflowId'], }; } diff --git a/typescript/dist/models/DataId.js b/typescript/dist/models/DataId.js index 70ec67b4..634b60f8 100644 --- a/typescript/dist/models/DataId.js +++ b/typescript/dist/models/DataId.js @@ -32,7 +32,7 @@ function DataIdFromJSONTyped(json, ignoreDiscriminator) { case 'internal': return Object.assign({}, (0, InternalDataId_1.InternalDataIdFromJSONTyped)(json, true), { type: 'internal' }); default: - throw new Error(`No variant of DataId exists with 'type=${json['type']}'`); + return json; } } function DataIdToJSON(json) { @@ -48,6 +48,6 @@ function DataIdToJSONTyped(value, ignoreDiscriminator = false) { case 'internal': return Object.assign({}, (0, InternalDataId_1.InternalDataIdToJSON)(value), { type: 'internal' }); default: - throw new Error(`No variant of DataId exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/DataPath.js b/typescript/dist/models/DataPath.js index 45fe8f54..60abe367 100644 --- a/typescript/dist/models/DataPath.js +++ b/typescript/dist/models/DataPath.js @@ -26,6 +26,9 @@ function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if ((0, DataPathOneOf_1.instanceOfDataPathOneOf)(json)) { return (0, DataPathOneOf_1.DataPathOneOfFromJSONTyped)(json, true); } @@ -41,6 +44,9 @@ function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if ((0, DataPathOneOf_1.instanceOfDataPathOneOf)(value)) { return (0, DataPathOneOf_1.DataPathOneOfToJSON)(value); } diff --git a/typescript/dist/models/DataUsage.js b/typescript/dist/models/DataUsage.js index aafdb75e..346ae078 100644 --- a/typescript/dist/models/DataUsage.js +++ b/typescript/dist/models/DataUsage.js @@ -60,7 +60,7 @@ function DataUsageToJSONTyped(value, ignoreDiscriminator = false) { 'computationId': value['computationId'], 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'userId': value['userId'], }; } diff --git a/typescript/dist/models/DataUsageSummary.js b/typescript/dist/models/DataUsageSummary.js index b5321c7c..ebe8b8cd 100644 --- a/typescript/dist/models/DataUsageSummary.js +++ b/typescript/dist/models/DataUsageSummary.js @@ -53,6 +53,6 @@ function DataUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) { return { 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), }; } diff --git a/typescript/dist/models/FormatSpecifics.d.ts b/typescript/dist/models/FormatSpecifics.d.ts index 02aedb0e..4796f32b 100644 --- a/typescript/dist/models/FormatSpecifics.d.ts +++ b/typescript/dist/models/FormatSpecifics.d.ts @@ -9,14 +9,25 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { FormatSpecificsOneOf } from './FormatSpecificsOneOf'; +import type { FormatSpecificsCsv } from './FormatSpecificsCsv'; /** - * @type FormatSpecifics * * @export + * @interface FormatSpecifics */ -export type FormatSpecifics = FormatSpecificsOneOf; +export interface FormatSpecifics { + /** + * + * @type {FormatSpecificsCsv} + * @memberof FormatSpecifics + */ + csv: FormatSpecificsCsv; +} +/** + * Check if a given object implements the FormatSpecifics interface. + */ +export declare function instanceOfFormatSpecifics(value: object): value is FormatSpecifics; export declare function FormatSpecificsFromJSON(json: any): FormatSpecifics; export declare function FormatSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecifics; -export declare function FormatSpecificsToJSON(json: any): any; +export declare function FormatSpecificsToJSON(json: any): FormatSpecifics; export declare function FormatSpecificsToJSONTyped(value?: FormatSpecifics | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/FormatSpecifics.js b/typescript/dist/models/FormatSpecifics.js index 0116d05c..b55bead3 100644 --- a/typescript/dist/models/FormatSpecifics.js +++ b/typescript/dist/models/FormatSpecifics.js @@ -13,11 +13,20 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFormatSpecifics = instanceOfFormatSpecifics; exports.FormatSpecificsFromJSON = FormatSpecificsFromJSON; exports.FormatSpecificsFromJSONTyped = FormatSpecificsFromJSONTyped; exports.FormatSpecificsToJSON = FormatSpecificsToJSON; exports.FormatSpecificsToJSONTyped = FormatSpecificsToJSONTyped; -const FormatSpecificsOneOf_1 = require("./FormatSpecificsOneOf"); +const FormatSpecificsCsv_1 = require("./FormatSpecificsCsv"); +/** + * Check if a given object implements the FormatSpecifics interface. + */ +function instanceOfFormatSpecifics(value) { + if (!('csv' in value) || value['csv'] === undefined) + return false; + return true; +} function FormatSpecificsFromJSON(json) { return FormatSpecificsFromJSONTyped(json, false); } @@ -25,10 +34,9 @@ function FormatSpecificsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } - if ((0, FormatSpecificsOneOf_1.instanceOfFormatSpecificsOneOf)(json)) { - return (0, FormatSpecificsOneOf_1.FormatSpecificsOneOfFromJSONTyped)(json, true); - } - return {}; + return { + 'csv': (0, FormatSpecificsCsv_1.FormatSpecificsCsvFromJSON)(json['csv']), + }; } function FormatSpecificsToJSON(json) { return FormatSpecificsToJSONTyped(json, false); @@ -37,8 +45,7 @@ function FormatSpecificsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } - if ((0, FormatSpecificsOneOf_1.instanceOfFormatSpecificsOneOf)(value)) { - return (0, FormatSpecificsOneOf_1.FormatSpecificsOneOfToJSON)(value); - } - return {}; + return { + 'csv': (0, FormatSpecificsCsv_1.FormatSpecificsCsvToJSON)(value['csv']), + }; } diff --git a/typescript/dist/models/FormatSpecificsCsv.d.ts b/typescript/dist/models/FormatSpecificsCsv.d.ts new file mode 100644 index 00000000..16b6f36e --- /dev/null +++ b/typescript/dist/models/FormatSpecificsCsv.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.8.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CsvHeader } from './CsvHeader'; +/** + * + * @export + * @interface FormatSpecificsCsv + */ +export interface FormatSpecificsCsv { + /** + * + * @type {CsvHeader} + * @memberof FormatSpecificsCsv + */ + header: CsvHeader; +} +/** + * Check if a given object implements the FormatSpecificsCsv interface. + */ +export declare function instanceOfFormatSpecificsCsv(value: object): value is FormatSpecificsCsv; +export declare function FormatSpecificsCsvFromJSON(json: any): FormatSpecificsCsv; +export declare function FormatSpecificsCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsCsv; +export declare function FormatSpecificsCsvToJSON(json: any): FormatSpecificsCsv; +export declare function FormatSpecificsCsvToJSONTyped(value?: FormatSpecificsCsv | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/FormatSpecificsOneOfCsv.js b/typescript/dist/models/FormatSpecificsCsv.js similarity index 51% rename from typescript/dist/models/FormatSpecificsOneOfCsv.js rename to typescript/dist/models/FormatSpecificsCsv.js index 8214f57d..c434d520 100644 --- a/typescript/dist/models/FormatSpecificsOneOfCsv.js +++ b/typescript/dist/models/FormatSpecificsCsv.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfFormatSpecificsOneOfCsv = instanceOfFormatSpecificsOneOfCsv; -exports.FormatSpecificsOneOfCsvFromJSON = FormatSpecificsOneOfCsvFromJSON; -exports.FormatSpecificsOneOfCsvFromJSONTyped = FormatSpecificsOneOfCsvFromJSONTyped; -exports.FormatSpecificsOneOfCsvToJSON = FormatSpecificsOneOfCsvToJSON; -exports.FormatSpecificsOneOfCsvToJSONTyped = FormatSpecificsOneOfCsvToJSONTyped; +exports.instanceOfFormatSpecificsCsv = instanceOfFormatSpecificsCsv; +exports.FormatSpecificsCsvFromJSON = FormatSpecificsCsvFromJSON; +exports.FormatSpecificsCsvFromJSONTyped = FormatSpecificsCsvFromJSONTyped; +exports.FormatSpecificsCsvToJSON = FormatSpecificsCsvToJSON; +exports.FormatSpecificsCsvToJSONTyped = FormatSpecificsCsvToJSONTyped; const CsvHeader_1 = require("./CsvHeader"); /** - * Check if a given object implements the FormatSpecificsOneOfCsv interface. + * Check if a given object implements the FormatSpecificsCsv interface. */ -function instanceOfFormatSpecificsOneOfCsv(value) { +function instanceOfFormatSpecificsCsv(value) { if (!('header' in value) || value['header'] === undefined) return false; return true; } -function FormatSpecificsOneOfCsvFromJSON(json) { - return FormatSpecificsOneOfCsvFromJSONTyped(json, false); +function FormatSpecificsCsvFromJSON(json) { + return FormatSpecificsCsvFromJSONTyped(json, false); } -function FormatSpecificsOneOfCsvFromJSONTyped(json, ignoreDiscriminator) { +function FormatSpecificsCsvFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function FormatSpecificsOneOfCsvFromJSONTyped(json, ignoreDiscriminator) { 'header': (0, CsvHeader_1.CsvHeaderFromJSON)(json['header']), }; } -function FormatSpecificsOneOfCsvToJSON(json) { - return FormatSpecificsOneOfCsvToJSONTyped(json, false); +function FormatSpecificsCsvToJSON(json) { + return FormatSpecificsCsvToJSONTyped(json, false); } -function FormatSpecificsOneOfCsvToJSONTyped(value, ignoreDiscriminator = false) { +function FormatSpecificsCsvToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/FormatSpecificsOneOf.d.ts b/typescript/dist/models/FormatSpecificsOneOf.d.ts deleted file mode 100644 index 3875ba2f..00000000 --- a/typescript/dist/models/FormatSpecificsOneOf.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { FormatSpecificsOneOfCsv } from './FormatSpecificsOneOfCsv'; -/** - * - * @export - * @interface FormatSpecificsOneOf - */ -export interface FormatSpecificsOneOf { - /** - * - * @type {FormatSpecificsOneOfCsv} - * @memberof FormatSpecificsOneOf - */ - csv: FormatSpecificsOneOfCsv; -} -/** - * Check if a given object implements the FormatSpecificsOneOf interface. - */ -export declare function instanceOfFormatSpecificsOneOf(value: object): value is FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfFromJSON(json: any): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfToJSON(json: any): FormatSpecificsOneOf; -export declare function FormatSpecificsOneOfToJSONTyped(value?: FormatSpecificsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/FormatSpecificsOneOf.js b/typescript/dist/models/FormatSpecificsOneOf.js deleted file mode 100644 index b22c379a..00000000 --- a/typescript/dist/models/FormatSpecificsOneOf.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfFormatSpecificsOneOf = instanceOfFormatSpecificsOneOf; -exports.FormatSpecificsOneOfFromJSON = FormatSpecificsOneOfFromJSON; -exports.FormatSpecificsOneOfFromJSONTyped = FormatSpecificsOneOfFromJSONTyped; -exports.FormatSpecificsOneOfToJSON = FormatSpecificsOneOfToJSON; -exports.FormatSpecificsOneOfToJSONTyped = FormatSpecificsOneOfToJSONTyped; -const FormatSpecificsOneOfCsv_1 = require("./FormatSpecificsOneOfCsv"); -/** - * Check if a given object implements the FormatSpecificsOneOf interface. - */ -function instanceOfFormatSpecificsOneOf(value) { - if (!('csv' in value) || value['csv'] === undefined) - return false; - return true; -} -function FormatSpecificsOneOfFromJSON(json) { - return FormatSpecificsOneOfFromJSONTyped(json, false); -} -function FormatSpecificsOneOfFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'csv': (0, FormatSpecificsOneOfCsv_1.FormatSpecificsOneOfCsvFromJSON)(json['csv']), - }; -} -function FormatSpecificsOneOfToJSON(json) { - return FormatSpecificsOneOfToJSONTyped(json, false); -} -function FormatSpecificsOneOfToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'csv': (0, FormatSpecificsOneOfCsv_1.FormatSpecificsOneOfCsvToJSON)(value['csv']), - }; -} diff --git a/typescript/dist/models/FormatSpecificsOneOfCsv.d.ts b/typescript/dist/models/FormatSpecificsOneOfCsv.d.ts deleted file mode 100644 index b9b304aa..00000000 --- a/typescript/dist/models/FormatSpecificsOneOfCsv.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { CsvHeader } from './CsvHeader'; -/** - * - * @export - * @interface FormatSpecificsOneOfCsv - */ -export interface FormatSpecificsOneOfCsv { - /** - * - * @type {CsvHeader} - * @memberof FormatSpecificsOneOfCsv - */ - header: CsvHeader; -} -/** - * Check if a given object implements the FormatSpecificsOneOfCsv interface. - */ -export declare function instanceOfFormatSpecificsOneOfCsv(value: object): value is FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvFromJSON(json: any): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvToJSON(json: any): FormatSpecificsOneOfCsv; -export declare function FormatSpecificsOneOfCsvToJSONTyped(value?: FormatSpecificsOneOfCsv | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Measurement.js b/typescript/dist/models/Measurement.js index 89d7c4b7..38ea6184 100644 --- a/typescript/dist/models/Measurement.js +++ b/typescript/dist/models/Measurement.js @@ -35,7 +35,7 @@ function MeasurementFromJSONTyped(json, ignoreDiscriminator) { case 'unitless': return Object.assign({}, (0, UnitlessMeasurement_1.UnitlessMeasurementFromJSONTyped)(json, true), { type: 'unitless' }); default: - throw new Error(`No variant of Measurement exists with 'type=${json['type']}'`); + return json; } } function MeasurementToJSON(json) { @@ -53,6 +53,6 @@ function MeasurementToJSONTyped(value, ignoreDiscriminator = false) { case 'unitless': return Object.assign({}, (0, UnitlessMeasurement_1.UnitlessMeasurementToJSON)(value), { type: 'unitless' }); default: - throw new Error(`No variant of Measurement exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/MetaDataDefinition.js b/typescript/dist/models/MetaDataDefinition.js index 8696dfb9..8b04c659 100644 --- a/typescript/dist/models/MetaDataDefinition.js +++ b/typescript/dist/models/MetaDataDefinition.js @@ -44,7 +44,7 @@ function MetaDataDefinitionFromJSONTyped(json, ignoreDiscriminator) { case 'OgrMetaData': return Object.assign({}, (0, OgrMetaData_1.OgrMetaDataFromJSONTyped)(json, true), { type: 'OgrMetaData' }); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${json['type']}'`); + return json; } } function MetaDataDefinitionToJSON(json) { @@ -68,6 +68,6 @@ function MetaDataDefinitionToJSONTyped(value, ignoreDiscriminator = false) { case 'OgrMetaData': return Object.assign({}, (0, OgrMetaData_1.OgrMetaDataToJSON)(value), { type: 'OgrMetaData' }); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/NumberParam.js b/typescript/dist/models/NumberParam.js index 7327c2f7..65866223 100644 --- a/typescript/dist/models/NumberParam.js +++ b/typescript/dist/models/NumberParam.js @@ -32,7 +32,7 @@ function NumberParamFromJSONTyped(json, ignoreDiscriminator) { case 'static': return Object.assign({}, (0, StaticNumber_1.StaticNumberFromJSONTyped)(json, true), { type: 'static' }); default: - throw new Error(`No variant of NumberParam exists with 'type=${json['type']}'`); + return json; } } function NumberParamToJSON(json) { @@ -48,6 +48,6 @@ function NumberParamToJSONTyped(value, ignoreDiscriminator = false) { case 'static': return Object.assign({}, (0, StaticNumber_1.StaticNumberToJSON)(value), { type: 'static' }); default: - throw new Error(`No variant of NumberParam exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/OgrSourceDatasetTimeType.js b/typescript/dist/models/OgrSourceDatasetTimeType.js index 93bfaa76..c68fe434 100644 --- a/typescript/dist/models/OgrSourceDatasetTimeType.js +++ b/typescript/dist/models/OgrSourceDatasetTimeType.js @@ -38,7 +38,7 @@ function OgrSourceDatasetTimeTypeFromJSONTyped(json, ignoreDiscriminator) { case 'start+end': return Object.assign({}, (0, OgrSourceDatasetTimeTypeStartEnd_1.OgrSourceDatasetTimeTypeStartEndFromJSONTyped)(json, true), { type: 'start+end' }); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`); + return json; } } function OgrSourceDatasetTimeTypeToJSON(json) { @@ -58,6 +58,6 @@ function OgrSourceDatasetTimeTypeToJSONTyped(value, ignoreDiscriminator = false) case 'start+end': return Object.assign({}, (0, OgrSourceDatasetTimeTypeStartEnd_1.OgrSourceDatasetTimeTypeStartEndToJSON)(value), { type: 'start+end' }); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/OgrSourceDurationSpec.js b/typescript/dist/models/OgrSourceDurationSpec.js index f71b682d..4bc399df 100644 --- a/typescript/dist/models/OgrSourceDurationSpec.js +++ b/typescript/dist/models/OgrSourceDurationSpec.js @@ -35,7 +35,7 @@ function OgrSourceDurationSpecFromJSONTyped(json, ignoreDiscriminator) { case 'zero': return Object.assign({}, (0, OgrSourceDurationSpecZero_1.OgrSourceDurationSpecZeroFromJSONTyped)(json, true), { type: 'zero' }); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${json['type']}'`); + return json; } } function OgrSourceDurationSpecToJSON(json) { @@ -53,6 +53,6 @@ function OgrSourceDurationSpecToJSONTyped(value, ignoreDiscriminator = false) { case 'zero': return Object.assign({}, (0, OgrSourceDurationSpecZero_1.OgrSourceDurationSpecZeroToJSON)(value), { type: 'zero' }); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/OgrSourceTimeFormat.js b/typescript/dist/models/OgrSourceTimeFormat.js index 44600548..c391e138 100644 --- a/typescript/dist/models/OgrSourceTimeFormat.js +++ b/typescript/dist/models/OgrSourceTimeFormat.js @@ -35,7 +35,7 @@ function OgrSourceTimeFormatFromJSONTyped(json, ignoreDiscriminator) { case 'unixTimeStamp': return Object.assign({}, (0, OgrSourceTimeFormatUnixTimeStamp_1.OgrSourceTimeFormatUnixTimeStampFromJSONTyped)(json, true), { format: 'unixTimeStamp' }); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${json['format']}'`); + return json; } } function OgrSourceTimeFormatToJSON(json) { @@ -53,6 +53,6 @@ function OgrSourceTimeFormatToJSONTyped(value, ignoreDiscriminator = false) { case 'unixTimeStamp': return Object.assign({}, (0, OgrSourceTimeFormatUnixTimeStamp_1.OgrSourceTimeFormatUnixTimeStampToJSON)(value), { format: 'unixTimeStamp' }); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${value['format']}'`); + return value; } } diff --git a/typescript/dist/models/ProjectListing.js b/typescript/dist/models/ProjectListing.js index 064943af..f571b43e 100644 --- a/typescript/dist/models/ProjectListing.js +++ b/typescript/dist/models/ProjectListing.js @@ -60,7 +60,7 @@ function ProjectListingToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'description': value['description'], 'id': value['id'], 'layerNames': value['layerNames'], diff --git a/typescript/dist/models/ProjectVersion.js b/typescript/dist/models/ProjectVersion.js index 9218d8e1..6f5ebe01 100644 --- a/typescript/dist/models/ProjectVersion.js +++ b/typescript/dist/models/ProjectVersion.js @@ -48,7 +48,7 @@ function ProjectVersionToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'id': value['id'], }; } diff --git a/typescript/dist/models/RasterColorizer.js b/typescript/dist/models/RasterColorizer.js index 3ff3db37..b1274ca8 100644 --- a/typescript/dist/models/RasterColorizer.js +++ b/typescript/dist/models/RasterColorizer.js @@ -32,7 +32,7 @@ function RasterColorizerFromJSONTyped(json, ignoreDiscriminator) { case 'singleBand': return Object.assign({}, (0, SingleBandRasterColorizer_1.SingleBandRasterColorizerFromJSONTyped)(json, true), { type: 'singleBand' }); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${json['type']}'`); + return json; } } function RasterColorizerToJSON(json) { @@ -48,6 +48,6 @@ function RasterColorizerToJSONTyped(value, ignoreDiscriminator = false) { case 'singleBand': return Object.assign({}, (0, SingleBandRasterColorizer_1.SingleBandRasterColorizerToJSON)(value), { type: 'singleBand' }); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/Resource.js b/typescript/dist/models/Resource.js index e540509c..41339374 100644 --- a/typescript/dist/models/Resource.js +++ b/typescript/dist/models/Resource.js @@ -44,7 +44,7 @@ function ResourceFromJSONTyped(json, ignoreDiscriminator) { case 'provider': return Object.assign({}, (0, DataProviderResource_1.DataProviderResourceFromJSONTyped)(json, true), { type: 'provider' }); default: - throw new Error(`No variant of Resource exists with 'type=${json['type']}'`); + return json; } } function ResourceToJSON(json) { @@ -68,6 +68,6 @@ function ResourceToJSONTyped(value, ignoreDiscriminator = false) { case 'provider': return Object.assign({}, (0, DataProviderResource_1.DataProviderResourceToJSON)(value), { type: 'provider' }); default: - throw new Error(`No variant of Resource exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/Symbology.js b/typescript/dist/models/Symbology.js index 423a6603..0d91007f 100644 --- a/typescript/dist/models/Symbology.js +++ b/typescript/dist/models/Symbology.js @@ -38,7 +38,7 @@ function SymbologyFromJSONTyped(json, ignoreDiscriminator) { case 'raster': return Object.assign({}, (0, RasterSymbology_1.RasterSymbologyFromJSONTyped)(json, true), { type: 'raster' }); default: - throw new Error(`No variant of Symbology exists with 'type=${json['type']}'`); + return json; } } function SymbologyToJSON(json) { @@ -58,6 +58,6 @@ function SymbologyToJSONTyped(value, ignoreDiscriminator = false) { case 'raster': return Object.assign({}, (0, RasterSymbology_1.RasterSymbologyToJSON)(value), { type: 'raster' }); default: - throw new Error(`No variant of Symbology exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/TaskStatus.js b/typescript/dist/models/TaskStatus.js index 620cece8..98c251c4 100644 --- a/typescript/dist/models/TaskStatus.js +++ b/typescript/dist/models/TaskStatus.js @@ -38,7 +38,7 @@ function TaskStatusFromJSONTyped(json, ignoreDiscriminator) { case 'running': return Object.assign({}, (0, TaskStatusRunning_1.TaskStatusRunningFromJSONTyped)(json, true), { status: 'running' }); default: - throw new Error(`No variant of TaskStatus exists with 'status=${json['status']}'`); + return json; } } function TaskStatusToJSON(json) { @@ -58,6 +58,6 @@ function TaskStatusToJSONTyped(value, ignoreDiscriminator = false) { case 'running': return Object.assign({}, (0, TaskStatusRunning_1.TaskStatusRunningToJSON)(value), { status: 'running' }); default: - throw new Error(`No variant of TaskStatus exists with 'status=${value['status']}'`); + return value; } } diff --git a/typescript/dist/models/TypedDataProviderDefinition.js b/typescript/dist/models/TypedDataProviderDefinition.js index c6486fc3..4fc804da 100644 --- a/typescript/dist/models/TypedDataProviderDefinition.js +++ b/typescript/dist/models/TypedDataProviderDefinition.js @@ -62,7 +62,7 @@ function TypedDataProviderDefinitionFromJSONTyped(json, ignoreDiscriminator) { case 'WildLIVE!': return Object.assign({}, (0, WildliveDataConnectorDefinition_1.WildliveDataConnectorDefinitionFromJSONTyped)(json, true), { type: 'WildLIVE!' }); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${json['type']}'`); + return json; } } function TypedDataProviderDefinitionToJSON(json) { @@ -98,6 +98,6 @@ function TypedDataProviderDefinitionToJSONTyped(value, ignoreDiscriminator = fal case 'WildLIVE!': return Object.assign({}, (0, WildliveDataConnectorDefinition_1.WildliveDataConnectorDefinitionToJSON)(value), { type: 'WildLIVE!' }); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/TypedGeometry.js b/typescript/dist/models/TypedGeometry.js index bef25025..758dbbf5 100644 --- a/typescript/dist/models/TypedGeometry.js +++ b/typescript/dist/models/TypedGeometry.js @@ -28,6 +28,9 @@ function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if ((0, TypedGeometryOneOf_1.instanceOfTypedGeometryOneOf)(json)) { return (0, TypedGeometryOneOf_1.TypedGeometryOneOfFromJSONTyped)(json, true); } @@ -49,6 +52,9 @@ function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if ((0, TypedGeometryOneOf_1.instanceOfTypedGeometryOneOf)(value)) { return (0, TypedGeometryOneOf_1.TypedGeometryOneOfToJSON)(value); } diff --git a/typescript/dist/models/TypedResultDescriptor.js b/typescript/dist/models/TypedResultDescriptor.js index e10d1391..80d6e9de 100644 --- a/typescript/dist/models/TypedResultDescriptor.js +++ b/typescript/dist/models/TypedResultDescriptor.js @@ -35,7 +35,7 @@ function TypedResultDescriptorFromJSONTyped(json, ignoreDiscriminator) { case 'vector': return Object.assign({}, (0, TypedVectorResultDescriptor_1.TypedVectorResultDescriptorFromJSONTyped)(json, true), { type: 'vector' }); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${json['type']}'`); + return json; } } function TypedResultDescriptorToJSON(json) { @@ -53,6 +53,6 @@ function TypedResultDescriptorToJSONTyped(value, ignoreDiscriminator = false) { case 'vector': return Object.assign({}, (0, TypedVectorResultDescriptor_1.TypedVectorResultDescriptorToJSON)(value), { type: 'vector' }); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${value['type']}'`); + return value; } } diff --git a/typescript/dist/models/UserSession.js b/typescript/dist/models/UserSession.js index 3c1ce613..8fcc599c 100644 --- a/typescript/dist/models/UserSession.js +++ b/typescript/dist/models/UserSession.js @@ -61,12 +61,12 @@ function UserSessionToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'created': ((value['created']).toISOString()), + 'created': value['created'].toISOString(), 'id': value['id'], 'project': value['project'], 'roles': value['roles'], 'user': (0, UserInfo_1.UserInfoToJSON)(value['user']), - 'validUntil': ((value['validUntil']).toISOString()), + 'validUntil': value['validUntil'].toISOString(), 'view': (0, STRectangle_1.STRectangleToJSON)(value['view']), }; } diff --git a/typescript/dist/models/VecUpdate.js b/typescript/dist/models/VecUpdate.js index e12c74a5..76430a31 100644 --- a/typescript/dist/models/VecUpdate.js +++ b/typescript/dist/models/VecUpdate.js @@ -26,6 +26,9 @@ function VecUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if ((0, Plot_1.instanceOfPlot)(json)) { return (0, Plot_1.PlotFromJSONTyped)(json, true); } @@ -41,6 +44,9 @@ function VecUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } if (typeof value === 'object' && (0, Plot_1.instanceOfPlot)(value)) { return (0, Plot_1.PlotToJSON)(value); } diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index 75b183db..f5baa31f 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -47,8 +47,7 @@ export * from './ExternalDataId'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; export * from './FormatSpecifics'; -export * from './FormatSpecificsOneOf'; -export * from './FormatSpecificsOneOfCsv'; +export * from './FormatSpecificsCsv'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetGeoTransform'; export * from './GdalDatasetParameters'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index c81f82bb..60ccc971 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -65,8 +65,7 @@ __exportStar(require("./ExternalDataId"), exports); __exportStar(require("./FeatureDataType"), exports); __exportStar(require("./FileNotFoundHandling"), exports); __exportStar(require("./FormatSpecifics"), exports); -__exportStar(require("./FormatSpecificsOneOf"), exports); -__exportStar(require("./FormatSpecificsOneOfCsv"), exports); +__exportStar(require("./FormatSpecificsCsv"), exports); __exportStar(require("./GbifDataProviderDefinition"), exports); __exportStar(require("./GdalDatasetGeoTransform"), exports); __exportStar(require("./GdalDatasetParameters"), exports); diff --git a/typescript/dist/runtime.d.ts b/typescript/dist/runtime.d.ts index 2c52ed3d..ba04f4da 100644 --- a/typescript/dist/runtime.d.ts +++ b/typescript/dist/runtime.d.ts @@ -124,7 +124,9 @@ export interface RequestOpts { } export declare function querystring(params: HTTPQuery, prefix?: string): string; export declare function exists(json: any, key: string): boolean; -export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function mapValues(data: any, fn: (item: any) => any): { + [key: string]: any; +}; export declare function canConsumeForm(consumes: Consume[]): boolean; export interface Consume { contentType: string; diff --git a/typescript/dist/runtime.js b/typescript/dist/runtime.js index 726f843a..11f4d00d 100644 --- a/typescript/dist/runtime.js +++ b/typescript/dist/runtime.js @@ -77,7 +77,7 @@ class Configuration { exports.Configuration = Configuration; exports.DefaultConfig = new Configuration({ headers: { - 'User-Agent': 'geoengine/openapi-client/typescript/0.0.27' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.28' } }); /** @@ -291,7 +291,11 @@ function exists(json, key) { return value !== null && value !== undefined; } function mapValues(data, fn) { - return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); + const result = {}; + for (const key of Object.keys(data)) { + result[key] = fn(data[key]); + } + return result; } function canConsumeForm(consumes) { for (const consume of consumes) { diff --git a/typescript/docs/AddDataset.md b/typescript/docs/AddDataset.md new file mode 100644 index 00000000..0f028509 --- /dev/null +++ b/typescript/docs/AddDataset.md @@ -0,0 +1,46 @@ + +# AddDataset + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`displayName` | string +`name` | string +`provenance` | [Array<Provenance>](Provenance.md) +`sourceOperator` | string +`symbology` | [Symbology](Symbology.md) +`tags` | Array<string> + +## Example + +```typescript +import type { AddDataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "displayName": null, + "name": null, + "provenance": null, + "sourceOperator": null, + "symbology": null, + "tags": null, +} satisfies AddDataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AddDataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AddLayer.md b/typescript/docs/AddLayer.md new file mode 100644 index 00000000..dfbe637e --- /dev/null +++ b/typescript/docs/AddLayer.md @@ -0,0 +1,44 @@ + +# AddLayer + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`metadata` | { [key: string]: string; } +`name` | string +`properties` | Array<Array<string>> +`symbology` | [Symbology](Symbology.md) +`workflow` | [Workflow](Workflow.md) + +## Example + +```typescript +import type { AddLayer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": Example layer description, + "metadata": null, + "name": Example Layer, + "properties": null, + "symbology": null, + "workflow": null, +} satisfies AddLayer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AddLayer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AddLayerCollection.md b/typescript/docs/AddLayerCollection.md new file mode 100644 index 00000000..089db857 --- /dev/null +++ b/typescript/docs/AddLayerCollection.md @@ -0,0 +1,38 @@ + +# AddLayerCollection + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`name` | string +`properties` | Array<Array<string>> + +## Example + +```typescript +import type { AddLayerCollection } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": A description for an example collection, + "name": Example Collection, + "properties": null, +} satisfies AddLayerCollection + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AddLayerCollection +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AddRole.md b/typescript/docs/AddRole.md new file mode 100644 index 00000000..82821914 --- /dev/null +++ b/typescript/docs/AddRole.md @@ -0,0 +1,34 @@ + +# AddRole + + +## Properties + +Name | Type +------------ | ------------- +`name` | string + +## Example + +```typescript +import type { AddRole } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "name": null, +} satisfies AddRole + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AddRole +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ArunaDataProviderDefinition.md b/typescript/docs/ArunaDataProviderDefinition.md new file mode 100644 index 00000000..f72107e8 --- /dev/null +++ b/typescript/docs/ArunaDataProviderDefinition.md @@ -0,0 +1,52 @@ + +# ArunaDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`apiToken` | string +`apiUrl` | string +`cacheTtl` | number +`description` | string +`filterLabel` | string +`id` | string +`name` | string +`priority` | number +`projectId` | string +`type` | string + +## Example + +```typescript +import type { ArunaDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "apiToken": null, + "apiUrl": null, + "cacheTtl": null, + "description": null, + "filterLabel": null, + "id": null, + "name": null, + "priority": null, + "projectId": null, + "type": null, +} satisfies ArunaDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ArunaDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AuthCodeRequestURL.md b/typescript/docs/AuthCodeRequestURL.md new file mode 100644 index 00000000..5697edeb --- /dev/null +++ b/typescript/docs/AuthCodeRequestURL.md @@ -0,0 +1,34 @@ + +# AuthCodeRequestURL + + +## Properties + +Name | Type +------------ | ------------- +`url` | string + +## Example + +```typescript +import type { AuthCodeRequestURL } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "url": null, +} satisfies AuthCodeRequestURL + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AuthCodeRequestURL +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AuthCodeResponse.md b/typescript/docs/AuthCodeResponse.md new file mode 100644 index 00000000..1d09cbf3 --- /dev/null +++ b/typescript/docs/AuthCodeResponse.md @@ -0,0 +1,38 @@ + +# AuthCodeResponse + + +## Properties + +Name | Type +------------ | ------------- +`code` | string +`sessionState` | string +`state` | string + +## Example + +```typescript +import type { AuthCodeResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "code": null, + "sessionState": null, + "state": null, +} satisfies AuthCodeResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AuthCodeResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AutoCreateDataset.md b/typescript/docs/AutoCreateDataset.md new file mode 100644 index 00000000..738b319b --- /dev/null +++ b/typescript/docs/AutoCreateDataset.md @@ -0,0 +1,44 @@ + +# AutoCreateDataset + + +## Properties + +Name | Type +------------ | ------------- +`datasetDescription` | string +`datasetName` | string +`layerName` | string +`mainFile` | string +`tags` | Array<string> +`upload` | string + +## Example + +```typescript +import type { AutoCreateDataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "datasetDescription": null, + "datasetName": null, + "layerName": null, + "mainFile": null, + "tags": null, + "upload": null, +} satisfies AutoCreateDataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AutoCreateDataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/AxisOrder.md b/typescript/docs/AxisOrder.md new file mode 100644 index 00000000..e65ffdd1 --- /dev/null +++ b/typescript/docs/AxisOrder.md @@ -0,0 +1,32 @@ + +# AxisOrder + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { AxisOrder } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies AxisOrder + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AxisOrder +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/BoundingBox2D.md b/typescript/docs/BoundingBox2D.md new file mode 100644 index 00000000..999683d3 --- /dev/null +++ b/typescript/docs/BoundingBox2D.md @@ -0,0 +1,37 @@ + +# BoundingBox2D + +A bounding box that includes all border points. Note: may degenerate to a point! + +## Properties + +Name | Type +------------ | ------------- +`lowerLeftCoordinate` | [Coordinate2D](Coordinate2D.md) +`upperRightCoordinate` | [Coordinate2D](Coordinate2D.md) + +## Example + +```typescript +import type { BoundingBox2D } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "lowerLeftCoordinate": null, + "upperRightCoordinate": null, +} satisfies BoundingBox2D + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BoundingBox2D +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Breakpoint.md b/typescript/docs/Breakpoint.md new file mode 100644 index 00000000..d7649d7a --- /dev/null +++ b/typescript/docs/Breakpoint.md @@ -0,0 +1,36 @@ + +# Breakpoint + + +## Properties + +Name | Type +------------ | ------------- +`color` | Array<number> +`value` | number + +## Example + +```typescript +import type { Breakpoint } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "color": null, + "value": null, +} satisfies Breakpoint + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Breakpoint +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ClassificationMeasurement.md b/typescript/docs/ClassificationMeasurement.md new file mode 100644 index 00000000..c17ec99e --- /dev/null +++ b/typescript/docs/ClassificationMeasurement.md @@ -0,0 +1,38 @@ + +# ClassificationMeasurement + + +## Properties + +Name | Type +------------ | ------------- +`classes` | { [key: string]: string; } +`measurement` | string +`type` | string + +## Example + +```typescript +import type { ClassificationMeasurement } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "classes": null, + "measurement": null, + "type": null, +} satisfies ClassificationMeasurement + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ClassificationMeasurement +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CollectionItem.md b/typescript/docs/CollectionItem.md new file mode 100644 index 00000000..1bf1c908 --- /dev/null +++ b/typescript/docs/CollectionItem.md @@ -0,0 +1,42 @@ + +# CollectionItem + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`id` | [ProviderLayerId](ProviderLayerId.md) +`name` | string +`properties` | Array<Array<string>> +`type` | string + +## Example + +```typescript +import type { CollectionItem } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "id": null, + "name": null, + "properties": null, + "type": null, +} satisfies CollectionItem + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CollectionItem +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CollectionType.md b/typescript/docs/CollectionType.md new file mode 100644 index 00000000..40fb434c --- /dev/null +++ b/typescript/docs/CollectionType.md @@ -0,0 +1,32 @@ + +# CollectionType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { CollectionType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies CollectionType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CollectionType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ColorParam.md b/typescript/docs/ColorParam.md new file mode 100644 index 00000000..b6a00a78 --- /dev/null +++ b/typescript/docs/ColorParam.md @@ -0,0 +1,40 @@ + +# ColorParam + + +## Properties + +Name | Type +------------ | ------------- +`color` | Array<number> +`type` | string +`attribute` | string +`colorizer` | [Colorizer](Colorizer.md) + +## Example + +```typescript +import type { ColorParam } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "color": null, + "type": null, + "attribute": null, + "colorizer": null, +} satisfies ColorParam + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ColorParam +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Colorizer.md b/typescript/docs/Colorizer.md new file mode 100644 index 00000000..89366579 --- /dev/null +++ b/typescript/docs/Colorizer.md @@ -0,0 +1,47 @@ + +# Colorizer + +A colorizer specifies a mapping between raster values and an output image There are different variants that perform different kinds of mapping. + +## Properties + +Name | Type +------------ | ------------- +`breakpoints` | [Array<Breakpoint>](Breakpoint.md) +`noDataColor` | Array<number> +`overColor` | Array<number> +`type` | string +`underColor` | Array<number> +`colors` | { [key: string]: Array<number>; } +`defaultColor` | Array<number> + +## Example + +```typescript +import type { Colorizer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "breakpoints": null, + "noDataColor": null, + "overColor": null, + "type": null, + "underColor": null, + "colors": null, + "defaultColor": null, +} satisfies Colorizer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Colorizer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ComputationQuota.md b/typescript/docs/ComputationQuota.md new file mode 100644 index 00000000..93142905 --- /dev/null +++ b/typescript/docs/ComputationQuota.md @@ -0,0 +1,40 @@ + +# ComputationQuota + + +## Properties + +Name | Type +------------ | ------------- +`computationId` | string +`count` | number +`timestamp` | Date +`workflowId` | string + +## Example + +```typescript +import type { ComputationQuota } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "computationId": null, + "count": null, + "timestamp": null, + "workflowId": null, +} satisfies ComputationQuota + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ComputationQuota +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ContinuousMeasurement.md b/typescript/docs/ContinuousMeasurement.md new file mode 100644 index 00000000..ff64fbf6 --- /dev/null +++ b/typescript/docs/ContinuousMeasurement.md @@ -0,0 +1,38 @@ + +# ContinuousMeasurement + + +## Properties + +Name | Type +------------ | ------------- +`measurement` | string +`type` | string +`unit` | string + +## Example + +```typescript +import type { ContinuousMeasurement } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "measurement": null, + "type": null, + "unit": null, +} satisfies ContinuousMeasurement + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ContinuousMeasurement +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Coordinate2D.md b/typescript/docs/Coordinate2D.md new file mode 100644 index 00000000..af46a806 --- /dev/null +++ b/typescript/docs/Coordinate2D.md @@ -0,0 +1,36 @@ + +# Coordinate2D + + +## Properties + +Name | Type +------------ | ------------- +`x` | number +`y` | number + +## Example + +```typescript +import type { Coordinate2D } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "x": null, + "y": null, +} satisfies Coordinate2D + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Coordinate2D +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CopernicusDataspaceDataProviderDefinition.md b/typescript/docs/CopernicusDataspaceDataProviderDefinition.md new file mode 100644 index 00000000..f35adb55 --- /dev/null +++ b/typescript/docs/CopernicusDataspaceDataProviderDefinition.md @@ -0,0 +1,52 @@ + +# CopernicusDataspaceDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`gdalConfig` | Array<Array<string>> +`id` | string +`name` | string +`priority` | number +`s3AccessKey` | string +`s3SecretKey` | string +`s3Url` | string +`stacUrl` | string +`type` | string + +## Example + +```typescript +import type { CopernicusDataspaceDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "gdalConfig": null, + "id": null, + "name": null, + "priority": null, + "s3AccessKey": null, + "s3SecretKey": null, + "s3Url": null, + "stacUrl": null, + "type": null, +} satisfies CopernicusDataspaceDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CopernicusDataspaceDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CreateDataset.md b/typescript/docs/CreateDataset.md new file mode 100644 index 00000000..8fa534d6 --- /dev/null +++ b/typescript/docs/CreateDataset.md @@ -0,0 +1,36 @@ + +# CreateDataset + + +## Properties + +Name | Type +------------ | ------------- +`dataPath` | [DataPath](DataPath.md) +`definition` | [DatasetDefinition](DatasetDefinition.md) + +## Example + +```typescript +import type { CreateDataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataPath": null, + "definition": null, +} satisfies CreateDataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CreateDataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CreateProject.md b/typescript/docs/CreateProject.md new file mode 100644 index 00000000..58e1cc35 --- /dev/null +++ b/typescript/docs/CreateProject.md @@ -0,0 +1,40 @@ + +# CreateProject + + +## Properties + +Name | Type +------------ | ------------- +`bounds` | [STRectangle](STRectangle.md) +`description` | string +`name` | string +`timeStep` | [TimeStep](TimeStep.md) + +## Example + +```typescript +import type { CreateProject } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bounds": null, + "description": null, + "name": null, + "timeStep": null, +} satisfies CreateProject + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CreateProject +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CsvHeader.md b/typescript/docs/CsvHeader.md new file mode 100644 index 00000000..d0bd71e3 --- /dev/null +++ b/typescript/docs/CsvHeader.md @@ -0,0 +1,32 @@ + +# CsvHeader + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { CsvHeader } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies CsvHeader + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CsvHeader +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataId.md b/typescript/docs/DataId.md new file mode 100644 index 00000000..c387f572 --- /dev/null +++ b/typescript/docs/DataId.md @@ -0,0 +1,41 @@ + +# DataId + +The identifier for loadable data. It is used in the source operators to get the loading info (aka parametrization) for accessing the data. Internal data is loaded from datasets, external from `DataProvider`s. + +## Properties + +Name | Type +------------ | ------------- +`datasetId` | string +`type` | string +`layerId` | string +`providerId` | string + +## Example + +```typescript +import type { DataId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "datasetId": null, + "type": null, + "layerId": null, + "providerId": null, +} satisfies DataId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataPath.md b/typescript/docs/DataPath.md new file mode 100644 index 00000000..0f7dfc5e --- /dev/null +++ b/typescript/docs/DataPath.md @@ -0,0 +1,36 @@ + +# DataPath + + +## Properties + +Name | Type +------------ | ------------- +`volume` | string +`upload` | string + +## Example + +```typescript +import type { DataPath } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "volume": null, + "upload": null, +} satisfies DataPath + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataPath +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataPathOneOf.md b/typescript/docs/DataPathOneOf.md new file mode 100644 index 00000000..a8104a6a --- /dev/null +++ b/typescript/docs/DataPathOneOf.md @@ -0,0 +1,34 @@ + +# DataPathOneOf + + +## Properties + +Name | Type +------------ | ------------- +`volume` | string + +## Example + +```typescript +import type { DataPathOneOf } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "volume": null, +} satisfies DataPathOneOf + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataPathOneOf +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataPathOneOf1.md b/typescript/docs/DataPathOneOf1.md new file mode 100644 index 00000000..3ec2a99c --- /dev/null +++ b/typescript/docs/DataPathOneOf1.md @@ -0,0 +1,34 @@ + +# DataPathOneOf1 + + +## Properties + +Name | Type +------------ | ------------- +`upload` | string + +## Example + +```typescript +import type { DataPathOneOf1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "upload": null, +} satisfies DataPathOneOf1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataPathOneOf1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataProviderResource.md b/typescript/docs/DataProviderResource.md new file mode 100644 index 00000000..2cfd0f59 --- /dev/null +++ b/typescript/docs/DataProviderResource.md @@ -0,0 +1,36 @@ + +# DataProviderResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { DataProviderResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies DataProviderResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataProviderResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataUsage.md b/typescript/docs/DataUsage.md new file mode 100644 index 00000000..f9ac996f --- /dev/null +++ b/typescript/docs/DataUsage.md @@ -0,0 +1,42 @@ + +# DataUsage + + +## Properties + +Name | Type +------------ | ------------- +`computationId` | string +`count` | number +`data` | string +`timestamp` | Date +`userId` | string + +## Example + +```typescript +import type { DataUsage } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "computationId": null, + "count": null, + "data": null, + "timestamp": null, + "userId": null, +} satisfies DataUsage + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataUsage +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DataUsageSummary.md b/typescript/docs/DataUsageSummary.md new file mode 100644 index 00000000..f23ceaa6 --- /dev/null +++ b/typescript/docs/DataUsageSummary.md @@ -0,0 +1,38 @@ + +# DataUsageSummary + + +## Properties + +Name | Type +------------ | ------------- +`count` | number +`data` | string +`timestamp` | Date + +## Example + +```typescript +import type { DataUsageSummary } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "count": null, + "data": null, + "timestamp": null, +} satisfies DataUsageSummary + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataUsageSummary +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatabaseConnectionConfig.md b/typescript/docs/DatabaseConnectionConfig.md new file mode 100644 index 00000000..a2fd7b95 --- /dev/null +++ b/typescript/docs/DatabaseConnectionConfig.md @@ -0,0 +1,44 @@ + +# DatabaseConnectionConfig + + +## Properties + +Name | Type +------------ | ------------- +`database` | string +`host` | string +`password` | string +`port` | number +`schema` | string +`user` | string + +## Example + +```typescript +import type { DatabaseConnectionConfig } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "database": null, + "host": null, + "password": null, + "port": null, + "schema": null, + "user": null, +} satisfies DatabaseConnectionConfig + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatabaseConnectionConfig +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Dataset.md b/typescript/docs/Dataset.md new file mode 100644 index 00000000..bfc078f8 --- /dev/null +++ b/typescript/docs/Dataset.md @@ -0,0 +1,50 @@ + +# Dataset + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`displayName` | string +`id` | string +`name` | string +`provenance` | [Array<Provenance>](Provenance.md) +`resultDescriptor` | [TypedResultDescriptor](TypedResultDescriptor.md) +`sourceOperator` | string +`symbology` | [Symbology](Symbology.md) +`tags` | Array<string> + +## Example + +```typescript +import type { Dataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "displayName": null, + "id": null, + "name": null, + "provenance": null, + "resultDescriptor": null, + "sourceOperator": null, + "symbology": null, + "tags": null, +} satisfies Dataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Dataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetDefinition.md b/typescript/docs/DatasetDefinition.md new file mode 100644 index 00000000..76ebf7eb --- /dev/null +++ b/typescript/docs/DatasetDefinition.md @@ -0,0 +1,36 @@ + +# DatasetDefinition + + +## Properties + +Name | Type +------------ | ------------- +`metaData` | [MetaDataDefinition](MetaDataDefinition.md) +`properties` | [AddDataset](AddDataset.md) + +## Example + +```typescript +import type { DatasetDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "metaData": null, + "properties": null, +} satisfies DatasetDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetLayerListingCollection.md b/typescript/docs/DatasetLayerListingCollection.md new file mode 100644 index 00000000..ac21c658 --- /dev/null +++ b/typescript/docs/DatasetLayerListingCollection.md @@ -0,0 +1,38 @@ + +# DatasetLayerListingCollection + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`name` | string +`tags` | Array<string> + +## Example + +```typescript +import type { DatasetLayerListingCollection } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "name": null, + "tags": null, +} satisfies DatasetLayerListingCollection + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetLayerListingCollection +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetLayerListingProviderDefinition.md b/typescript/docs/DatasetLayerListingProviderDefinition.md new file mode 100644 index 00000000..da84b421 --- /dev/null +++ b/typescript/docs/DatasetLayerListingProviderDefinition.md @@ -0,0 +1,44 @@ + +# DatasetLayerListingProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`collections` | [Array<DatasetLayerListingCollection>](DatasetLayerListingCollection.md) +`description` | string +`id` | string +`name` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { DatasetLayerListingProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "collections": null, + "description": null, + "id": null, + "name": null, + "priority": null, + "type": null, +} satisfies DatasetLayerListingProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetLayerListingProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetListing.md b/typescript/docs/DatasetListing.md new file mode 100644 index 00000000..5c63bb83 --- /dev/null +++ b/typescript/docs/DatasetListing.md @@ -0,0 +1,48 @@ + +# DatasetListing + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`displayName` | string +`id` | string +`name` | string +`resultDescriptor` | [TypedResultDescriptor](TypedResultDescriptor.md) +`sourceOperator` | string +`symbology` | [Symbology](Symbology.md) +`tags` | Array<string> + +## Example + +```typescript +import type { DatasetListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "displayName": null, + "id": null, + "name": null, + "resultDescriptor": null, + "sourceOperator": null, + "symbology": null, + "tags": null, +} satisfies DatasetListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetNameResponse.md b/typescript/docs/DatasetNameResponse.md new file mode 100644 index 00000000..261f5bad --- /dev/null +++ b/typescript/docs/DatasetNameResponse.md @@ -0,0 +1,34 @@ + +# DatasetNameResponse + + +## Properties + +Name | Type +------------ | ------------- +`datasetName` | string + +## Example + +```typescript +import type { DatasetNameResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "datasetName": null, +} satisfies DatasetNameResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetNameResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetResource.md b/typescript/docs/DatasetResource.md new file mode 100644 index 00000000..4276e90e --- /dev/null +++ b/typescript/docs/DatasetResource.md @@ -0,0 +1,36 @@ + +# DatasetResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { DatasetResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies DatasetResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DatasetResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DatasetsApi.md b/typescript/docs/DatasetsApi.md new file mode 100644 index 00000000..b30d83bc --- /dev/null +++ b/typescript/docs/DatasetsApi.md @@ -0,0 +1,958 @@ +# DatasetsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**autoCreateDatasetHandler**](DatasetsApi.md#autocreatedatasethandler) | **POST** /dataset/auto | Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. | +| [**createDatasetHandler**](DatasetsApi.md#createdatasethandler) | **POST** /dataset | Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. | +| [**deleteDatasetHandler**](DatasetsApi.md#deletedatasethandler) | **DELETE** /dataset/{dataset} | Delete a dataset | +| [**getDatasetHandler**](DatasetsApi.md#getdatasethandler) | **GET** /dataset/{dataset} | Retrieves details about a dataset using the internal name. | +| [**getLoadingInfoHandler**](DatasetsApi.md#getloadinginfohandler) | **GET** /dataset/{dataset}/loadingInfo | Retrieves the loading information of a dataset | +| [**listDatasetsHandler**](DatasetsApi.md#listdatasetshandler) | **GET** /datasets | Lists available datasets. | +| [**listVolumeFileLayersHandler**](DatasetsApi.md#listvolumefilelayershandler) | **GET** /dataset/volumes/{volume_name}/files/{file_name}/layers | List the layers of a file in a volume. | +| [**listVolumesHandler**](DatasetsApi.md#listvolumeshandler) | **GET** /dataset/volumes | Lists available volumes. | +| [**suggestMetaDataHandler**](DatasetsApi.md#suggestmetadatahandler) | **POST** /dataset/suggest | Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. | +| [**updateDatasetHandler**](DatasetsApi.md#updatedatasethandler) | **POST** /dataset/{dataset} | Update details about a dataset using the internal name. | +| [**updateDatasetProvenanceHandler**](DatasetsApi.md#updatedatasetprovenancehandler) | **PUT** /dataset/{dataset}/provenance | | +| [**updateDatasetSymbologyHandler**](DatasetsApi.md#updatedatasetsymbologyhandler) | **PUT** /dataset/{dataset}/symbology | Updates the dataset\'s symbology | +| [**updateLoadingInfoHandler**](DatasetsApi.md#updateloadinginfohandler) | **PUT** /dataset/{dataset}/loadingInfo | Updates the dataset\'s loading info | + + + +## autoCreateDatasetHandler + +> DatasetNameResponse autoCreateDatasetHandler(autoCreateDataset) + +Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { AutoCreateDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // AutoCreateDataset + autoCreateDataset: ..., + } satisfies AutoCreateDatasetHandlerRequest; + + try { + const data = await api.autoCreateDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **autoCreateDataset** | [AutoCreateDataset](AutoCreateDataset.md) | | | + +### Return type + +[**DatasetNameResponse**](DatasetNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | +| **413** | Payload too large | - | +| **415** | Media type of application/json is expected | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createDatasetHandler + +> DatasetNameResponse createDatasetHandler(createDataset) + +Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { CreateDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // CreateDataset + createDataset: ..., + } satisfies CreateDatasetHandlerRequest; + + try { + const data = await api.createDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createDataset** | [CreateDataset](CreateDataset.md) | | | + +### Return type + +[**DatasetNameResponse**](DatasetNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deleteDatasetHandler + +> deleteDatasetHandler(dataset) + +Delete a dataset + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { DeleteDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset id + dataset: dataset_example, + } satisfies DeleteDatasetHandlerRequest; + + try { + const data = await api.deleteDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getDatasetHandler + +> Dataset getDatasetHandler(dataset) + +Retrieves details about a dataset using the internal name. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { GetDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + } satisfies GetDatasetHandlerRequest; + + try { + const data = await api.getDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | + +### Return type + +[**Dataset**](Dataset.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getLoadingInfoHandler + +> MetaDataDefinition getLoadingInfoHandler(dataset) + +Retrieves the loading information of a dataset + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { GetLoadingInfoHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + } satisfies GetLoadingInfoHandlerRequest; + + try { + const data = await api.getLoadingInfoHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | + +### Return type + +[**MetaDataDefinition**](MetaDataDefinition.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listDatasetsHandler + +> Array<DatasetListing> listDatasetsHandler(order, offset, limit, filter, tags) + +Lists available datasets. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { ListDatasetsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // OrderBy + order: NameAsc, + // number + offset: 0, + // number + limit: 2, + // string (optional) + filter: Germany, + // Array (optional) + tags: ['tag1', 'tag2'], + } satisfies ListDatasetsHandlerRequest; + + try { + const data = await api.listDatasetsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **order** | `OrderBy` | | [Defaults to `undefined`] [Enum: NameAsc, NameDesc] | +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | +| **filter** | `string` | | [Optional] [Defaults to `undefined`] | +| **tags** | `Array` | | [Optional] | + +### Return type + +[**Array<DatasetListing>**](DatasetListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listVolumeFileLayersHandler + +> VolumeFileLayersResponse listVolumeFileLayersHandler(volumeName, fileName) + +List the layers of a file in a volume. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { ListVolumeFileLayersHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Volume name + volumeName: volumeName_example, + // string | File name + fileName: fileName_example, + } satisfies ListVolumeFileLayersHandlerRequest; + + try { + const data = await api.listVolumeFileLayersHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **volumeName** | `string` | Volume name | [Defaults to `undefined`] | +| **fileName** | `string` | File name | [Defaults to `undefined`] | + +### Return type + +[**VolumeFileLayersResponse**](VolumeFileLayersResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listVolumesHandler + +> Array<Volume> listVolumesHandler() + +Lists available volumes. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { ListVolumesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + try { + const data = await api.listVolumesHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Array<Volume>**](Volume.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## suggestMetaDataHandler + +> MetaDataSuggestion suggestMetaDataHandler(suggestMetaData) + +Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { SuggestMetaDataHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // SuggestMetaData + suggestMetaData: ..., + } satisfies SuggestMetaDataHandlerRequest; + + try { + const data = await api.suggestMetaDataHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **suggestMetaData** | [SuggestMetaData](SuggestMetaData.md) | | | + +### Return type + +[**MetaDataSuggestion**](MetaDataSuggestion.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateDatasetHandler + +> updateDatasetHandler(dataset, updateDataset) + +Update details about a dataset using the internal name. + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { UpdateDatasetHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + // UpdateDataset + updateDataset: ..., + } satisfies UpdateDatasetHandlerRequest; + + try { + const data = await api.updateDatasetHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | +| **updateDataset** | [UpdateDataset](UpdateDataset.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateDatasetProvenanceHandler + +> updateDatasetProvenanceHandler(dataset, provenances) + + + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { UpdateDatasetProvenanceHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + // Provenances + provenances: ..., + } satisfies UpdateDatasetProvenanceHandlerRequest; + + try { + const data = await api.updateDatasetProvenanceHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | +| **provenances** | [Provenances](Provenances.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateDatasetSymbologyHandler + +> updateDatasetSymbologyHandler(dataset, symbology) + +Updates the dataset\'s symbology + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { UpdateDatasetSymbologyHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + // Symbology + symbology: ..., + } satisfies UpdateDatasetSymbologyHandlerRequest; + + try { + const data = await api.updateDatasetSymbologyHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | +| **symbology** | [Symbology](Symbology.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateLoadingInfoHandler + +> updateLoadingInfoHandler(dataset, metaDataDefinition) + +Updates the dataset\'s loading info + +### Example + +```ts +import { + Configuration, + DatasetsApi, +} from '@geoengine/openapi-client'; +import type { UpdateLoadingInfoHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new DatasetsApi(config); + + const body = { + // string | Dataset Name + dataset: dataset_example, + // MetaDataDefinition + metaDataDefinition: ..., + } satisfies UpdateLoadingInfoHandlerRequest; + + try { + const data = await api.updateLoadingInfoHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dataset** | `string` | Dataset Name | [Defaults to `undefined`] | +| **metaDataDefinition** | [MetaDataDefinition](MetaDataDefinition.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Authorization failed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/DerivedColor.md b/typescript/docs/DerivedColor.md new file mode 100644 index 00000000..b89c38ae --- /dev/null +++ b/typescript/docs/DerivedColor.md @@ -0,0 +1,38 @@ + +# DerivedColor + + +## Properties + +Name | Type +------------ | ------------- +`attribute` | string +`colorizer` | [Colorizer](Colorizer.md) +`type` | string + +## Example + +```typescript +import type { DerivedColor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "attribute": null, + "colorizer": null, + "type": null, +} satisfies DerivedColor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DerivedColor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DerivedNumber.md b/typescript/docs/DerivedNumber.md new file mode 100644 index 00000000..46604e45 --- /dev/null +++ b/typescript/docs/DerivedNumber.md @@ -0,0 +1,40 @@ + +# DerivedNumber + + +## Properties + +Name | Type +------------ | ------------- +`attribute` | string +`defaultValue` | number +`factor` | number +`type` | string + +## Example + +```typescript +import type { DerivedNumber } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "attribute": null, + "defaultValue": null, + "factor": null, + "type": null, +} satisfies DerivedNumber + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DerivedNumber +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DescribeCoverageRequest.md b/typescript/docs/DescribeCoverageRequest.md new file mode 100644 index 00000000..b7a98336 --- /dev/null +++ b/typescript/docs/DescribeCoverageRequest.md @@ -0,0 +1,32 @@ + +# DescribeCoverageRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { DescribeCoverageRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies DescribeCoverageRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DescribeCoverageRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/EbvPortalDataProviderDefinition.md b/typescript/docs/EbvPortalDataProviderDefinition.md new file mode 100644 index 00000000..eaa718ba --- /dev/null +++ b/typescript/docs/EbvPortalDataProviderDefinition.md @@ -0,0 +1,48 @@ + +# EbvPortalDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`baseUrl` | string +`cacheTtl` | number +`data` | string +`description` | string +`name` | string +`overviews` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { EbvPortalDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "baseUrl": null, + "cacheTtl": null, + "data": null, + "description": null, + "name": null, + "overviews": null, + "priority": null, + "type": null, +} satisfies EbvPortalDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as EbvPortalDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/EdrDataProviderDefinition.md b/typescript/docs/EdrDataProviderDefinition.md new file mode 100644 index 00000000..b5cf5cbd --- /dev/null +++ b/typescript/docs/EdrDataProviderDefinition.md @@ -0,0 +1,52 @@ + +# EdrDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`baseUrl` | string +`cacheTtl` | number +`description` | string +`discreteVrs` | Array<string> +`id` | string +`name` | string +`priority` | number +`provenance` | [Array<Provenance>](Provenance.md) +`type` | string +`vectorSpec` | [EdrVectorSpec](EdrVectorSpec.md) + +## Example + +```typescript +import type { EdrDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "baseUrl": null, + "cacheTtl": null, + "description": null, + "discreteVrs": null, + "id": null, + "name": null, + "priority": null, + "provenance": null, + "type": null, + "vectorSpec": null, +} satisfies EdrDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as EdrDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/EdrVectorSpec.md b/typescript/docs/EdrVectorSpec.md new file mode 100644 index 00000000..d395658e --- /dev/null +++ b/typescript/docs/EdrVectorSpec.md @@ -0,0 +1,38 @@ + +# EdrVectorSpec + + +## Properties + +Name | Type +------------ | ------------- +`time` | string +`x` | string +`y` | string + +## Example + +```typescript +import type { EdrVectorSpec } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "time": null, + "x": null, + "y": null, +} satisfies EdrVectorSpec + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as EdrVectorSpec +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ErrorResponse.md b/typescript/docs/ErrorResponse.md new file mode 100644 index 00000000..effcef59 --- /dev/null +++ b/typescript/docs/ErrorResponse.md @@ -0,0 +1,36 @@ + +# ErrorResponse + + +## Properties + +Name | Type +------------ | ------------- +`error` | string +`message` | string + +## Example + +```typescript +import type { ErrorResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "error": null, + "message": null, +} satisfies ErrorResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ErrorResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ExternalDataId.md b/typescript/docs/ExternalDataId.md new file mode 100644 index 00000000..051a29ba --- /dev/null +++ b/typescript/docs/ExternalDataId.md @@ -0,0 +1,38 @@ + +# ExternalDataId + + +## Properties + +Name | Type +------------ | ------------- +`layerId` | string +`providerId` | string +`type` | string + +## Example + +```typescript +import type { ExternalDataId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "layerId": null, + "providerId": null, + "type": null, +} satisfies ExternalDataId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ExternalDataId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/FeatureDataType.md b/typescript/docs/FeatureDataType.md new file mode 100644 index 00000000..ee78068c --- /dev/null +++ b/typescript/docs/FeatureDataType.md @@ -0,0 +1,32 @@ + +# FeatureDataType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { FeatureDataType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies FeatureDataType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as FeatureDataType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/FileNotFoundHandling.md b/typescript/docs/FileNotFoundHandling.md new file mode 100644 index 00000000..abc71394 --- /dev/null +++ b/typescript/docs/FileNotFoundHandling.md @@ -0,0 +1,32 @@ + +# FileNotFoundHandling + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { FileNotFoundHandling } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies FileNotFoundHandling + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as FileNotFoundHandling +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/FormatSpecifics.md b/typescript/docs/FormatSpecifics.md new file mode 100644 index 00000000..5bb8f612 --- /dev/null +++ b/typescript/docs/FormatSpecifics.md @@ -0,0 +1,34 @@ + +# FormatSpecifics + + +## Properties + +Name | Type +------------ | ------------- +`csv` | [FormatSpecificsCsv](FormatSpecificsCsv.md) + +## Example + +```typescript +import type { FormatSpecifics } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "csv": null, +} satisfies FormatSpecifics + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as FormatSpecifics +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/FormatSpecificsCsv.md b/typescript/docs/FormatSpecificsCsv.md new file mode 100644 index 00000000..430b0686 --- /dev/null +++ b/typescript/docs/FormatSpecificsCsv.md @@ -0,0 +1,34 @@ + +# FormatSpecificsCsv + + +## Properties + +Name | Type +------------ | ------------- +`header` | [CsvHeader](CsvHeader.md) + +## Example + +```typescript +import type { FormatSpecificsCsv } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "header": null, +} satisfies FormatSpecificsCsv + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as FormatSpecificsCsv +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GbifDataProviderDefinition.md b/typescript/docs/GbifDataProviderDefinition.md new file mode 100644 index 00000000..4c475113 --- /dev/null +++ b/typescript/docs/GbifDataProviderDefinition.md @@ -0,0 +1,48 @@ + +# GbifDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`autocompleteTimeout` | number +`cacheTtl` | number +`columns` | Array<string> +`dbConfig` | [DatabaseConnectionConfig](DatabaseConnectionConfig.md) +`description` | string +`name` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { GbifDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "autocompleteTimeout": null, + "cacheTtl": null, + "columns": null, + "dbConfig": null, + "description": null, + "name": null, + "priority": null, + "type": null, +} satisfies GbifDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GbifDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalDatasetGeoTransform.md b/typescript/docs/GdalDatasetGeoTransform.md new file mode 100644 index 00000000..35401209 --- /dev/null +++ b/typescript/docs/GdalDatasetGeoTransform.md @@ -0,0 +1,38 @@ + +# GdalDatasetGeoTransform + + +## Properties + +Name | Type +------------ | ------------- +`originCoordinate` | [Coordinate2D](Coordinate2D.md) +`xPixelSize` | number +`yPixelSize` | number + +## Example + +```typescript +import type { GdalDatasetGeoTransform } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "originCoordinate": null, + "xPixelSize": null, + "yPixelSize": null, +} satisfies GdalDatasetGeoTransform + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalDatasetGeoTransform +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalDatasetParameters.md b/typescript/docs/GdalDatasetParameters.md new file mode 100644 index 00000000..64183021 --- /dev/null +++ b/typescript/docs/GdalDatasetParameters.md @@ -0,0 +1,55 @@ + +# GdalDatasetParameters + +Parameters for loading data using Gdal + +## Properties + +Name | Type +------------ | ------------- +`allowAlphabandAsMask` | boolean +`fileNotFoundHandling` | [FileNotFoundHandling](FileNotFoundHandling.md) +`filePath` | string +`gdalConfigOptions` | Array<Array<string>> +`gdalOpenOptions` | Array<string> +`geoTransform` | [GdalDatasetGeoTransform](GdalDatasetGeoTransform.md) +`height` | number +`noDataValue` | number +`propertiesMapping` | [Array<GdalMetadataMapping>](GdalMetadataMapping.md) +`rasterbandChannel` | number +`width` | number + +## Example + +```typescript +import type { GdalDatasetParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "allowAlphabandAsMask": null, + "fileNotFoundHandling": null, + "filePath": null, + "gdalConfigOptions": null, + "gdalOpenOptions": null, + "geoTransform": null, + "height": null, + "noDataValue": null, + "propertiesMapping": null, + "rasterbandChannel": null, + "width": null, +} satisfies GdalDatasetParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalDatasetParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalLoadingInfoTemporalSlice.md b/typescript/docs/GdalLoadingInfoTemporalSlice.md new file mode 100644 index 00000000..8aeca79c --- /dev/null +++ b/typescript/docs/GdalLoadingInfoTemporalSlice.md @@ -0,0 +1,39 @@ + +# GdalLoadingInfoTemporalSlice + +one temporal slice of the dataset that requires reading from exactly one Gdal dataset + +## Properties + +Name | Type +------------ | ------------- +`cacheTtl` | number +`params` | [GdalDatasetParameters](GdalDatasetParameters.md) +`time` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { GdalLoadingInfoTemporalSlice } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cacheTtl": null, + "params": null, + "time": null, +} satisfies GdalLoadingInfoTemporalSlice + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalLoadingInfoTemporalSlice +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalMetaDataList.md b/typescript/docs/GdalMetaDataList.md new file mode 100644 index 00000000..a65d0c6e --- /dev/null +++ b/typescript/docs/GdalMetaDataList.md @@ -0,0 +1,38 @@ + +# GdalMetaDataList + + +## Properties + +Name | Type +------------ | ------------- +`params` | [Array<GdalLoadingInfoTemporalSlice>](GdalLoadingInfoTemporalSlice.md) +`resultDescriptor` | [RasterResultDescriptor](RasterResultDescriptor.md) +`type` | string + +## Example + +```typescript +import type { GdalMetaDataList } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "resultDescriptor": null, + "type": null, +} satisfies GdalMetaDataList + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalMetaDataList +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalMetaDataRegular.md b/typescript/docs/GdalMetaDataRegular.md new file mode 100644 index 00000000..3d3c0579 --- /dev/null +++ b/typescript/docs/GdalMetaDataRegular.md @@ -0,0 +1,46 @@ + +# GdalMetaDataRegular + + +## Properties + +Name | Type +------------ | ------------- +`cacheTtl` | number +`dataTime` | [TimeInterval](TimeInterval.md) +`params` | [GdalDatasetParameters](GdalDatasetParameters.md) +`resultDescriptor` | [RasterResultDescriptor](RasterResultDescriptor.md) +`step` | [TimeStep](TimeStep.md) +`timePlaceholders` | [{ [key: string]: GdalSourceTimePlaceholder; }](GdalSourceTimePlaceholder.md) +`type` | string + +## Example + +```typescript +import type { GdalMetaDataRegular } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cacheTtl": null, + "dataTime": null, + "params": null, + "resultDescriptor": null, + "step": null, + "timePlaceholders": null, + "type": null, +} satisfies GdalMetaDataRegular + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalMetaDataRegular +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalMetaDataStatic.md b/typescript/docs/GdalMetaDataStatic.md new file mode 100644 index 00000000..d1a9b39f --- /dev/null +++ b/typescript/docs/GdalMetaDataStatic.md @@ -0,0 +1,42 @@ + +# GdalMetaDataStatic + + +## Properties + +Name | Type +------------ | ------------- +`cacheTtl` | number +`params` | [GdalDatasetParameters](GdalDatasetParameters.md) +`resultDescriptor` | [RasterResultDescriptor](RasterResultDescriptor.md) +`time` | [TimeInterval](TimeInterval.md) +`type` | string + +## Example + +```typescript +import type { GdalMetaDataStatic } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cacheTtl": null, + "params": null, + "resultDescriptor": null, + "time": null, + "type": null, +} satisfies GdalMetaDataStatic + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalMetaDataStatic +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalMetadataMapping.md b/typescript/docs/GdalMetadataMapping.md new file mode 100644 index 00000000..a4dbd953 --- /dev/null +++ b/typescript/docs/GdalMetadataMapping.md @@ -0,0 +1,38 @@ + +# GdalMetadataMapping + + +## Properties + +Name | Type +------------ | ------------- +`sourceKey` | [RasterPropertiesKey](RasterPropertiesKey.md) +`targetKey` | [RasterPropertiesKey](RasterPropertiesKey.md) +`targetType` | [RasterPropertiesEntryType](RasterPropertiesEntryType.md) + +## Example + +```typescript +import type { GdalMetadataMapping } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "sourceKey": null, + "targetKey": null, + "targetType": null, +} satisfies GdalMetadataMapping + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalMetadataMapping +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalMetadataNetCdfCf.md b/typescript/docs/GdalMetadataNetCdfCf.md new file mode 100644 index 00000000..c2b36a06 --- /dev/null +++ b/typescript/docs/GdalMetadataNetCdfCf.md @@ -0,0 +1,49 @@ + +# GdalMetadataNetCdfCf + +Meta data for 4D `NetCDF` CF datasets + +## Properties + +Name | Type +------------ | ------------- +`bandOffset` | number +`cacheTtl` | number +`end` | number +`params` | [GdalDatasetParameters](GdalDatasetParameters.md) +`resultDescriptor` | [RasterResultDescriptor](RasterResultDescriptor.md) +`start` | number +`step` | [TimeStep](TimeStep.md) +`type` | string + +## Example + +```typescript +import type { GdalMetadataNetCdfCf } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bandOffset": null, + "cacheTtl": null, + "end": null, + "params": null, + "resultDescriptor": null, + "start": null, + "step": null, + "type": null, +} satisfies GdalMetadataNetCdfCf + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalMetadataNetCdfCf +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GdalSourceTimePlaceholder.md b/typescript/docs/GdalSourceTimePlaceholder.md new file mode 100644 index 00000000..3f933715 --- /dev/null +++ b/typescript/docs/GdalSourceTimePlaceholder.md @@ -0,0 +1,36 @@ + +# GdalSourceTimePlaceholder + + +## Properties + +Name | Type +------------ | ------------- +`format` | string +`reference` | [TimeReference](TimeReference.md) + +## Example + +```typescript +import type { GdalSourceTimePlaceholder } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "format": null, + "reference": null, +} satisfies GdalSourceTimePlaceholder + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GdalSourceTimePlaceholder +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GeneralApi.md b/typescript/docs/GeneralApi.md new file mode 100644 index 00000000..aae4f23d --- /dev/null +++ b/typescript/docs/GeneralApi.md @@ -0,0 +1,124 @@ +# GeneralApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**availableHandler**](GeneralApi.md#availablehandler) | **GET** /available | Server availablity check. | +| [**serverInfoHandler**](GeneralApi.md#serverinfohandler) | **GET** /info | Shows information about the server software version. | + + + +## availableHandler + +> availableHandler() + +Server availablity check. + +### Example + +```ts +import { + Configuration, + GeneralApi, +} from '@geoengine/openapi-client'; +import type { AvailableHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new GeneralApi(); + + try { + const data = await api.availableHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +`void` (Empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Server availablity check | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## serverInfoHandler + +> ServerInfo serverInfoHandler() + +Shows information about the server software version. + +### Example + +```ts +import { + Configuration, + GeneralApi, +} from '@geoengine/openapi-client'; +import type { ServerInfoHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new GeneralApi(); + + try { + const data = await api.serverInfoHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ServerInfo**](ServerInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Server software information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/GeoJson.md b/typescript/docs/GeoJson.md new file mode 100644 index 00000000..97ff24c3 --- /dev/null +++ b/typescript/docs/GeoJson.md @@ -0,0 +1,36 @@ + +# GeoJson + + +## Properties + +Name | Type +------------ | ------------- +`features` | Array<any> +`type` | [CollectionType](CollectionType.md) + +## Example + +```typescript +import type { GeoJson } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "features": null, + "type": null, +} satisfies GeoJson + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GeoJson +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetCapabilitiesFormat.md b/typescript/docs/GetCapabilitiesFormat.md new file mode 100644 index 00000000..66bbb876 --- /dev/null +++ b/typescript/docs/GetCapabilitiesFormat.md @@ -0,0 +1,32 @@ + +# GetCapabilitiesFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetCapabilitiesFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetCapabilitiesFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetCapabilitiesFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetCapabilitiesRequest.md b/typescript/docs/GetCapabilitiesRequest.md new file mode 100644 index 00000000..b2758297 --- /dev/null +++ b/typescript/docs/GetCapabilitiesRequest.md @@ -0,0 +1,32 @@ + +# GetCapabilitiesRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetCapabilitiesRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetCapabilitiesRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetCapabilitiesRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetCoverageFormat.md b/typescript/docs/GetCoverageFormat.md new file mode 100644 index 00000000..5bca7d04 --- /dev/null +++ b/typescript/docs/GetCoverageFormat.md @@ -0,0 +1,32 @@ + +# GetCoverageFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetCoverageFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetCoverageFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetCoverageFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetCoverageRequest.md b/typescript/docs/GetCoverageRequest.md new file mode 100644 index 00000000..16f7ca08 --- /dev/null +++ b/typescript/docs/GetCoverageRequest.md @@ -0,0 +1,32 @@ + +# GetCoverageRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetCoverageRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetCoverageRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetCoverageRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetFeatureRequest.md b/typescript/docs/GetFeatureRequest.md new file mode 100644 index 00000000..49fd50f7 --- /dev/null +++ b/typescript/docs/GetFeatureRequest.md @@ -0,0 +1,32 @@ + +# GetFeatureRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetFeatureRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetFeatureRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetFeatureRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetLegendGraphicRequest.md b/typescript/docs/GetLegendGraphicRequest.md new file mode 100644 index 00000000..323bc999 --- /dev/null +++ b/typescript/docs/GetLegendGraphicRequest.md @@ -0,0 +1,32 @@ + +# GetLegendGraphicRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetLegendGraphicRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetLegendGraphicRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetLegendGraphicRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetMapExceptionFormat.md b/typescript/docs/GetMapExceptionFormat.md new file mode 100644 index 00000000..163ea2ac --- /dev/null +++ b/typescript/docs/GetMapExceptionFormat.md @@ -0,0 +1,32 @@ + +# GetMapExceptionFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetMapExceptionFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetMapExceptionFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetMapExceptionFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetMapFormat.md b/typescript/docs/GetMapFormat.md new file mode 100644 index 00000000..9772956f --- /dev/null +++ b/typescript/docs/GetMapFormat.md @@ -0,0 +1,32 @@ + +# GetMapFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetMapFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetMapFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetMapFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GetMapRequest.md b/typescript/docs/GetMapRequest.md new file mode 100644 index 00000000..b273c4ac --- /dev/null +++ b/typescript/docs/GetMapRequest.md @@ -0,0 +1,32 @@ + +# GetMapRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { GetMapRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies GetMapRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GetMapRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GfbioAbcdDataProviderDefinition.md b/typescript/docs/GfbioAbcdDataProviderDefinition.md new file mode 100644 index 00000000..c9647934 --- /dev/null +++ b/typescript/docs/GfbioAbcdDataProviderDefinition.md @@ -0,0 +1,44 @@ + +# GfbioAbcdDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`cacheTtl` | number +`dbConfig` | [DatabaseConnectionConfig](DatabaseConnectionConfig.md) +`description` | string +`name` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { GfbioAbcdDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cacheTtl": null, + "dbConfig": null, + "description": null, + "name": null, + "priority": null, + "type": null, +} satisfies GfbioAbcdDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GfbioAbcdDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/GfbioCollectionsDataProviderDefinition.md b/typescript/docs/GfbioCollectionsDataProviderDefinition.md new file mode 100644 index 00000000..34a7457f --- /dev/null +++ b/typescript/docs/GfbioCollectionsDataProviderDefinition.md @@ -0,0 +1,50 @@ + +# GfbioCollectionsDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`abcdDbConfig` | [DatabaseConnectionConfig](DatabaseConnectionConfig.md) +`cacheTtl` | number +`collectionApiAuthToken` | string +`collectionApiUrl` | string +`description` | string +`name` | string +`pangaeaUrl` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { GfbioCollectionsDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "abcdDbConfig": null, + "cacheTtl": null, + "collectionApiAuthToken": null, + "collectionApiUrl": null, + "description": null, + "name": null, + "pangaeaUrl": null, + "priority": null, + "type": null, +} satisfies GfbioCollectionsDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as GfbioCollectionsDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/IdResponse.md b/typescript/docs/IdResponse.md new file mode 100644 index 00000000..4d26364c --- /dev/null +++ b/typescript/docs/IdResponse.md @@ -0,0 +1,34 @@ + +# IdResponse + + +## Properties + +Name | Type +------------ | ------------- +`id` | string + +## Example + +```typescript +import type { IdResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, +} satisfies IdResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as IdResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/InternalDataId.md b/typescript/docs/InternalDataId.md new file mode 100644 index 00000000..7d9259b8 --- /dev/null +++ b/typescript/docs/InternalDataId.md @@ -0,0 +1,36 @@ + +# InternalDataId + + +## Properties + +Name | Type +------------ | ------------- +`datasetId` | string +`type` | string + +## Example + +```typescript +import type { InternalDataId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "datasetId": null, + "type": null, +} satisfies InternalDataId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as InternalDataId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Layer.md b/typescript/docs/Layer.md new file mode 100644 index 00000000..965ceb91 --- /dev/null +++ b/typescript/docs/Layer.md @@ -0,0 +1,46 @@ + +# Layer + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`id` | [ProviderLayerId](ProviderLayerId.md) +`metadata` | { [key: string]: string; } +`name` | string +`properties` | Array<Array<string>> +`symbology` | [Symbology](Symbology.md) +`workflow` | [Workflow](Workflow.md) + +## Example + +```typescript +import type { Layer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "id": null, + "metadata": null, + "name": null, + "properties": null, + "symbology": null, + "workflow": null, +} satisfies Layer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Layer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerCollection.md b/typescript/docs/LayerCollection.md new file mode 100644 index 00000000..bedc592b --- /dev/null +++ b/typescript/docs/LayerCollection.md @@ -0,0 +1,44 @@ + +# LayerCollection + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`entryLabel` | string +`id` | [ProviderLayerCollectionId](ProviderLayerCollectionId.md) +`items` | [Array<CollectionItem>](CollectionItem.md) +`name` | string +`properties` | Array<Array<string>> + +## Example + +```typescript +import type { LayerCollection } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "entryLabel": null, + "id": null, + "items": null, + "name": null, + "properties": null, +} satisfies LayerCollection + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerCollection +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerCollectionListing.md b/typescript/docs/LayerCollectionListing.md new file mode 100644 index 00000000..f7fff3fb --- /dev/null +++ b/typescript/docs/LayerCollectionListing.md @@ -0,0 +1,42 @@ + +# LayerCollectionListing + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`id` | [ProviderLayerCollectionId](ProviderLayerCollectionId.md) +`name` | string +`properties` | Array<Array<string>> +`type` | string + +## Example + +```typescript +import type { LayerCollectionListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "id": null, + "name": null, + "properties": null, + "type": null, +} satisfies LayerCollectionListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerCollectionListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerCollectionResource.md b/typescript/docs/LayerCollectionResource.md new file mode 100644 index 00000000..b3e46fc3 --- /dev/null +++ b/typescript/docs/LayerCollectionResource.md @@ -0,0 +1,36 @@ + +# LayerCollectionResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { LayerCollectionResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies LayerCollectionResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerCollectionResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerListing.md b/typescript/docs/LayerListing.md new file mode 100644 index 00000000..7ca2b140 --- /dev/null +++ b/typescript/docs/LayerListing.md @@ -0,0 +1,42 @@ + +# LayerListing + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`id` | [ProviderLayerId](ProviderLayerId.md) +`name` | string +`properties` | Array<Array<string>> +`type` | string + +## Example + +```typescript +import type { LayerListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "id": null, + "name": null, + "properties": null, + "type": null, +} satisfies LayerListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerProviderListing.md b/typescript/docs/LayerProviderListing.md new file mode 100644 index 00000000..7ca462ff --- /dev/null +++ b/typescript/docs/LayerProviderListing.md @@ -0,0 +1,38 @@ + +# LayerProviderListing + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`name` | string +`priority` | number + +## Example + +```typescript +import type { LayerProviderListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "name": null, + "priority": null, +} satisfies LayerProviderListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerProviderListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerResource.md b/typescript/docs/LayerResource.md new file mode 100644 index 00000000..e697928c --- /dev/null +++ b/typescript/docs/LayerResource.md @@ -0,0 +1,36 @@ + +# LayerResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { LayerResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies LayerResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayerVisibility.md b/typescript/docs/LayerVisibility.md new file mode 100644 index 00000000..b2803d25 --- /dev/null +++ b/typescript/docs/LayerVisibility.md @@ -0,0 +1,36 @@ + +# LayerVisibility + + +## Properties + +Name | Type +------------ | ------------- +`data` | boolean +`legend` | boolean + +## Example + +```typescript +import type { LayerVisibility } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "legend": null, +} satisfies LayerVisibility + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LayerVisibility +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LayersApi.md b/typescript/docs/LayersApi.md new file mode 100644 index 00000000..fb62468e --- /dev/null +++ b/typescript/docs/LayersApi.md @@ -0,0 +1,1699 @@ +# LayersApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addCollection**](LayersApi.md#addcollection) | **POST** /layerDb/collections/{collection}/collections | Add a new collection to an existing collection | +| [**addExistingCollectionToCollection**](LayersApi.md#addexistingcollectiontocollection) | **POST** /layerDb/collections/{parent}/collections/{collection} | Add an existing collection to a collection | +| [**addExistingLayerToCollection**](LayersApi.md#addexistinglayertocollection) | **POST** /layerDb/collections/{collection}/layers/{layer} | Add an existing layer to a collection | +| [**addLayer**](LayersApi.md#addlayer) | **POST** /layerDb/collections/{collection}/layers | Add a new layer to a collection | +| [**addProvider**](LayersApi.md#addprovider) | **POST** /layerDb/providers | Add a new provider | +| [**autocompleteHandler**](LayersApi.md#autocompletehandler) | **GET** /layers/collections/search/autocomplete/{provider}/{collection} | Autocompletes the search on the contents of the collection of the given provider | +| [**deleteProvider**](LayersApi.md#deleteprovider) | **DELETE** /layerDb/providers/{provider} | Delete an existing provider | +| [**getProviderDefinition**](LayersApi.md#getproviderdefinition) | **GET** /layerDb/providers/{provider} | Get an existing provider\'s definition | +| [**layerHandler**](LayersApi.md#layerhandler) | **GET** /layers/{provider}/{layer} | Retrieves the layer of the given provider | +| [**layerToDataset**](LayersApi.md#layertodataset) | **POST** /layers/{provider}/{layer}/dataset | Persist a raster layer from a provider as a dataset. | +| [**layerToWorkflowIdHandler**](LayersApi.md#layertoworkflowidhandler) | **POST** /layers/{provider}/{layer}/workflowId | Registers a layer from a provider as a workflow and returns the workflow id | +| [**listCollectionHandler**](LayersApi.md#listcollectionhandler) | **GET** /layers/collections/{provider}/{collection} | List the contents of the collection of the given provider | +| [**listProviders**](LayersApi.md#listproviders) | **GET** /layerDb/providers | List all providers | +| [**listRootCollectionsHandler**](LayersApi.md#listrootcollectionshandler) | **GET** /layers/collections | List all layer collections | +| [**providerCapabilitiesHandler**](LayersApi.md#providercapabilitieshandler) | **GET** /layers/{provider}/capabilities | | +| [**removeCollection**](LayersApi.md#removecollection) | **DELETE** /layerDb/collections/{collection} | Remove a collection | +| [**removeCollectionFromCollection**](LayersApi.md#removecollectionfromcollection) | **DELETE** /layerDb/collections/{parent}/collections/{collection} | Delete a collection from a collection | +| [**removeLayer**](LayersApi.md#removelayer) | **DELETE** /layerDb/layers/{layer} | Remove a collection | +| [**removeLayerFromCollection**](LayersApi.md#removelayerfromcollection) | **DELETE** /layerDb/collections/{collection}/layers/{layer} | Remove a layer from a collection | +| [**searchHandler**](LayersApi.md#searchhandler) | **GET** /layers/collections/search/{provider}/{collection} | Searches the contents of the collection of the given provider | +| [**updateCollection**](LayersApi.md#updatecollection) | **PUT** /layerDb/collections/{collection} | Update a collection | +| [**updateLayer**](LayersApi.md#updatelayer) | **PUT** /layerDb/layers/{layer} | Update a layer | +| [**updateProviderDefinition**](LayersApi.md#updateproviderdefinition) | **PUT** /layerDb/providers/{provider} | Update an existing provider\'s definition | + + + +## addCollection + +> IdResponse addCollection(collection, addLayerCollection) + +Add a new collection to an existing collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AddCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // AddLayerCollection + addLayerCollection: ..., + } satisfies AddCollectionRequest; + + try { + const data = await api.addCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **addLayerCollection** | [AddLayerCollection](AddLayerCollection.md) | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## addExistingCollectionToCollection + +> addExistingCollectionToCollection(parent, collection) + +Add an existing collection to a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AddExistingCollectionToCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Parent layer collection id + parent: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // string | Layer collection id + collection: collection_example, + } satisfies AddExistingCollectionToCollectionRequest; + + try { + const data = await api.addExistingCollectionToCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **parent** | `string` | Parent layer collection id | [Defaults to `undefined`] | +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## addExistingLayerToCollection + +> addExistingLayerToCollection(collection, layer) + +Add an existing layer to a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AddExistingLayerToCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: collection_example, + // string | Layer id + layer: layer_example, + } satisfies AddExistingLayerToCollectionRequest; + + try { + const data = await api.addExistingLayerToCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## addLayer + +> IdResponse addLayer(collection, addLayer) + +Add a new layer to a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AddLayerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // AddLayer + addLayer: ..., + } satisfies AddLayerRequest; + + try { + const data = await api.addLayer(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **addLayer** | [AddLayer](AddLayer.md) | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## addProvider + +> IdResponse addProvider(typedDataProviderDefinition) + +Add a new provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AddProviderRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // TypedDataProviderDefinition + typedDataProviderDefinition: ..., + } satisfies AddProviderRequest; + + try { + const data = await api.addProvider(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **typedDataProviderDefinition** | [TypedDataProviderDefinition](TypedDataProviderDefinition.md) | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## autocompleteHandler + +> Array<string> autocompleteHandler(provider, collection, searchType, searchString, limit, offset) + +Autocompletes the search on the contents of the collection of the given provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { AutocompleteHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: ce5e84db-cbf9-48a2-9a32-d4b7cc56ea74, + // string | Layer collection id + collection: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // SearchType + searchType: fulltext, + // string + searchString: test, + // number + limit: 20, + // number + offset: 0, + } satisfies AutocompleteHandlerRequest; + + try { + const data = await api.autocompleteHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **searchType** | `SearchType` | | [Defaults to `undefined`] [Enum: fulltext, prefix] | +| **searchString** | `string` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | +| **offset** | `number` | | [Defaults to `undefined`] | + +### Return type + +**Array** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deleteProvider + +> deleteProvider(provider) + +Delete an existing provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { DeleteProviderRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies DeleteProviderRequest; + + try { + const data = await api.deleteProvider(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Layer provider id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getProviderDefinition + +> TypedDataProviderDefinition getProviderDefinition(provider) + +Get an existing provider\'s definition + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { GetProviderDefinitionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies GetProviderDefinitionRequest; + + try { + const data = await api.getProviderDefinition(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Layer provider id | [Defaults to `undefined`] | + +### Return type + +[**TypedDataProviderDefinition**](TypedDataProviderDefinition.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## layerHandler + +> Layer layerHandler(provider, layer) + +Retrieves the layer of the given provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { LayerHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Layer id + layer: layer_example, + } satisfies LayerHandlerRequest; + + try { + const data = await api.layerHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +[**Layer**](Layer.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## layerToDataset + +> TaskResponse layerToDataset(provider, layer) + +Persist a raster layer from a provider as a dataset. + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { LayerToDatasetRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Layer id + layer: layer_example, + } satisfies LayerToDatasetRequest; + + try { + const data = await api.layerToDataset(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +[**TaskResponse**](TaskResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of created task | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## layerToWorkflowIdHandler + +> IdResponse layerToWorkflowIdHandler(provider, layer) + +Registers a layer from a provider as a workflow and returns the workflow id + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { LayerToWorkflowIdHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Layer id + layer: layer_example, + } satisfies LayerToWorkflowIdHandlerRequest; + + try { + const data = await api.layerToWorkflowIdHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listCollectionHandler + +> LayerCollection listCollectionHandler(provider, collection, offset, limit) + +List the contents of the collection of the given provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { ListCollectionHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Layer collection id + collection: collection_example, + // number + offset: 0, + // number + limit: 20, + } satisfies ListCollectionHandlerRequest; + + try { + const data = await api.listCollectionHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listProviders + +> Array<LayerProviderListing> listProviders(offset, limit) + +List all providers + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { ListProvidersRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // number + offset: 56, + // number + limit: 56, + } satisfies ListProvidersRequest; + + try { + const data = await api.listProviders(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<LayerProviderListing>**](LayerProviderListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listRootCollectionsHandler + +> LayerCollection listRootCollectionsHandler(offset, limit) + +List all layer collections + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { ListRootCollectionsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // number + offset: 0, + // number + limit: 20, + } satisfies ListRootCollectionsHandlerRequest; + + try { + const data = await api.listRootCollectionsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## providerCapabilitiesHandler + +> ProviderCapabilities providerCapabilitiesHandler(provider) + + + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { ProviderCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies ProviderCapabilitiesHandlerRequest; + + try { + const data = await api.providerCapabilitiesHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | + +### Return type + +[**ProviderCapabilities**](ProviderCapabilities.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removeCollection + +> removeCollection(collection) + +Remove a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { RemoveCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: collection_example, + } satisfies RemoveCollectionRequest; + + try { + const data = await api.removeCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removeCollectionFromCollection + +> removeCollectionFromCollection(parent, collection) + +Delete a collection from a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { RemoveCollectionFromCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Parent layer collection id + parent: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // string | Layer collection id + collection: collection_example, + } satisfies RemoveCollectionFromCollectionRequest; + + try { + const data = await api.removeCollectionFromCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **parent** | `string` | Parent layer collection id | [Defaults to `undefined`] | +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removeLayer + +> removeLayer(layer) + +Remove a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { RemoveLayerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer id + layer: layer_example, + } satisfies RemoveLayerRequest; + + try { + const data = await api.removeLayer(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removeLayerFromCollection + +> removeLayerFromCollection(collection, layer) + +Remove a layer from a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { RemoveLayerFromCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: collection_example, + // string | Layer id + layer: layer_example, + } satisfies RemoveLayerFromCollectionRequest; + + try { + const data = await api.removeLayerFromCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **layer** | `string` | Layer id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## searchHandler + +> LayerCollection searchHandler(provider, collection, searchType, searchString, limit, offset) + +Searches the contents of the collection of the given provider + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { SearchHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Data provider id + provider: ce5e84db-cbf9-48a2-9a32-d4b7cc56ea74, + // string | Layer collection id + collection: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // SearchType + searchType: fulltext, + // string + searchString: test, + // number + limit: 20, + // number + offset: 0, + } satisfies SearchHandlerRequest; + + try { + const data = await api.searchHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Data provider id | [Defaults to `undefined`] | +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **searchType** | `SearchType` | | [Defaults to `undefined`] [Enum: fulltext, prefix] | +| **searchString** | `string` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | +| **offset** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**LayerCollection**](LayerCollection.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateCollection + +> updateCollection(collection, updateLayerCollection) + +Update a collection + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { UpdateCollectionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer collection id + collection: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // UpdateLayerCollection + updateLayerCollection: ..., + } satisfies UpdateCollectionRequest; + + try { + const data = await api.updateCollection(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **collection** | `string` | Layer collection id | [Defaults to `undefined`] | +| **updateLayerCollection** | [UpdateLayerCollection](UpdateLayerCollection.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateLayer + +> updateLayer(layer, updateLayer) + +Update a layer + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { UpdateLayerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer id + layer: 05102bb3-a855-4a37-8a8a-30026a91fef1, + // UpdateLayer + updateLayer: ..., + } satisfies UpdateLayerRequest; + + try { + const data = await api.updateLayer(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **layer** | `string` | Layer id | [Defaults to `undefined`] | +| **updateLayer** | [UpdateLayer](UpdateLayer.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateProviderDefinition + +> updateProviderDefinition(provider, typedDataProviderDefinition) + +Update an existing provider\'s definition + +### Example + +```ts +import { + Configuration, + LayersApi, +} from '@geoengine/openapi-client'; +import type { UpdateProviderDefinitionRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new LayersApi(config); + + const body = { + // string | Layer provider id + provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // TypedDataProviderDefinition + typedDataProviderDefinition: ..., + } satisfies UpdateProviderDefinitionRequest; + + try { + const data = await api.updateProviderDefinition(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **provider** | `string` | Layer provider id | [Defaults to `undefined`] | +| **typedDataProviderDefinition** | [TypedDataProviderDefinition](TypedDataProviderDefinition.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/LineSymbology.md b/typescript/docs/LineSymbology.md new file mode 100644 index 00000000..5d648155 --- /dev/null +++ b/typescript/docs/LineSymbology.md @@ -0,0 +1,40 @@ + +# LineSymbology + + +## Properties + +Name | Type +------------ | ------------- +`autoSimplified` | boolean +`stroke` | [StrokeParam](StrokeParam.md) +`text` | [TextSymbology](TextSymbology.md) +`type` | string + +## Example + +```typescript +import type { LineSymbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "autoSimplified": null, + "stroke": null, + "text": null, + "type": null, +} satisfies LineSymbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LineSymbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LinearGradient.md b/typescript/docs/LinearGradient.md new file mode 100644 index 00000000..ecfcb7f0 --- /dev/null +++ b/typescript/docs/LinearGradient.md @@ -0,0 +1,42 @@ + +# LinearGradient + + +## Properties + +Name | Type +------------ | ------------- +`breakpoints` | [Array<Breakpoint>](Breakpoint.md) +`noDataColor` | Array<number> +`overColor` | Array<number> +`type` | string +`underColor` | Array<number> + +## Example + +```typescript +import type { LinearGradient } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "breakpoints": null, + "noDataColor": null, + "overColor": null, + "type": null, + "underColor": null, +} satisfies LinearGradient + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LinearGradient +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LogarithmicGradient.md b/typescript/docs/LogarithmicGradient.md new file mode 100644 index 00000000..9478e21a --- /dev/null +++ b/typescript/docs/LogarithmicGradient.md @@ -0,0 +1,42 @@ + +# LogarithmicGradient + + +## Properties + +Name | Type +------------ | ------------- +`breakpoints` | [Array<Breakpoint>](Breakpoint.md) +`noDataColor` | Array<number> +`overColor` | Array<number> +`type` | string +`underColor` | Array<number> + +## Example + +```typescript +import type { LogarithmicGradient } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "breakpoints": null, + "noDataColor": null, + "overColor": null, + "type": null, + "underColor": null, +} satisfies LogarithmicGradient + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LogarithmicGradient +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MLApi.md b/typescript/docs/MLApi.md new file mode 100644 index 00000000..2fac8af1 --- /dev/null +++ b/typescript/docs/MLApi.md @@ -0,0 +1,210 @@ +# MLApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addMlModel**](MLApi.md#addmlmodel) | **POST** /ml/models | Create a new ml model. | +| [**getMlModel**](MLApi.md#getmlmodel) | **GET** /ml/models/{model_name} | Get ml model by name. | +| [**listMlModels**](MLApi.md#listmlmodels) | **GET** /ml/models | List ml models. | + + + +## addMlModel + +> MlModelNameResponse addMlModel(mlModel) + +Create a new ml model. + +### Example + +```ts +import { + Configuration, + MLApi, +} from '@geoengine/openapi-client'; +import type { AddMlModelRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new MLApi(config); + + const body = { + // MlModel + mlModel: ..., + } satisfies AddMlModelRequest; + + try { + const data = await api.addMlModel(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **mlModel** | [MlModel](MlModel.md) | | | + +### Return type + +[**MlModelNameResponse**](MlModelNameResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getMlModel + +> MlModel getMlModel(modelName) + +Get ml model by name. + +### Example + +```ts +import { + Configuration, + MLApi, +} from '@geoengine/openapi-client'; +import type { GetMlModelRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new MLApi(config); + + const body = { + // string | Ml Model Name + modelName: modelName_example, + } satisfies GetMlModelRequest; + + try { + const data = await api.getMlModel(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **modelName** | `string` | Ml Model Name | [Defaults to `undefined`] | + +### Return type + +[**MlModel**](MlModel.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listMlModels + +> Array<MlModel> listMlModels() + +List ml models. + +### Example + +```ts +import { + Configuration, + MLApi, +} from '@geoengine/openapi-client'; +import type { ListMlModelsRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new MLApi(config); + + try { + const data = await api.listMlModels(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Array<MlModel>**](MlModel.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/Measurement.md b/typescript/docs/Measurement.md new file mode 100644 index 00000000..5613f071 --- /dev/null +++ b/typescript/docs/Measurement.md @@ -0,0 +1,40 @@ + +# Measurement + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`measurement` | string +`unit` | string +`classes` | { [key: string]: string; } + +## Example + +```typescript +import type { Measurement } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "measurement": null, + "unit": null, + "classes": null, +} satisfies Measurement + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Measurement +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MetaDataDefinition.md b/typescript/docs/MetaDataDefinition.md new file mode 100644 index 00000000..4d95b5b9 --- /dev/null +++ b/typescript/docs/MetaDataDefinition.md @@ -0,0 +1,56 @@ + +# MetaDataDefinition + + +## Properties + +Name | Type +------------ | ------------- +`loadingInfo` | [OgrSourceDataset](OgrSourceDataset.md) +`resultDescriptor` | [RasterResultDescriptor](RasterResultDescriptor.md) +`type` | string +`cacheTtl` | number +`dataTime` | [TimeInterval](TimeInterval.md) +`params` | [Array<GdalLoadingInfoTemporalSlice>](GdalLoadingInfoTemporalSlice.md) +`step` | [TimeStep](TimeStep.md) +`timePlaceholders` | [{ [key: string]: GdalSourceTimePlaceholder; }](GdalSourceTimePlaceholder.md) +`time` | [TimeInterval](TimeInterval.md) +`bandOffset` | number +`end` | number +`start` | number + +## Example + +```typescript +import type { MetaDataDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "loadingInfo": null, + "resultDescriptor": null, + "type": null, + "cacheTtl": null, + "dataTime": null, + "params": null, + "step": null, + "timePlaceholders": null, + "time": null, + "bandOffset": null, + "end": null, + "start": null, +} satisfies MetaDataDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MetaDataDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MetaDataSuggestion.md b/typescript/docs/MetaDataSuggestion.md new file mode 100644 index 00000000..598573fa --- /dev/null +++ b/typescript/docs/MetaDataSuggestion.md @@ -0,0 +1,38 @@ + +# MetaDataSuggestion + + +## Properties + +Name | Type +------------ | ------------- +`layerName` | string +`mainFile` | string +`metaData` | [MetaDataDefinition](MetaDataDefinition.md) + +## Example + +```typescript +import type { MetaDataSuggestion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "layerName": null, + "mainFile": null, + "metaData": null, +} satisfies MetaDataSuggestion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MetaDataSuggestion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModel.md b/typescript/docs/MlModel.md new file mode 100644 index 00000000..f3b8d276 --- /dev/null +++ b/typescript/docs/MlModel.md @@ -0,0 +1,44 @@ + +# MlModel + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`displayName` | string +`fileName` | string +`metadata` | [MlModelMetadata](MlModelMetadata.md) +`name` | string +`upload` | string + +## Example + +```typescript +import type { MlModel } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "displayName": null, + "fileName": null, + "metadata": null, + "name": null, + "upload": null, +} satisfies MlModel + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModel +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelInputNoDataHandling.md b/typescript/docs/MlModelInputNoDataHandling.md new file mode 100644 index 00000000..46aa27cb --- /dev/null +++ b/typescript/docs/MlModelInputNoDataHandling.md @@ -0,0 +1,36 @@ + +# MlModelInputNoDataHandling + + +## Properties + +Name | Type +------------ | ------------- +`noDataValue` | number +`variant` | [MlModelInputNoDataHandlingVariant](MlModelInputNoDataHandlingVariant.md) + +## Example + +```typescript +import type { MlModelInputNoDataHandling } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "noDataValue": null, + "variant": null, +} satisfies MlModelInputNoDataHandling + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelInputNoDataHandling +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelInputNoDataHandlingVariant.md b/typescript/docs/MlModelInputNoDataHandlingVariant.md new file mode 100644 index 00000000..60b9c430 --- /dev/null +++ b/typescript/docs/MlModelInputNoDataHandlingVariant.md @@ -0,0 +1,32 @@ + +# MlModelInputNoDataHandlingVariant + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { MlModelInputNoDataHandlingVariant } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies MlModelInputNoDataHandlingVariant + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelInputNoDataHandlingVariant +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelMetadata.md b/typescript/docs/MlModelMetadata.md new file mode 100644 index 00000000..263fa0bc --- /dev/null +++ b/typescript/docs/MlModelMetadata.md @@ -0,0 +1,44 @@ + +# MlModelMetadata + + +## Properties + +Name | Type +------------ | ------------- +`inputNoDataHandling` | [MlModelInputNoDataHandling](MlModelInputNoDataHandling.md) +`inputShape` | [MlTensorShape3D](MlTensorShape3D.md) +`inputType` | [RasterDataType](RasterDataType.md) +`outputNoDataHandling` | [MlModelOutputNoDataHandling](MlModelOutputNoDataHandling.md) +`outputShape` | [MlTensorShape3D](MlTensorShape3D.md) +`outputType` | [RasterDataType](RasterDataType.md) + +## Example + +```typescript +import type { MlModelMetadata } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "inputNoDataHandling": null, + "inputShape": null, + "inputType": null, + "outputNoDataHandling": null, + "outputShape": null, + "outputType": null, +} satisfies MlModelMetadata + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelMetadata +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelNameResponse.md b/typescript/docs/MlModelNameResponse.md new file mode 100644 index 00000000..0e76ee94 --- /dev/null +++ b/typescript/docs/MlModelNameResponse.md @@ -0,0 +1,34 @@ + +# MlModelNameResponse + + +## Properties + +Name | Type +------------ | ------------- +`mlModelName` | string + +## Example + +```typescript +import type { MlModelNameResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "mlModelName": null, +} satisfies MlModelNameResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelNameResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelOutputNoDataHandling.md b/typescript/docs/MlModelOutputNoDataHandling.md new file mode 100644 index 00000000..4c6f432c --- /dev/null +++ b/typescript/docs/MlModelOutputNoDataHandling.md @@ -0,0 +1,36 @@ + +# MlModelOutputNoDataHandling + + +## Properties + +Name | Type +------------ | ------------- +`noDataValue` | number +`variant` | [MlModelOutputNoDataHandlingVariant](MlModelOutputNoDataHandlingVariant.md) + +## Example + +```typescript +import type { MlModelOutputNoDataHandling } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "noDataValue": null, + "variant": null, +} satisfies MlModelOutputNoDataHandling + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelOutputNoDataHandling +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelOutputNoDataHandlingVariant.md b/typescript/docs/MlModelOutputNoDataHandlingVariant.md new file mode 100644 index 00000000..b9e04ca3 --- /dev/null +++ b/typescript/docs/MlModelOutputNoDataHandlingVariant.md @@ -0,0 +1,32 @@ + +# MlModelOutputNoDataHandlingVariant + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { MlModelOutputNoDataHandlingVariant } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies MlModelOutputNoDataHandlingVariant + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelOutputNoDataHandlingVariant +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlModelResource.md b/typescript/docs/MlModelResource.md new file mode 100644 index 00000000..5e271628 --- /dev/null +++ b/typescript/docs/MlModelResource.md @@ -0,0 +1,36 @@ + +# MlModelResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { MlModelResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies MlModelResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlModelResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MlTensorShape3D.md b/typescript/docs/MlTensorShape3D.md new file mode 100644 index 00000000..5fd6aa70 --- /dev/null +++ b/typescript/docs/MlTensorShape3D.md @@ -0,0 +1,39 @@ + +# MlTensorShape3D + +A struct describing tensor shape for `MlModelMetadata` + +## Properties + +Name | Type +------------ | ------------- +`bands` | number +`x` | number +`y` | number + +## Example + +```typescript +import type { MlTensorShape3D } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bands": null, + "x": null, + "y": null, +} satisfies MlTensorShape3D + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MlTensorShape3D +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MockDatasetDataSourceLoadingInfo.md b/typescript/docs/MockDatasetDataSourceLoadingInfo.md new file mode 100644 index 00000000..db418b40 --- /dev/null +++ b/typescript/docs/MockDatasetDataSourceLoadingInfo.md @@ -0,0 +1,34 @@ + +# MockDatasetDataSourceLoadingInfo + + +## Properties + +Name | Type +------------ | ------------- +`points` | [Array<Coordinate2D>](Coordinate2D.md) + +## Example + +```typescript +import type { MockDatasetDataSourceLoadingInfo } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "points": null, +} satisfies MockDatasetDataSourceLoadingInfo + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MockDatasetDataSourceLoadingInfo +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MockMetaData.md b/typescript/docs/MockMetaData.md new file mode 100644 index 00000000..9ad1a432 --- /dev/null +++ b/typescript/docs/MockMetaData.md @@ -0,0 +1,38 @@ + +# MockMetaData + + +## Properties + +Name | Type +------------ | ------------- +`loadingInfo` | [MockDatasetDataSourceLoadingInfo](MockDatasetDataSourceLoadingInfo.md) +`resultDescriptor` | [VectorResultDescriptor](VectorResultDescriptor.md) +`type` | string + +## Example + +```typescript +import type { MockMetaData } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "loadingInfo": null, + "resultDescriptor": null, + "type": null, +} satisfies MockMetaData + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MockMetaData +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiBandRasterColorizer.md b/typescript/docs/MultiBandRasterColorizer.md new file mode 100644 index 00000000..e5a251bb --- /dev/null +++ b/typescript/docs/MultiBandRasterColorizer.md @@ -0,0 +1,60 @@ + +# MultiBandRasterColorizer + + +## Properties + +Name | Type +------------ | ------------- +`blueBand` | number +`blueMax` | number +`blueMin` | number +`blueScale` | number +`greenBand` | number +`greenMax` | number +`greenMin` | number +`greenScale` | number +`noDataColor` | Array<number> +`redBand` | number +`redMax` | number +`redMin` | number +`redScale` | number +`type` | string + +## Example + +```typescript +import type { MultiBandRasterColorizer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "blueBand": null, + "blueMax": null, + "blueMin": null, + "blueScale": null, + "greenBand": null, + "greenMax": null, + "greenMin": null, + "greenScale": null, + "noDataColor": null, + "redBand": null, + "redMax": null, + "redMin": null, + "redScale": null, + "type": null, +} satisfies MultiBandRasterColorizer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiBandRasterColorizer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiLineString.md b/typescript/docs/MultiLineString.md new file mode 100644 index 00000000..a1658f87 --- /dev/null +++ b/typescript/docs/MultiLineString.md @@ -0,0 +1,34 @@ + +# MultiLineString + + +## Properties + +Name | Type +------------ | ------------- +`coordinates` | Array<Array<Coordinate2D>> + +## Example + +```typescript +import type { MultiLineString } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "coordinates": null, +} satisfies MultiLineString + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiLineString +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiPoint.md b/typescript/docs/MultiPoint.md new file mode 100644 index 00000000..87ec987e --- /dev/null +++ b/typescript/docs/MultiPoint.md @@ -0,0 +1,34 @@ + +# MultiPoint + + +## Properties + +Name | Type +------------ | ------------- +`coordinates` | [Array<Coordinate2D>](Coordinate2D.md) + +## Example + +```typescript +import type { MultiPoint } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "coordinates": null, +} satisfies MultiPoint + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiPoint +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiPolygon.md b/typescript/docs/MultiPolygon.md new file mode 100644 index 00000000..b8771e86 --- /dev/null +++ b/typescript/docs/MultiPolygon.md @@ -0,0 +1,34 @@ + +# MultiPolygon + + +## Properties + +Name | Type +------------ | ------------- +`polygons` | Array<Array<Array<Coordinate2D>>> + +## Example + +```typescript +import type { MultiPolygon } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "polygons": null, +} satisfies MultiPolygon + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiPolygon +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/NetCdfCfDataProviderDefinition.md b/typescript/docs/NetCdfCfDataProviderDefinition.md new file mode 100644 index 00000000..a1e465b7 --- /dev/null +++ b/typescript/docs/NetCdfCfDataProviderDefinition.md @@ -0,0 +1,46 @@ + +# NetCdfCfDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`cacheTtl` | number +`data` | string +`description` | string +`name` | string +`overviews` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { NetCdfCfDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cacheTtl": null, + "data": null, + "description": null, + "name": null, + "overviews": null, + "priority": null, + "type": null, +} satisfies NetCdfCfDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as NetCdfCfDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/NumberParam.md b/typescript/docs/NumberParam.md new file mode 100644 index 00000000..178c7782 --- /dev/null +++ b/typescript/docs/NumberParam.md @@ -0,0 +1,42 @@ + +# NumberParam + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`value` | number +`attribute` | string +`defaultValue` | number +`factor` | number + +## Example + +```typescript +import type { NumberParam } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "value": null, + "attribute": null, + "defaultValue": null, + "factor": null, +} satisfies NumberParam + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as NumberParam +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OGCWCSApi.md b/typescript/docs/OGCWCSApi.md new file mode 100644 index 00000000..aa49fe9b --- /dev/null +++ b/typescript/docs/OGCWCSApi.md @@ -0,0 +1,278 @@ +# OGCWCSApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**wcsCapabilitiesHandler**](OGCWCSApi.md#wcscapabilitieshandler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities | +| [**wcsDescribeCoverageHandler**](OGCWCSApi.md#wcsdescribecoveragehandler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description | +| [**wcsGetCoverageHandler**](OGCWCSApi.md#wcsgetcoveragehandler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage | + + + +## wcsCapabilitiesHandler + +> string wcsCapabilitiesHandler(workflow, service, request, version) + +Get WCS Capabilities + +### Example + +```ts +import { + Configuration, + OGCWCSApi, +} from '@geoengine/openapi-client'; +import type { WcsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWCSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WcsService + service: ..., + // GetCapabilitiesRequest + request: ..., + // WcsVersion (optional) + version: ..., + } satisfies WcsCapabilitiesHandlerRequest; + + try { + const data = await api.wcsCapabilitiesHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | +| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | +| **version** | `WcsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wcsDescribeCoverageHandler + +> string wcsDescribeCoverageHandler(workflow, version, service, request, identifiers) + +Get WCS Coverage Description + +### Example + +```ts +import { + Configuration, + OGCWCSApi, +} from '@geoengine/openapi-client'; +import type { WcsDescribeCoverageHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWCSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WcsVersion + version: ..., + // WcsService + service: ..., + // DescribeCoverageRequest + request: ..., + // string + identifiers: , + } satisfies WcsDescribeCoverageHandlerRequest; + + try { + const data = await api.wcsDescribeCoverageHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WcsVersion` | | [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | +| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | +| **request** | `DescribeCoverageRequest` | | [Defaults to `undefined`] [Enum: DescribeCoverage] | +| **identifiers** | `string` | | [Defaults to `undefined`] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wcsGetCoverageHandler + +> Blob wcsGetCoverageHandler(workflow, version, service, request, format, identifier, boundingbox, gridbasecrs, gridorigin, gridoffsets, time, resx, resy, nodatavalue) + +Get WCS Coverage + +### Example + +```ts +import { + Configuration, + OGCWCSApi, +} from '@geoengine/openapi-client'; +import type { WcsGetCoverageHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWCSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WcsVersion + version: ..., + // WcsService + service: ..., + // GetCoverageRequest + request: ..., + // GetCoverageFormat + format: ..., + // string + identifier: , + // string + boundingbox: -90,-180,90,180,urn:ogc:def:crs:EPSG::4326, + // string + gridbasecrs: urn:ogc:def:crs:EPSG::4326, + // string (optional) + gridorigin: 90,-180, + // string (optional) + gridoffsets: -0.1,0.1, + // string (optional) + time: time_example, + // number (optional) + resx: 1.2, + // number (optional) + resy: 1.2, + // number (optional) + nodatavalue: 1.2, + } satisfies WcsGetCoverageHandlerRequest; + + try { + const data = await api.wcsGetCoverageHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WcsVersion` | | [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | +| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | +| **request** | `GetCoverageRequest` | | [Defaults to `undefined`] [Enum: GetCoverage] | +| **format** | `GetCoverageFormat` | | [Defaults to `undefined`] [Enum: image/tiff] | +| **identifier** | `string` | | [Defaults to `undefined`] | +| **boundingbox** | `string` | | [Defaults to `undefined`] | +| **gridbasecrs** | `string` | | [Defaults to `undefined`] | +| **gridorigin** | `string` | | [Optional] [Defaults to `undefined`] | +| **gridoffsets** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **resx** | `number` | | [Optional] [Defaults to `undefined`] | +| **resy** | `number` | | [Optional] [Defaults to `undefined`] | +| **nodatavalue** | `number` | | [Optional] [Defaults to `undefined`] | + +### Return type + +**Blob** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `image/png` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | PNG Image | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/OGCWFSApi.md b/typescript/docs/OGCWFSApi.md new file mode 100644 index 00000000..f60d257f --- /dev/null +++ b/typescript/docs/OGCWFSApi.md @@ -0,0 +1,199 @@ +# OGCWFSApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**wfsCapabilitiesHandler**](OGCWFSApi.md#wfscapabilitieshandler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities | +| [**wfsFeatureHandler**](OGCWFSApi.md#wfsfeaturehandler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features | + + + +## wfsCapabilitiesHandler + +> string wfsCapabilitiesHandler(workflow, version, service, request) + +Get WFS Capabilities + +### Example + +```ts +import { + Configuration, + OGCWFSApi, +} from '@geoengine/openapi-client'; +import type { WfsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWFSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WfsVersion + version: ..., + // WfsService + service: ..., + // GetCapabilitiesRequest + request: ..., + } satisfies WfsCapabilitiesHandlerRequest; + + try { + const data = await api.wfsCapabilitiesHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WfsVersion` | | [Defaults to `undefined`] [Enum: 2.0.0] | +| **service** | `WfsService` | | [Defaults to `undefined`] [Enum: WFS] | +| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wfsFeatureHandler + +> GeoJson wfsFeatureHandler(workflow, service, request, typeNames, bbox, version, time, srsName, namespaces, count, sortBy, resultType, filter, propertyName, queryResolution) + +Get WCS Features + +### Example + +```ts +import { + Configuration, + OGCWFSApi, +} from '@geoengine/openapi-client'; +import type { WfsFeatureHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWFSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WfsService + service: ..., + // GetFeatureRequest + request: ..., + // string + typeNames: , + // string + bbox: -90,-180,90,180, + // WfsVersion (optional) + version: ..., + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // string (optional) + srsName: EPSG:4326, + // string (optional) + namespaces: namespaces_example, + // number (optional) + count: 789, + // string (optional) + sortBy: sortBy_example, + // string (optional) + resultType: resultType_example, + // string (optional) + filter: filter_example, + // string (optional) + propertyName: propertyName_example, + // string | Vendor parameter for specifying a spatial query resolution (optional) + queryResolution: queryResolution_example, + } satisfies WfsFeatureHandlerRequest; + + try { + const data = await api.wfsFeatureHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **service** | `WfsService` | | [Defaults to `undefined`] [Enum: WFS] | +| **request** | `GetFeatureRequest` | | [Defaults to `undefined`] [Enum: GetFeature] | +| **typeNames** | `string` | | [Defaults to `undefined`] | +| **bbox** | `string` | | [Defaults to `undefined`] | +| **version** | `WfsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 2.0.0] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **srsName** | `string` | | [Optional] [Defaults to `undefined`] | +| **namespaces** | `string` | | [Optional] [Defaults to `undefined`] | +| **count** | `number` | | [Optional] [Defaults to `undefined`] | +| **sortBy** | `string` | | [Optional] [Defaults to `undefined`] | +| **resultType** | `string` | | [Optional] [Defaults to `undefined`] | +| **filter** | `string` | | [Optional] [Defaults to `undefined`] | +| **propertyName** | `string` | | [Optional] [Defaults to `undefined`] | +| **queryResolution** | `string` | Vendor parameter for specifying a spatial query resolution | [Optional] [Defaults to `undefined`] | + +### Return type + +[**GeoJson**](GeoJson.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/OGCWMSApi.md b/typescript/docs/OGCWMSApi.md new file mode 100644 index 00000000..4741944d --- /dev/null +++ b/typescript/docs/OGCWMSApi.md @@ -0,0 +1,293 @@ +# OGCWMSApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**wmsCapabilitiesHandler**](OGCWMSApi.md#wmscapabilitieshandler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities | +| [**wmsLegendGraphicHandler**](OGCWMSApi.md#wmslegendgraphichandler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic | +| [**wmsMapHandler**](OGCWMSApi.md#wmsmaphandler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map | + + + +## wmsCapabilitiesHandler + +> string wmsCapabilitiesHandler(workflow, version, service, request, format) + +Get WMS Capabilities + +### Example + +```ts +import { + Configuration, + OGCWMSApi, +} from '@geoengine/openapi-client'; +import type { WmsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWMSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WmsVersion + version: ..., + // WmsService + service: ..., + // GetCapabilitiesRequest + request: ..., + // GetCapabilitiesFormat + format: ..., + } satisfies WmsCapabilitiesHandlerRequest; + + try { + const data = await api.wmsCapabilitiesHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | +| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | +| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | +| **format** | `GetCapabilitiesFormat` | | [Defaults to `undefined`] [Enum: text/xml] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wmsLegendGraphicHandler + +> wmsLegendGraphicHandler(workflow, version, service, request, layer) + +Get WMS Legend Graphic + +### Example + +```ts +import { + Configuration, + OGCWMSApi, +} from '@geoengine/openapi-client'; +import type { WmsLegendGraphicHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWMSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WmsVersion + version: ..., + // WmsService + service: ..., + // GetLegendGraphicRequest + request: ..., + // string + layer: , + } satisfies WmsLegendGraphicHandlerRequest; + + try { + const data = await api.wmsLegendGraphicHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | +| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | +| **request** | `GetLegendGraphicRequest` | | [Defaults to `undefined`] [Enum: GetLegendGraphic] | +| **layer** | `string` | | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **501** | Not implemented | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wmsMapHandler + +> Blob wmsMapHandler(workflow, version, service, request, width, height, bbox, format, layers, styles, crs, time, transparent, bgcolor, sld, sldBody, elevation, exceptions) + +Get WMS Map + +### Example + +```ts +import { + Configuration, + OGCWMSApi, +} from '@geoengine/openapi-client'; +import type { WmsMapHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCWMSApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // WmsVersion + version: ..., + // WmsService + service: ..., + // GetMapRequest + request: ..., + // number + width: 512, + // number + height: 256, + // string + bbox: -90,-180,90,180, + // GetMapFormat + format: ..., + // string + layers: , + // string + styles: custom:{"type":"linearGradient","breakpoints":[{"value":1,"color":[0,0,0,255]},{"value":255,"color":[255,255,255,255]}],"noDataColor":[0,0,0,0],"defaultColor":[0,0,0,0]}, + // string (optional) + crs: EPSG:4326, + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // boolean (optional) + transparent: true, + // string (optional) + bgcolor: bgcolor_example, + // string (optional) + sld: sld_example, + // string (optional) + sldBody: sldBody_example, + // string (optional) + elevation: elevation_example, + // GetMapExceptionFormat (optional) + exceptions: ..., + } satisfies WmsMapHandlerRequest; + + try { + const data = await api.wmsMapHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | +| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | +| **request** | `GetMapRequest` | | [Defaults to `undefined`] [Enum: GetMap] | +| **width** | `number` | | [Defaults to `undefined`] | +| **height** | `number` | | [Defaults to `undefined`] | +| **bbox** | `string` | | [Defaults to `undefined`] | +| **format** | `GetMapFormat` | | [Defaults to `undefined`] [Enum: image/png] | +| **layers** | `string` | | [Defaults to `undefined`] | +| **styles** | `string` | | [Defaults to `undefined`] | +| **crs** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **transparent** | `boolean` | | [Optional] [Defaults to `undefined`] | +| **bgcolor** | `string` | | [Optional] [Defaults to `undefined`] | +| **sld** | `string` | | [Optional] [Defaults to `undefined`] | +| **sldBody** | `string` | | [Optional] [Defaults to `undefined`] | +| **elevation** | `string` | | [Optional] [Defaults to `undefined`] | +| **exceptions** | `GetMapExceptionFormat` | | [Optional] [Defaults to `undefined`] [Enum: XML, JSON] | + +### Return type + +**Blob** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `image/png` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | PNG Image | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/OgrMetaData.md b/typescript/docs/OgrMetaData.md new file mode 100644 index 00000000..4cbe8eac --- /dev/null +++ b/typescript/docs/OgrMetaData.md @@ -0,0 +1,38 @@ + +# OgrMetaData + + +## Properties + +Name | Type +------------ | ------------- +`loadingInfo` | [OgrSourceDataset](OgrSourceDataset.md) +`resultDescriptor` | [VectorResultDescriptor](VectorResultDescriptor.md) +`type` | string + +## Example + +```typescript +import type { OgrMetaData } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "loadingInfo": null, + "resultDescriptor": null, + "type": null, +} satisfies OgrMetaData + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrMetaData +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceColumnSpec.md b/typescript/docs/OgrSourceColumnSpec.md new file mode 100644 index 00000000..1457e4f8 --- /dev/null +++ b/typescript/docs/OgrSourceColumnSpec.md @@ -0,0 +1,50 @@ + +# OgrSourceColumnSpec + + +## Properties + +Name | Type +------------ | ------------- +`bool` | Array<string> +`datetime` | Array<string> +`_float` | Array<string> +`formatSpecifics` | [FormatSpecifics](FormatSpecifics.md) +`_int` | Array<string> +`rename` | { [key: string]: string; } +`text` | Array<string> +`x` | string +`y` | string + +## Example + +```typescript +import type { OgrSourceColumnSpec } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bool": null, + "datetime": null, + "_float": null, + "formatSpecifics": null, + "_int": null, + "rename": null, + "text": null, + "x": null, + "y": null, +} satisfies OgrSourceColumnSpec + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceColumnSpec +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDataset.md b/typescript/docs/OgrSourceDataset.md new file mode 100644 index 00000000..611f492a --- /dev/null +++ b/typescript/docs/OgrSourceDataset.md @@ -0,0 +1,56 @@ + +# OgrSourceDataset + + +## Properties + +Name | Type +------------ | ------------- +`attributeQuery` | string +`cacheTtl` | number +`columns` | [OgrSourceColumnSpec](OgrSourceColumnSpec.md) +`dataType` | [VectorDataType](VectorDataType.md) +`defaultGeometry` | [TypedGeometry](TypedGeometry.md) +`fileName` | string +`forceOgrSpatialFilter` | boolean +`forceOgrTimeFilter` | boolean +`layerName` | string +`onError` | [OgrSourceErrorSpec](OgrSourceErrorSpec.md) +`sqlQuery` | string +`time` | [OgrSourceDatasetTimeType](OgrSourceDatasetTimeType.md) + +## Example + +```typescript +import type { OgrSourceDataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "attributeQuery": null, + "cacheTtl": null, + "columns": null, + "dataType": null, + "defaultGeometry": null, + "fileName": null, + "forceOgrSpatialFilter": null, + "forceOgrTimeFilter": null, + "layerName": null, + "onError": null, + "sqlQuery": null, + "time": null, +} satisfies OgrSourceDataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDatasetTimeType.md b/typescript/docs/OgrSourceDatasetTimeType.md new file mode 100644 index 00000000..deec7d85 --- /dev/null +++ b/typescript/docs/OgrSourceDatasetTimeType.md @@ -0,0 +1,46 @@ + +# OgrSourceDatasetTimeType + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`duration` | [OgrSourceDurationSpec](OgrSourceDurationSpec.md) +`startField` | string +`startFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`endField` | string +`endFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`durationField` | string + +## Example + +```typescript +import type { OgrSourceDatasetTimeType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "duration": null, + "startField": null, + "startFormat": null, + "endField": null, + "endFormat": null, + "durationField": null, +} satisfies OgrSourceDatasetTimeType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDatasetTimeType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDatasetTimeTypeNone.md b/typescript/docs/OgrSourceDatasetTimeTypeNone.md new file mode 100644 index 00000000..515a1196 --- /dev/null +++ b/typescript/docs/OgrSourceDatasetTimeTypeNone.md @@ -0,0 +1,34 @@ + +# OgrSourceDatasetTimeTypeNone + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { OgrSourceDatasetTimeTypeNone } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies OgrSourceDatasetTimeTypeNone + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDatasetTimeTypeNone +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDatasetTimeTypeStart.md b/typescript/docs/OgrSourceDatasetTimeTypeStart.md new file mode 100644 index 00000000..64259dc3 --- /dev/null +++ b/typescript/docs/OgrSourceDatasetTimeTypeStart.md @@ -0,0 +1,40 @@ + +# OgrSourceDatasetTimeTypeStart + + +## Properties + +Name | Type +------------ | ------------- +`duration` | [OgrSourceDurationSpec](OgrSourceDurationSpec.md) +`startField` | string +`startFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`type` | string + +## Example + +```typescript +import type { OgrSourceDatasetTimeTypeStart } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "duration": null, + "startField": null, + "startFormat": null, + "type": null, +} satisfies OgrSourceDatasetTimeTypeStart + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDatasetTimeTypeStart +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDatasetTimeTypeStartDuration.md b/typescript/docs/OgrSourceDatasetTimeTypeStartDuration.md new file mode 100644 index 00000000..82bae101 --- /dev/null +++ b/typescript/docs/OgrSourceDatasetTimeTypeStartDuration.md @@ -0,0 +1,40 @@ + +# OgrSourceDatasetTimeTypeStartDuration + + +## Properties + +Name | Type +------------ | ------------- +`durationField` | string +`startField` | string +`startFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`type` | string + +## Example + +```typescript +import type { OgrSourceDatasetTimeTypeStartDuration } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "durationField": null, + "startField": null, + "startFormat": null, + "type": null, +} satisfies OgrSourceDatasetTimeTypeStartDuration + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDatasetTimeTypeStartDuration +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDatasetTimeTypeStartEnd.md b/typescript/docs/OgrSourceDatasetTimeTypeStartEnd.md new file mode 100644 index 00000000..393762d1 --- /dev/null +++ b/typescript/docs/OgrSourceDatasetTimeTypeStartEnd.md @@ -0,0 +1,42 @@ + +# OgrSourceDatasetTimeTypeStartEnd + + +## Properties + +Name | Type +------------ | ------------- +`endField` | string +`endFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`startField` | string +`startFormat` | [OgrSourceTimeFormat](OgrSourceTimeFormat.md) +`type` | string + +## Example + +```typescript +import type { OgrSourceDatasetTimeTypeStartEnd } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "endField": null, + "endFormat": null, + "startField": null, + "startFormat": null, + "type": null, +} satisfies OgrSourceDatasetTimeTypeStartEnd + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDatasetTimeTypeStartEnd +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDurationSpec.md b/typescript/docs/OgrSourceDurationSpec.md new file mode 100644 index 00000000..43009d70 --- /dev/null +++ b/typescript/docs/OgrSourceDurationSpec.md @@ -0,0 +1,34 @@ + +# OgrSourceDurationSpec + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { OgrSourceDurationSpec } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies OgrSourceDurationSpec + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDurationSpec +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDurationSpecInfinite.md b/typescript/docs/OgrSourceDurationSpecInfinite.md new file mode 100644 index 00000000..6337ed42 --- /dev/null +++ b/typescript/docs/OgrSourceDurationSpecInfinite.md @@ -0,0 +1,34 @@ + +# OgrSourceDurationSpecInfinite + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { OgrSourceDurationSpecInfinite } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies OgrSourceDurationSpecInfinite + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDurationSpecInfinite +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDurationSpecValue.md b/typescript/docs/OgrSourceDurationSpecValue.md new file mode 100644 index 00000000..0b1fc8b0 --- /dev/null +++ b/typescript/docs/OgrSourceDurationSpecValue.md @@ -0,0 +1,34 @@ + +# OgrSourceDurationSpecValue + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { OgrSourceDurationSpecValue } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies OgrSourceDurationSpecValue + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDurationSpecValue +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceDurationSpecZero.md b/typescript/docs/OgrSourceDurationSpecZero.md new file mode 100644 index 00000000..d404dde4 --- /dev/null +++ b/typescript/docs/OgrSourceDurationSpecZero.md @@ -0,0 +1,34 @@ + +# OgrSourceDurationSpecZero + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { OgrSourceDurationSpecZero } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies OgrSourceDurationSpecZero + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceDurationSpecZero +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceErrorSpec.md b/typescript/docs/OgrSourceErrorSpec.md new file mode 100644 index 00000000..401b61db --- /dev/null +++ b/typescript/docs/OgrSourceErrorSpec.md @@ -0,0 +1,32 @@ + +# OgrSourceErrorSpec + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { OgrSourceErrorSpec } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies OgrSourceErrorSpec + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceErrorSpec +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceTimeFormat.md b/typescript/docs/OgrSourceTimeFormat.md new file mode 100644 index 00000000..80f264ec --- /dev/null +++ b/typescript/docs/OgrSourceTimeFormat.md @@ -0,0 +1,38 @@ + +# OgrSourceTimeFormat + + +## Properties + +Name | Type +------------ | ------------- +`customFormat` | string +`format` | string +`timestampType` | [UnixTimeStampType](UnixTimeStampType.md) + +## Example + +```typescript +import type { OgrSourceTimeFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "customFormat": null, + "format": null, + "timestampType": null, +} satisfies OgrSourceTimeFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceTimeFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceTimeFormatAuto.md b/typescript/docs/OgrSourceTimeFormatAuto.md new file mode 100644 index 00000000..b7eff570 --- /dev/null +++ b/typescript/docs/OgrSourceTimeFormatAuto.md @@ -0,0 +1,34 @@ + +# OgrSourceTimeFormatAuto + + +## Properties + +Name | Type +------------ | ------------- +`format` | string + +## Example + +```typescript +import type { OgrSourceTimeFormatAuto } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "format": null, +} satisfies OgrSourceTimeFormatAuto + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceTimeFormatAuto +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceTimeFormatCustom.md b/typescript/docs/OgrSourceTimeFormatCustom.md new file mode 100644 index 00000000..69c77ed7 --- /dev/null +++ b/typescript/docs/OgrSourceTimeFormatCustom.md @@ -0,0 +1,36 @@ + +# OgrSourceTimeFormatCustom + + +## Properties + +Name | Type +------------ | ------------- +`customFormat` | string +`format` | string + +## Example + +```typescript +import type { OgrSourceTimeFormatCustom } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "customFormat": null, + "format": null, +} satisfies OgrSourceTimeFormatCustom + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceTimeFormatCustom +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OgrSourceTimeFormatUnixTimeStamp.md b/typescript/docs/OgrSourceTimeFormatUnixTimeStamp.md new file mode 100644 index 00000000..ee7a4c04 --- /dev/null +++ b/typescript/docs/OgrSourceTimeFormatUnixTimeStamp.md @@ -0,0 +1,36 @@ + +# OgrSourceTimeFormatUnixTimeStamp + + +## Properties + +Name | Type +------------ | ------------- +`format` | string +`timestampType` | [UnixTimeStampType](UnixTimeStampType.md) + +## Example + +```typescript +import type { OgrSourceTimeFormatUnixTimeStamp } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "format": null, + "timestampType": null, +} satisfies OgrSourceTimeFormatUnixTimeStamp + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceTimeFormatUnixTimeStamp +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OperatorQuota.md b/typescript/docs/OperatorQuota.md new file mode 100644 index 00000000..96782e3b --- /dev/null +++ b/typescript/docs/OperatorQuota.md @@ -0,0 +1,38 @@ + +# OperatorQuota + + +## Properties + +Name | Type +------------ | ------------- +`count` | number +`operatorName` | string +`operatorPath` | string + +## Example + +```typescript +import type { OperatorQuota } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "count": null, + "operatorName": null, + "operatorPath": null, +} satisfies OperatorQuota + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OperatorQuota +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/OrderBy.md b/typescript/docs/OrderBy.md new file mode 100644 index 00000000..42374e78 --- /dev/null +++ b/typescript/docs/OrderBy.md @@ -0,0 +1,32 @@ + +# OrderBy + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { OrderBy } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies OrderBy + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as OrderBy +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PaletteColorizer.md b/typescript/docs/PaletteColorizer.md new file mode 100644 index 00000000..0dc3b891 --- /dev/null +++ b/typescript/docs/PaletteColorizer.md @@ -0,0 +1,40 @@ + +# PaletteColorizer + + +## Properties + +Name | Type +------------ | ------------- +`colors` | { [key: string]: Array<number>; } +`defaultColor` | Array<number> +`noDataColor` | Array<number> +`type` | string + +## Example + +```typescript +import type { PaletteColorizer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "colors": null, + "defaultColor": null, + "noDataColor": null, + "type": null, +} satisfies PaletteColorizer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PaletteColorizer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PangaeaDataProviderDefinition.md b/typescript/docs/PangaeaDataProviderDefinition.md new file mode 100644 index 00000000..519c7447 --- /dev/null +++ b/typescript/docs/PangaeaDataProviderDefinition.md @@ -0,0 +1,44 @@ + +# PangaeaDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`baseUrl` | string +`cacheTtl` | number +`description` | string +`name` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { PangaeaDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "baseUrl": null, + "cacheTtl": null, + "description": null, + "name": null, + "priority": null, + "type": null, +} satisfies PangaeaDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PangaeaDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Permission.md b/typescript/docs/Permission.md new file mode 100644 index 00000000..ab17c991 --- /dev/null +++ b/typescript/docs/Permission.md @@ -0,0 +1,32 @@ + +# Permission + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { Permission } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies Permission + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Permission +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PermissionListOptions.md b/typescript/docs/PermissionListOptions.md new file mode 100644 index 00000000..c935e7fb --- /dev/null +++ b/typescript/docs/PermissionListOptions.md @@ -0,0 +1,36 @@ + +# PermissionListOptions + + +## Properties + +Name | Type +------------ | ------------- +`limit` | number +`offset` | number + +## Example + +```typescript +import type { PermissionListOptions } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "limit": null, + "offset": null, +} satisfies PermissionListOptions + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionListOptions +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PermissionListing.md b/typescript/docs/PermissionListing.md new file mode 100644 index 00000000..f3011124 --- /dev/null +++ b/typescript/docs/PermissionListing.md @@ -0,0 +1,38 @@ + +# PermissionListing + + +## Properties + +Name | Type +------------ | ------------- +`permission` | [Permission](Permission.md) +`resource` | [Resource](Resource.md) +`role` | [Role](Role.md) + +## Example + +```typescript +import type { PermissionListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "permission": null, + "resource": null, + "role": null, +} satisfies PermissionListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PermissionRequest.md b/typescript/docs/PermissionRequest.md new file mode 100644 index 00000000..89325321 --- /dev/null +++ b/typescript/docs/PermissionRequest.md @@ -0,0 +1,39 @@ + +# PermissionRequest + +Request for adding a new permission to the given role on the given resource + +## Properties + +Name | Type +------------ | ------------- +`permission` | [Permission](Permission.md) +`resource` | [Resource](Resource.md) +`roleId` | string + +## Example + +```typescript +import type { PermissionRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "permission": null, + "resource": null, + "roleId": null, +} satisfies PermissionRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PermissionsApi.md b/typescript/docs/PermissionsApi.md new file mode 100644 index 00000000..2488d005 --- /dev/null +++ b/typescript/docs/PermissionsApi.md @@ -0,0 +1,227 @@ +# PermissionsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addPermissionHandler**](PermissionsApi.md#addpermissionhandler) | **PUT** /permissions | Adds a new permission. | +| [**getResourcePermissionsHandler**](PermissionsApi.md#getresourcepermissionshandler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource. | +| [**removePermissionHandler**](PermissionsApi.md#removepermissionhandler) | **DELETE** /permissions | Removes an existing permission. | + + + +## addPermissionHandler + +> addPermissionHandler(permissionRequest) + +Adds a new permission. + +### Example + +```ts +import { + Configuration, + PermissionsApi, +} from '@geoengine/openapi-client'; +import type { AddPermissionHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new PermissionsApi(config); + + const body = { + // PermissionRequest + permissionRequest: {"resource":{"type":"layer","id":"00000000-0000-0000-0000-000000000000"},"roleId":"00000000-0000-0000-0000-000000000000","permission":"Read"}, + } satisfies AddPermissionHandlerRequest; + + try { + const data = await api.addPermissionHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionRequest** | [PermissionRequest](PermissionRequest.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getResourcePermissionsHandler + +> Array<PermissionListing> getResourcePermissionsHandler(resourceType, resourceId, limit, offset) + +Lists permission for a given resource. + +### Example + +```ts +import { + Configuration, + PermissionsApi, +} from '@geoengine/openapi-client'; +import type { GetResourcePermissionsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new PermissionsApi(config); + + const body = { + // string | Resource Type + resourceType: resourceType_example, + // string | Resource Id + resourceId: resourceId_example, + // number + limit: 56, + // number + offset: 56, + } satisfies GetResourcePermissionsHandlerRequest; + + try { + const data = await api.getResourcePermissionsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **resourceType** | `string` | Resource Type | [Defaults to `undefined`] | +| **resourceId** | `string` | Resource Id | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | +| **offset** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<PermissionListing>**](PermissionListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | List of permission | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removePermissionHandler + +> removePermissionHandler(permissionRequest) + +Removes an existing permission. + +### Example + +```ts +import { + Configuration, + PermissionsApi, +} from '@geoengine/openapi-client'; +import type { RemovePermissionHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new PermissionsApi(config); + + const body = { + // PermissionRequest + permissionRequest: {resource={type=layer, id=00000000-0000-0000-0000-000000000000}, roleId=00000000-0000-0000-0000-000000000000, permission=Read}, + } satisfies RemovePermissionHandlerRequest; + + try { + const data = await api.removePermissionHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionRequest** | [PermissionRequest](PermissionRequest.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/Plot.md b/typescript/docs/Plot.md new file mode 100644 index 00000000..7310c568 --- /dev/null +++ b/typescript/docs/Plot.md @@ -0,0 +1,36 @@ + +# Plot + + +## Properties + +Name | Type +------------ | ------------- +`name` | string +`workflow` | string + +## Example + +```typescript +import type { Plot } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "name": null, + "workflow": null, +} satisfies Plot + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Plot +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PlotOutputFormat.md b/typescript/docs/PlotOutputFormat.md new file mode 100644 index 00000000..ef788a64 --- /dev/null +++ b/typescript/docs/PlotOutputFormat.md @@ -0,0 +1,32 @@ + +# PlotOutputFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { PlotOutputFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies PlotOutputFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlotOutputFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PlotQueryRectangle.md b/typescript/docs/PlotQueryRectangle.md new file mode 100644 index 00000000..c524ecb9 --- /dev/null +++ b/typescript/docs/PlotQueryRectangle.md @@ -0,0 +1,39 @@ + +# PlotQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [BoundingBox2D](BoundingBox2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { PlotQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies PlotQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlotQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PlotResultDescriptor.md b/typescript/docs/PlotResultDescriptor.md new file mode 100644 index 00000000..55cc02fb --- /dev/null +++ b/typescript/docs/PlotResultDescriptor.md @@ -0,0 +1,39 @@ + +# PlotResultDescriptor + +A `ResultDescriptor` for plot queries + +## Properties + +Name | Type +------------ | ------------- +`bbox` | [BoundingBox2D](BoundingBox2D.md) +`spatialReference` | string +`time` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { PlotResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bbox": null, + "spatialReference": null, + "time": null, +} satisfies PlotResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlotResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PlotsApi.md b/typescript/docs/PlotsApi.md new file mode 100644 index 00000000..74416d28 --- /dev/null +++ b/typescript/docs/PlotsApi.md @@ -0,0 +1,92 @@ +# PlotsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getPlotHandler**](PlotsApi.md#getplothandler) | **GET** /plot/{id} | Generates a plot. | + + + +## getPlotHandler + +> WrappedPlotOutput getPlotHandler(bbox, time, spatialResolution, id, crs) + +Generates a plot. + +# Example 1. Upload the file `plain_data.csv` with the following content: ```csv a 1 2 ``` 2. Create a dataset from it using the \"Plain Data\" example at `/dataset`. 3. Create a statistics workflow using the \"Statistics Plot\" example at `/workflow`. 4. Generate the plot with this handler. + +### Example + +```ts +import { + Configuration, + PlotsApi, +} from '@geoengine/openapi-client'; +import type { GetPlotHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new PlotsApi(config); + + const body = { + // string + bbox: 0,-0.3,0.2,0, + // string + time: 2020-01-01T00:00:00.0Z, + // string + spatialResolution: 0.1,0.1, + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string (optional) + crs: EPSG:4326, + } satisfies GetPlotHandlerRequest; + + try { + const data = await api.getPlotHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **bbox** | `string` | | [Defaults to `undefined`] | +| **time** | `string` | | [Defaults to `undefined`] | +| **spatialResolution** | `string` | | [Defaults to `undefined`] | +| **id** | `string` | Workflow id | [Defaults to `undefined`] | +| **crs** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**WrappedPlotOutput**](WrappedPlotOutput.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/PointSymbology.md b/typescript/docs/PointSymbology.md new file mode 100644 index 00000000..4d65c52c --- /dev/null +++ b/typescript/docs/PointSymbology.md @@ -0,0 +1,42 @@ + +# PointSymbology + + +## Properties + +Name | Type +------------ | ------------- +`fillColor` | [ColorParam](ColorParam.md) +`radius` | [NumberParam](NumberParam.md) +`stroke` | [StrokeParam](StrokeParam.md) +`text` | [TextSymbology](TextSymbology.md) +`type` | string + +## Example + +```typescript +import type { PointSymbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "fillColor": null, + "radius": null, + "stroke": null, + "text": null, + "type": null, +} satisfies PointSymbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PointSymbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PolygonSymbology.md b/typescript/docs/PolygonSymbology.md new file mode 100644 index 00000000..b89ac07f --- /dev/null +++ b/typescript/docs/PolygonSymbology.md @@ -0,0 +1,42 @@ + +# PolygonSymbology + + +## Properties + +Name | Type +------------ | ------------- +`autoSimplified` | boolean +`fillColor` | [ColorParam](ColorParam.md) +`stroke` | [StrokeParam](StrokeParam.md) +`text` | [TextSymbology](TextSymbology.md) +`type` | string + +## Example + +```typescript +import type { PolygonSymbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "autoSimplified": null, + "fillColor": null, + "stroke": null, + "text": null, + "type": null, +} satisfies PolygonSymbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolygonSymbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Project.md b/typescript/docs/Project.md new file mode 100644 index 00000000..c590fded --- /dev/null +++ b/typescript/docs/Project.md @@ -0,0 +1,48 @@ + +# Project + + +## Properties + +Name | Type +------------ | ------------- +`bounds` | [STRectangle](STRectangle.md) +`description` | string +`id` | string +`layers` | [Array<ProjectLayer>](ProjectLayer.md) +`name` | string +`plots` | [Array<Plot>](Plot.md) +`timeStep` | [TimeStep](TimeStep.md) +`version` | [ProjectVersion](ProjectVersion.md) + +## Example + +```typescript +import type { Project } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bounds": null, + "description": null, + "id": null, + "layers": null, + "name": null, + "plots": null, + "timeStep": null, + "version": null, +} satisfies Project + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Project +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectLayer.md b/typescript/docs/ProjectLayer.md new file mode 100644 index 00000000..a1a55c36 --- /dev/null +++ b/typescript/docs/ProjectLayer.md @@ -0,0 +1,40 @@ + +# ProjectLayer + + +## Properties + +Name | Type +------------ | ------------- +`name` | string +`symbology` | [Symbology](Symbology.md) +`visibility` | [LayerVisibility](LayerVisibility.md) +`workflow` | string + +## Example + +```typescript +import type { ProjectLayer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "name": null, + "symbology": null, + "visibility": null, + "workflow": null, +} satisfies ProjectLayer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProjectLayer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectListing.md b/typescript/docs/ProjectListing.md new file mode 100644 index 00000000..df8046a5 --- /dev/null +++ b/typescript/docs/ProjectListing.md @@ -0,0 +1,44 @@ + +# ProjectListing + + +## Properties + +Name | Type +------------ | ------------- +`changed` | Date +`description` | string +`id` | string +`layerNames` | Array<string> +`name` | string +`plotNames` | Array<string> + +## Example + +```typescript +import type { ProjectListing } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "changed": null, + "description": null, + "id": null, + "layerNames": null, + "name": null, + "plotNames": null, +} satisfies ProjectListing + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProjectListing +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectResource.md b/typescript/docs/ProjectResource.md new file mode 100644 index 00000000..b822c781 --- /dev/null +++ b/typescript/docs/ProjectResource.md @@ -0,0 +1,36 @@ + +# ProjectResource + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { ProjectResource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies ProjectResource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProjectResource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectUpdateToken.md b/typescript/docs/ProjectUpdateToken.md new file mode 100644 index 00000000..aca6a6d7 --- /dev/null +++ b/typescript/docs/ProjectUpdateToken.md @@ -0,0 +1,32 @@ + +# ProjectUpdateToken + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { ProjectUpdateToken } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies ProjectUpdateToken + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProjectUpdateToken +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectVersion.md b/typescript/docs/ProjectVersion.md new file mode 100644 index 00000000..72378356 --- /dev/null +++ b/typescript/docs/ProjectVersion.md @@ -0,0 +1,36 @@ + +# ProjectVersion + + +## Properties + +Name | Type +------------ | ------------- +`changed` | Date +`id` | string + +## Example + +```typescript +import type { ProjectVersion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "changed": null, + "id": null, +} satisfies ProjectVersion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProjectVersion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProjectsApi.md b/typescript/docs/ProjectsApi.md new file mode 100644 index 00000000..be9574d5 --- /dev/null +++ b/typescript/docs/ProjectsApi.md @@ -0,0 +1,510 @@ +# ProjectsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createProjectHandler**](ProjectsApi.md#createprojecthandler) | **POST** /project | Create a new project for the user. | +| [**deleteProjectHandler**](ProjectsApi.md#deleteprojecthandler) | **DELETE** /project/{project} | Deletes a project. | +| [**listProjectsHandler**](ProjectsApi.md#listprojectshandler) | **GET** /projects | List all projects accessible to the user that match the selected criteria. | +| [**loadProjectLatestHandler**](ProjectsApi.md#loadprojectlatesthandler) | **GET** /project/{project} | Retrieves details about the latest version of a project. | +| [**loadProjectVersionHandler**](ProjectsApi.md#loadprojectversionhandler) | **GET** /project/{project}/{version} | Retrieves details about the given version of a project. | +| [**projectVersionsHandler**](ProjectsApi.md#projectversionshandler) | **GET** /project/{project}/versions | Lists all available versions of a project. | +| [**updateProjectHandler**](ProjectsApi.md#updateprojecthandler) | **PATCH** /project/{project} | Updates a project. This will create a new version. | + + + +## createProjectHandler + +> IdResponse createProjectHandler(createProject) + +Create a new project for the user. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { CreateProjectHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // CreateProject + createProject: ..., + } satisfies CreateProjectHandlerRequest; + + try { + const data = await api.createProjectHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createProject** | [CreateProject](CreateProject.md) | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deleteProjectHandler + +> deleteProjectHandler(project) + +Deletes a project. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { DeleteProjectHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies DeleteProjectHandlerRequest; + + try { + const data = await api.deleteProjectHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listProjectsHandler + +> Array<ProjectListing> listProjectsHandler(order, offset, limit) + +List all projects accessible to the user that match the selected criteria. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { ListProjectsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // OrderBy + order: NameAsc, + // number + offset: 0, + // number + limit: 2, + } satisfies ListProjectsHandlerRequest; + + try { + const data = await api.listProjectsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **order** | `OrderBy` | | [Defaults to `undefined`] [Enum: NameAsc, NameDesc] | +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<ProjectListing>**](ProjectListing.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | List of projects the user can access | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## loadProjectLatestHandler + +> Project loadProjectLatestHandler(project) + +Retrieves details about the latest version of a project. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { LoadProjectLatestHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies LoadProjectLatestHandlerRequest; + + try { + const data = await api.loadProjectLatestHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | + +### Return type + +[**Project**](Project.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Project loaded from database | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## loadProjectVersionHandler + +> Project loadProjectVersionHandler(project, version) + +Retrieves details about the given version of a project. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { LoadProjectVersionHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Version id + version: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies LoadProjectVersionHandlerRequest; + + try { + const data = await api.loadProjectVersionHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | +| **version** | `string` | Version id | [Defaults to `undefined`] | + +### Return type + +[**Project**](Project.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Project loaded from database | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## projectVersionsHandler + +> Array<ProjectVersion> projectVersionsHandler(project) + +Lists all available versions of a project. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { ProjectVersionsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies ProjectVersionsHandlerRequest; + + try { + const data = await api.projectVersionsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | + +### Return type + +[**Array<ProjectVersion>**](ProjectVersion.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateProjectHandler + +> updateProjectHandler(project, updateProject) + +Updates a project. This will create a new version. + +### Example + +```ts +import { + Configuration, + ProjectsApi, +} from '@geoengine/openapi-client'; +import type { UpdateProjectHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ProjectsApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // UpdateProject + updateProject: ..., + } satisfies UpdateProjectHandlerRequest; + + try { + const data = await api.updateProjectHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | +| **updateProject** | [UpdateProject](UpdateProject.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/Provenance.md b/typescript/docs/Provenance.md new file mode 100644 index 00000000..0480dbb7 --- /dev/null +++ b/typescript/docs/Provenance.md @@ -0,0 +1,38 @@ + +# Provenance + + +## Properties + +Name | Type +------------ | ------------- +`citation` | string +`license` | string +`uri` | string + +## Example + +```typescript +import type { Provenance } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "citation": null, + "license": null, + "uri": null, +} satisfies Provenance + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Provenance +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProvenanceEntry.md b/typescript/docs/ProvenanceEntry.md new file mode 100644 index 00000000..4af9eb98 --- /dev/null +++ b/typescript/docs/ProvenanceEntry.md @@ -0,0 +1,36 @@ + +# ProvenanceEntry + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<DataId>](DataId.md) +`provenance` | [Provenance](Provenance.md) + +## Example + +```typescript +import type { ProvenanceEntry } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "provenance": null, +} satisfies ProvenanceEntry + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProvenanceEntry +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProvenanceOutput.md b/typescript/docs/ProvenanceOutput.md new file mode 100644 index 00000000..6ca63e86 --- /dev/null +++ b/typescript/docs/ProvenanceOutput.md @@ -0,0 +1,36 @@ + +# ProvenanceOutput + + +## Properties + +Name | Type +------------ | ------------- +`data` | [DataId](DataId.md) +`provenance` | [Array<Provenance>](Provenance.md) + +## Example + +```typescript +import type { ProvenanceOutput } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "provenance": null, +} satisfies ProvenanceOutput + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProvenanceOutput +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Provenances.md b/typescript/docs/Provenances.md new file mode 100644 index 00000000..bac97bdc --- /dev/null +++ b/typescript/docs/Provenances.md @@ -0,0 +1,34 @@ + +# Provenances + + +## Properties + +Name | Type +------------ | ------------- +`provenances` | [Array<Provenance>](Provenance.md) + +## Example + +```typescript +import type { Provenances } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "provenances": null, +} satisfies Provenances + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Provenances +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProviderCapabilities.md b/typescript/docs/ProviderCapabilities.md new file mode 100644 index 00000000..53473546 --- /dev/null +++ b/typescript/docs/ProviderCapabilities.md @@ -0,0 +1,36 @@ + +# ProviderCapabilities + + +## Properties + +Name | Type +------------ | ------------- +`listing` | boolean +`search` | [SearchCapabilities](SearchCapabilities.md) + +## Example + +```typescript +import type { ProviderCapabilities } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "listing": null, + "search": null, +} satisfies ProviderCapabilities + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProviderCapabilities +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProviderLayerCollectionId.md b/typescript/docs/ProviderLayerCollectionId.md new file mode 100644 index 00000000..c47481df --- /dev/null +++ b/typescript/docs/ProviderLayerCollectionId.md @@ -0,0 +1,36 @@ + +# ProviderLayerCollectionId + + +## Properties + +Name | Type +------------ | ------------- +`collectionId` | string +`providerId` | string + +## Example + +```typescript +import type { ProviderLayerCollectionId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "collectionId": null, + "providerId": null, +} satisfies ProviderLayerCollectionId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProviderLayerCollectionId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ProviderLayerId.md b/typescript/docs/ProviderLayerId.md new file mode 100644 index 00000000..2d06f4b2 --- /dev/null +++ b/typescript/docs/ProviderLayerId.md @@ -0,0 +1,36 @@ + +# ProviderLayerId + + +## Properties + +Name | Type +------------ | ------------- +`layerId` | string +`providerId` | string + +## Example + +```typescript +import type { ProviderLayerId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "layerId": null, + "providerId": null, +} satisfies ProviderLayerId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ProviderLayerId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Quota.md b/typescript/docs/Quota.md new file mode 100644 index 00000000..44e42c2a --- /dev/null +++ b/typescript/docs/Quota.md @@ -0,0 +1,36 @@ + +# Quota + + +## Properties + +Name | Type +------------ | ------------- +`available` | number +`used` | number + +## Example + +```typescript +import type { Quota } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "available": null, + "used": null, +} satisfies Quota + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Quota +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterBandDescriptor.md b/typescript/docs/RasterBandDescriptor.md new file mode 100644 index 00000000..2b33b925 --- /dev/null +++ b/typescript/docs/RasterBandDescriptor.md @@ -0,0 +1,36 @@ + +# RasterBandDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`measurement` | [Measurement](Measurement.md) +`name` | string + +## Example + +```typescript +import type { RasterBandDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "measurement": null, + "name": null, +} satisfies RasterBandDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterBandDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterColorizer.md b/typescript/docs/RasterColorizer.md new file mode 100644 index 00000000..10df0a65 --- /dev/null +++ b/typescript/docs/RasterColorizer.md @@ -0,0 +1,64 @@ + +# RasterColorizer + + +## Properties + +Name | Type +------------ | ------------- +`band` | number +`bandColorizer` | [Colorizer](Colorizer.md) +`type` | string +`blueBand` | number +`blueMax` | number +`blueMin` | number +`blueScale` | number +`greenBand` | number +`greenMax` | number +`greenMin` | number +`greenScale` | number +`noDataColor` | Array<number> +`redBand` | number +`redMax` | number +`redMin` | number +`redScale` | number + +## Example + +```typescript +import type { RasterColorizer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "band": null, + "bandColorizer": null, + "type": null, + "blueBand": null, + "blueMax": null, + "blueMin": null, + "blueScale": null, + "greenBand": null, + "greenMax": null, + "greenMin": null, + "greenScale": null, + "noDataColor": null, + "redBand": null, + "redMax": null, + "redMin": null, + "redScale": null, +} satisfies RasterColorizer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterColorizer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterDataType.md b/typescript/docs/RasterDataType.md new file mode 100644 index 00000000..4286a37d --- /dev/null +++ b/typescript/docs/RasterDataType.md @@ -0,0 +1,32 @@ + +# RasterDataType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { RasterDataType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies RasterDataType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterDataType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterDatasetFromWorkflow.md b/typescript/docs/RasterDatasetFromWorkflow.md new file mode 100644 index 00000000..405342b2 --- /dev/null +++ b/typescript/docs/RasterDatasetFromWorkflow.md @@ -0,0 +1,43 @@ + +# RasterDatasetFromWorkflow + +parameter for the dataset from workflow handler (body) + +## Properties + +Name | Type +------------ | ------------- +`asCog` | boolean +`description` | string +`displayName` | string +`name` | string +`query` | [RasterQueryRectangle](RasterQueryRectangle.md) + +## Example + +```typescript +import type { RasterDatasetFromWorkflow } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "asCog": null, + "description": null, + "displayName": null, + "name": null, + "query": null, +} satisfies RasterDatasetFromWorkflow + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterDatasetFromWorkflow +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterDatasetFromWorkflowResult.md b/typescript/docs/RasterDatasetFromWorkflowResult.md new file mode 100644 index 00000000..0a5af9b2 --- /dev/null +++ b/typescript/docs/RasterDatasetFromWorkflowResult.md @@ -0,0 +1,37 @@ + +# RasterDatasetFromWorkflowResult + +response of the dataset from workflow handler + +## Properties + +Name | Type +------------ | ------------- +`dataset` | string +`upload` | string + +## Example + +```typescript +import type { RasterDatasetFromWorkflowResult } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataset": null, + "upload": null, +} satisfies RasterDatasetFromWorkflowResult + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterDatasetFromWorkflowResult +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterPropertiesEntryType.md b/typescript/docs/RasterPropertiesEntryType.md new file mode 100644 index 00000000..29f89175 --- /dev/null +++ b/typescript/docs/RasterPropertiesEntryType.md @@ -0,0 +1,32 @@ + +# RasterPropertiesEntryType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { RasterPropertiesEntryType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies RasterPropertiesEntryType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterPropertiesEntryType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterPropertiesKey.md b/typescript/docs/RasterPropertiesKey.md new file mode 100644 index 00000000..b6f6eca4 --- /dev/null +++ b/typescript/docs/RasterPropertiesKey.md @@ -0,0 +1,36 @@ + +# RasterPropertiesKey + + +## Properties + +Name | Type +------------ | ------------- +`domain` | string +`key` | string + +## Example + +```typescript +import type { RasterPropertiesKey } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "domain": null, + "key": null, +} satisfies RasterPropertiesKey + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterPropertiesKey +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterQueryRectangle.md b/typescript/docs/RasterQueryRectangle.md new file mode 100644 index 00000000..65063a5f --- /dev/null +++ b/typescript/docs/RasterQueryRectangle.md @@ -0,0 +1,39 @@ + +# RasterQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [SpatialPartition2D](SpatialPartition2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { RasterQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies RasterQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterResultDescriptor.md b/typescript/docs/RasterResultDescriptor.md new file mode 100644 index 00000000..50ce3540 --- /dev/null +++ b/typescript/docs/RasterResultDescriptor.md @@ -0,0 +1,45 @@ + +# RasterResultDescriptor + +A `ResultDescriptor` for raster queries + +## Properties + +Name | Type +------------ | ------------- +`bands` | [Array<RasterBandDescriptor>](RasterBandDescriptor.md) +`bbox` | [SpatialPartition2D](SpatialPartition2D.md) +`dataType` | [RasterDataType](RasterDataType.md) +`resolution` | [SpatialResolution](SpatialResolution.md) +`spatialReference` | string +`time` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { RasterResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bands": null, + "bbox": null, + "dataType": null, + "resolution": null, + "spatialReference": null, + "time": null, +} satisfies RasterResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterStreamWebsocketResultType.md b/typescript/docs/RasterStreamWebsocketResultType.md new file mode 100644 index 00000000..e7cd95d4 --- /dev/null +++ b/typescript/docs/RasterStreamWebsocketResultType.md @@ -0,0 +1,33 @@ + +# RasterStreamWebsocketResultType + +The stream result type for `raster_stream_websocket`. + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { RasterStreamWebsocketResultType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies RasterStreamWebsocketResultType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterStreamWebsocketResultType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterSymbology.md b/typescript/docs/RasterSymbology.md new file mode 100644 index 00000000..20a2de71 --- /dev/null +++ b/typescript/docs/RasterSymbology.md @@ -0,0 +1,38 @@ + +# RasterSymbology + + +## Properties + +Name | Type +------------ | ------------- +`opacity` | number +`rasterColorizer` | [RasterColorizer](RasterColorizer.md) +`type` | string + +## Example + +```typescript +import type { RasterSymbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "opacity": null, + "rasterColorizer": null, + "type": null, +} satisfies RasterSymbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterSymbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Resource.md b/typescript/docs/Resource.md new file mode 100644 index 00000000..b4be622a --- /dev/null +++ b/typescript/docs/Resource.md @@ -0,0 +1,37 @@ + +# Resource + +A resource that is affected by a permission. + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`type` | string + +## Example + +```typescript +import type { Resource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "type": null, +} satisfies Resource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Resource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Role.md b/typescript/docs/Role.md new file mode 100644 index 00000000..36347393 --- /dev/null +++ b/typescript/docs/Role.md @@ -0,0 +1,36 @@ + +# Role + + +## Properties + +Name | Type +------------ | ------------- +`id` | string +`name` | string + +## Example + +```typescript +import type { Role } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "name": null, +} satisfies Role + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Role +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RoleDescription.md b/typescript/docs/RoleDescription.md new file mode 100644 index 00000000..e58ae5f8 --- /dev/null +++ b/typescript/docs/RoleDescription.md @@ -0,0 +1,36 @@ + +# RoleDescription + + +## Properties + +Name | Type +------------ | ------------- +`individual` | boolean +`role` | [Role](Role.md) + +## Example + +```typescript +import type { RoleDescription } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "individual": null, + "role": null, +} satisfies RoleDescription + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RoleDescription +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/STRectangle.md b/typescript/docs/STRectangle.md new file mode 100644 index 00000000..c1184105 --- /dev/null +++ b/typescript/docs/STRectangle.md @@ -0,0 +1,38 @@ + +# STRectangle + + +## Properties + +Name | Type +------------ | ------------- +`boundingBox` | [BoundingBox2D](BoundingBox2D.md) +`spatialReference` | string +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { STRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "boundingBox": null, + "spatialReference": null, + "timeInterval": null, +} satisfies STRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as STRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SearchCapabilities.md b/typescript/docs/SearchCapabilities.md new file mode 100644 index 00000000..55e7ca5e --- /dev/null +++ b/typescript/docs/SearchCapabilities.md @@ -0,0 +1,38 @@ + +# SearchCapabilities + + +## Properties + +Name | Type +------------ | ------------- +`autocomplete` | boolean +`filters` | Array<string> +`searchTypes` | [SearchTypes](SearchTypes.md) + +## Example + +```typescript +import type { SearchCapabilities } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "autocomplete": null, + "filters": null, + "searchTypes": null, +} satisfies SearchCapabilities + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SearchCapabilities +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SearchType.md b/typescript/docs/SearchType.md new file mode 100644 index 00000000..5a425110 --- /dev/null +++ b/typescript/docs/SearchType.md @@ -0,0 +1,32 @@ + +# SearchType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { SearchType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies SearchType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SearchType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SearchTypes.md b/typescript/docs/SearchTypes.md new file mode 100644 index 00000000..2fdaa61d --- /dev/null +++ b/typescript/docs/SearchTypes.md @@ -0,0 +1,36 @@ + +# SearchTypes + + +## Properties + +Name | Type +------------ | ------------- +`fulltext` | boolean +`prefix` | boolean + +## Example + +```typescript +import type { SearchTypes } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "fulltext": null, + "prefix": null, +} satisfies SearchTypes + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SearchTypes +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SentinelS2L2ACogsProviderDefinition.md b/typescript/docs/SentinelS2L2ACogsProviderDefinition.md new file mode 100644 index 00000000..50e19992 --- /dev/null +++ b/typescript/docs/SentinelS2L2ACogsProviderDefinition.md @@ -0,0 +1,56 @@ + +# SentinelS2L2ACogsProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`apiUrl` | string +`bands` | [Array<StacBand>](StacBand.md) +`cacheTtl` | number +`description` | string +`gdalRetries` | number +`id` | string +`name` | string +`priority` | number +`queryBuffer` | [StacQueryBuffer](StacQueryBuffer.md) +`stacApiRetries` | [StacApiRetries](StacApiRetries.md) +`type` | string +`zones` | [Array<StacZone>](StacZone.md) + +## Example + +```typescript +import type { SentinelS2L2ACogsProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "apiUrl": null, + "bands": null, + "cacheTtl": null, + "description": null, + "gdalRetries": null, + "id": null, + "name": null, + "priority": null, + "queryBuffer": null, + "stacApiRetries": null, + "type": null, + "zones": null, +} satisfies SentinelS2L2ACogsProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SentinelS2L2ACogsProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ServerInfo.md b/typescript/docs/ServerInfo.md new file mode 100644 index 00000000..25a30bc7 --- /dev/null +++ b/typescript/docs/ServerInfo.md @@ -0,0 +1,40 @@ + +# ServerInfo + + +## Properties + +Name | Type +------------ | ------------- +`buildDate` | string +`commitHash` | string +`features` | string +`version` | string + +## Example + +```typescript +import type { ServerInfo } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "buildDate": null, + "commitHash": null, + "features": null, + "version": null, +} satisfies ServerInfo + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ServerInfo +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SessionApi.md b/typescript/docs/SessionApi.md new file mode 100644 index 00000000..b79cd89f --- /dev/null +++ b/typescript/docs/SessionApi.md @@ -0,0 +1,601 @@ +# SessionApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**anonymousHandler**](SessionApi.md#anonymoushandler) | **POST** /anonymous | Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. | +| [**loginHandler**](SessionApi.md#loginhandler) | **POST** /login | Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. | +| [**logoutHandler**](SessionApi.md#logouthandler) | **POST** /logout | Ends a session. | +| [**oidcInit**](SessionApi.md#oidcinit) | **POST** /oidcInit | Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. | +| [**oidcLogin**](SessionApi.md#oidclogin) | **POST** /oidcLogin | Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. | +| [**registerUserHandler**](SessionApi.md#registeruserhandler) | **POST** /user | Registers a user. | +| [**sessionHandler**](SessionApi.md#sessionhandler) | **GET** /session | Retrieves details about the current session. | +| [**sessionProjectHandler**](SessionApi.md#sessionprojecthandler) | **POST** /session/project/{project} | Sets the active project of the session. | +| [**sessionViewHandler**](SessionApi.md#sessionviewhandler) | **POST** /session/view | | + + + +## anonymousHandler + +> UserSession anonymousHandler() + +Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { AnonymousHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new SessionApi(); + + try { + const data = await api.anonymousHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The created session | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## loginHandler + +> UserSession loginHandler(userCredentials) + +Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { LoginHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new SessionApi(); + + const body = { + // UserCredentials + userCredentials: ..., + } satisfies LoginHandlerRequest; + + try { + const data = await api.loginHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userCredentials** | [UserCredentials](UserCredentials.md) | | | + +### Return type + +[**UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The created session | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## logoutHandler + +> logoutHandler() + +Ends a session. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { LogoutHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new SessionApi(config); + + try { + const data = await api.logoutHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The Session was deleted. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## oidcInit + +> AuthCodeRequestURL oidcInit(redirectUri) + +Initializes the Open Id Connect login procedure by requesting a parametrized url to the configured Id Provider. + +# Errors This call fails if Open ID Connect is disabled, misconfigured or the Id Provider is unreachable. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { OidcInitRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new SessionApi(); + + const body = { + // string + redirectUri: redirectUri_example, + } satisfies OidcInitRequest; + + try { + const data = await api.oidcInit(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **redirectUri** | `string` | | [Defaults to `undefined`] | + +### Return type + +[**AuthCodeRequestURL**](AuthCodeRequestURL.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## oidcLogin + +> UserSession oidcLogin(redirectUri, authCodeResponse) + +Creates a session for a user via a login with Open Id Connect. This call must be preceded by a call to oidcInit and match the parameters of that call. + +# Errors This call fails if the [`AuthCodeResponse`] is invalid, if a previous oidcLogin call with the same state was already successfully or unsuccessfully resolved, if the Open Id Connect configuration is invalid, or if the Id Provider is unreachable. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { OidcLoginRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new SessionApi(); + + const body = { + // string + redirectUri: redirectUri_example, + // AuthCodeResponse + authCodeResponse: ..., + } satisfies OidcLoginRequest; + + try { + const data = await api.oidcLogin(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **redirectUri** | `string` | | [Defaults to `undefined`] | +| **authCodeResponse** | [AuthCodeResponse](AuthCodeResponse.md) | | | + +### Return type + +[**UserSession**](UserSession.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## registerUserHandler + +> string registerUserHandler(userRegistration) + +Registers a user. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { RegisterUserHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const api = new SessionApi(); + + const body = { + // UserRegistration + userRegistration: ..., + } satisfies RegisterUserHandlerRequest; + + try { + const data = await api.registerUserHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userRegistration** | [UserRegistration](UserRegistration.md) | | | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The id of the created user | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## sessionHandler + +> UserSession sessionHandler() + +Retrieves details about the current session. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { SessionHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new SessionApi(config); + + try { + const data = await api.sessionHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**UserSession**](UserSession.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The current session | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## sessionProjectHandler + +> sessionProjectHandler(project) + +Sets the active project of the session. + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { SessionProjectHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new SessionApi(config); + + const body = { + // string | Project id + project: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies SessionProjectHandlerRequest; + + try { + const data = await api.sessionProjectHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **project** | `string` | Project id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The project of the session was updated. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## sessionViewHandler + +> sessionViewHandler(sTRectangle) + + + +### Example + +```ts +import { + Configuration, + SessionApi, +} from '@geoengine/openapi-client'; +import type { SessionViewHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new SessionApi(config); + + const body = { + // STRectangle + sTRectangle: ..., + } satisfies SessionViewHandlerRequest; + + try { + const data = await api.sessionViewHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sTRectangle** | [STRectangle](STRectangle.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The view of the session was updated. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/SingleBandRasterColorizer.md b/typescript/docs/SingleBandRasterColorizer.md new file mode 100644 index 00000000..ab11c94c --- /dev/null +++ b/typescript/docs/SingleBandRasterColorizer.md @@ -0,0 +1,38 @@ + +# SingleBandRasterColorizer + + +## Properties + +Name | Type +------------ | ------------- +`band` | number +`bandColorizer` | [Colorizer](Colorizer.md) +`type` | string + +## Example + +```typescript +import type { SingleBandRasterColorizer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "band": null, + "bandColorizer": null, + "type": null, +} satisfies SingleBandRasterColorizer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SingleBandRasterColorizer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SpatialPartition2D.md b/typescript/docs/SpatialPartition2D.md new file mode 100644 index 00000000..e5883032 --- /dev/null +++ b/typescript/docs/SpatialPartition2D.md @@ -0,0 +1,37 @@ + +# SpatialPartition2D + +A partition of space that include the upper left but excludes the lower right coordinate + +## Properties + +Name | Type +------------ | ------------- +`lowerRightCoordinate` | [Coordinate2D](Coordinate2D.md) +`upperLeftCoordinate` | [Coordinate2D](Coordinate2D.md) + +## Example + +```typescript +import type { SpatialPartition2D } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "lowerRightCoordinate": null, + "upperLeftCoordinate": null, +} satisfies SpatialPartition2D + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SpatialPartition2D +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SpatialReferenceAuthority.md b/typescript/docs/SpatialReferenceAuthority.md new file mode 100644 index 00000000..7012c4e4 --- /dev/null +++ b/typescript/docs/SpatialReferenceAuthority.md @@ -0,0 +1,33 @@ + +# SpatialReferenceAuthority + +A spatial reference authority that is part of a spatial reference definition + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { SpatialReferenceAuthority } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies SpatialReferenceAuthority + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SpatialReferenceAuthority +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SpatialReferenceSpecification.md b/typescript/docs/SpatialReferenceSpecification.md new file mode 100644 index 00000000..fb32e988 --- /dev/null +++ b/typescript/docs/SpatialReferenceSpecification.md @@ -0,0 +1,45 @@ + +# SpatialReferenceSpecification + +The specification of a spatial reference, where extent and axis labels are given in natural order (x, y) = (east, north) + +## Properties + +Name | Type +------------ | ------------- +`axisLabels` | Array<string> +`axisOrder` | [AxisOrder](AxisOrder.md) +`extent` | [BoundingBox2D](BoundingBox2D.md) +`name` | string +`projString` | string +`spatialReference` | string + +## Example + +```typescript +import type { SpatialReferenceSpecification } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "axisLabels": null, + "axisOrder": null, + "extent": null, + "name": null, + "projString": null, + "spatialReference": null, +} satisfies SpatialReferenceSpecification + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SpatialReferenceSpecification +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SpatialReferencesApi.md b/typescript/docs/SpatialReferencesApi.md new file mode 100644 index 00000000..a0fcccbf --- /dev/null +++ b/typescript/docs/SpatialReferencesApi.md @@ -0,0 +1,78 @@ +# SpatialReferencesApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getSpatialReferenceSpecificationHandler**](SpatialReferencesApi.md#getspatialreferencespecificationhandler) | **GET** /spatialReferenceSpecification/{srsString} | | + + + +## getSpatialReferenceSpecificationHandler + +> SpatialReferenceSpecification getSpatialReferenceSpecificationHandler(srsString) + + + +### Example + +```ts +import { + Configuration, + SpatialReferencesApi, +} from '@geoengine/openapi-client'; +import type { GetSpatialReferenceSpecificationHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new SpatialReferencesApi(config); + + const body = { + // string + srsString: EPSG:4326, + } satisfies GetSpatialReferenceSpecificationHandlerRequest; + + try { + const data = await api.getSpatialReferenceSpecificationHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **srsString** | `string` | | [Defaults to `undefined`] | + +### Return type + +[**SpatialReferenceSpecification**](SpatialReferenceSpecification.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/SpatialResolution.md b/typescript/docs/SpatialResolution.md new file mode 100644 index 00000000..9c9ea0ad --- /dev/null +++ b/typescript/docs/SpatialResolution.md @@ -0,0 +1,37 @@ + +# SpatialResolution + +The spatial resolution in SRS units + +## Properties + +Name | Type +------------ | ------------- +`x` | number +`y` | number + +## Example + +```typescript +import type { SpatialResolution } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "x": null, + "y": null, +} satisfies SpatialResolution + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SpatialResolution +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacApiRetries.md b/typescript/docs/StacApiRetries.md new file mode 100644 index 00000000..b1844d0f --- /dev/null +++ b/typescript/docs/StacApiRetries.md @@ -0,0 +1,38 @@ + +# StacApiRetries + + +## Properties + +Name | Type +------------ | ------------- +`exponentialBackoffFactor` | number +`initialDelayMs` | number +`numberOfRetries` | number + +## Example + +```typescript +import type { StacApiRetries } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "exponentialBackoffFactor": null, + "initialDelayMs": null, + "numberOfRetries": null, +} satisfies StacApiRetries + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacApiRetries +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacBand.md b/typescript/docs/StacBand.md new file mode 100644 index 00000000..e5d76d3f --- /dev/null +++ b/typescript/docs/StacBand.md @@ -0,0 +1,38 @@ + +# StacBand + + +## Properties + +Name | Type +------------ | ------------- +`dataType` | [RasterDataType](RasterDataType.md) +`name` | string +`noDataValue` | number + +## Example + +```typescript +import type { StacBand } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataType": null, + "name": null, + "noDataValue": null, +} satisfies StacBand + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacBand +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacQueryBuffer.md b/typescript/docs/StacQueryBuffer.md new file mode 100644 index 00000000..e978274c --- /dev/null +++ b/typescript/docs/StacQueryBuffer.md @@ -0,0 +1,37 @@ + +# StacQueryBuffer + +A struct that represents buffers to apply to stac requests + +## Properties + +Name | Type +------------ | ------------- +`endSeconds` | number +`startSeconds` | number + +## Example + +```typescript +import type { StacQueryBuffer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "endSeconds": null, + "startSeconds": null, +} satisfies StacQueryBuffer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacQueryBuffer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacZone.md b/typescript/docs/StacZone.md new file mode 100644 index 00000000..8c147b24 --- /dev/null +++ b/typescript/docs/StacZone.md @@ -0,0 +1,36 @@ + +# StacZone + + +## Properties + +Name | Type +------------ | ------------- +`epsg` | number +`name` | string + +## Example + +```typescript +import type { StacZone } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "epsg": null, + "name": null, +} satisfies StacZone + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacZone +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StaticColor.md b/typescript/docs/StaticColor.md new file mode 100644 index 00000000..f71c3832 --- /dev/null +++ b/typescript/docs/StaticColor.md @@ -0,0 +1,36 @@ + +# StaticColor + + +## Properties + +Name | Type +------------ | ------------- +`color` | Array<number> +`type` | string + +## Example + +```typescript +import type { StaticColor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "color": null, + "type": null, +} satisfies StaticColor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StaticColor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StaticNumber.md b/typescript/docs/StaticNumber.md new file mode 100644 index 00000000..b0f01622 --- /dev/null +++ b/typescript/docs/StaticNumber.md @@ -0,0 +1,36 @@ + +# StaticNumber + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`value` | number + +## Example + +```typescript +import type { StaticNumber } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "value": null, +} satisfies StaticNumber + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StaticNumber +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StrokeParam.md b/typescript/docs/StrokeParam.md new file mode 100644 index 00000000..7e0b1459 --- /dev/null +++ b/typescript/docs/StrokeParam.md @@ -0,0 +1,36 @@ + +# StrokeParam + + +## Properties + +Name | Type +------------ | ------------- +`color` | [ColorParam](ColorParam.md) +`width` | [NumberParam](NumberParam.md) + +## Example + +```typescript +import type { StrokeParam } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "color": null, + "width": null, +} satisfies StrokeParam + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StrokeParam +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SuggestMetaData.md b/typescript/docs/SuggestMetaData.md new file mode 100644 index 00000000..9c825036 --- /dev/null +++ b/typescript/docs/SuggestMetaData.md @@ -0,0 +1,38 @@ + +# SuggestMetaData + + +## Properties + +Name | Type +------------ | ------------- +`dataPath` | [DataPath](DataPath.md) +`layerName` | string +`mainFile` | string + +## Example + +```typescript +import type { SuggestMetaData } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataPath": null, + "layerName": null, + "mainFile": null, +} satisfies SuggestMetaData + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuggestMetaData +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Symbology.md b/typescript/docs/Symbology.md new file mode 100644 index 00000000..987ed389 --- /dev/null +++ b/typescript/docs/Symbology.md @@ -0,0 +1,48 @@ + +# Symbology + + +## Properties + +Name | Type +------------ | ------------- +`opacity` | number +`rasterColorizer` | [RasterColorizer](RasterColorizer.md) +`type` | string +`fillColor` | [ColorParam](ColorParam.md) +`radius` | [NumberParam](NumberParam.md) +`stroke` | [StrokeParam](StrokeParam.md) +`text` | [TextSymbology](TextSymbology.md) +`autoSimplified` | boolean + +## Example + +```typescript +import type { Symbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "opacity": null, + "rasterColorizer": null, + "type": null, + "fillColor": null, + "radius": null, + "stroke": null, + "text": null, + "autoSimplified": null, +} satisfies Symbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Symbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskAbortOptions.md b/typescript/docs/TaskAbortOptions.md new file mode 100644 index 00000000..2a7c7c08 --- /dev/null +++ b/typescript/docs/TaskAbortOptions.md @@ -0,0 +1,34 @@ + +# TaskAbortOptions + + +## Properties + +Name | Type +------------ | ------------- +`force` | boolean + +## Example + +```typescript +import type { TaskAbortOptions } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "force": null, +} satisfies TaskAbortOptions + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskAbortOptions +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskFilter.md b/typescript/docs/TaskFilter.md new file mode 100644 index 00000000..1ea55fdd --- /dev/null +++ b/typescript/docs/TaskFilter.md @@ -0,0 +1,32 @@ + +# TaskFilter + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { TaskFilter } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies TaskFilter + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskFilter +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskListOptions.md b/typescript/docs/TaskListOptions.md new file mode 100644 index 00000000..d801ae44 --- /dev/null +++ b/typescript/docs/TaskListOptions.md @@ -0,0 +1,38 @@ + +# TaskListOptions + + +## Properties + +Name | Type +------------ | ------------- +`filter` | [TaskFilter](TaskFilter.md) +`limit` | number +`offset` | number + +## Example + +```typescript +import type { TaskListOptions } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "filter": null, + "limit": null, + "offset": null, +} satisfies TaskListOptions + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskListOptions +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskResponse.md b/typescript/docs/TaskResponse.md new file mode 100644 index 00000000..1f90ff53 --- /dev/null +++ b/typescript/docs/TaskResponse.md @@ -0,0 +1,35 @@ + +# TaskResponse + +Create a task somewhere and respond with a task id to query the task status. + +## Properties + +Name | Type +------------ | ------------- +`taskId` | string + +## Example + +```typescript +import type { TaskResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "taskId": null, +} satisfies TaskResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatus.md b/typescript/docs/TaskStatus.md new file mode 100644 index 00000000..5a0b136c --- /dev/null +++ b/typescript/docs/TaskStatus.md @@ -0,0 +1,52 @@ + +# TaskStatus + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`estimatedTimeRemaining` | string +`info` | any +`pctComplete` | string +`status` | string +`taskType` | string +`timeStarted` | string +`timeTotal` | string +`cleanUp` | any +`error` | any + +## Example + +```typescript +import type { TaskStatus } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "estimatedTimeRemaining": null, + "info": null, + "pctComplete": null, + "status": null, + "taskType": null, + "timeStarted": null, + "timeTotal": null, + "cleanUp": null, + "error": null, +} satisfies TaskStatus + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatus +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatusAborted.md b/typescript/docs/TaskStatusAborted.md new file mode 100644 index 00000000..7b9365ff --- /dev/null +++ b/typescript/docs/TaskStatusAborted.md @@ -0,0 +1,36 @@ + +# TaskStatusAborted + + +## Properties + +Name | Type +------------ | ------------- +`cleanUp` | any +`status` | string + +## Example + +```typescript +import type { TaskStatusAborted } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cleanUp": null, + "status": null, +} satisfies TaskStatusAborted + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatusAborted +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatusCompleted.md b/typescript/docs/TaskStatusCompleted.md new file mode 100644 index 00000000..8074a4f8 --- /dev/null +++ b/typescript/docs/TaskStatusCompleted.md @@ -0,0 +1,44 @@ + +# TaskStatusCompleted + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`info` | any +`status` | string +`taskType` | string +`timeStarted` | string +`timeTotal` | string + +## Example + +```typescript +import type { TaskStatusCompleted } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "info": null, + "status": null, + "taskType": null, + "timeStarted": null, + "timeTotal": null, +} satisfies TaskStatusCompleted + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatusCompleted +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatusFailed.md b/typescript/docs/TaskStatusFailed.md new file mode 100644 index 00000000..b908ee6c --- /dev/null +++ b/typescript/docs/TaskStatusFailed.md @@ -0,0 +1,38 @@ + +# TaskStatusFailed + + +## Properties + +Name | Type +------------ | ------------- +`cleanUp` | any +`error` | any +`status` | string + +## Example + +```typescript +import type { TaskStatusFailed } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "cleanUp": null, + "error": null, + "status": null, +} satisfies TaskStatusFailed + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatusFailed +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatusRunning.md b/typescript/docs/TaskStatusRunning.md new file mode 100644 index 00000000..f50a4323 --- /dev/null +++ b/typescript/docs/TaskStatusRunning.md @@ -0,0 +1,46 @@ + +# TaskStatusRunning + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`estimatedTimeRemaining` | string +`info` | any +`pctComplete` | string +`status` | string +`taskType` | string +`timeStarted` | string + +## Example + +```typescript +import type { TaskStatusRunning } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "estimatedTimeRemaining": null, + "info": null, + "pctComplete": null, + "status": null, + "taskType": null, + "timeStarted": null, +} satisfies TaskStatusRunning + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatusRunning +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TaskStatusWithId.md b/typescript/docs/TaskStatusWithId.md new file mode 100644 index 00000000..0a7f1bde --- /dev/null +++ b/typescript/docs/TaskStatusWithId.md @@ -0,0 +1,34 @@ + +# TaskStatusWithId + + +## Properties + +Name | Type +------------ | ------------- +`taskId` | string + +## Example + +```typescript +import type { TaskStatusWithId } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "taskId": null, +} satisfies TaskStatusWithId + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TaskStatusWithId +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TasksApi.md b/typescript/docs/TasksApi.md new file mode 100644 index 00000000..dac812ec --- /dev/null +++ b/typescript/docs/TasksApi.md @@ -0,0 +1,229 @@ +# TasksApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**abortHandler**](TasksApi.md#aborthandler) | **DELETE** /tasks/{id} | Abort a running task. | +| [**listHandler**](TasksApi.md#listhandler) | **GET** /tasks/list | Retrieve the status of all tasks. | +| [**statusHandler**](TasksApi.md#statushandler) | **GET** /tasks/{id}/status | Retrieve the status of a task. | + + + +## abortHandler + +> abortHandler(id, force) + +Abort a running task. + +# Parameters * `force` - If true, the task will be aborted without clean-up. You can abort a task that is already in the process of aborting. + +### Example + +```ts +import { + Configuration, + TasksApi, +} from '@geoengine/openapi-client'; +import type { AbortHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new TasksApi(config); + + const body = { + // string | Task id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // boolean (optional) + force: true, + } satisfies AbortHandlerRequest; + + try { + const data = await api.abortHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Task id | [Defaults to `undefined`] | +| **force** | `boolean` | | [Optional] [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Task will be aborted. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listHandler + +> Array<TaskStatusWithId> listHandler(filter, offset, limit) + +Retrieve the status of all tasks. + +### Example + +```ts +import { + Configuration, + TasksApi, +} from '@geoengine/openapi-client'; +import type { ListHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new TasksApi(config); + + const body = { + // TaskFilter + filter: ..., + // number + offset: 0, + // number + limit: 20, + } satisfies ListHandlerRequest; + + try { + const data = await api.listHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **filter** | `TaskFilter` | | [Defaults to `undefined`] [Enum: running, aborted, failed, completed] | +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<TaskStatusWithId>**](TaskStatusWithId.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Status of all tasks | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## statusHandler + +> TaskStatus statusHandler(id) + +Retrieve the status of a task. + +### Example + +```ts +import { + Configuration, + TasksApi, +} from '@geoengine/openapi-client'; +import type { StatusHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new TasksApi(config); + + const body = { + // string | Task id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies StatusHandlerRequest; + + try { + const data = await api.statusHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Task id | [Defaults to `undefined`] | + +### Return type + +[**TaskStatus**](TaskStatus.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Status of the task (running) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/TextSymbology.md b/typescript/docs/TextSymbology.md new file mode 100644 index 00000000..48778775 --- /dev/null +++ b/typescript/docs/TextSymbology.md @@ -0,0 +1,38 @@ + +# TextSymbology + + +## Properties + +Name | Type +------------ | ------------- +`attribute` | string +`fillColor` | [ColorParam](ColorParam.md) +`stroke` | [StrokeParam](StrokeParam.md) + +## Example + +```typescript +import type { TextSymbology } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "attribute": null, + "fillColor": null, + "stroke": null, +} satisfies TextSymbology + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TextSymbology +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TimeGranularity.md b/typescript/docs/TimeGranularity.md new file mode 100644 index 00000000..cc4cf7ae --- /dev/null +++ b/typescript/docs/TimeGranularity.md @@ -0,0 +1,33 @@ + +# TimeGranularity + +A time granularity. + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { TimeGranularity } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies TimeGranularity + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TimeGranularity +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TimeInterval.md b/typescript/docs/TimeInterval.md new file mode 100644 index 00000000..e60b095c --- /dev/null +++ b/typescript/docs/TimeInterval.md @@ -0,0 +1,37 @@ + +# TimeInterval + +Stores time intervals in ms in close-open semantic [start, end) + +## Properties + +Name | Type +------------ | ------------- +`end` | number +`start` | number + +## Example + +```typescript +import type { TimeInterval } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "end": null, + "start": null, +} satisfies TimeInterval + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TimeInterval +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TimeReference.md b/typescript/docs/TimeReference.md new file mode 100644 index 00000000..cf75bc91 --- /dev/null +++ b/typescript/docs/TimeReference.md @@ -0,0 +1,32 @@ + +# TimeReference + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { TimeReference } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies TimeReference + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TimeReference +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TimeStep.md b/typescript/docs/TimeStep.md new file mode 100644 index 00000000..758cab28 --- /dev/null +++ b/typescript/docs/TimeStep.md @@ -0,0 +1,36 @@ + +# TimeStep + + +## Properties + +Name | Type +------------ | ------------- +`granularity` | [TimeGranularity](TimeGranularity.md) +`step` | number + +## Example + +```typescript +import type { TimeStep } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "granularity": null, + "step": null, +} satisfies TimeStep + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TimeStep +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedDataProviderDefinition.md b/typescript/docs/TypedDataProviderDefinition.md new file mode 100644 index 00000000..b2a80be6 --- /dev/null +++ b/typescript/docs/TypedDataProviderDefinition.md @@ -0,0 +1,102 @@ + +# TypedDataProviderDefinition + + +## Properties + +Name | Type +------------ | ------------- +`apiToken` | string +`apiUrl` | string +`cacheTtl` | number +`description` | string +`filterLabel` | string +`id` | string +`name` | string +`priority` | number +`projectId` | string +`type` | string +`gdalConfig` | Array<Array<string>> +`s3AccessKey` | string +`s3SecretKey` | string +`s3Url` | string +`stacUrl` | string +`collections` | [Array<DatasetLayerListingCollection>](DatasetLayerListingCollection.md) +`baseUrl` | string +`data` | string +`overviews` | string +`discreteVrs` | Array<string> +`provenance` | [Array<Provenance>](Provenance.md) +`vectorSpec` | [EdrVectorSpec](EdrVectorSpec.md) +`autocompleteTimeout` | number +`columns` | Array<string> +`dbConfig` | [DatabaseConnectionConfig](DatabaseConnectionConfig.md) +`abcdDbConfig` | [DatabaseConnectionConfig](DatabaseConnectionConfig.md) +`collectionApiAuthToken` | string +`collectionApiUrl` | string +`pangaeaUrl` | string +`bands` | [Array<StacBand>](StacBand.md) +`gdalRetries` | number +`queryBuffer` | [StacQueryBuffer](StacQueryBuffer.md) +`stacApiRetries` | [StacApiRetries](StacApiRetries.md) +`zones` | [Array<StacZone>](StacZone.md) +`apiKey` | string + +## Example + +```typescript +import type { TypedDataProviderDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "apiToken": null, + "apiUrl": null, + "cacheTtl": null, + "description": null, + "filterLabel": null, + "id": null, + "name": null, + "priority": null, + "projectId": null, + "type": null, + "gdalConfig": null, + "s3AccessKey": null, + "s3SecretKey": null, + "s3Url": null, + "stacUrl": null, + "collections": null, + "baseUrl": null, + "data": null, + "overviews": null, + "discreteVrs": null, + "provenance": null, + "vectorSpec": null, + "autocompleteTimeout": null, + "columns": null, + "dbConfig": null, + "abcdDbConfig": null, + "collectionApiAuthToken": null, + "collectionApiUrl": null, + "pangaeaUrl": null, + "bands": null, + "gdalRetries": null, + "queryBuffer": null, + "stacApiRetries": null, + "zones": null, + "apiKey": null, +} satisfies TypedDataProviderDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedDataProviderDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedGeometry.md b/typescript/docs/TypedGeometry.md new file mode 100644 index 00000000..a183cc03 --- /dev/null +++ b/typescript/docs/TypedGeometry.md @@ -0,0 +1,40 @@ + +# TypedGeometry + + +## Properties + +Name | Type +------------ | ------------- +`data` | any +`multiPoint` | [MultiPoint](MultiPoint.md) +`multiLineString` | [MultiLineString](MultiLineString.md) +`multiPolygon` | [MultiPolygon](MultiPolygon.md) + +## Example + +```typescript +import type { TypedGeometry } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "multiPoint": null, + "multiLineString": null, + "multiPolygon": null, +} satisfies TypedGeometry + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometry +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedGeometryOneOf.md b/typescript/docs/TypedGeometryOneOf.md new file mode 100644 index 00000000..eb8af3d8 --- /dev/null +++ b/typescript/docs/TypedGeometryOneOf.md @@ -0,0 +1,34 @@ + +# TypedGeometryOneOf + + +## Properties + +Name | Type +------------ | ------------- +`data` | any + +## Example + +```typescript +import type { TypedGeometryOneOf } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, +} satisfies TypedGeometryOneOf + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedGeometryOneOf1.md b/typescript/docs/TypedGeometryOneOf1.md new file mode 100644 index 00000000..908c4bbe --- /dev/null +++ b/typescript/docs/TypedGeometryOneOf1.md @@ -0,0 +1,34 @@ + +# TypedGeometryOneOf1 + + +## Properties + +Name | Type +------------ | ------------- +`multiPoint` | [MultiPoint](MultiPoint.md) + +## Example + +```typescript +import type { TypedGeometryOneOf1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiPoint": null, +} satisfies TypedGeometryOneOf1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedGeometryOneOf2.md b/typescript/docs/TypedGeometryOneOf2.md new file mode 100644 index 00000000..b0bb39a6 --- /dev/null +++ b/typescript/docs/TypedGeometryOneOf2.md @@ -0,0 +1,34 @@ + +# TypedGeometryOneOf2 + + +## Properties + +Name | Type +------------ | ------------- +`multiLineString` | [MultiLineString](MultiLineString.md) + +## Example + +```typescript +import type { TypedGeometryOneOf2 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiLineString": null, +} satisfies TypedGeometryOneOf2 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf2 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedGeometryOneOf3.md b/typescript/docs/TypedGeometryOneOf3.md new file mode 100644 index 00000000..5dfd2842 --- /dev/null +++ b/typescript/docs/TypedGeometryOneOf3.md @@ -0,0 +1,34 @@ + +# TypedGeometryOneOf3 + + +## Properties + +Name | Type +------------ | ------------- +`multiPolygon` | [MultiPolygon](MultiPolygon.md) + +## Example + +```typescript +import type { TypedGeometryOneOf3 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiPolygon": null, +} satisfies TypedGeometryOneOf3 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf3 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedOperator.md b/typescript/docs/TypedOperator.md new file mode 100644 index 00000000..648140ff --- /dev/null +++ b/typescript/docs/TypedOperator.md @@ -0,0 +1,37 @@ + +# TypedOperator + +An enum to differentiate between `Operator` variants + +## Properties + +Name | Type +------------ | ------------- +`operator` | [TypedOperatorOperator](TypedOperatorOperator.md) +`type` | string + +## Example + +```typescript +import type { TypedOperator } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "operator": null, + "type": null, +} satisfies TypedOperator + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedOperator +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedOperatorOperator.md b/typescript/docs/TypedOperatorOperator.md new file mode 100644 index 00000000..22f3ff99 --- /dev/null +++ b/typescript/docs/TypedOperatorOperator.md @@ -0,0 +1,38 @@ + +# TypedOperatorOperator + + +## Properties + +Name | Type +------------ | ------------- +`params` | object +`sources` | object +`type` | string + +## Example + +```typescript +import type { TypedOperatorOperator } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies TypedOperatorOperator + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedOperatorOperator +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedPlotResultDescriptor.md b/typescript/docs/TypedPlotResultDescriptor.md new file mode 100644 index 00000000..bc64059a --- /dev/null +++ b/typescript/docs/TypedPlotResultDescriptor.md @@ -0,0 +1,34 @@ + +# TypedPlotResultDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { TypedPlotResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies TypedPlotResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedPlotResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedRasterResultDescriptor.md b/typescript/docs/TypedRasterResultDescriptor.md new file mode 100644 index 00000000..7b269911 --- /dev/null +++ b/typescript/docs/TypedRasterResultDescriptor.md @@ -0,0 +1,34 @@ + +# TypedRasterResultDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { TypedRasterResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies TypedRasterResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedRasterResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedResultDescriptor.md b/typescript/docs/TypedResultDescriptor.md new file mode 100644 index 00000000..7b563279 --- /dev/null +++ b/typescript/docs/TypedResultDescriptor.md @@ -0,0 +1,48 @@ + +# TypedResultDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`bbox` | [BoundingBox2D](BoundingBox2D.md) +`spatialReference` | string +`time` | [TimeInterval](TimeInterval.md) +`type` | string +`bands` | [Array<RasterBandDescriptor>](RasterBandDescriptor.md) +`dataType` | [VectorDataType](VectorDataType.md) +`resolution` | [SpatialResolution](SpatialResolution.md) +`columns` | [{ [key: string]: VectorColumnInfo; }](VectorColumnInfo.md) + +## Example + +```typescript +import type { TypedResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bbox": null, + "spatialReference": null, + "time": null, + "type": null, + "bands": null, + "dataType": null, + "resolution": null, + "columns": null, +} satisfies TypedResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TypedVectorResultDescriptor.md b/typescript/docs/TypedVectorResultDescriptor.md new file mode 100644 index 00000000..ef85149f --- /dev/null +++ b/typescript/docs/TypedVectorResultDescriptor.md @@ -0,0 +1,34 @@ + +# TypedVectorResultDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { TypedVectorResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies TypedVectorResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TypedVectorResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UnitlessMeasurement.md b/typescript/docs/UnitlessMeasurement.md new file mode 100644 index 00000000..8560560b --- /dev/null +++ b/typescript/docs/UnitlessMeasurement.md @@ -0,0 +1,34 @@ + +# UnitlessMeasurement + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { UnitlessMeasurement } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies UnitlessMeasurement + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UnitlessMeasurement +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UnixTimeStampType.md b/typescript/docs/UnixTimeStampType.md new file mode 100644 index 00000000..63cc7160 --- /dev/null +++ b/typescript/docs/UnixTimeStampType.md @@ -0,0 +1,32 @@ + +# UnixTimeStampType + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { UnixTimeStampType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies UnixTimeStampType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UnixTimeStampType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UpdateDataset.md b/typescript/docs/UpdateDataset.md new file mode 100644 index 00000000..e65dc6ce --- /dev/null +++ b/typescript/docs/UpdateDataset.md @@ -0,0 +1,40 @@ + +# UpdateDataset + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`displayName` | string +`name` | string +`tags` | Array<string> + +## Example + +```typescript +import type { UpdateDataset } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": null, + "displayName": null, + "name": null, + "tags": null, +} satisfies UpdateDataset + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UpdateDataset +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UpdateLayer.md b/typescript/docs/UpdateLayer.md new file mode 100644 index 00000000..bb28abab --- /dev/null +++ b/typescript/docs/UpdateLayer.md @@ -0,0 +1,44 @@ + +# UpdateLayer + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`metadata` | { [key: string]: string; } +`name` | string +`properties` | Array<Array<string>> +`symbology` | [Symbology](Symbology.md) +`workflow` | [Workflow](Workflow.md) + +## Example + +```typescript +import type { UpdateLayer } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": Example layer description, + "metadata": null, + "name": Example Layer, + "properties": null, + "symbology": null, + "workflow": null, +} satisfies UpdateLayer + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UpdateLayer +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UpdateLayerCollection.md b/typescript/docs/UpdateLayerCollection.md new file mode 100644 index 00000000..b0d26d42 --- /dev/null +++ b/typescript/docs/UpdateLayerCollection.md @@ -0,0 +1,38 @@ + +# UpdateLayerCollection + + +## Properties + +Name | Type +------------ | ------------- +`description` | string +`name` | string +`properties` | Array<Array<string>> + +## Example + +```typescript +import type { UpdateLayerCollection } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "description": A description for an example collection, + "name": Example Collection, + "properties": null, +} satisfies UpdateLayerCollection + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UpdateLayerCollection +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UpdateProject.md b/typescript/docs/UpdateProject.md new file mode 100644 index 00000000..f68f62bf --- /dev/null +++ b/typescript/docs/UpdateProject.md @@ -0,0 +1,46 @@ + +# UpdateProject + + +## Properties + +Name | Type +------------ | ------------- +`bounds` | [STRectangle](STRectangle.md) +`description` | string +`id` | string +`layers` | [Array<VecUpdate>](VecUpdate.md) +`name` | string +`plots` | [Array<VecUpdate>](VecUpdate.md) +`timeStep` | [TimeStep](TimeStep.md) + +## Example + +```typescript +import type { UpdateProject } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bounds": null, + "description": null, + "id": null, + "layers": null, + "name": null, + "plots": null, + "timeStep": null, +} satisfies UpdateProject + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UpdateProject +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UpdateQuota.md b/typescript/docs/UpdateQuota.md new file mode 100644 index 00000000..d3a5dc41 --- /dev/null +++ b/typescript/docs/UpdateQuota.md @@ -0,0 +1,34 @@ + +# UpdateQuota + + +## Properties + +Name | Type +------------ | ------------- +`available` | number + +## Example + +```typescript +import type { UpdateQuota } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "available": null, +} satisfies UpdateQuota + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UpdateQuota +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UploadFileLayersResponse.md b/typescript/docs/UploadFileLayersResponse.md new file mode 100644 index 00000000..10f4c324 --- /dev/null +++ b/typescript/docs/UploadFileLayersResponse.md @@ -0,0 +1,34 @@ + +# UploadFileLayersResponse + + +## Properties + +Name | Type +------------ | ------------- +`layers` | Array<string> + +## Example + +```typescript +import type { UploadFileLayersResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "layers": null, +} satisfies UploadFileLayersResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UploadFileLayersResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UploadFilesResponse.md b/typescript/docs/UploadFilesResponse.md new file mode 100644 index 00000000..fd863319 --- /dev/null +++ b/typescript/docs/UploadFilesResponse.md @@ -0,0 +1,34 @@ + +# UploadFilesResponse + + +## Properties + +Name | Type +------------ | ------------- +`files` | Array<string> + +## Example + +```typescript +import type { UploadFilesResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "files": null, +} satisfies UploadFilesResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UploadFilesResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UploadsApi.md b/typescript/docs/UploadsApi.md new file mode 100644 index 00000000..b5b5dc75 --- /dev/null +++ b/typescript/docs/UploadsApi.md @@ -0,0 +1,221 @@ +# UploadsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**listUploadFileLayersHandler**](UploadsApi.md#listuploadfilelayershandler) | **GET** /uploads/{upload_id}/files/{file_name}/layers | List the layers of on uploaded file. | +| [**listUploadFilesHandler**](UploadsApi.md#listuploadfileshandler) | **GET** /uploads/{upload_id}/files | List the files of on upload. | +| [**uploadHandler**](UploadsApi.md#uploadhandler) | **POST** /upload | Uploads files. | + + + +## listUploadFileLayersHandler + +> UploadFileLayersResponse listUploadFileLayersHandler(uploadId, fileName) + +List the layers of on uploaded file. + +### Example + +```ts +import { + Configuration, + UploadsApi, +} from '@geoengine/openapi-client'; +import type { ListUploadFileLayersHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UploadsApi(config); + + const body = { + // string | Upload id + uploadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | File name + fileName: fileName_example, + } satisfies ListUploadFileLayersHandlerRequest; + + try { + const data = await api.listUploadFileLayersHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uploadId** | `string` | Upload id | [Defaults to `undefined`] | +| **fileName** | `string` | File name | [Defaults to `undefined`] | + +### Return type + +[**UploadFileLayersResponse**](UploadFileLayersResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listUploadFilesHandler + +> UploadFilesResponse listUploadFilesHandler(uploadId) + +List the files of on upload. + +### Example + +```ts +import { + Configuration, + UploadsApi, +} from '@geoengine/openapi-client'; +import type { ListUploadFilesHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UploadsApi(config); + + const body = { + // string | Upload id + uploadId: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies ListUploadFilesHandlerRequest; + + try { + const data = await api.listUploadFilesHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uploadId** | `string` | Upload id | [Defaults to `undefined`] | + +### Return type + +[**UploadFilesResponse**](UploadFilesResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## uploadHandler + +> IdResponse uploadHandler(files) + +Uploads files. + +### Example + +```ts +import { + Configuration, + UploadsApi, +} from '@geoengine/openapi-client'; +import type { UploadHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UploadsApi(config); + + const body = { + // Array + files: /path/to/file.txt, + } satisfies UploadHandlerRequest; + + try { + const data = await api.uploadHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **files** | `Array` | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `multipart/form-data` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/UsageSummaryGranularity.md b/typescript/docs/UsageSummaryGranularity.md new file mode 100644 index 00000000..2d6c71f5 --- /dev/null +++ b/typescript/docs/UsageSummaryGranularity.md @@ -0,0 +1,32 @@ + +# UsageSummaryGranularity + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { UsageSummaryGranularity } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies UsageSummaryGranularity + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UsageSummaryGranularity +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UserApi.md b/typescript/docs/UserApi.md new file mode 100644 index 00000000..52310dad --- /dev/null +++ b/typescript/docs/UserApi.md @@ -0,0 +1,926 @@ +# UserApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addRoleHandler**](UserApi.md#addrolehandler) | **PUT** /roles | Add a new role. Requires admin privilige. | +| [**assignRoleHandler**](UserApi.md#assignrolehandler) | **POST** /users/{user}/roles/{role} | Assign a role to a user. Requires admin privilige. | +| [**computationQuotaHandler**](UserApi.md#computationquotahandler) | **GET** /quota/computations/{computation} | Retrieves the quota used by computation with the given computation id | +| [**computationsQuotaHandler**](UserApi.md#computationsquotahandler) | **GET** /quota/computations | Retrieves the quota used by computations | +| [**dataUsageHandler**](UserApi.md#datausagehandler) | **GET** /quota/dataUsage | Retrieves the data usage | +| [**dataUsageSummaryHandler**](UserApi.md#datausagesummaryhandler) | **GET** /quota/dataUsage/summary | Retrieves the data usage summary | +| [**getRoleByNameHandler**](UserApi.md#getrolebynamehandler) | **GET** /roles/byName/{name} | Get role by name | +| [**getRoleDescriptions**](UserApi.md#getroledescriptions) | **GET** /user/roles/descriptions | Query roles for the current user. | +| [**getUserQuotaHandler**](UserApi.md#getuserquotahandler) | **GET** /quotas/{user} | Retrieves the available and used quota of a specific user. | +| [**quotaHandler**](UserApi.md#quotahandler) | **GET** /quota | Retrieves the available and used quota of the current user. | +| [**removeRoleHandler**](UserApi.md#removerolehandler) | **DELETE** /roles/{role} | Remove a role. Requires admin privilige. | +| [**revokeRoleHandler**](UserApi.md#revokerolehandler) | **DELETE** /users/{user}/roles/{role} | Revoke a role from a user. Requires admin privilige. | +| [**updateUserQuotaHandler**](UserApi.md#updateuserquotahandler) | **POST** /quotas/{user} | Update the available quota of a specific user. | + + + +## addRoleHandler + +> string addRoleHandler(addRole) + +Add a new role. Requires admin privilige. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { AddRoleHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // AddRole + addRole: ..., + } satisfies AddRoleHandlerRequest; + + try { + const data = await api.addRoleHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **addRole** | [AddRole](AddRole.md) | | | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Role was added | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## assignRoleHandler + +> assignRoleHandler(user, role) + +Assign a role to a user. Requires admin privilige. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { AssignRoleHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | User id + user: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Role id + role: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies AssignRoleHandlerRequest; + + try { + const data = await api.assignRoleHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | `string` | User id | [Defaults to `undefined`] | +| **role** | `string` | Role id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Role was assigned | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## computationQuotaHandler + +> Array<OperatorQuota> computationQuotaHandler(computation) + +Retrieves the quota used by computation with the given computation id + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { ComputationQuotaHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | Computation id + computation: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies ComputationQuotaHandlerRequest; + + try { + const data = await api.computationQuotaHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **computation** | `string` | Computation id | [Defaults to `undefined`] | + +### Return type + +[**Array<OperatorQuota>**](OperatorQuota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The quota used by computation | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## computationsQuotaHandler + +> Array<ComputationQuota> computationsQuotaHandler(offset, limit) + +Retrieves the quota used by computations + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { ComputationsQuotaHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // number + offset: 56, + // number + limit: 56, + } satisfies ComputationsQuotaHandlerRequest; + + try { + const data = await api.computationsQuotaHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<ComputationQuota>**](ComputationQuota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The quota used by computations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## dataUsageHandler + +> Array<DataUsage> dataUsageHandler(offset, limit) + +Retrieves the data usage + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { DataUsageHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // number + offset: 789, + // number + limit: 789, + } satisfies DataUsageHandlerRequest; + + try { + const data = await api.dataUsageHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**Array<DataUsage>**](DataUsage.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The quota used on data | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## dataUsageSummaryHandler + +> Array<DataUsageSummary> dataUsageSummaryHandler(granularity, offset, limit, dataset) + +Retrieves the data usage summary + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { DataUsageSummaryHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // UsageSummaryGranularity + granularity: ..., + // number + offset: 789, + // number + limit: 789, + // string (optional) + dataset: dataset_example, + } satisfies DataUsageSummaryHandlerRequest; + + try { + const data = await api.dataUsageSummaryHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **granularity** | `UsageSummaryGranularity` | | [Defaults to `undefined`] [Enum: minutes, hours, days, months, years] | +| **offset** | `number` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Defaults to `undefined`] | +| **dataset** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**Array<DataUsageSummary>**](DataUsageSummary.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The quota used on data | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getRoleByNameHandler + +> IdResponse getRoleByNameHandler(name) + +Get role by name + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { GetRoleByNameHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | Role Name + name: name_example, + } satisfies GetRoleByNameHandlerRequest; + + try { + const data = await api.getRoleByNameHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | `string` | Role Name | [Defaults to `undefined`] | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getRoleDescriptions + +> Array<RoleDescription> getRoleDescriptions() + +Query roles for the current user. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { GetRoleDescriptionsRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + try { + const data = await api.getRoleDescriptions(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Array<RoleDescription>**](RoleDescription.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The description for roles of the current user | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getUserQuotaHandler + +> Quota getUserQuotaHandler(user) + +Retrieves the available and used quota of a specific user. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { GetUserQuotaHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | User id + user: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies GetUserQuotaHandlerRequest; + + try { + const data = await api.getUserQuotaHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | `string` | User id | [Defaults to `undefined`] | + +### Return type + +[**Quota**](Quota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The available and used quota of the user | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## quotaHandler + +> Quota quotaHandler() + +Retrieves the available and used quota of the current user. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { QuotaHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + try { + const data = await api.quotaHandler(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Quota**](Quota.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The available and used quota of the user | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removeRoleHandler + +> removeRoleHandler(role) + +Remove a role. Requires admin privilige. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { RemoveRoleHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | Role id + role: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies RemoveRoleHandlerRequest; + + try { + const data = await api.removeRoleHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **role** | `string` | Role id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Role was removed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## revokeRoleHandler + +> revokeRoleHandler(user, role) + +Revoke a role from a user. Requires admin privilige. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { RevokeRoleHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | User id + user: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string | Role id + role: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies RevokeRoleHandlerRequest; + + try { + const data = await api.revokeRoleHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | `string` | User id | [Defaults to `undefined`] | +| **role** | `string` | Role id | [Defaults to `undefined`] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Role was revoked | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateUserQuotaHandler + +> updateUserQuotaHandler(user, updateQuota) + +Update the available quota of a specific user. + +### Example + +```ts +import { + Configuration, + UserApi, +} from '@geoengine/openapi-client'; +import type { UpdateUserQuotaHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new UserApi(config); + + const body = { + // string | User id + user: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // UpdateQuota + updateQuota: ..., + } satisfies UpdateUserQuotaHandlerRequest; + + try { + const data = await api.updateUserQuotaHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | `string` | User id | [Defaults to `undefined`] | +| **updateQuota** | [UpdateQuota](UpdateQuota.md) | | | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Quota was updated | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/UserCredentials.md b/typescript/docs/UserCredentials.md new file mode 100644 index 00000000..06be3363 --- /dev/null +++ b/typescript/docs/UserCredentials.md @@ -0,0 +1,36 @@ + +# UserCredentials + + +## Properties + +Name | Type +------------ | ------------- +`email` | string +`password` | string + +## Example + +```typescript +import type { UserCredentials } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "email": null, + "password": null, +} satisfies UserCredentials + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UserCredentials +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UserInfo.md b/typescript/docs/UserInfo.md new file mode 100644 index 00000000..84ecb9e4 --- /dev/null +++ b/typescript/docs/UserInfo.md @@ -0,0 +1,38 @@ + +# UserInfo + + +## Properties + +Name | Type +------------ | ------------- +`email` | string +`id` | string +`realName` | string + +## Example + +```typescript +import type { UserInfo } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "email": null, + "id": null, + "realName": null, +} satisfies UserInfo + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UserInfo +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UserRegistration.md b/typescript/docs/UserRegistration.md new file mode 100644 index 00000000..bd586756 --- /dev/null +++ b/typescript/docs/UserRegistration.md @@ -0,0 +1,38 @@ + +# UserRegistration + + +## Properties + +Name | Type +------------ | ------------- +`email` | string +`password` | string +`realName` | string + +## Example + +```typescript +import type { UserRegistration } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "email": null, + "password": null, + "realName": null, +} satisfies UserRegistration + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UserRegistration +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/UserSession.md b/typescript/docs/UserSession.md new file mode 100644 index 00000000..8bbdbf23 --- /dev/null +++ b/typescript/docs/UserSession.md @@ -0,0 +1,46 @@ + +# UserSession + + +## Properties + +Name | Type +------------ | ------------- +`created` | Date +`id` | string +`project` | string +`roles` | Array<string> +`user` | [UserInfo](UserInfo.md) +`validUntil` | Date +`view` | [STRectangle](STRectangle.md) + +## Example + +```typescript +import type { UserSession } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "created": null, + "id": null, + "project": null, + "roles": null, + "user": null, + "validUntil": null, + "view": null, +} satisfies UserSession + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as UserSession +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VecUpdate.md b/typescript/docs/VecUpdate.md new file mode 100644 index 00000000..d8fef405 --- /dev/null +++ b/typescript/docs/VecUpdate.md @@ -0,0 +1,36 @@ + +# VecUpdate + + +## Properties + +Name | Type +------------ | ------------- +`name` | string +`workflow` | string + +## Example + +```typescript +import type { VecUpdate } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "name": null, + "workflow": null, +} satisfies VecUpdate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VecUpdate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorColumnInfo.md b/typescript/docs/VectorColumnInfo.md new file mode 100644 index 00000000..5f027c9f --- /dev/null +++ b/typescript/docs/VectorColumnInfo.md @@ -0,0 +1,36 @@ + +# VectorColumnInfo + + +## Properties + +Name | Type +------------ | ------------- +`dataType` | [FeatureDataType](FeatureDataType.md) +`measurement` | [Measurement](Measurement.md) + +## Example + +```typescript +import type { VectorColumnInfo } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataType": null, + "measurement": null, +} satisfies VectorColumnInfo + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VectorColumnInfo +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorDataType.md b/typescript/docs/VectorDataType.md new file mode 100644 index 00000000..38b9281e --- /dev/null +++ b/typescript/docs/VectorDataType.md @@ -0,0 +1,33 @@ + +# VectorDataType + +An enum that contains all possible vector data types + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { VectorDataType } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies VectorDataType + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VectorDataType +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorQueryRectangle.md b/typescript/docs/VectorQueryRectangle.md new file mode 100644 index 00000000..5b1eb731 --- /dev/null +++ b/typescript/docs/VectorQueryRectangle.md @@ -0,0 +1,39 @@ + +# VectorQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [BoundingBox2D](BoundingBox2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { VectorQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies VectorQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VectorQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorResultDescriptor.md b/typescript/docs/VectorResultDescriptor.md new file mode 100644 index 00000000..4454a56e --- /dev/null +++ b/typescript/docs/VectorResultDescriptor.md @@ -0,0 +1,42 @@ + +# VectorResultDescriptor + + +## Properties + +Name | Type +------------ | ------------- +`bbox` | [BoundingBox2D](BoundingBox2D.md) +`columns` | [{ [key: string]: VectorColumnInfo; }](VectorColumnInfo.md) +`dataType` | [VectorDataType](VectorDataType.md) +`spatialReference` | string +`time` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { VectorResultDescriptor } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bbox": null, + "columns": null, + "dataType": null, + "spatialReference": null, + "time": null, +} satisfies VectorResultDescriptor + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VectorResultDescriptor +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Volume.md b/typescript/docs/Volume.md new file mode 100644 index 00000000..540b0f57 --- /dev/null +++ b/typescript/docs/Volume.md @@ -0,0 +1,36 @@ + +# Volume + + +## Properties + +Name | Type +------------ | ------------- +`name` | string +`path` | string + +## Example + +```typescript +import type { Volume } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "name": null, + "path": null, +} satisfies Volume + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Volume +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VolumeFileLayersResponse.md b/typescript/docs/VolumeFileLayersResponse.md new file mode 100644 index 00000000..c94b0fd6 --- /dev/null +++ b/typescript/docs/VolumeFileLayersResponse.md @@ -0,0 +1,34 @@ + +# VolumeFileLayersResponse + + +## Properties + +Name | Type +------------ | ------------- +`layers` | Array<string> + +## Example + +```typescript +import type { VolumeFileLayersResponse } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "layers": null, +} satisfies VolumeFileLayersResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VolumeFileLayersResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WcsBoundingbox.md b/typescript/docs/WcsBoundingbox.md new file mode 100644 index 00000000..13fe65bb --- /dev/null +++ b/typescript/docs/WcsBoundingbox.md @@ -0,0 +1,36 @@ + +# WcsBoundingbox + + +## Properties + +Name | Type +------------ | ------------- +`bbox` | Array<number> +`spatialReference` | string + +## Example + +```typescript +import type { WcsBoundingbox } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bbox": null, + "spatialReference": null, +} satisfies WcsBoundingbox + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WcsBoundingbox +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WcsService.md b/typescript/docs/WcsService.md new file mode 100644 index 00000000..45f42436 --- /dev/null +++ b/typescript/docs/WcsService.md @@ -0,0 +1,32 @@ + +# WcsService + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WcsService } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WcsService + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WcsService +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WcsVersion.md b/typescript/docs/WcsVersion.md new file mode 100644 index 00000000..57876cb3 --- /dev/null +++ b/typescript/docs/WcsVersion.md @@ -0,0 +1,32 @@ + +# WcsVersion + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WcsVersion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WcsVersion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WcsVersion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WfsService.md b/typescript/docs/WfsService.md new file mode 100644 index 00000000..52fa7c75 --- /dev/null +++ b/typescript/docs/WfsService.md @@ -0,0 +1,32 @@ + +# WfsService + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WfsService } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WfsService + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WfsService +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WfsVersion.md b/typescript/docs/WfsVersion.md new file mode 100644 index 00000000..86ce9886 --- /dev/null +++ b/typescript/docs/WfsVersion.md @@ -0,0 +1,32 @@ + +# WfsVersion + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WfsVersion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WfsVersion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WfsVersion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WildliveDataConnectorDefinition.md b/typescript/docs/WildliveDataConnectorDefinition.md new file mode 100644 index 00000000..ce76600b --- /dev/null +++ b/typescript/docs/WildliveDataConnectorDefinition.md @@ -0,0 +1,44 @@ + +# WildliveDataConnectorDefinition + + +## Properties + +Name | Type +------------ | ------------- +`apiKey` | string +`description` | string +`id` | string +`name` | string +`priority` | number +`type` | string + +## Example + +```typescript +import type { WildliveDataConnectorDefinition } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "apiKey": null, + "description": null, + "id": null, + "name": null, + "priority": null, + "type": null, +} satisfies WildliveDataConnectorDefinition + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WildliveDataConnectorDefinition +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WmsService.md b/typescript/docs/WmsService.md new file mode 100644 index 00000000..b98d54ef --- /dev/null +++ b/typescript/docs/WmsService.md @@ -0,0 +1,32 @@ + +# WmsService + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WmsService } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WmsService + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WmsService +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WmsVersion.md b/typescript/docs/WmsVersion.md new file mode 100644 index 00000000..4007f7b1 --- /dev/null +++ b/typescript/docs/WmsVersion.md @@ -0,0 +1,32 @@ + +# WmsVersion + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WmsVersion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WmsVersion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WmsVersion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Workflow.md b/typescript/docs/Workflow.md new file mode 100644 index 00000000..8414025f --- /dev/null +++ b/typescript/docs/Workflow.md @@ -0,0 +1,36 @@ + +# Workflow + + +## Properties + +Name | Type +------------ | ------------- +`operator` | [TypedOperatorOperator](TypedOperatorOperator.md) +`type` | string + +## Example + +```typescript +import type { Workflow } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "operator": null, + "type": null, +} satisfies Workflow + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Workflow +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WorkflowsApi.md b/typescript/docs/WorkflowsApi.md new file mode 100644 index 00000000..f3521c3d --- /dev/null +++ b/typescript/docs/WorkflowsApi.md @@ -0,0 +1,516 @@ +# WorkflowsApi + +All URIs are relative to *https://geoengine.io/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**datasetFromWorkflowHandler**](WorkflowsApi.md#datasetfromworkflowhandler) | **POST** /datasetFromWorkflow/{id} | Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task | +| [**getWorkflowAllMetadataZipHandler**](WorkflowsApi.md#getworkflowallmetadataziphandler) | **GET** /workflow/{id}/allMetadata/zip | Gets a ZIP archive of the worklow, its provenance and the output metadata. | +| [**getWorkflowMetadataHandler**](WorkflowsApi.md#getworkflowmetadatahandler) | **GET** /workflow/{id}/metadata | Gets the metadata of a workflow | +| [**getWorkflowProvenanceHandler**](WorkflowsApi.md#getworkflowprovenancehandler) | **GET** /workflow/{id}/provenance | Gets the provenance of all datasets used in a workflow. | +| [**loadWorkflowHandler**](WorkflowsApi.md#loadworkflowhandler) | **GET** /workflow/{id} | Retrieves an existing Workflow. | +| [**rasterStreamWebsocket**](WorkflowsApi.md#rasterstreamwebsocket) | **GET** /workflow/{id}/rasterStream | Query a workflow raster result as a stream of tiles via a websocket connection. | +| [**registerWorkflowHandler**](WorkflowsApi.md#registerworkflowhandler) | **POST** /workflow | Registers a new Workflow. | + + + +## datasetFromWorkflowHandler + +> TaskResponse datasetFromWorkflowHandler(id, rasterDatasetFromWorkflow) + +Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { DatasetFromWorkflowHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // RasterDatasetFromWorkflow + rasterDatasetFromWorkflow: ..., + } satisfies DatasetFromWorkflowHandlerRequest; + + try { + const data = await api.datasetFromWorkflowHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | +| **rasterDatasetFromWorkflow** | [RasterDatasetFromWorkflow](RasterDatasetFromWorkflow.md) | | | + +### Return type + +[**TaskResponse**](TaskResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of created task | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getWorkflowAllMetadataZipHandler + +> Blob getWorkflowAllMetadataZipHandler(id) + +Gets a ZIP archive of the worklow, its provenance and the output metadata. + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { GetWorkflowAllMetadataZipHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies GetWorkflowAllMetadataZipHandlerRequest; + + try { + const data = await api.getWorkflowAllMetadataZipHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | + +### Return type + +**Blob** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/zip` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | ZIP Archive | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getWorkflowMetadataHandler + +> TypedResultDescriptor getWorkflowMetadataHandler(id) + +Gets the metadata of a workflow + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { GetWorkflowMetadataHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies GetWorkflowMetadataHandlerRequest; + + try { + const data = await api.getWorkflowMetadataHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | + +### Return type + +[**TypedResultDescriptor**](TypedResultDescriptor.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Metadata of loaded workflow | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getWorkflowProvenanceHandler + +> Array<ProvenanceEntry> getWorkflowProvenanceHandler(id) + +Gets the provenance of all datasets used in a workflow. + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { GetWorkflowProvenanceHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies GetWorkflowProvenanceHandlerRequest; + + try { + const data = await api.getWorkflowProvenanceHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | + +### Return type + +[**Array<ProvenanceEntry>**](ProvenanceEntry.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Provenance of used datasets | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## loadWorkflowHandler + +> Workflow loadWorkflowHandler(id) + +Retrieves an existing Workflow. + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { LoadWorkflowHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + } satisfies LoadWorkflowHandlerRequest; + + try { + const data = await api.loadWorkflowHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | + +### Return type + +[**Workflow**](Workflow.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Workflow loaded from database | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## rasterStreamWebsocket + +> rasterStreamWebsocket(id, spatialBounds, timeInterval, spatialResolution, attributes, resultType) + +Query a workflow raster result as a stream of tiles via a websocket connection. + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { RasterStreamWebsocketRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // string | Workflow id + id: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // SpatialPartition2D + spatialBounds: ..., + // string + timeInterval: timeInterval_example, + // SpatialResolution + spatialResolution: ..., + // string + attributes: attributes_example, + // RasterStreamWebsocketResultType + resultType: ..., + } satisfies RasterStreamWebsocketRequest; + + try { + const data = await api.rasterStreamWebsocket(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | `string` | Workflow id | [Defaults to `undefined`] | +| **spatialBounds** | [](.md) | | [Defaults to `undefined`] | +| **timeInterval** | `string` | | [Defaults to `undefined`] | +| **spatialResolution** | [](.md) | | [Defaults to `undefined`] | +| **attributes** | `string` | | [Defaults to `undefined`] | +| **resultType** | `RasterStreamWebsocketResultType` | | [Defaults to `undefined`] [Enum: arrow] | + +### Return type + +`void` (Empty response body) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Upgrade to websocket connection | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## registerWorkflowHandler + +> IdResponse registerWorkflowHandler(workflow) + +Registers a new Workflow. + +### Example + +```ts +import { + Configuration, + WorkflowsApi, +} from '@geoengine/openapi-client'; +import type { RegisterWorkflowHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new WorkflowsApi(config); + + const body = { + // Workflow + workflow: {"type":"Vector","operator":{"type":"MockPointSource","params":{"points":[{"x":0.0,"y":0.1},{"x":1.0,"y":1.1}]}}}, + } satisfies RegisterWorkflowHandlerRequest; + + try { + const data = await api.registerWorkflowHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | [Workflow](Workflow.md) | | | + +### Return type + +[**IdResponse**](IdResponse.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Id of generated resource | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/WrappedPlotOutput.md b/typescript/docs/WrappedPlotOutput.md new file mode 100644 index 00000000..68a14043 --- /dev/null +++ b/typescript/docs/WrappedPlotOutput.md @@ -0,0 +1,38 @@ + +# WrappedPlotOutput + + +## Properties + +Name | Type +------------ | ------------- +`data` | object +`outputFormat` | [PlotOutputFormat](PlotOutputFormat.md) +`plotType` | string + +## Example + +```typescript +import type { WrappedPlotOutput } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "outputFormat": null, + "plotType": null, +} satisfies WrappedPlotOutput + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WrappedPlotOutput +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/package-lock.json b/typescript/package-lock.json index 1efbc0c3..4438862c 100644 --- a/typescript/package-lock.json +++ b/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@geoengine/openapi-client", - "version": "0.0.27", + "version": "0.0.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@geoengine/openapi-client", - "version": "0.0.27", + "version": "0.0.28", "devDependencies": { "typescript": "^4.0 || ^5.0" } diff --git a/typescript/package.json b/typescript/package.json index 727fde04..b1582cd3 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@geoengine/openapi-client", - "version": "0.0.27", + "version": "0.0.28", "description": "OpenAPI client for @geoengine/openapi-client", "author": "OpenAPI-Generator", "repository": { @@ -8,7 +8,7 @@ "url": "https://github.com/geo-engine/openapi-client.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "module": "./dist/esm/index.js", "sideEffects": false, "scripts": { diff --git a/typescript/src/apis/DatasetsApi.ts b/typescript/src/apis/DatasetsApi.ts index 950d78f7..98e94c5e 100644 --- a/typescript/src/apis/DatasetsApi.ts +++ b/typescript/src/apis/DatasetsApi.ts @@ -151,8 +151,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/auto`; + const response = await this.request({ - path: `/dataset/auto`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -195,8 +198,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset`; + const response = await this.request({ - path: `/dataset`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -237,8 +243,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -277,8 +287,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -318,8 +332,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -393,8 +411,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/datasets`; + const response = await this.request({ - path: `/datasets`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -441,8 +462,13 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/volumes/{volume_name}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); + const response = await this.request({ - path: `/dataset/volumes/{volume_name}/files/{file_name}/layers`.replace(`{${"volume_name"}}`, encodeURIComponent(String(requestParameters['volumeName']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -475,8 +501,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/volumes`; + const response = await this.request({ - path: `/dataset/volumes`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -518,8 +547,11 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/suggest`; + const response = await this.request({ - path: `/dataset/suggest`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -569,8 +601,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -618,8 +654,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}/provenance`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}/provenance`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -667,8 +707,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}/symbology`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}/symbology`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -717,8 +761,12 @@ export class DatasetsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/dataset/{dataset}/loadingInfo`; + urlPath = urlPath.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))); + const response = await this.request({ - path: `/dataset/{dataset}/loadingInfo`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters['dataset']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/GeneralApi.ts b/typescript/src/apis/GeneralApi.ts index 4e97333d..c09eb5c8 100644 --- a/typescript/src/apis/GeneralApi.ts +++ b/typescript/src/apis/GeneralApi.ts @@ -35,8 +35,11 @@ export class GeneralApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/available`; + const response = await this.request({ - path: `/available`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -60,8 +63,11 @@ export class GeneralApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/info`; + const response = await this.request({ - path: `/info`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/LayersApi.ts b/typescript/src/apis/LayersApi.ts index 1bdf0468..1f81f1d1 100644 --- a/typescript/src/apis/LayersApi.ts +++ b/typescript/src/apis/LayersApi.ts @@ -211,8 +211,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}/collections`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}/collections`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -260,8 +264,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -307,8 +316,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -356,8 +370,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}/layers`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}/layers`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -400,8 +418,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/providers`; + const response = await this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -493,8 +514,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/collections/search/autocomplete/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layers/collections/search/autocomplete/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -534,8 +560,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + const response = await this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -574,8 +604,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + const response = await this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -622,8 +656,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/{provider}/{layer}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layers/{provider}/{layer}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -670,8 +709,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/{provider}/{layer}/dataset`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layers/{provider}/{layer}/dataset`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -718,8 +762,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/{provider}/{layer}/workflowId`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layers/{provider}/{layer}/workflowId`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -788,8 +837,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/collections/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layers/collections/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -844,8 +898,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/providers`; + const response = await this.request({ - path: `/layerDb/providers`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -900,8 +957,11 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/collections`; + const response = await this.request({ - path: `/layers/collections`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -940,8 +1000,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/{provider}/capabilities`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + const response = await this.request({ - path: `/layers/{provider}/capabilities`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -980,8 +1044,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1027,8 +1095,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{parent}/collections/{collection}`; + urlPath = urlPath.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1067,8 +1140,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1114,8 +1191,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}/layers/{layer}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1205,8 +1287,13 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layers/collections/search/{provider}/{collection}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layers/collections/search/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -1255,8 +1342,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/collections/{collection}`; + urlPath = urlPath.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))); + const response = await this.request({ - path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters['collection']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1305,8 +1396,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/layers/{layer}`; + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/layerDb/layers/{layer}`.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1355,8 +1450,12 @@ export class LayersApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/layerDb/providers/{provider}`; + urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); + const response = await this.request({ - path: `/layerDb/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/MLApi.ts b/typescript/src/apis/MLApi.ts index c729a395..d9d659c5 100644 --- a/typescript/src/apis/MLApi.ts +++ b/typescript/src/apis/MLApi.ts @@ -63,8 +63,11 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/ml/models`; + const response = await this.request({ - path: `/ml/models`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -105,8 +108,12 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/ml/models/{model_name}`; + urlPath = urlPath.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))); + const response = await this.request({ - path: `/ml/models/{model_name}`.replace(`{${"model_name"}}`, encodeURIComponent(String(requestParameters['modelName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -139,8 +146,11 @@ export class MLApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/ml/models`; + const response = await this.request({ - path: `/ml/models`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/OGCWCSApi.ts b/typescript/src/apis/OGCWCSApi.ts index 375cf9e0..592d7c7e 100644 --- a/typescript/src/apis/OGCWCSApi.ts +++ b/typescript/src/apis/OGCWCSApi.ts @@ -123,8 +123,12 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wcs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + const response = await this.request({ - path: `/wcs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -212,8 +216,12 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + const response = await this.request({ - path: `/wcs/{workflow}?request=DescribeCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -358,8 +366,12 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wcs/{workflow}?request=GetCoverage`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + const response = await this.request({ - path: `/wcs/{workflow}?request=GetCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/OGCWFSApi.ts b/typescript/src/apis/OGCWFSApi.ts index e1d98f1e..559793df 100644 --- a/typescript/src/apis/OGCWFSApi.ts +++ b/typescript/src/apis/OGCWFSApi.ts @@ -108,8 +108,15 @@ export class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wfs/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + const response = await this.request({ - path: `/wfs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -237,8 +244,12 @@ export class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wfs/{workflow}?request=GetFeature`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + const response = await this.request({ - path: `/wfs/{workflow}?request=GetFeature`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/OGCWMSApi.ts b/typescript/src/apis/OGCWMSApi.ts index 327c2ab4..8629ae77 100644 --- a/typescript/src/apis/OGCWMSApi.ts +++ b/typescript/src/apis/OGCWMSApi.ts @@ -136,8 +136,16 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wms/{workflow}?request=GetCapabilities`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); + const response = await this.request({ - path: `/wms/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -209,8 +217,16 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); + urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); + urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); + const response = await this.request({ - path: `/wms/{workflow}?request=GetLegendGraphic`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))).replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))).replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -380,8 +396,12 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/wms/{workflow}?request=GetMap`; + urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); + const response = await this.request({ - path: `/wms/{workflow}?request=GetMap`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/PermissionsApi.ts b/typescript/src/apis/PermissionsApi.ts index 6ec647fc..6b8a2c5d 100644 --- a/typescript/src/apis/PermissionsApi.ts +++ b/typescript/src/apis/PermissionsApi.ts @@ -70,8 +70,11 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/permissions`; + const response = await this.request({ - path: `/permissions`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -140,8 +143,13 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/permissions/resources/{resource_type}/{resource_id}`; + urlPath = urlPath.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))); + urlPath = urlPath.replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))); + const response = await this.request({ - path: `/permissions/resources/{resource_type}/{resource_id}`.replace(`{${"resource_type"}}`, encodeURIComponent(String(requestParameters['resourceType']))).replace(`{${"resource_id"}}`, encodeURIComponent(String(requestParameters['resourceId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -183,8 +191,11 @@ export class PermissionsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/permissions`; + const response = await this.request({ - path: `/permissions`, + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/PlotsApi.ts b/typescript/src/apis/PlotsApi.ts index 5fc364ff..a33b0c6a 100644 --- a/typescript/src/apis/PlotsApi.ts +++ b/typescript/src/apis/PlotsApi.ts @@ -96,8 +96,12 @@ export class PlotsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/plot/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/plot/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/ProjectsApi.ts b/typescript/src/apis/ProjectsApi.ts index 0726f989..57a2a731 100644 --- a/typescript/src/apis/ProjectsApi.ts +++ b/typescript/src/apis/ProjectsApi.ts @@ -102,8 +102,11 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project`; + const response = await this.request({ - path: `/project`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -144,8 +147,12 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + const response = await this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -198,8 +205,14 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/projects`; + urlPath = urlPath.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); + const response = await this.request({ - path: `/projects`.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -239,8 +252,12 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + const response = await this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -287,8 +304,13 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project/{project}/{version}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); + const response = await this.request({ - path: `/project/{project}/{version}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -328,8 +350,12 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project/{project}/versions`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + const response = await this.request({ - path: `/project/{project}/versions`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -378,8 +404,12 @@ export class ProjectsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + const response = await this.request({ - path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'PATCH', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/SessionApi.ts b/typescript/src/apis/SessionApi.ts index 7463c839..ada6d0d6 100644 --- a/typescript/src/apis/SessionApi.ts +++ b/typescript/src/apis/SessionApi.ts @@ -75,8 +75,11 @@ export class SessionApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/anonymous`; + const response = await this.request({ - path: `/anonymous`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -110,8 +113,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + + let urlPath = `/login`; + const response = await this.request({ - path: `/login`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -145,8 +151,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/logout`; + const response = await this.request({ - path: `/logout`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -182,8 +191,11 @@ export class SessionApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/oidcInit`; + const response = await this.request({ - path: `/oidcInit`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -230,8 +242,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + + let urlPath = `/oidcLogin`; + const response = await this.request({ - path: `/oidcLogin`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -267,8 +282,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + + let urlPath = `/user`; + const response = await this.request({ - path: `/user`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -306,8 +324,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/session`; + const response = await this.request({ - path: `/session`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -347,8 +368,12 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/session/project/{project}`; + urlPath = urlPath.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))); + const response = await this.request({ - path: `/session/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters['project']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -388,8 +413,11 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/session/view`; + const response = await this.request({ - path: `/session/view`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/SpatialReferencesApi.ts b/typescript/src/apis/SpatialReferencesApi.ts index fde2d4b8..4ead2d27 100644 --- a/typescript/src/apis/SpatialReferencesApi.ts +++ b/typescript/src/apis/SpatialReferencesApi.ts @@ -53,8 +53,12 @@ export class SpatialReferencesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/spatialReferenceSpecification/{srsString}`; + urlPath = urlPath.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))); + const response = await this.request({ - path: `/spatialReferenceSpecification/{srsString}`.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters['srsString']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/TasksApi.ts b/typescript/src/apis/TasksApi.ts index 723ae087..04cf2500 100644 --- a/typescript/src/apis/TasksApi.ts +++ b/typescript/src/apis/TasksApi.ts @@ -76,8 +76,12 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/tasks/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -131,8 +135,14 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/tasks/list`; + urlPath = urlPath.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))); + urlPath = urlPath.replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))); + urlPath = urlPath.replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))); + const response = await this.request({ - path: `/tasks/list`.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters['filter']))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters['offset']))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters['limit']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -172,8 +182,12 @@ export class TasksApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/tasks/{id}/status`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/UploadsApi.ts b/typescript/src/apis/UploadsApi.ts index 701fd959..b4e322d7 100644 --- a/typescript/src/apis/UploadsApi.ts +++ b/typescript/src/apis/UploadsApi.ts @@ -76,8 +76,13 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/uploads/{upload_id}/files/{file_name}/layers`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); + urlPath = urlPath.replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))); + const response = await this.request({ - path: `/uploads/{upload_id}/files/{file_name}/layers`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters['fileName']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -117,8 +122,12 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/uploads/{upload_id}/files`; + urlPath = urlPath.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))); + const response = await this.request({ - path: `/uploads/{upload_id}/files`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters['uploadId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -180,8 +189,11 @@ export class UploadsApi extends runtime.BaseAPI { }) } + + let urlPath = `/upload`; + const response = await this.request({ - path: `/upload`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/UserApi.ts b/typescript/src/apis/UserApi.ts index 952038af..6945f4e0 100644 --- a/typescript/src/apis/UserApi.ts +++ b/typescript/src/apis/UserApi.ts @@ -131,8 +131,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/roles`; + const response = await this.request({ - path: `/roles`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -184,8 +187,13 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); + const response = await this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -224,8 +232,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quota/computations/{computation}`; + urlPath = urlPath.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))); + const response = await this.request({ - path: `/quota/computations/{computation}`.replace(`{${"computation"}}`, encodeURIComponent(String(requestParameters['computation']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -280,8 +292,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quota/computations`; + const response = await this.request({ - path: `/quota/computations`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -336,8 +351,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quota/dataUsage`; + const response = await this.request({ - path: `/quota/dataUsage`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -407,8 +425,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quota/dataUsage/summary`; + const response = await this.request({ - path: `/quota/dataUsage/summary`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -448,8 +469,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/roles/byName/{name}`; + urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))); + const response = await this.request({ - path: `/roles/byName/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -482,8 +507,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/user/roles/descriptions`; + const response = await this.request({ - path: `/user/roles/descriptions`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -523,8 +551,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + const response = await this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -557,8 +589,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quota`; + const response = await this.request({ - path: `/quota`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -598,8 +633,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/roles/{role}`; + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); + const response = await this.request({ - path: `/roles/{role}`.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -645,8 +684,13 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/users/{user}/roles/{role}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + urlPath = urlPath.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))); + const response = await this.request({ - path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters['role']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -694,8 +738,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/quotas/{user}`; + urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))); + const response = await this.request({ - path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/apis/WorkflowsApi.ts b/typescript/src/apis/WorkflowsApi.ts index beaf9649..13ee10e0 100644 --- a/typescript/src/apis/WorkflowsApi.ts +++ b/typescript/src/apis/WorkflowsApi.ts @@ -117,8 +117,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/datasetFromWorkflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/datasetFromWorkflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -159,8 +163,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow/{id}/allMetadata/zip`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/workflow/{id}/allMetadata/zip`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -200,8 +208,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow/{id}/metadata`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/workflow/{id}/metadata`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -241,8 +253,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow/{id}/provenance`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/workflow/{id}/provenance`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -282,8 +298,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow/{id}`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/workflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -378,8 +398,12 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow/{id}/rasterStream`; + urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); + const response = await this.request({ - path: `/workflow/{id}/rasterStream`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -420,8 +444,11 @@ export class WorkflowsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } + + let urlPath = `/workflow`; + const response = await this.request({ - path: `/workflow`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/typescript/src/models/CollectionItem.ts b/typescript/src/models/CollectionItem.ts index a7bf9a9b..1f1dc6a0 100644 --- a/typescript/src/models/CollectionItem.ts +++ b/typescript/src/models/CollectionItem.ts @@ -48,7 +48,7 @@ export function CollectionItemFromJSONTyped(json: any, ignoreDiscriminator: bool case 'layer': return Object.assign({}, LayerListingFromJSONTyped(json, true), { type: 'layer' } as const); default: - throw new Error(`No variant of CollectionItem exists with 'type=${json['type']}'`); + return json; } } @@ -66,8 +66,7 @@ export function CollectionItemToJSONTyped(value?: CollectionItem | null, ignoreD case 'layer': return Object.assign({}, LayerListingToJSON(value), { type: 'layer' } as const); default: - throw new Error(`No variant of CollectionItem exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/ColorParam.ts b/typescript/src/models/ColorParam.ts index e6da5bd7..e98e0175 100644 --- a/typescript/src/models/ColorParam.ts +++ b/typescript/src/models/ColorParam.ts @@ -48,7 +48,7 @@ export function ColorParamFromJSONTyped(json: any, ignoreDiscriminator: boolean) case 'static': return Object.assign({}, StaticColorFromJSONTyped(json, true), { type: 'static' } as const); default: - throw new Error(`No variant of ColorParam exists with 'type=${json['type']}'`); + return json; } } @@ -66,8 +66,7 @@ export function ColorParamToJSONTyped(value?: ColorParam | null, ignoreDiscrimin case 'static': return Object.assign({}, StaticColorToJSON(value), { type: 'static' } as const); default: - throw new Error(`No variant of ColorParam exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/Colorizer.ts b/typescript/src/models/Colorizer.ts index 5061c292..78707101 100644 --- a/typescript/src/models/Colorizer.ts +++ b/typescript/src/models/Colorizer.ts @@ -58,7 +58,7 @@ export function ColorizerFromJSONTyped(json: any, ignoreDiscriminator: boolean): case 'palette': return Object.assign({}, PaletteColorizerFromJSONTyped(json, true), { type: 'palette' } as const); default: - throw new Error(`No variant of Colorizer exists with 'type=${json['type']}'`); + return json; } } @@ -78,8 +78,7 @@ export function ColorizerToJSONTyped(value?: Colorizer | null, ignoreDiscriminat case 'palette': return Object.assign({}, PaletteColorizerToJSON(value), { type: 'palette' } as const); default: - throw new Error(`No variant of Colorizer exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/ComputationQuota.ts b/typescript/src/models/ComputationQuota.ts index 5c5e6fad..096d0dae 100644 --- a/typescript/src/models/ComputationQuota.ts +++ b/typescript/src/models/ComputationQuota.ts @@ -86,7 +86,7 @@ export function ComputationQuotaToJSONTyped(value?: ComputationQuota | null, ign 'computationId': value['computationId'], 'count': value['count'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'workflowId': value['workflowId'], }; } diff --git a/typescript/src/models/DataId.ts b/typescript/src/models/DataId.ts index fa87841e..20846563 100644 --- a/typescript/src/models/DataId.ts +++ b/typescript/src/models/DataId.ts @@ -49,7 +49,7 @@ export function DataIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): Da case 'internal': return Object.assign({}, InternalDataIdFromJSONTyped(json, true), { type: 'internal' } as const); default: - throw new Error(`No variant of DataId exists with 'type=${json['type']}'`); + return json; } } @@ -67,8 +67,7 @@ export function DataIdToJSONTyped(value?: DataId | null, ignoreDiscriminator: bo case 'internal': return Object.assign({}, InternalDataIdToJSON(value), { type: 'internal' } as const); default: - throw new Error(`No variant of DataId exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/DataPath.ts b/typescript/src/models/DataPath.ts index ba847ea6..085eb205 100644 --- a/typescript/src/models/DataPath.ts +++ b/typescript/src/models/DataPath.ts @@ -42,13 +42,15 @@ export function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfDataPathOneOf(json)) { return DataPathOneOfFromJSONTyped(json, true); } if (instanceOfDataPathOneOf1(json)) { return DataPathOneOf1FromJSONTyped(json, true); } - return {} as any; } @@ -60,14 +62,15 @@ export function DataPathToJSONTyped(value?: DataPath | null, ignoreDiscriminator if (value == null) { return value; } - + if (typeof value !== 'object') { + return value; + } if (instanceOfDataPathOneOf(value)) { return DataPathOneOfToJSON(value as DataPathOneOf); } if (instanceOfDataPathOneOf1(value)) { return DataPathOneOf1ToJSON(value as DataPathOneOf1); } - return {}; } diff --git a/typescript/src/models/DataUsage.ts b/typescript/src/models/DataUsage.ts index 20ef7a4a..072a8039 100644 --- a/typescript/src/models/DataUsage.ts +++ b/typescript/src/models/DataUsage.ts @@ -95,7 +95,7 @@ export function DataUsageToJSONTyped(value?: DataUsage | null, ignoreDiscriminat 'computationId': value['computationId'], 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), 'userId': value['userId'], }; } diff --git a/typescript/src/models/DataUsageSummary.ts b/typescript/src/models/DataUsageSummary.ts index d64bb22a..a6f8b91c 100644 --- a/typescript/src/models/DataUsageSummary.ts +++ b/typescript/src/models/DataUsageSummary.ts @@ -78,7 +78,7 @@ export function DataUsageSummaryToJSONTyped(value?: DataUsageSummary | null, ign 'count': value['count'], 'data': value['data'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'].toISOString(), }; } diff --git a/typescript/src/models/FormatSpecifics.ts b/typescript/src/models/FormatSpecifics.ts index 4e632106..51009c12 100644 --- a/typescript/src/models/FormatSpecifics.ts +++ b/typescript/src/models/FormatSpecifics.ts @@ -12,20 +12,36 @@ * Do not edit the class manually. */ -import type { FormatSpecificsOneOf } from './FormatSpecificsOneOf'; +import { mapValues } from '../runtime'; +import type { FormatSpecificsCsv } from './FormatSpecificsCsv'; import { - instanceOfFormatSpecificsOneOf, - FormatSpecificsOneOfFromJSON, - FormatSpecificsOneOfFromJSONTyped, - FormatSpecificsOneOfToJSON, -} from './FormatSpecificsOneOf'; + FormatSpecificsCsvFromJSON, + FormatSpecificsCsvFromJSONTyped, + FormatSpecificsCsvToJSON, + FormatSpecificsCsvToJSONTyped, +} from './FormatSpecificsCsv'; /** - * @type FormatSpecifics * * @export + * @interface FormatSpecifics */ -export type FormatSpecifics = FormatSpecificsOneOf; +export interface FormatSpecifics { + /** + * + * @type {FormatSpecificsCsv} + * @memberof FormatSpecifics + */ + csv: FormatSpecificsCsv; +} + +/** + * Check if a given object implements the FormatSpecifics interface. + */ +export function instanceOfFormatSpecifics(value: object): value is FormatSpecifics { + if (!('csv' in value) || value['csv'] === undefined) return false; + return true; +} export function FormatSpecificsFromJSON(json: any): FormatSpecifics { return FormatSpecificsFromJSONTyped(json, false); @@ -35,14 +51,13 @@ export function FormatSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boo if (json == null) { return json; } - if (instanceOfFormatSpecificsOneOf(json)) { - return FormatSpecificsOneOfFromJSONTyped(json, true); - } - - return {} as any; + return { + + 'csv': FormatSpecificsCsvFromJSON(json['csv']), + }; } -export function FormatSpecificsToJSON(json: any): any { +export function FormatSpecificsToJSON(json: any): FormatSpecifics { return FormatSpecificsToJSONTyped(json, false); } @@ -51,10 +66,9 @@ export function FormatSpecificsToJSONTyped(value?: FormatSpecifics | null, ignor return value; } - if (instanceOfFormatSpecificsOneOf(value)) { - return FormatSpecificsOneOfToJSON(value as FormatSpecificsOneOf); - } - - return {}; + return { + + 'csv': FormatSpecificsCsvToJSON(value['csv']), + }; } diff --git a/typescript/src/models/FormatSpecificsOneOfCsv.ts b/typescript/src/models/FormatSpecificsCsv.ts similarity index 56% rename from typescript/src/models/FormatSpecificsOneOfCsv.ts rename to typescript/src/models/FormatSpecificsCsv.ts index e33520c2..8f660348 100644 --- a/typescript/src/models/FormatSpecificsOneOfCsv.ts +++ b/typescript/src/models/FormatSpecificsCsv.ts @@ -24,13 +24,13 @@ import { /** * * @export - * @interface FormatSpecificsOneOfCsv + * @interface FormatSpecificsCsv */ -export interface FormatSpecificsOneOfCsv { +export interface FormatSpecificsCsv { /** * * @type {CsvHeader} - * @memberof FormatSpecificsOneOfCsv + * @memberof FormatSpecificsCsv */ header: CsvHeader; } @@ -38,18 +38,18 @@ export interface FormatSpecificsOneOfCsv { /** - * Check if a given object implements the FormatSpecificsOneOfCsv interface. + * Check if a given object implements the FormatSpecificsCsv interface. */ -export function instanceOfFormatSpecificsOneOfCsv(value: object): value is FormatSpecificsOneOfCsv { +export function instanceOfFormatSpecificsCsv(value: object): value is FormatSpecificsCsv { if (!('header' in value) || value['header'] === undefined) return false; return true; } -export function FormatSpecificsOneOfCsvFromJSON(json: any): FormatSpecificsOneOfCsv { - return FormatSpecificsOneOfCsvFromJSONTyped(json, false); +export function FormatSpecificsCsvFromJSON(json: any): FormatSpecificsCsv { + return FormatSpecificsCsvFromJSONTyped(json, false); } -export function FormatSpecificsOneOfCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOfCsv { +export function FormatSpecificsCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsCsv { if (json == null) { return json; } @@ -59,11 +59,11 @@ export function FormatSpecificsOneOfCsvFromJSONTyped(json: any, ignoreDiscrimina }; } -export function FormatSpecificsOneOfCsvToJSON(json: any): FormatSpecificsOneOfCsv { - return FormatSpecificsOneOfCsvToJSONTyped(json, false); +export function FormatSpecificsCsvToJSON(json: any): FormatSpecificsCsv { + return FormatSpecificsCsvToJSONTyped(json, false); } -export function FormatSpecificsOneOfCsvToJSONTyped(value?: FormatSpecificsOneOfCsv | null, ignoreDiscriminator: boolean = false): any { +export function FormatSpecificsCsvToJSONTyped(value?: FormatSpecificsCsv | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/FormatSpecificsOneOf.ts b/typescript/src/models/FormatSpecificsOneOf.ts deleted file mode 100644 index b28b7d82..00000000 --- a/typescript/src/models/FormatSpecificsOneOf.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.8.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { FormatSpecificsOneOfCsv } from './FormatSpecificsOneOfCsv'; -import { - FormatSpecificsOneOfCsvFromJSON, - FormatSpecificsOneOfCsvFromJSONTyped, - FormatSpecificsOneOfCsvToJSON, - FormatSpecificsOneOfCsvToJSONTyped, -} from './FormatSpecificsOneOfCsv'; - -/** - * - * @export - * @interface FormatSpecificsOneOf - */ -export interface FormatSpecificsOneOf { - /** - * - * @type {FormatSpecificsOneOfCsv} - * @memberof FormatSpecificsOneOf - */ - csv: FormatSpecificsOneOfCsv; -} - -/** - * Check if a given object implements the FormatSpecificsOneOf interface. - */ -export function instanceOfFormatSpecificsOneOf(value: object): value is FormatSpecificsOneOf { - if (!('csv' in value) || value['csv'] === undefined) return false; - return true; -} - -export function FormatSpecificsOneOfFromJSON(json: any): FormatSpecificsOneOf { - return FormatSpecificsOneOfFromJSONTyped(json, false); -} - -export function FormatSpecificsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOf { - if (json == null) { - return json; - } - return { - - 'csv': FormatSpecificsOneOfCsvFromJSON(json['csv']), - }; -} - -export function FormatSpecificsOneOfToJSON(json: any): FormatSpecificsOneOf { - return FormatSpecificsOneOfToJSONTyped(json, false); -} - -export function FormatSpecificsOneOfToJSONTyped(value?: FormatSpecificsOneOf | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'csv': FormatSpecificsOneOfCsvToJSON(value['csv']), - }; -} - diff --git a/typescript/src/models/Measurement.ts b/typescript/src/models/Measurement.ts index 41b18095..8f22169f 100644 --- a/typescript/src/models/Measurement.ts +++ b/typescript/src/models/Measurement.ts @@ -57,7 +57,7 @@ export function MeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean case 'unitless': return Object.assign({}, UnitlessMeasurementFromJSONTyped(json, true), { type: 'unitless' } as const); default: - throw new Error(`No variant of Measurement exists with 'type=${json['type']}'`); + return json; } } @@ -77,8 +77,7 @@ export function MeasurementToJSONTyped(value?: Measurement | null, ignoreDiscrim case 'unitless': return Object.assign({}, UnitlessMeasurementToJSON(value), { type: 'unitless' } as const); default: - throw new Error(`No variant of Measurement exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/MetaDataDefinition.ts b/typescript/src/models/MetaDataDefinition.ts index c5ba7610..e57ff707 100644 --- a/typescript/src/models/MetaDataDefinition.ts +++ b/typescript/src/models/MetaDataDefinition.ts @@ -84,7 +84,7 @@ export function MetaDataDefinitionFromJSONTyped(json: any, ignoreDiscriminator: case 'OgrMetaData': return Object.assign({}, OgrMetaDataFromJSONTyped(json, true), { type: 'OgrMetaData' } as const); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${json['type']}'`); + return json; } } @@ -110,8 +110,7 @@ export function MetaDataDefinitionToJSONTyped(value?: MetaDataDefinition | null, case 'OgrMetaData': return Object.assign({}, OgrMetaDataToJSON(value), { type: 'OgrMetaData' } as const); default: - throw new Error(`No variant of MetaDataDefinition exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/NumberParam.ts b/typescript/src/models/NumberParam.ts index c4f4a83c..fa36ee9e 100644 --- a/typescript/src/models/NumberParam.ts +++ b/typescript/src/models/NumberParam.ts @@ -48,7 +48,7 @@ export function NumberParamFromJSONTyped(json: any, ignoreDiscriminator: boolean case 'static': return Object.assign({}, StaticNumberFromJSONTyped(json, true), { type: 'static' } as const); default: - throw new Error(`No variant of NumberParam exists with 'type=${json['type']}'`); + return json; } } @@ -66,8 +66,7 @@ export function NumberParamToJSONTyped(value?: NumberParam | null, ignoreDiscrim case 'static': return Object.assign({}, StaticNumberToJSON(value), { type: 'static' } as const); default: - throw new Error(`No variant of NumberParam exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/OgrSourceDatasetTimeType.ts b/typescript/src/models/OgrSourceDatasetTimeType.ts index 478b4d44..fe45a408 100644 --- a/typescript/src/models/OgrSourceDatasetTimeType.ts +++ b/typescript/src/models/OgrSourceDatasetTimeType.ts @@ -66,7 +66,7 @@ export function OgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscrimin case 'start+end': return Object.assign({}, OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true), { type: 'start+end' } as const); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`); + return json; } } @@ -88,8 +88,7 @@ export function OgrSourceDatasetTimeTypeToJSONTyped(value?: OgrSourceDatasetTime case 'start+end': return Object.assign({}, OgrSourceDatasetTimeTypeStartEndToJSON(value), { type: 'start+end' } as const); default: - throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/OgrSourceDurationSpec.ts b/typescript/src/models/OgrSourceDurationSpec.ts index a7e739e4..9a781583 100644 --- a/typescript/src/models/OgrSourceDurationSpec.ts +++ b/typescript/src/models/OgrSourceDurationSpec.ts @@ -57,7 +57,7 @@ export function OgrSourceDurationSpecFromJSONTyped(json: any, ignoreDiscriminato case 'zero': return Object.assign({}, OgrSourceDurationSpecZeroFromJSONTyped(json, true), { type: 'zero' } as const); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${json['type']}'`); + return json; } } @@ -77,8 +77,7 @@ export function OgrSourceDurationSpecToJSONTyped(value?: OgrSourceDurationSpec | case 'zero': return Object.assign({}, OgrSourceDurationSpecZeroToJSON(value), { type: 'zero' } as const); default: - throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/OgrSourceTimeFormat.ts b/typescript/src/models/OgrSourceTimeFormat.ts index f65d8a62..7dce8cc0 100644 --- a/typescript/src/models/OgrSourceTimeFormat.ts +++ b/typescript/src/models/OgrSourceTimeFormat.ts @@ -57,7 +57,7 @@ export function OgrSourceTimeFormatFromJSONTyped(json: any, ignoreDiscriminator: case 'unixTimeStamp': return Object.assign({}, OgrSourceTimeFormatUnixTimeStampFromJSONTyped(json, true), { format: 'unixTimeStamp' } as const); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${json['format']}'`); + return json; } } @@ -77,8 +77,7 @@ export function OgrSourceTimeFormatToJSONTyped(value?: OgrSourceTimeFormat | nul case 'unixTimeStamp': return Object.assign({}, OgrSourceTimeFormatUnixTimeStampToJSON(value), { format: 'unixTimeStamp' } as const); default: - throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${value['format']}'`); + return value; } - } diff --git a/typescript/src/models/ProjectListing.ts b/typescript/src/models/ProjectListing.ts index 1f1261d6..df510f77 100644 --- a/typescript/src/models/ProjectListing.ts +++ b/typescript/src/models/ProjectListing.ts @@ -100,7 +100,7 @@ export function ProjectListingToJSONTyped(value?: ProjectListing | null, ignoreD return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'description': value['description'], 'id': value['id'], 'layerNames': value['layerNames'], diff --git a/typescript/src/models/ProjectVersion.ts b/typescript/src/models/ProjectVersion.ts index d20ca97c..35ca1228 100644 --- a/typescript/src/models/ProjectVersion.ts +++ b/typescript/src/models/ProjectVersion.ts @@ -68,7 +68,7 @@ export function ProjectVersionToJSONTyped(value?: ProjectVersion | null, ignoreD return { - 'changed': ((value['changed']).toISOString()), + 'changed': value['changed'].toISOString(), 'id': value['id'], }; } diff --git a/typescript/src/models/RasterColorizer.ts b/typescript/src/models/RasterColorizer.ts index 01cc3cdb..71c999f4 100644 --- a/typescript/src/models/RasterColorizer.ts +++ b/typescript/src/models/RasterColorizer.ts @@ -48,7 +48,7 @@ export function RasterColorizerFromJSONTyped(json: any, ignoreDiscriminator: boo case 'singleBand': return Object.assign({}, SingleBandRasterColorizerFromJSONTyped(json, true), { type: 'singleBand' } as const); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${json['type']}'`); + return json; } } @@ -66,8 +66,7 @@ export function RasterColorizerToJSONTyped(value?: RasterColorizer | null, ignor case 'singleBand': return Object.assign({}, SingleBandRasterColorizerToJSON(value), { type: 'singleBand' } as const); default: - throw new Error(`No variant of RasterColorizer exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/Resource.ts b/typescript/src/models/Resource.ts index 04b32aa5..ca82cd87 100644 --- a/typescript/src/models/Resource.ts +++ b/typescript/src/models/Resource.ts @@ -84,7 +84,7 @@ export function ResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): case 'provider': return Object.assign({}, DataProviderResourceFromJSONTyped(json, true), { type: 'provider' } as const); default: - throw new Error(`No variant of Resource exists with 'type=${json['type']}'`); + return json; } } @@ -110,8 +110,7 @@ export function ResourceToJSONTyped(value?: Resource | null, ignoreDiscriminator case 'provider': return Object.assign({}, DataProviderResourceToJSON(value), { type: 'provider' } as const); default: - throw new Error(`No variant of Resource exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/Symbology.ts b/typescript/src/models/Symbology.ts index 5da8d78c..4226c31e 100644 --- a/typescript/src/models/Symbology.ts +++ b/typescript/src/models/Symbology.ts @@ -66,7 +66,7 @@ export function SymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): case 'raster': return Object.assign({}, RasterSymbologyFromJSONTyped(json, true), { type: 'raster' } as const); default: - throw new Error(`No variant of Symbology exists with 'type=${json['type']}'`); + return json; } } @@ -88,8 +88,7 @@ export function SymbologyToJSONTyped(value?: Symbology | null, ignoreDiscriminat case 'raster': return Object.assign({}, RasterSymbologyToJSON(value), { type: 'raster' } as const); default: - throw new Error(`No variant of Symbology exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/TaskStatus.ts b/typescript/src/models/TaskStatus.ts index a2c81146..cb9e31d8 100644 --- a/typescript/src/models/TaskStatus.ts +++ b/typescript/src/models/TaskStatus.ts @@ -66,7 +66,7 @@ export function TaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean) case 'running': return Object.assign({}, TaskStatusRunningFromJSONTyped(json, true), { status: 'running' } as const); default: - throw new Error(`No variant of TaskStatus exists with 'status=${json['status']}'`); + return json; } } @@ -88,8 +88,7 @@ export function TaskStatusToJSONTyped(value?: TaskStatus | null, ignoreDiscrimin case 'running': return Object.assign({}, TaskStatusRunningToJSON(value), { status: 'running' } as const); default: - throw new Error(`No variant of TaskStatus exists with 'status=${value['status']}'`); + return value; } - } diff --git a/typescript/src/models/TypedDataProviderDefinition.ts b/typescript/src/models/TypedDataProviderDefinition.ts index 6a7b6317..2af2a8a0 100644 --- a/typescript/src/models/TypedDataProviderDefinition.ts +++ b/typescript/src/models/TypedDataProviderDefinition.ts @@ -138,7 +138,7 @@ export function TypedDataProviderDefinitionFromJSONTyped(json: any, ignoreDiscri case 'WildLIVE!': return Object.assign({}, WildliveDataConnectorDefinitionFromJSONTyped(json, true), { type: 'WildLIVE!' } as const); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${json['type']}'`); + return json; } } @@ -176,8 +176,7 @@ export function TypedDataProviderDefinitionToJSONTyped(value?: TypedDataProvider case 'WildLIVE!': return Object.assign({}, WildliveDataConnectorDefinitionToJSON(value), { type: 'WildLIVE!' } as const); default: - throw new Error(`No variant of TypedDataProviderDefinition exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/TypedGeometry.ts b/typescript/src/models/TypedGeometry.ts index 14c92d5c..fdd4cef0 100644 --- a/typescript/src/models/TypedGeometry.ts +++ b/typescript/src/models/TypedGeometry.ts @@ -56,6 +56,9 @@ export function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boole if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfTypedGeometryOneOf(json)) { return TypedGeometryOneOfFromJSONTyped(json, true); } @@ -68,7 +71,6 @@ export function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boole if (instanceOfTypedGeometryOneOf3(json)) { return TypedGeometryOneOf3FromJSONTyped(json, true); } - return {} as any; } @@ -80,7 +82,9 @@ export function TypedGeometryToJSONTyped(value?: TypedGeometry | null, ignoreDis if (value == null) { return value; } - + if (typeof value !== 'object') { + return value; + } if (instanceOfTypedGeometryOneOf(value)) { return TypedGeometryOneOfToJSON(value as TypedGeometryOneOf); } @@ -93,7 +97,6 @@ export function TypedGeometryToJSONTyped(value?: TypedGeometry | null, ignoreDis if (instanceOfTypedGeometryOneOf3(value)) { return TypedGeometryOneOf3ToJSON(value as TypedGeometryOneOf3); } - return {}; } diff --git a/typescript/src/models/TypedResultDescriptor.ts b/typescript/src/models/TypedResultDescriptor.ts index 92d940f1..70b5fe9e 100644 --- a/typescript/src/models/TypedResultDescriptor.ts +++ b/typescript/src/models/TypedResultDescriptor.ts @@ -57,7 +57,7 @@ export function TypedResultDescriptorFromJSONTyped(json: any, ignoreDiscriminato case 'vector': return Object.assign({}, TypedVectorResultDescriptorFromJSONTyped(json, true), { type: 'vector' } as const); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${json['type']}'`); + return json; } } @@ -77,8 +77,7 @@ export function TypedResultDescriptorToJSONTyped(value?: TypedResultDescriptor | case 'vector': return Object.assign({}, TypedVectorResultDescriptorToJSON(value), { type: 'vector' } as const); default: - throw new Error(`No variant of TypedResultDescriptor exists with 'type=${value['type']}'`); + return value; } - } diff --git a/typescript/src/models/UserSession.ts b/typescript/src/models/UserSession.ts index 09a0ac24..05866e99 100644 --- a/typescript/src/models/UserSession.ts +++ b/typescript/src/models/UserSession.ts @@ -121,12 +121,12 @@ export function UserSessionToJSONTyped(value?: UserSession | null, ignoreDiscrim return { - 'created': ((value['created']).toISOString()), + 'created': value['created'].toISOString(), 'id': value['id'], 'project': value['project'], 'roles': value['roles'], 'user': UserInfoToJSON(value['user']), - 'validUntil': ((value['validUntil']).toISOString()), + 'validUntil': value['validUntil'].toISOString(), 'view': STRectangleToJSON(value['view']), }; } diff --git a/typescript/src/models/VecUpdate.ts b/typescript/src/models/VecUpdate.ts index 5fdccd10..7722d2b0 100644 --- a/typescript/src/models/VecUpdate.ts +++ b/typescript/src/models/VecUpdate.ts @@ -42,13 +42,15 @@ export function VecUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): if (json == null) { return json; } + if (typeof json !== 'object') { + return json; + } if (instanceOfPlot(json)) { return PlotFromJSONTyped(json, true); } if (instanceOfProjectUpdateToken(json)) { return ProjectUpdateTokenFromJSONTyped(json, true); } - return {} as any; } @@ -60,14 +62,15 @@ export function VecUpdateToJSONTyped(value?: VecUpdate | null, ignoreDiscriminat if (value == null) { return value; } - + if (typeof value !== 'object') { + return value; + } if (typeof value === 'object' && instanceOfPlot(value)) { return PlotToJSON(value as Plot); } if (instanceOfProjectUpdateToken(value)) { return ProjectUpdateTokenToJSON(value as ProjectUpdateToken); } - return {}; } diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index f18cf8c2..1ca49a0c 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -49,8 +49,7 @@ export * from './ExternalDataId'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; export * from './FormatSpecifics'; -export * from './FormatSpecificsOneOf'; -export * from './FormatSpecificsOneOfCsv'; +export * from './FormatSpecificsCsv'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetGeoTransform'; export * from './GdalDatasetParameters'; diff --git a/typescript/src/runtime.ts b/typescript/src/runtime.ts index fdd2e7db..8994c6e6 100644 --- a/typescript/src/runtime.ts +++ b/typescript/src/runtime.ts @@ -86,7 +86,7 @@ export class Configuration { export const DefaultConfig = new Configuration({ headers: { - 'User-Agent': 'geoengine/openapi-client/typescript/0.0.27' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.28' } }); @@ -347,10 +347,11 @@ export function exists(json: any, key: string) { } export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); + const result: { [key: string]: any } = {}; + for (const key of Object.keys(data)) { + result[key] = fn(data[key]); + } + return result; } export function canConsumeForm(consumes: Consume[]): boolean {