diff --git a/.generation/config.ini b/.generation/config.ini index 19f533d4..0b650672 100644 --- a/.generation/config.ini +++ b/.generation/config.ini @@ -1,9 +1,9 @@ [input] -backendCommit = 7aadfa3 +backendCommit = ae4b8041b8c6ea5e9bf5e51133a7ca5070afb6d0 [general] githubUrl = https://github.com/geo-engine/openapi-client -version = 0.0.25 +version = 0.0.26 [python] name = geoengine_openapi_client diff --git a/.generation/input/openapi.json b/.generation/input/openapi.json index 409f8495..643aedb1 100644 --- a/.generation/input/openapi.json +++ b/.generation/input/openapi.json @@ -6924,7 +6924,8 @@ "displayName", "description", "upload", - "metadata" + "metadata", + "fileName" ], "properties": { "description": { @@ -6933,6 +6934,9 @@ "displayName": { "type": "string" }, + "fileName": { + "type": "string" + }, "metadata": { "$ref": "#/components/schemas/MlModelMetadata" }, @@ -6948,18 +6952,44 @@ "type": "string", "format": "uuid" }, + "MlModelInputNoDataHandling": { + "type": "object", + "required": [ + "variant" + ], + "properties": { + "noDataValue": { + "type": [ + "number", + "null" + ], + "format": "float" + }, + "variant": { + "$ref": "#/components/schemas/MlModelInputNoDataHandlingVariant" + } + } + }, + "MlModelInputNoDataHandlingVariant": { + "type": "string", + "enum": [ + "encodedNoData", + "skipIfNoData" + ] + }, "MlModelMetadata": { "type": "object", "required": [ - "fileName", "inputType", "outputType", "inputShape", - "outputShape" + "outputShape", + "inputNoDataHandling", + "outputNoDataHandling" ], "properties": { - "fileName": { - "type": "string" + "inputNoDataHandling": { + "$ref": "#/components/schemas/MlModelInputNoDataHandling" }, "inputShape": { "$ref": "#/components/schemas/MlTensorShape3D" @@ -6967,6 +6997,9 @@ "inputType": { "$ref": "#/components/schemas/RasterDataType" }, + "outputNoDataHandling": { + "$ref": "#/components/schemas/MlModelOutputNoDataHandling" + }, "outputShape": { "$ref": "#/components/schemas/MlTensorShape3D" }, @@ -6989,6 +7022,31 @@ } } }, + "MlModelOutputNoDataHandling": { + "type": "object", + "required": [ + "variant" + ], + "properties": { + "noDataValue": { + "type": [ + "number", + "null" + ], + "format": "float" + }, + "variant": { + "$ref": "#/components/schemas/MlModelOutputNoDataHandlingVariant" + } + } + }, + "MlModelOutputNoDataHandlingVariant": { + "type": "string", + "enum": [ + "encodedNoData", + "nanIsNoData" + ] + }, "MlModelResource": { "type": "object", "required": [ diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index f8712378..ff8ced66 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -84,8 +84,12 @@ docs/Measurement.md docs/MetaDataDefinition.md docs/MetaDataSuggestion.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 @@ -336,8 +340,12 @@ geoengine_openapi_client/models/measurement.py geoengine_openapi_client/models/meta_data_definition.py geoengine_openapi_client/models/meta_data_suggestion.py geoengine_openapi_client/models/ml_model.py +geoengine_openapi_client/models/ml_model_input_no_data_handling.py +geoengine_openapi_client/models/ml_model_input_no_data_handling_variant.py geoengine_openapi_client/models/ml_model_metadata.py geoengine_openapi_client/models/ml_model_name_response.py +geoengine_openapi_client/models/ml_model_output_no_data_handling.py +geoengine_openapi_client/models/ml_model_output_no_data_handling_variant.py geoengine_openapi_client/models/ml_model_resource.py geoengine_openapi_client/models/ml_tensor_shape3_d.py geoengine_openapi_client/models/mock_dataset_data_source_loading_info.py @@ -566,8 +574,12 @@ test/test_meta_data_definition.py test/test_meta_data_suggestion.py test/test_ml_api.py test/test_ml_model.py +test/test_ml_model_input_no_data_handling.py +test/test_ml_model_input_no_data_handling_variant.py test/test_ml_model_metadata.py test/test_ml_model_name_response.py +test/test_ml_model_output_no_data_handling.py +test/test_ml_model_output_no_data_handling_variant.py test/test_ml_model_resource.py test/test_ml_tensor_shape3_d.py test/test_mock_dataset_data_source_loading_info.py diff --git a/python/README.md b/python/README.md index cc521acc..eeecdf4a 100644 --- a/python/README.md +++ b/python/README.md @@ -4,7 +4,7 @@ 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.25 +- Package version: 0.0.26 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -264,8 +264,12 @@ Class | Method | HTTP request | Description - [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) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index 21f0d008..c581e143 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "0.0.25" +__version__ = "0.0.26" # import apis into sdk package from geoengine_openapi_client.api.datasets_api import DatasetsApi @@ -124,8 +124,12 @@ 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 diff --git a/python/geoengine_openapi_client/api_client.py b/python/geoengine_openapi_client/api_client.py index 80473652..f333d15b 100644 --- a/python/geoengine_openapi_client/api_client.py +++ b/python/geoengine_openapi_client/api_client.py @@ -91,7 +91,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.25' + self.user_agent = 'geoengine/openapi-client/python/0.0.26' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/python/geoengine_openapi_client/configuration.py b/python/geoengine_openapi_client/configuration.py index ea876f1b..9444d780 100644 --- a/python/geoengine_openapi_client/configuration.py +++ b/python/geoengine_openapi_client/configuration.py @@ -512,7 +512,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.25".\ + "SDK Package Version: 0.0.26".\ 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 0f13786b..3886d776 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -92,8 +92,12 @@ 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 diff --git a/python/geoengine_openapi_client/models/ml_model.py b/python/geoengine_openapi_client/models/ml_model.py index 4e9068fb..3b484465 100644 --- a/python/geoengine_openapi_client/models/ml_model.py +++ b/python/geoengine_openapi_client/models/ml_model.py @@ -30,10 +30,11 @@ class MlModel(BaseModel): """ # noqa: E501 description: StrictStr display_name: StrictStr = Field(alias="displayName") + file_name: StrictStr = Field(alias="fileName") metadata: MlModelMetadata name: StrictStr upload: StrictStr - __properties: ClassVar[List[str]] = ["description", "displayName", "metadata", "name", "upload"] + __properties: ClassVar[List[str]] = ["description", "displayName", "fileName", "metadata", "name", "upload"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "description": obj.get("description"), "displayName": obj.get("displayName"), + "fileName": obj.get("fileName"), "metadata": MlModelMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, "name": obj.get("name"), "upload": obj.get("upload") diff --git a/python/geoengine_openapi_client/models/ml_model_input_no_data_handling.py b/python/geoengine_openapi_client/models/ml_model_input_no_data_handling.py new file mode 100644 index 00000000..28f0b4de --- /dev/null +++ b/python/geoengine_openapi_client/models/ml_model_input_no_data_handling.py @@ -0,0 +1,96 @@ +# 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, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from geoengine_openapi_client.models.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant +from typing import Optional, Set +from typing_extensions import Self + +class MlModelInputNoDataHandling(BaseModel): + """ + MlModelInputNoDataHandling + """ # noqa: E501 + no_data_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="noDataValue") + variant: MlModelInputNoDataHandlingVariant + __properties: ClassVar[List[str]] = ["noDataValue", "variant"] + + 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 MlModelInputNoDataHandling 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, + ) + # set to None if no_data_value (nullable) is None + # and model_fields_set contains the field + if self.no_data_value is None and "no_data_value" in self.model_fields_set: + _dict['noDataValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MlModelInputNoDataHandling from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "noDataValue": obj.get("noDataValue"), + "variant": obj.get("variant") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/ml_model_input_no_data_handling_variant.py b/python/geoengine_openapi_client/models/ml_model_input_no_data_handling_variant.py new file mode 100644 index 00000000..82e44a69 --- /dev/null +++ b/python/geoengine_openapi_client/models/ml_model_input_no_data_handling_variant.py @@ -0,0 +1,38 @@ +# 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 json +from enum import Enum +from typing_extensions import Self + + +class MlModelInputNoDataHandlingVariant(str, Enum): + """ + MlModelInputNoDataHandlingVariant + """ + + """ + allowed enum values + """ + ENCODEDNODATA = 'encodedNoData' + SKIPIFNODATA = 'skipIfNoData' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of MlModelInputNoDataHandlingVariant from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/python/geoengine_openapi_client/models/ml_model_metadata.py b/python/geoengine_openapi_client/models/ml_model_metadata.py index 595d392f..148cece8 100644 --- a/python/geoengine_openapi_client/models/ml_model_metadata.py +++ b/python/geoengine_openapi_client/models/ml_model_metadata.py @@ -18,8 +18,10 @@ 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 geoengine_openapi_client.models.ml_model_input_no_data_handling import MlModelInputNoDataHandling +from geoengine_openapi_client.models.ml_model_output_no_data_handling import MlModelOutputNoDataHandling from geoengine_openapi_client.models.ml_tensor_shape3_d import MlTensorShape3D from geoengine_openapi_client.models.raster_data_type import RasterDataType from typing import Optional, Set @@ -29,12 +31,13 @@ class MlModelMetadata(BaseModel): """ MlModelMetadata """ # noqa: E501 - file_name: StrictStr = Field(alias="fileName") + input_no_data_handling: MlModelInputNoDataHandling = Field(alias="inputNoDataHandling") input_shape: MlTensorShape3D = Field(alias="inputShape") input_type: RasterDataType = Field(alias="inputType") + output_no_data_handling: MlModelOutputNoDataHandling = Field(alias="outputNoDataHandling") output_shape: MlTensorShape3D = Field(alias="outputShape") output_type: RasterDataType = Field(alias="outputType") - __properties: ClassVar[List[str]] = ["fileName", "inputShape", "inputType", "outputShape", "outputType"] + __properties: ClassVar[List[str]] = ["inputNoDataHandling", "inputShape", "inputType", "outputNoDataHandling", "outputShape", "outputType"] model_config = ConfigDict( populate_by_name=True, @@ -75,9 +78,15 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of input_no_data_handling + if self.input_no_data_handling: + _dict['inputNoDataHandling'] = self.input_no_data_handling.to_dict() # override the default output from pydantic by calling `to_dict()` of input_shape if self.input_shape: _dict['inputShape'] = self.input_shape.to_dict() + # override the default output from pydantic by calling `to_dict()` of output_no_data_handling + if self.output_no_data_handling: + _dict['outputNoDataHandling'] = self.output_no_data_handling.to_dict() # override the default output from pydantic by calling `to_dict()` of output_shape if self.output_shape: _dict['outputShape'] = self.output_shape.to_dict() @@ -93,9 +102,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "fileName": obj.get("fileName"), + "inputNoDataHandling": MlModelInputNoDataHandling.from_dict(obj["inputNoDataHandling"]) if obj.get("inputNoDataHandling") is not None else None, "inputShape": MlTensorShape3D.from_dict(obj["inputShape"]) if obj.get("inputShape") is not None else None, "inputType": obj.get("inputType"), + "outputNoDataHandling": MlModelOutputNoDataHandling.from_dict(obj["outputNoDataHandling"]) if obj.get("outputNoDataHandling") is not None else None, "outputShape": MlTensorShape3D.from_dict(obj["outputShape"]) if obj.get("outputShape") is not None else None, "outputType": obj.get("outputType") }) diff --git a/python/geoengine_openapi_client/models/ml_model_output_no_data_handling.py b/python/geoengine_openapi_client/models/ml_model_output_no_data_handling.py new file mode 100644 index 00000000..3d5322f9 --- /dev/null +++ b/python/geoengine_openapi_client/models/ml_model_output_no_data_handling.py @@ -0,0 +1,96 @@ +# 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, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from geoengine_openapi_client.models.ml_model_output_no_data_handling_variant import MlModelOutputNoDataHandlingVariant +from typing import Optional, Set +from typing_extensions import Self + +class MlModelOutputNoDataHandling(BaseModel): + """ + MlModelOutputNoDataHandling + """ # noqa: E501 + no_data_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="noDataValue") + variant: MlModelOutputNoDataHandlingVariant + __properties: ClassVar[List[str]] = ["noDataValue", "variant"] + + 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 MlModelOutputNoDataHandling 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, + ) + # set to None if no_data_value (nullable) is None + # and model_fields_set contains the field + if self.no_data_value is None and "no_data_value" in self.model_fields_set: + _dict['noDataValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MlModelOutputNoDataHandling from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "noDataValue": obj.get("noDataValue"), + "variant": obj.get("variant") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/ml_model_output_no_data_handling_variant.py b/python/geoengine_openapi_client/models/ml_model_output_no_data_handling_variant.py new file mode 100644 index 00000000..72f3e9f9 --- /dev/null +++ b/python/geoengine_openapi_client/models/ml_model_output_no_data_handling_variant.py @@ -0,0 +1,38 @@ +# 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 json +from enum import Enum +from typing_extensions import Self + + +class MlModelOutputNoDataHandlingVariant(str, Enum): + """ + MlModelOutputNoDataHandlingVariant + """ + + """ + allowed enum values + """ + ENCODEDNODATA = 'encodedNoData' + NANISNODATA = 'nanIsNoData' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of MlModelOutputNoDataHandlingVariant from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/python/pyproject.toml b/python/pyproject.toml index 0c09f29d..67796bd6 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "geoengine_openapi_client" -version = "0.0.25" +version = "0.0.26" description = "Geo Engine API" authors = ["Geo Engine Developers "] license = "Apache-2.0" diff --git a/python/setup.py b/python/setup.py index fdd27f54..8faaf1d0 100644 --- a/python/setup.py +++ b/python/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "geoengine-openapi-client" -VERSION = "0.0.25" +VERSION = "0.0.26" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/python/test/test_ml_model.py b/python/test/test_ml_model.py index 17b3a047..29bab5d0 100644 --- a/python/test/test_ml_model.py +++ b/python/test/test_ml_model.py @@ -38,13 +38,19 @@ def make_instance(self, include_optional) -> MlModel: return MlModel( description = '', display_name = '', + file_name = '', metadata = geoengine_openapi_client.models.ml_model_metadata.MlModelMetadata( - file_name = '', + input_no_data_handling = geoengine_openapi_client.models.ml_model_input_no_data_handling.MlModelInputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), input_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, y = 0, ), input_type = 'U8', + output_no_data_handling = geoengine_openapi_client.models.ml_model_output_no_data_handling.MlModelOutputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), output_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, @@ -57,13 +63,19 @@ def make_instance(self, include_optional) -> MlModel: return MlModel( description = '', display_name = '', + file_name = '', metadata = geoengine_openapi_client.models.ml_model_metadata.MlModelMetadata( - file_name = '', + input_no_data_handling = geoengine_openapi_client.models.ml_model_input_no_data_handling.MlModelInputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), input_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, y = 0, ), input_type = 'U8', + output_no_data_handling = geoengine_openapi_client.models.ml_model_output_no_data_handling.MlModelOutputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), output_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, diff --git a/python/test/test_ml_model_input_no_data_handling.py b/python/test/test_ml_model_input_no_data_handling.py new file mode 100644 index 00000000..e5b8f0e6 --- /dev/null +++ b/python/test/test_ml_model_input_no_data_handling.py @@ -0,0 +1,54 @@ +# 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.ml_model_input_no_data_handling import MlModelInputNoDataHandling + +class TestMlModelInputNoDataHandling(unittest.TestCase): + """MlModelInputNoDataHandling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MlModelInputNoDataHandling: + """Test MlModelInputNoDataHandling + 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 `MlModelInputNoDataHandling` + """ + model = MlModelInputNoDataHandling() + if include_optional: + return MlModelInputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData' + ) + else: + return MlModelInputNoDataHandling( + variant = 'encodedNoData', + ) + """ + + def testMlModelInputNoDataHandling(self): + """Test MlModelInputNoDataHandling""" + # 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_ml_model_input_no_data_handling_variant.py b/python/test/test_ml_model_input_no_data_handling_variant.py new file mode 100644 index 00000000..9affe934 --- /dev/null +++ b/python/test/test_ml_model_input_no_data_handling_variant.py @@ -0,0 +1,34 @@ +# 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.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant + +class TestMlModelInputNoDataHandlingVariant(unittest.TestCase): + """MlModelInputNoDataHandlingVariant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMlModelInputNoDataHandlingVariant(self): + """Test MlModelInputNoDataHandlingVariant""" + # inst = MlModelInputNoDataHandlingVariant() + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_ml_model_metadata.py b/python/test/test_ml_model_metadata.py index fbae68e2..ab5d6065 100644 --- a/python/test/test_ml_model_metadata.py +++ b/python/test/test_ml_model_metadata.py @@ -36,12 +36,17 @@ def make_instance(self, include_optional) -> MlModelMetadata: model = MlModelMetadata() if include_optional: return MlModelMetadata( - file_name = '', + input_no_data_handling = geoengine_openapi_client.models.ml_model_input_no_data_handling.MlModelInputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), input_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, y = 0, ), input_type = 'U8', + output_no_data_handling = geoengine_openapi_client.models.ml_model_output_no_data_handling.MlModelOutputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), output_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, @@ -50,12 +55,17 @@ def make_instance(self, include_optional) -> MlModelMetadata: ) else: return MlModelMetadata( - file_name = '', + input_no_data_handling = geoengine_openapi_client.models.ml_model_input_no_data_handling.MlModelInputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), input_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, y = 0, ), input_type = 'U8', + output_no_data_handling = geoengine_openapi_client.models.ml_model_output_no_data_handling.MlModelOutputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData', ), output_shape = geoengine_openapi_client.models.ml_tensor_shape3_d.MlTensorShape3D( bands = 0, x = 0, diff --git a/python/test/test_ml_model_output_no_data_handling.py b/python/test/test_ml_model_output_no_data_handling.py new file mode 100644 index 00000000..54a59576 --- /dev/null +++ b/python/test/test_ml_model_output_no_data_handling.py @@ -0,0 +1,54 @@ +# 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.ml_model_output_no_data_handling import MlModelOutputNoDataHandling + +class TestMlModelOutputNoDataHandling(unittest.TestCase): + """MlModelOutputNoDataHandling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MlModelOutputNoDataHandling: + """Test MlModelOutputNoDataHandling + 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 `MlModelOutputNoDataHandling` + """ + model = MlModelOutputNoDataHandling() + if include_optional: + return MlModelOutputNoDataHandling( + no_data_value = 1.337, + variant = 'encodedNoData' + ) + else: + return MlModelOutputNoDataHandling( + variant = 'encodedNoData', + ) + """ + + def testMlModelOutputNoDataHandling(self): + """Test MlModelOutputNoDataHandling""" + # 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_ml_model_output_no_data_handling_variant.py b/python/test/test_ml_model_output_no_data_handling_variant.py new file mode 100644 index 00000000..e5a49827 --- /dev/null +++ b/python/test/test_ml_model_output_no_data_handling_variant.py @@ -0,0 +1,34 @@ +# 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.ml_model_output_no_data_handling_variant import MlModelOutputNoDataHandlingVariant + +class TestMlModelOutputNoDataHandlingVariant(unittest.TestCase): + """MlModelOutputNoDataHandlingVariant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMlModelOutputNoDataHandlingVariant(self): + """Test MlModelOutputNoDataHandlingVariant""" + # inst = MlModelOutputNoDataHandlingVariant() + +if __name__ == '__main__': + unittest.main() diff --git a/typescript/README.md b/typescript/README.md index 1db8ad30..0f9ed32a 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -1,4 +1,4 @@ -## @geoengine/openapi-client@0.0.25 +## @geoengine/openapi-client@0.0.26 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: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @geoengine/openapi-client@0.0.25 --save +npm install @geoengine/openapi-client@0.0.26 --save ``` _unPublished (not recommended):_ diff --git a/typescript/dist/esm/models/MlModel.d.ts b/typescript/dist/esm/models/MlModel.d.ts index 865caa00..64f05031 100644 --- a/typescript/dist/esm/models/MlModel.d.ts +++ b/typescript/dist/esm/models/MlModel.d.ts @@ -28,6 +28,12 @@ export interface MlModel { * @memberof MlModel */ displayName: string; + /** + * + * @type {string} + * @memberof MlModel + */ + fileName: string; /** * * @type {MlModelMetadata} diff --git a/typescript/dist/esm/models/MlModel.js b/typescript/dist/esm/models/MlModel.js index 5d2e1efa..672aaca3 100644 --- a/typescript/dist/esm/models/MlModel.js +++ b/typescript/dist/esm/models/MlModel.js @@ -20,6 +20,8 @@ export function instanceOfMlModel(value) { return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('fileName' in value) || value['fileName'] === undefined) + return false; if (!('metadata' in value) || value['metadata'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) @@ -38,6 +40,7 @@ export function MlModelFromJSONTyped(json, ignoreDiscriminator) { return { 'description': json['description'], 'displayName': json['displayName'], + 'fileName': json['fileName'], 'metadata': MlModelMetadataFromJSON(json['metadata']), 'name': json['name'], 'upload': json['upload'], @@ -53,6 +56,7 @@ export function MlModelToJSONTyped(value, ignoreDiscriminator = false) { return { 'description': value['description'], 'displayName': value['displayName'], + 'fileName': value['fileName'], 'metadata': MlModelMetadataToJSON(value['metadata']), 'name': value['name'], 'upload': value['upload'], diff --git a/typescript/dist/esm/models/MlModelInputNoDataHandling.d.ts b/typescript/dist/esm/models/MlModelInputNoDataHandling.d.ts new file mode 100644 index 00000000..f75e855d --- /dev/null +++ b/typescript/dist/esm/models/MlModelInputNoDataHandling.d.ts @@ -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 + * + * 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 { MlModelInputNoDataHandlingVariant } from './MlModelInputNoDataHandlingVariant'; +/** + * + * @export + * @interface MlModelInputNoDataHandling + */ +export interface MlModelInputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelInputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelInputNoDataHandlingVariant} + * @memberof MlModelInputNoDataHandling + */ + variant: MlModelInputNoDataHandlingVariant; +} +/** + * Check if a given object implements the MlModelInputNoDataHandling interface. + */ +export declare function instanceOfMlModelInputNoDataHandling(value: object): value is MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingFromJSON(json: any): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingToJSON(json: any): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingToJSONTyped(value?: MlModelInputNoDataHandling | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MlModelInputNoDataHandling.js b/typescript/dist/esm/models/MlModelInputNoDataHandling.js new file mode 100644 index 00000000..888fa64a --- /dev/null +++ b/typescript/dist/esm/models/MlModelInputNoDataHandling.js @@ -0,0 +1,46 @@ +/* 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 { MlModelInputNoDataHandlingVariantFromJSON, MlModelInputNoDataHandlingVariantToJSON, } from './MlModelInputNoDataHandlingVariant'; +/** + * Check if a given object implements the MlModelInputNoDataHandling interface. + */ +export function instanceOfMlModelInputNoDataHandling(value) { + if (!('variant' in value) || value['variant'] === undefined) + return false; + return true; +} +export function MlModelInputNoDataHandlingFromJSON(json) { + return MlModelInputNoDataHandlingFromJSONTyped(json, false); +} +export function MlModelInputNoDataHandlingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': MlModelInputNoDataHandlingVariantFromJSON(json['variant']), + }; +} +export function MlModelInputNoDataHandlingToJSON(json) { + return MlModelInputNoDataHandlingToJSONTyped(json, false); +} +export function MlModelInputNoDataHandlingToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'noDataValue': value['noDataValue'], + 'variant': MlModelInputNoDataHandlingVariantToJSON(value['variant']), + }; +} diff --git a/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.d.ts b/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.d.ts new file mode 100644 index 00000000..586c68f3 --- /dev/null +++ b/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description 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. + */ +/** + * + * @export + */ +export declare const MlModelInputNoDataHandlingVariant: { + readonly EncodedNoData: "encodedNoData"; + readonly SkipIfNoData: "skipIfNoData"; +}; +export type MlModelInputNoDataHandlingVariant = typeof MlModelInputNoDataHandlingVariant[keyof typeof MlModelInputNoDataHandlingVariant]; +export declare function instanceOfMlModelInputNoDataHandlingVariant(value: any): boolean; +export declare function MlModelInputNoDataHandlingVariantFromJSON(json: any): MlModelInputNoDataHandlingVariant; +export declare function MlModelInputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant; +export declare function MlModelInputNoDataHandlingVariantToJSON(value?: MlModelInputNoDataHandlingVariant | null): any; +export declare function MlModelInputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant; diff --git a/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.js b/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.js new file mode 100644 index 00000000..3c2173af --- /dev/null +++ b/typescript/dist/esm/models/MlModelInputNoDataHandlingVariant.js @@ -0,0 +1,43 @@ +/* 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. + */ +/** + * + * @export + */ +export const MlModelInputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + SkipIfNoData: 'skipIfNoData' +}; +export function instanceOfMlModelInputNoDataHandlingVariant(value) { + for (const key in MlModelInputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(MlModelInputNoDataHandlingVariant, key)) { + if (MlModelInputNoDataHandlingVariant[key] === value) { + return true; + } + } + } + return false; +} +export function MlModelInputNoDataHandlingVariantFromJSON(json) { + return MlModelInputNoDataHandlingVariantFromJSONTyped(json, false); +} +export function MlModelInputNoDataHandlingVariantFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function MlModelInputNoDataHandlingVariantToJSON(value) { + return value; +} +export function MlModelInputNoDataHandlingVariantToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/esm/models/MlModelMetadata.d.ts b/typescript/dist/esm/models/MlModelMetadata.d.ts index 97858d4a..4775626c 100644 --- a/typescript/dist/esm/models/MlModelMetadata.d.ts +++ b/typescript/dist/esm/models/MlModelMetadata.d.ts @@ -9,6 +9,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { MlModelOutputNoDataHandling } from './MlModelOutputNoDataHandling'; +import type { MlModelInputNoDataHandling } from './MlModelInputNoDataHandling'; import type { MlTensorShape3D } from './MlTensorShape3D'; import type { RasterDataType } from './RasterDataType'; /** @@ -19,10 +21,10 @@ import type { RasterDataType } from './RasterDataType'; export interface MlModelMetadata { /** * - * @type {string} + * @type {MlModelInputNoDataHandling} * @memberof MlModelMetadata */ - fileName: string; + inputNoDataHandling: MlModelInputNoDataHandling; /** * * @type {MlTensorShape3D} @@ -35,6 +37,12 @@ export interface MlModelMetadata { * @memberof MlModelMetadata */ inputType: RasterDataType; + /** + * + * @type {MlModelOutputNoDataHandling} + * @memberof MlModelMetadata + */ + outputNoDataHandling: MlModelOutputNoDataHandling; /** * * @type {MlTensorShape3D} diff --git a/typescript/dist/esm/models/MlModelMetadata.js b/typescript/dist/esm/models/MlModelMetadata.js index e5e3fbab..7807e952 100644 --- a/typescript/dist/esm/models/MlModelMetadata.js +++ b/typescript/dist/esm/models/MlModelMetadata.js @@ -11,18 +11,22 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { MlModelOutputNoDataHandlingFromJSON, MlModelOutputNoDataHandlingToJSON, } from './MlModelOutputNoDataHandling'; +import { MlModelInputNoDataHandlingFromJSON, MlModelInputNoDataHandlingToJSON, } from './MlModelInputNoDataHandling'; import { MlTensorShape3DFromJSON, MlTensorShape3DToJSON, } from './MlTensorShape3D'; import { RasterDataTypeFromJSON, RasterDataTypeToJSON, } from './RasterDataType'; /** * Check if a given object implements the MlModelMetadata interface. */ export function instanceOfMlModelMetadata(value) { - if (!('fileName' in value) || value['fileName'] === undefined) + if (!('inputNoDataHandling' in value) || value['inputNoDataHandling'] === undefined) return false; if (!('inputShape' in value) || value['inputShape'] === undefined) return false; if (!('inputType' in value) || value['inputType'] === undefined) return false; + if (!('outputNoDataHandling' in value) || value['outputNoDataHandling'] === undefined) + return false; if (!('outputShape' in value) || value['outputShape'] === undefined) return false; if (!('outputType' in value) || value['outputType'] === undefined) @@ -37,9 +41,10 @@ export function MlModelMetadataFromJSONTyped(json, ignoreDiscriminator) { return json; } return { - 'fileName': json['fileName'], + 'inputNoDataHandling': MlModelInputNoDataHandlingFromJSON(json['inputNoDataHandling']), 'inputShape': MlTensorShape3DFromJSON(json['inputShape']), 'inputType': RasterDataTypeFromJSON(json['inputType']), + 'outputNoDataHandling': MlModelOutputNoDataHandlingFromJSON(json['outputNoDataHandling']), 'outputShape': MlTensorShape3DFromJSON(json['outputShape']), 'outputType': RasterDataTypeFromJSON(json['outputType']), }; @@ -52,9 +57,10 @@ export function MlModelMetadataToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'fileName': value['fileName'], + 'inputNoDataHandling': MlModelInputNoDataHandlingToJSON(value['inputNoDataHandling']), 'inputShape': MlTensorShape3DToJSON(value['inputShape']), 'inputType': RasterDataTypeToJSON(value['inputType']), + 'outputNoDataHandling': MlModelOutputNoDataHandlingToJSON(value['outputNoDataHandling']), 'outputShape': MlTensorShape3DToJSON(value['outputShape']), 'outputType': RasterDataTypeToJSON(value['outputType']), }; diff --git a/typescript/dist/esm/models/MlModelOutputNoDataHandling.d.ts b/typescript/dist/esm/models/MlModelOutputNoDataHandling.d.ts new file mode 100644 index 00000000..f99e63af --- /dev/null +++ b/typescript/dist/esm/models/MlModelOutputNoDataHandling.d.ts @@ -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 + * + * 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 { MlModelOutputNoDataHandlingVariant } from './MlModelOutputNoDataHandlingVariant'; +/** + * + * @export + * @interface MlModelOutputNoDataHandling + */ +export interface MlModelOutputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelOutputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelOutputNoDataHandlingVariant} + * @memberof MlModelOutputNoDataHandling + */ + variant: MlModelOutputNoDataHandlingVariant; +} +/** + * Check if a given object implements the MlModelOutputNoDataHandling interface. + */ +export declare function instanceOfMlModelOutputNoDataHandling(value: object): value is MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingFromJSON(json: any): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingToJSON(json: any): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingToJSONTyped(value?: MlModelOutputNoDataHandling | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MlModelOutputNoDataHandling.js b/typescript/dist/esm/models/MlModelOutputNoDataHandling.js new file mode 100644 index 00000000..4397e7ea --- /dev/null +++ b/typescript/dist/esm/models/MlModelOutputNoDataHandling.js @@ -0,0 +1,46 @@ +/* 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 { MlModelOutputNoDataHandlingVariantFromJSON, MlModelOutputNoDataHandlingVariantToJSON, } from './MlModelOutputNoDataHandlingVariant'; +/** + * Check if a given object implements the MlModelOutputNoDataHandling interface. + */ +export function instanceOfMlModelOutputNoDataHandling(value) { + if (!('variant' in value) || value['variant'] === undefined) + return false; + return true; +} +export function MlModelOutputNoDataHandlingFromJSON(json) { + return MlModelOutputNoDataHandlingFromJSONTyped(json, false); +} +export function MlModelOutputNoDataHandlingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': MlModelOutputNoDataHandlingVariantFromJSON(json['variant']), + }; +} +export function MlModelOutputNoDataHandlingToJSON(json) { + return MlModelOutputNoDataHandlingToJSONTyped(json, false); +} +export function MlModelOutputNoDataHandlingToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'noDataValue': value['noDataValue'], + 'variant': MlModelOutputNoDataHandlingVariantToJSON(value['variant']), + }; +} diff --git a/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.d.ts b/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.d.ts new file mode 100644 index 00000000..f48e7b43 --- /dev/null +++ b/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description 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. + */ +/** + * + * @export + */ +export declare const MlModelOutputNoDataHandlingVariant: { + readonly EncodedNoData: "encodedNoData"; + readonly NanIsNoData: "nanIsNoData"; +}; +export type MlModelOutputNoDataHandlingVariant = typeof MlModelOutputNoDataHandlingVariant[keyof typeof MlModelOutputNoDataHandlingVariant]; +export declare function instanceOfMlModelOutputNoDataHandlingVariant(value: any): boolean; +export declare function MlModelOutputNoDataHandlingVariantFromJSON(json: any): MlModelOutputNoDataHandlingVariant; +export declare function MlModelOutputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant; +export declare function MlModelOutputNoDataHandlingVariantToJSON(value?: MlModelOutputNoDataHandlingVariant | null): any; +export declare function MlModelOutputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant; diff --git a/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.js b/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.js new file mode 100644 index 00000000..d00ec436 --- /dev/null +++ b/typescript/dist/esm/models/MlModelOutputNoDataHandlingVariant.js @@ -0,0 +1,43 @@ +/* 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. + */ +/** + * + * @export + */ +export const MlModelOutputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + NanIsNoData: 'nanIsNoData' +}; +export function instanceOfMlModelOutputNoDataHandlingVariant(value) { + for (const key in MlModelOutputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(MlModelOutputNoDataHandlingVariant, key)) { + if (MlModelOutputNoDataHandlingVariant[key] === value) { + return true; + } + } + } + return false; +} +export function MlModelOutputNoDataHandlingVariantFromJSON(json) { + return MlModelOutputNoDataHandlingVariantFromJSONTyped(json, false); +} +export function MlModelOutputNoDataHandlingVariantFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function MlModelOutputNoDataHandlingVariantToJSON(value) { + return value; +} +export function MlModelOutputNoDataHandlingVariantToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index 62429a06..5a0dda6d 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -75,8 +75,12 @@ export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; export * from './MlModel'; +export * from './MlModelInputNoDataHandling'; +export * from './MlModelInputNoDataHandlingVariant'; export * from './MlModelMetadata'; export * from './MlModelNameResponse'; +export * from './MlModelOutputNoDataHandling'; +export * from './MlModelOutputNoDataHandlingVariant'; export * from './MlModelResource'; export * from './MlTensorShape3D'; export * from './MockDatasetDataSourceLoadingInfo'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index ee89092a..7073453d 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -77,8 +77,12 @@ export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; export * from './MlModel'; +export * from './MlModelInputNoDataHandling'; +export * from './MlModelInputNoDataHandlingVariant'; export * from './MlModelMetadata'; export * from './MlModelNameResponse'; +export * from './MlModelOutputNoDataHandling'; +export * from './MlModelOutputNoDataHandlingVariant'; export * from './MlModelResource'; export * from './MlTensorShape3D'; export * from './MockDatasetDataSourceLoadingInfo'; diff --git a/typescript/dist/esm/runtime.js b/typescript/dist/esm/runtime.js index 4260b9b3..181acdeb 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.25' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.26' } }); /** diff --git a/typescript/dist/models/MlModel.d.ts b/typescript/dist/models/MlModel.d.ts index 865caa00..64f05031 100644 --- a/typescript/dist/models/MlModel.d.ts +++ b/typescript/dist/models/MlModel.d.ts @@ -28,6 +28,12 @@ export interface MlModel { * @memberof MlModel */ displayName: string; + /** + * + * @type {string} + * @memberof MlModel + */ + fileName: string; /** * * @type {MlModelMetadata} diff --git a/typescript/dist/models/MlModel.js b/typescript/dist/models/MlModel.js index 0d32663f..6478ecc7 100644 --- a/typescript/dist/models/MlModel.js +++ b/typescript/dist/models/MlModel.js @@ -27,6 +27,8 @@ function instanceOfMlModel(value) { return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('fileName' in value) || value['fileName'] === undefined) + return false; if (!('metadata' in value) || value['metadata'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) @@ -45,6 +47,7 @@ function MlModelFromJSONTyped(json, ignoreDiscriminator) { return { 'description': json['description'], 'displayName': json['displayName'], + 'fileName': json['fileName'], 'metadata': (0, MlModelMetadata_1.MlModelMetadataFromJSON)(json['metadata']), 'name': json['name'], 'upload': json['upload'], @@ -60,6 +63,7 @@ function MlModelToJSONTyped(value, ignoreDiscriminator = false) { return { 'description': value['description'], 'displayName': value['displayName'], + 'fileName': value['fileName'], 'metadata': (0, MlModelMetadata_1.MlModelMetadataToJSON)(value['metadata']), 'name': value['name'], 'upload': value['upload'], diff --git a/typescript/dist/models/MlModelInputNoDataHandling.d.ts b/typescript/dist/models/MlModelInputNoDataHandling.d.ts new file mode 100644 index 00000000..f75e855d --- /dev/null +++ b/typescript/dist/models/MlModelInputNoDataHandling.d.ts @@ -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 + * + * 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 { MlModelInputNoDataHandlingVariant } from './MlModelInputNoDataHandlingVariant'; +/** + * + * @export + * @interface MlModelInputNoDataHandling + */ +export interface MlModelInputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelInputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelInputNoDataHandlingVariant} + * @memberof MlModelInputNoDataHandling + */ + variant: MlModelInputNoDataHandlingVariant; +} +/** + * Check if a given object implements the MlModelInputNoDataHandling interface. + */ +export declare function instanceOfMlModelInputNoDataHandling(value: object): value is MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingFromJSON(json: any): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingToJSON(json: any): MlModelInputNoDataHandling; +export declare function MlModelInputNoDataHandlingToJSONTyped(value?: MlModelInputNoDataHandling | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MlModelInputNoDataHandling.js b/typescript/dist/models/MlModelInputNoDataHandling.js new file mode 100644 index 00000000..5a633ac7 --- /dev/null +++ b/typescript/dist/models/MlModelInputNoDataHandling.js @@ -0,0 +1,53 @@ +"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.instanceOfMlModelInputNoDataHandling = instanceOfMlModelInputNoDataHandling; +exports.MlModelInputNoDataHandlingFromJSON = MlModelInputNoDataHandlingFromJSON; +exports.MlModelInputNoDataHandlingFromJSONTyped = MlModelInputNoDataHandlingFromJSONTyped; +exports.MlModelInputNoDataHandlingToJSON = MlModelInputNoDataHandlingToJSON; +exports.MlModelInputNoDataHandlingToJSONTyped = MlModelInputNoDataHandlingToJSONTyped; +const MlModelInputNoDataHandlingVariant_1 = require("./MlModelInputNoDataHandlingVariant"); +/** + * Check if a given object implements the MlModelInputNoDataHandling interface. + */ +function instanceOfMlModelInputNoDataHandling(value) { + if (!('variant' in value) || value['variant'] === undefined) + return false; + return true; +} +function MlModelInputNoDataHandlingFromJSON(json) { + return MlModelInputNoDataHandlingFromJSONTyped(json, false); +} +function MlModelInputNoDataHandlingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': (0, MlModelInputNoDataHandlingVariant_1.MlModelInputNoDataHandlingVariantFromJSON)(json['variant']), + }; +} +function MlModelInputNoDataHandlingToJSON(json) { + return MlModelInputNoDataHandlingToJSONTyped(json, false); +} +function MlModelInputNoDataHandlingToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'noDataValue': value['noDataValue'], + 'variant': (0, MlModelInputNoDataHandlingVariant_1.MlModelInputNoDataHandlingVariantToJSON)(value['variant']), + }; +} diff --git a/typescript/dist/models/MlModelInputNoDataHandlingVariant.d.ts b/typescript/dist/models/MlModelInputNoDataHandlingVariant.d.ts new file mode 100644 index 00000000..586c68f3 --- /dev/null +++ b/typescript/dist/models/MlModelInputNoDataHandlingVariant.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description 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. + */ +/** + * + * @export + */ +export declare const MlModelInputNoDataHandlingVariant: { + readonly EncodedNoData: "encodedNoData"; + readonly SkipIfNoData: "skipIfNoData"; +}; +export type MlModelInputNoDataHandlingVariant = typeof MlModelInputNoDataHandlingVariant[keyof typeof MlModelInputNoDataHandlingVariant]; +export declare function instanceOfMlModelInputNoDataHandlingVariant(value: any): boolean; +export declare function MlModelInputNoDataHandlingVariantFromJSON(json: any): MlModelInputNoDataHandlingVariant; +export declare function MlModelInputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant; +export declare function MlModelInputNoDataHandlingVariantToJSON(value?: MlModelInputNoDataHandlingVariant | null): any; +export declare function MlModelInputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant; diff --git a/typescript/dist/models/MlModelInputNoDataHandlingVariant.js b/typescript/dist/models/MlModelInputNoDataHandlingVariant.js new file mode 100644 index 00000000..38698269 --- /dev/null +++ b/typescript/dist/models/MlModelInputNoDataHandlingVariant.js @@ -0,0 +1,51 @@ +"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.MlModelInputNoDataHandlingVariant = void 0; +exports.instanceOfMlModelInputNoDataHandlingVariant = instanceOfMlModelInputNoDataHandlingVariant; +exports.MlModelInputNoDataHandlingVariantFromJSON = MlModelInputNoDataHandlingVariantFromJSON; +exports.MlModelInputNoDataHandlingVariantFromJSONTyped = MlModelInputNoDataHandlingVariantFromJSONTyped; +exports.MlModelInputNoDataHandlingVariantToJSON = MlModelInputNoDataHandlingVariantToJSON; +exports.MlModelInputNoDataHandlingVariantToJSONTyped = MlModelInputNoDataHandlingVariantToJSONTyped; +/** + * + * @export + */ +exports.MlModelInputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + SkipIfNoData: 'skipIfNoData' +}; +function instanceOfMlModelInputNoDataHandlingVariant(value) { + for (const key in exports.MlModelInputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(exports.MlModelInputNoDataHandlingVariant, key)) { + if (exports.MlModelInputNoDataHandlingVariant[key] === value) { + return true; + } + } + } + return false; +} +function MlModelInputNoDataHandlingVariantFromJSON(json) { + return MlModelInputNoDataHandlingVariantFromJSONTyped(json, false); +} +function MlModelInputNoDataHandlingVariantFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function MlModelInputNoDataHandlingVariantToJSON(value) { + return value; +} +function MlModelInputNoDataHandlingVariantToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/MlModelMetadata.d.ts b/typescript/dist/models/MlModelMetadata.d.ts index 97858d4a..4775626c 100644 --- a/typescript/dist/models/MlModelMetadata.d.ts +++ b/typescript/dist/models/MlModelMetadata.d.ts @@ -9,6 +9,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { MlModelOutputNoDataHandling } from './MlModelOutputNoDataHandling'; +import type { MlModelInputNoDataHandling } from './MlModelInputNoDataHandling'; import type { MlTensorShape3D } from './MlTensorShape3D'; import type { RasterDataType } from './RasterDataType'; /** @@ -19,10 +21,10 @@ import type { RasterDataType } from './RasterDataType'; export interface MlModelMetadata { /** * - * @type {string} + * @type {MlModelInputNoDataHandling} * @memberof MlModelMetadata */ - fileName: string; + inputNoDataHandling: MlModelInputNoDataHandling; /** * * @type {MlTensorShape3D} @@ -35,6 +37,12 @@ export interface MlModelMetadata { * @memberof MlModelMetadata */ inputType: RasterDataType; + /** + * + * @type {MlModelOutputNoDataHandling} + * @memberof MlModelMetadata + */ + outputNoDataHandling: MlModelOutputNoDataHandling; /** * * @type {MlTensorShape3D} diff --git a/typescript/dist/models/MlModelMetadata.js b/typescript/dist/models/MlModelMetadata.js index cc9a553f..45b91290 100644 --- a/typescript/dist/models/MlModelMetadata.js +++ b/typescript/dist/models/MlModelMetadata.js @@ -18,18 +18,22 @@ exports.MlModelMetadataFromJSON = MlModelMetadataFromJSON; exports.MlModelMetadataFromJSONTyped = MlModelMetadataFromJSONTyped; exports.MlModelMetadataToJSON = MlModelMetadataToJSON; exports.MlModelMetadataToJSONTyped = MlModelMetadataToJSONTyped; +const MlModelOutputNoDataHandling_1 = require("./MlModelOutputNoDataHandling"); +const MlModelInputNoDataHandling_1 = require("./MlModelInputNoDataHandling"); const MlTensorShape3D_1 = require("./MlTensorShape3D"); const RasterDataType_1 = require("./RasterDataType"); /** * Check if a given object implements the MlModelMetadata interface. */ function instanceOfMlModelMetadata(value) { - if (!('fileName' in value) || value['fileName'] === undefined) + if (!('inputNoDataHandling' in value) || value['inputNoDataHandling'] === undefined) return false; if (!('inputShape' in value) || value['inputShape'] === undefined) return false; if (!('inputType' in value) || value['inputType'] === undefined) return false; + if (!('outputNoDataHandling' in value) || value['outputNoDataHandling'] === undefined) + return false; if (!('outputShape' in value) || value['outputShape'] === undefined) return false; if (!('outputType' in value) || value['outputType'] === undefined) @@ -44,9 +48,10 @@ function MlModelMetadataFromJSONTyped(json, ignoreDiscriminator) { return json; } return { - 'fileName': json['fileName'], + 'inputNoDataHandling': (0, MlModelInputNoDataHandling_1.MlModelInputNoDataHandlingFromJSON)(json['inputNoDataHandling']), 'inputShape': (0, MlTensorShape3D_1.MlTensorShape3DFromJSON)(json['inputShape']), 'inputType': (0, RasterDataType_1.RasterDataTypeFromJSON)(json['inputType']), + 'outputNoDataHandling': (0, MlModelOutputNoDataHandling_1.MlModelOutputNoDataHandlingFromJSON)(json['outputNoDataHandling']), 'outputShape': (0, MlTensorShape3D_1.MlTensorShape3DFromJSON)(json['outputShape']), 'outputType': (0, RasterDataType_1.RasterDataTypeFromJSON)(json['outputType']), }; @@ -59,9 +64,10 @@ function MlModelMetadataToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'fileName': value['fileName'], + 'inputNoDataHandling': (0, MlModelInputNoDataHandling_1.MlModelInputNoDataHandlingToJSON)(value['inputNoDataHandling']), 'inputShape': (0, MlTensorShape3D_1.MlTensorShape3DToJSON)(value['inputShape']), 'inputType': (0, RasterDataType_1.RasterDataTypeToJSON)(value['inputType']), + 'outputNoDataHandling': (0, MlModelOutputNoDataHandling_1.MlModelOutputNoDataHandlingToJSON)(value['outputNoDataHandling']), 'outputShape': (0, MlTensorShape3D_1.MlTensorShape3DToJSON)(value['outputShape']), 'outputType': (0, RasterDataType_1.RasterDataTypeToJSON)(value['outputType']), }; diff --git a/typescript/dist/models/MlModelOutputNoDataHandling.d.ts b/typescript/dist/models/MlModelOutputNoDataHandling.d.ts new file mode 100644 index 00000000..f99e63af --- /dev/null +++ b/typescript/dist/models/MlModelOutputNoDataHandling.d.ts @@ -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 + * + * 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 { MlModelOutputNoDataHandlingVariant } from './MlModelOutputNoDataHandlingVariant'; +/** + * + * @export + * @interface MlModelOutputNoDataHandling + */ +export interface MlModelOutputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelOutputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelOutputNoDataHandlingVariant} + * @memberof MlModelOutputNoDataHandling + */ + variant: MlModelOutputNoDataHandlingVariant; +} +/** + * Check if a given object implements the MlModelOutputNoDataHandling interface. + */ +export declare function instanceOfMlModelOutputNoDataHandling(value: object): value is MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingFromJSON(json: any): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingToJSON(json: any): MlModelOutputNoDataHandling; +export declare function MlModelOutputNoDataHandlingToJSONTyped(value?: MlModelOutputNoDataHandling | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MlModelOutputNoDataHandling.js b/typescript/dist/models/MlModelOutputNoDataHandling.js new file mode 100644 index 00000000..7a0c8ba9 --- /dev/null +++ b/typescript/dist/models/MlModelOutputNoDataHandling.js @@ -0,0 +1,53 @@ +"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.instanceOfMlModelOutputNoDataHandling = instanceOfMlModelOutputNoDataHandling; +exports.MlModelOutputNoDataHandlingFromJSON = MlModelOutputNoDataHandlingFromJSON; +exports.MlModelOutputNoDataHandlingFromJSONTyped = MlModelOutputNoDataHandlingFromJSONTyped; +exports.MlModelOutputNoDataHandlingToJSON = MlModelOutputNoDataHandlingToJSON; +exports.MlModelOutputNoDataHandlingToJSONTyped = MlModelOutputNoDataHandlingToJSONTyped; +const MlModelOutputNoDataHandlingVariant_1 = require("./MlModelOutputNoDataHandlingVariant"); +/** + * Check if a given object implements the MlModelOutputNoDataHandling interface. + */ +function instanceOfMlModelOutputNoDataHandling(value) { + if (!('variant' in value) || value['variant'] === undefined) + return false; + return true; +} +function MlModelOutputNoDataHandlingFromJSON(json) { + return MlModelOutputNoDataHandlingFromJSONTyped(json, false); +} +function MlModelOutputNoDataHandlingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': (0, MlModelOutputNoDataHandlingVariant_1.MlModelOutputNoDataHandlingVariantFromJSON)(json['variant']), + }; +} +function MlModelOutputNoDataHandlingToJSON(json) { + return MlModelOutputNoDataHandlingToJSONTyped(json, false); +} +function MlModelOutputNoDataHandlingToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'noDataValue': value['noDataValue'], + 'variant': (0, MlModelOutputNoDataHandlingVariant_1.MlModelOutputNoDataHandlingVariantToJSON)(value['variant']), + }; +} diff --git a/typescript/dist/models/MlModelOutputNoDataHandlingVariant.d.ts b/typescript/dist/models/MlModelOutputNoDataHandlingVariant.d.ts new file mode 100644 index 00000000..f48e7b43 --- /dev/null +++ b/typescript/dist/models/MlModelOutputNoDataHandlingVariant.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description 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. + */ +/** + * + * @export + */ +export declare const MlModelOutputNoDataHandlingVariant: { + readonly EncodedNoData: "encodedNoData"; + readonly NanIsNoData: "nanIsNoData"; +}; +export type MlModelOutputNoDataHandlingVariant = typeof MlModelOutputNoDataHandlingVariant[keyof typeof MlModelOutputNoDataHandlingVariant]; +export declare function instanceOfMlModelOutputNoDataHandlingVariant(value: any): boolean; +export declare function MlModelOutputNoDataHandlingVariantFromJSON(json: any): MlModelOutputNoDataHandlingVariant; +export declare function MlModelOutputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant; +export declare function MlModelOutputNoDataHandlingVariantToJSON(value?: MlModelOutputNoDataHandlingVariant | null): any; +export declare function MlModelOutputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant; diff --git a/typescript/dist/models/MlModelOutputNoDataHandlingVariant.js b/typescript/dist/models/MlModelOutputNoDataHandlingVariant.js new file mode 100644 index 00000000..580719f3 --- /dev/null +++ b/typescript/dist/models/MlModelOutputNoDataHandlingVariant.js @@ -0,0 +1,51 @@ +"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.MlModelOutputNoDataHandlingVariant = void 0; +exports.instanceOfMlModelOutputNoDataHandlingVariant = instanceOfMlModelOutputNoDataHandlingVariant; +exports.MlModelOutputNoDataHandlingVariantFromJSON = MlModelOutputNoDataHandlingVariantFromJSON; +exports.MlModelOutputNoDataHandlingVariantFromJSONTyped = MlModelOutputNoDataHandlingVariantFromJSONTyped; +exports.MlModelOutputNoDataHandlingVariantToJSON = MlModelOutputNoDataHandlingVariantToJSON; +exports.MlModelOutputNoDataHandlingVariantToJSONTyped = MlModelOutputNoDataHandlingVariantToJSONTyped; +/** + * + * @export + */ +exports.MlModelOutputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + NanIsNoData: 'nanIsNoData' +}; +function instanceOfMlModelOutputNoDataHandlingVariant(value) { + for (const key in exports.MlModelOutputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(exports.MlModelOutputNoDataHandlingVariant, key)) { + if (exports.MlModelOutputNoDataHandlingVariant[key] === value) { + return true; + } + } + } + return false; +} +function MlModelOutputNoDataHandlingVariantFromJSON(json) { + return MlModelOutputNoDataHandlingVariantFromJSONTyped(json, false); +} +function MlModelOutputNoDataHandlingVariantFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function MlModelOutputNoDataHandlingVariantToJSON(value) { + return value; +} +function MlModelOutputNoDataHandlingVariantToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index 62429a06..5a0dda6d 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -75,8 +75,12 @@ export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; export * from './MlModel'; +export * from './MlModelInputNoDataHandling'; +export * from './MlModelInputNoDataHandlingVariant'; export * from './MlModelMetadata'; export * from './MlModelNameResponse'; +export * from './MlModelOutputNoDataHandling'; +export * from './MlModelOutputNoDataHandlingVariant'; export * from './MlModelResource'; export * from './MlTensorShape3D'; export * from './MockDatasetDataSourceLoadingInfo'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index cbcb7bad..d4dbf500 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -93,8 +93,12 @@ __exportStar(require("./Measurement"), exports); __exportStar(require("./MetaDataDefinition"), exports); __exportStar(require("./MetaDataSuggestion"), exports); __exportStar(require("./MlModel"), exports); +__exportStar(require("./MlModelInputNoDataHandling"), exports); +__exportStar(require("./MlModelInputNoDataHandlingVariant"), exports); __exportStar(require("./MlModelMetadata"), exports); __exportStar(require("./MlModelNameResponse"), exports); +__exportStar(require("./MlModelOutputNoDataHandling"), exports); +__exportStar(require("./MlModelOutputNoDataHandlingVariant"), exports); __exportStar(require("./MlModelResource"), exports); __exportStar(require("./MlTensorShape3D"), exports); __exportStar(require("./MockDatasetDataSourceLoadingInfo"), exports); diff --git a/typescript/dist/runtime.js b/typescript/dist/runtime.js index 994c16ac..3d3acd50 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.25' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.26' } }); /** diff --git a/typescript/package-lock.json b/typescript/package-lock.json index 1adf9c0c..3a2594ea 100644 --- a/typescript/package-lock.json +++ b/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@geoengine/openapi-client", - "version": "0.0.25", + "version": "0.0.26", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@geoengine/openapi-client", - "version": "0.0.25", + "version": "0.0.26", "devDependencies": { "typescript": "^4.0 || ^5.0" } diff --git a/typescript/package.json b/typescript/package.json index 66d76e2b..a8b65ba7 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@geoengine/openapi-client", - "version": "0.0.25", + "version": "0.0.26", "description": "OpenAPI client for @geoengine/openapi-client", "author": "OpenAPI-Generator", "repository": { diff --git a/typescript/src/models/MlModel.ts b/typescript/src/models/MlModel.ts index b1309eb8..c154531f 100644 --- a/typescript/src/models/MlModel.ts +++ b/typescript/src/models/MlModel.ts @@ -39,6 +39,12 @@ export interface MlModel { * @memberof MlModel */ displayName: string; + /** + * + * @type {string} + * @memberof MlModel + */ + fileName: string; /** * * @type {MlModelMetadata} @@ -65,6 +71,7 @@ export interface MlModel { export function instanceOfMlModel(value: object): value is MlModel { if (!('description' in value) || value['description'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('fileName' in value) || value['fileName'] === undefined) return false; if (!('metadata' in value) || value['metadata'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('upload' in value) || value['upload'] === undefined) return false; @@ -83,6 +90,7 @@ export function MlModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): M 'description': json['description'], 'displayName': json['displayName'], + 'fileName': json['fileName'], 'metadata': MlModelMetadataFromJSON(json['metadata']), 'name': json['name'], 'upload': json['upload'], @@ -102,6 +110,7 @@ export function MlModelToJSONTyped(value?: MlModel | null, ignoreDiscriminator: 'description': value['description'], 'displayName': value['displayName'], + 'fileName': value['fileName'], 'metadata': MlModelMetadataToJSON(value['metadata']), 'name': value['name'], 'upload': value['upload'], diff --git a/typescript/src/models/MlModelInputNoDataHandling.ts b/typescript/src/models/MlModelInputNoDataHandling.ts new file mode 100644 index 00000000..43591e22 --- /dev/null +++ b/typescript/src/models/MlModelInputNoDataHandling.ts @@ -0,0 +1,84 @@ +/* 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 { MlModelInputNoDataHandlingVariant } from './MlModelInputNoDataHandlingVariant'; +import { + MlModelInputNoDataHandlingVariantFromJSON, + MlModelInputNoDataHandlingVariantFromJSONTyped, + MlModelInputNoDataHandlingVariantToJSON, + MlModelInputNoDataHandlingVariantToJSONTyped, +} from './MlModelInputNoDataHandlingVariant'; + +/** + * + * @export + * @interface MlModelInputNoDataHandling + */ +export interface MlModelInputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelInputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelInputNoDataHandlingVariant} + * @memberof MlModelInputNoDataHandling + */ + variant: MlModelInputNoDataHandlingVariant; +} + + + +/** + * Check if a given object implements the MlModelInputNoDataHandling interface. + */ +export function instanceOfMlModelInputNoDataHandling(value: object): value is MlModelInputNoDataHandling { + if (!('variant' in value) || value['variant'] === undefined) return false; + return true; +} + +export function MlModelInputNoDataHandlingFromJSON(json: any): MlModelInputNoDataHandling { + return MlModelInputNoDataHandlingFromJSONTyped(json, false); +} + +export function MlModelInputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandling { + if (json == null) { + return json; + } + return { + + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': MlModelInputNoDataHandlingVariantFromJSON(json['variant']), + }; +} + +export function MlModelInputNoDataHandlingToJSON(json: any): MlModelInputNoDataHandling { + return MlModelInputNoDataHandlingToJSONTyped(json, false); +} + +export function MlModelInputNoDataHandlingToJSONTyped(value?: MlModelInputNoDataHandling | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'noDataValue': value['noDataValue'], + 'variant': MlModelInputNoDataHandlingVariantToJSON(value['variant']), + }; +} + diff --git a/typescript/src/models/MlModelInputNoDataHandlingVariant.ts b/typescript/src/models/MlModelInputNoDataHandlingVariant.ts new file mode 100644 index 00000000..21c227d5 --- /dev/null +++ b/typescript/src/models/MlModelInputNoDataHandlingVariant.ts @@ -0,0 +1,53 @@ +/* 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. + */ + + +/** + * + * @export + */ +export const MlModelInputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + SkipIfNoData: 'skipIfNoData' +} as const; +export type MlModelInputNoDataHandlingVariant = typeof MlModelInputNoDataHandlingVariant[keyof typeof MlModelInputNoDataHandlingVariant]; + + +export function instanceOfMlModelInputNoDataHandlingVariant(value: any): boolean { + for (const key in MlModelInputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(MlModelInputNoDataHandlingVariant, key)) { + if (MlModelInputNoDataHandlingVariant[key as keyof typeof MlModelInputNoDataHandlingVariant] === value) { + return true; + } + } + } + return false; +} + +export function MlModelInputNoDataHandlingVariantFromJSON(json: any): MlModelInputNoDataHandlingVariant { + return MlModelInputNoDataHandlingVariantFromJSONTyped(json, false); +} + +export function MlModelInputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant { + return json as MlModelInputNoDataHandlingVariant; +} + +export function MlModelInputNoDataHandlingVariantToJSON(value?: MlModelInputNoDataHandlingVariant | null): any { + return value as any; +} + +export function MlModelInputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelInputNoDataHandlingVariant { + return value as MlModelInputNoDataHandlingVariant; +} + diff --git a/typescript/src/models/MlModelMetadata.ts b/typescript/src/models/MlModelMetadata.ts index 4e21372f..a28a0c49 100644 --- a/typescript/src/models/MlModelMetadata.ts +++ b/typescript/src/models/MlModelMetadata.ts @@ -13,6 +13,20 @@ */ import { mapValues } from '../runtime'; +import type { MlModelOutputNoDataHandling } from './MlModelOutputNoDataHandling'; +import { + MlModelOutputNoDataHandlingFromJSON, + MlModelOutputNoDataHandlingFromJSONTyped, + MlModelOutputNoDataHandlingToJSON, + MlModelOutputNoDataHandlingToJSONTyped, +} from './MlModelOutputNoDataHandling'; +import type { MlModelInputNoDataHandling } from './MlModelInputNoDataHandling'; +import { + MlModelInputNoDataHandlingFromJSON, + MlModelInputNoDataHandlingFromJSONTyped, + MlModelInputNoDataHandlingToJSON, + MlModelInputNoDataHandlingToJSONTyped, +} from './MlModelInputNoDataHandling'; import type { MlTensorShape3D } from './MlTensorShape3D'; import { MlTensorShape3DFromJSON, @@ -36,10 +50,10 @@ import { export interface MlModelMetadata { /** * - * @type {string} + * @type {MlModelInputNoDataHandling} * @memberof MlModelMetadata */ - fileName: string; + inputNoDataHandling: MlModelInputNoDataHandling; /** * * @type {MlTensorShape3D} @@ -52,6 +66,12 @@ export interface MlModelMetadata { * @memberof MlModelMetadata */ inputType: RasterDataType; + /** + * + * @type {MlModelOutputNoDataHandling} + * @memberof MlModelMetadata + */ + outputNoDataHandling: MlModelOutputNoDataHandling; /** * * @type {MlTensorShape3D} @@ -72,9 +92,10 @@ export interface MlModelMetadata { * Check if a given object implements the MlModelMetadata interface. */ export function instanceOfMlModelMetadata(value: object): value is MlModelMetadata { - if (!('fileName' in value) || value['fileName'] === undefined) return false; + if (!('inputNoDataHandling' in value) || value['inputNoDataHandling'] === undefined) return false; if (!('inputShape' in value) || value['inputShape'] === undefined) return false; if (!('inputType' in value) || value['inputType'] === undefined) return false; + if (!('outputNoDataHandling' in value) || value['outputNoDataHandling'] === undefined) return false; if (!('outputShape' in value) || value['outputShape'] === undefined) return false; if (!('outputType' in value) || value['outputType'] === undefined) return false; return true; @@ -90,9 +111,10 @@ export function MlModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo } return { - 'fileName': json['fileName'], + 'inputNoDataHandling': MlModelInputNoDataHandlingFromJSON(json['inputNoDataHandling']), 'inputShape': MlTensorShape3DFromJSON(json['inputShape']), 'inputType': RasterDataTypeFromJSON(json['inputType']), + 'outputNoDataHandling': MlModelOutputNoDataHandlingFromJSON(json['outputNoDataHandling']), 'outputShape': MlTensorShape3DFromJSON(json['outputShape']), 'outputType': RasterDataTypeFromJSON(json['outputType']), }; @@ -109,9 +131,10 @@ export function MlModelMetadataToJSONTyped(value?: MlModelMetadata | null, ignor return { - 'fileName': value['fileName'], + 'inputNoDataHandling': MlModelInputNoDataHandlingToJSON(value['inputNoDataHandling']), 'inputShape': MlTensorShape3DToJSON(value['inputShape']), 'inputType': RasterDataTypeToJSON(value['inputType']), + 'outputNoDataHandling': MlModelOutputNoDataHandlingToJSON(value['outputNoDataHandling']), 'outputShape': MlTensorShape3DToJSON(value['outputShape']), 'outputType': RasterDataTypeToJSON(value['outputType']), }; diff --git a/typescript/src/models/MlModelOutputNoDataHandling.ts b/typescript/src/models/MlModelOutputNoDataHandling.ts new file mode 100644 index 00000000..e7644cc4 --- /dev/null +++ b/typescript/src/models/MlModelOutputNoDataHandling.ts @@ -0,0 +1,84 @@ +/* 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 { MlModelOutputNoDataHandlingVariant } from './MlModelOutputNoDataHandlingVariant'; +import { + MlModelOutputNoDataHandlingVariantFromJSON, + MlModelOutputNoDataHandlingVariantFromJSONTyped, + MlModelOutputNoDataHandlingVariantToJSON, + MlModelOutputNoDataHandlingVariantToJSONTyped, +} from './MlModelOutputNoDataHandlingVariant'; + +/** + * + * @export + * @interface MlModelOutputNoDataHandling + */ +export interface MlModelOutputNoDataHandling { + /** + * + * @type {number} + * @memberof MlModelOutputNoDataHandling + */ + noDataValue?: number | null; + /** + * + * @type {MlModelOutputNoDataHandlingVariant} + * @memberof MlModelOutputNoDataHandling + */ + variant: MlModelOutputNoDataHandlingVariant; +} + + + +/** + * Check if a given object implements the MlModelOutputNoDataHandling interface. + */ +export function instanceOfMlModelOutputNoDataHandling(value: object): value is MlModelOutputNoDataHandling { + if (!('variant' in value) || value['variant'] === undefined) return false; + return true; +} + +export function MlModelOutputNoDataHandlingFromJSON(json: any): MlModelOutputNoDataHandling { + return MlModelOutputNoDataHandlingFromJSONTyped(json, false); +} + +export function MlModelOutputNoDataHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandling { + if (json == null) { + return json; + } + return { + + 'noDataValue': json['noDataValue'] == null ? undefined : json['noDataValue'], + 'variant': MlModelOutputNoDataHandlingVariantFromJSON(json['variant']), + }; +} + +export function MlModelOutputNoDataHandlingToJSON(json: any): MlModelOutputNoDataHandling { + return MlModelOutputNoDataHandlingToJSONTyped(json, false); +} + +export function MlModelOutputNoDataHandlingToJSONTyped(value?: MlModelOutputNoDataHandling | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'noDataValue': value['noDataValue'], + 'variant': MlModelOutputNoDataHandlingVariantToJSON(value['variant']), + }; +} + diff --git a/typescript/src/models/MlModelOutputNoDataHandlingVariant.ts b/typescript/src/models/MlModelOutputNoDataHandlingVariant.ts new file mode 100644 index 00000000..aafe2250 --- /dev/null +++ b/typescript/src/models/MlModelOutputNoDataHandlingVariant.ts @@ -0,0 +1,53 @@ +/* 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. + */ + + +/** + * + * @export + */ +export const MlModelOutputNoDataHandlingVariant = { + EncodedNoData: 'encodedNoData', + NanIsNoData: 'nanIsNoData' +} as const; +export type MlModelOutputNoDataHandlingVariant = typeof MlModelOutputNoDataHandlingVariant[keyof typeof MlModelOutputNoDataHandlingVariant]; + + +export function instanceOfMlModelOutputNoDataHandlingVariant(value: any): boolean { + for (const key in MlModelOutputNoDataHandlingVariant) { + if (Object.prototype.hasOwnProperty.call(MlModelOutputNoDataHandlingVariant, key)) { + if (MlModelOutputNoDataHandlingVariant[key as keyof typeof MlModelOutputNoDataHandlingVariant] === value) { + return true; + } + } + } + return false; +} + +export function MlModelOutputNoDataHandlingVariantFromJSON(json: any): MlModelOutputNoDataHandlingVariant { + return MlModelOutputNoDataHandlingVariantFromJSONTyped(json, false); +} + +export function MlModelOutputNoDataHandlingVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant { + return json as MlModelOutputNoDataHandlingVariant; +} + +export function MlModelOutputNoDataHandlingVariantToJSON(value?: MlModelOutputNoDataHandlingVariant | null): any { + return value as any; +} + +export function MlModelOutputNoDataHandlingVariantToJSONTyped(value: any, ignoreDiscriminator: boolean): MlModelOutputNoDataHandlingVariant { + return value as MlModelOutputNoDataHandlingVariant; +} + diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index ee89092a..7073453d 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -77,8 +77,12 @@ export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; export * from './MlModel'; +export * from './MlModelInputNoDataHandling'; +export * from './MlModelInputNoDataHandlingVariant'; export * from './MlModelMetadata'; export * from './MlModelNameResponse'; +export * from './MlModelOutputNoDataHandling'; +export * from './MlModelOutputNoDataHandlingVariant'; export * from './MlModelResource'; export * from './MlTensorShape3D'; export * from './MockDatasetDataSourceLoadingInfo'; diff --git a/typescript/src/runtime.ts b/typescript/src/runtime.ts index 7903ec4b..4fc9fb5e 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.25' + 'User-Agent': 'geoengine/openapi-client/typescript/0.0.26' } });