From f34bd91007d3e44e8f4070b2f89f8148493bd67d Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 29 Oct 2024 16:59:47 +0100 Subject: [PATCH] update openapi-client --- .generation/input/openapi.json | 66 ++++++++++ python/.openapi-generator/FILES | 6 + python/README.md | 2 + python/geoengine_openapi_client/__init__.py | 2 + .../models/__init__.py | 2 + .../models/update_layer.py | 95 ++++++++++++++ .../models/update_layer_collection.py | 76 +++++++++++ python/test/test_update_layer.py | 67 ++++++++++ python/test/test_update_layer_collection.py | 61 +++++++++ typescript/dist/esm/models/UpdateLayer.d.ts | 65 ++++++++++ typescript/dist/esm/models/UpdateLayer.js | 58 +++++++++ .../esm/models/UpdateLayerCollection.d.ts | 43 +++++++ .../dist/esm/models/UpdateLayerCollection.js | 49 +++++++ typescript/dist/esm/models/index.d.ts | 2 + typescript/dist/esm/models/index.js | 2 + typescript/dist/models/UpdateLayer.d.ts | 65 ++++++++++ typescript/dist/models/UpdateLayer.js | 65 ++++++++++ .../dist/models/UpdateLayerCollection.d.ts | 43 +++++++ .../dist/models/UpdateLayerCollection.js | 56 ++++++++ typescript/dist/models/index.d.ts | 2 + typescript/dist/models/index.js | 2 + typescript/src/models/UpdateLayer.ts | 121 ++++++++++++++++++ .../src/models/UpdateLayerCollection.ts | 83 ++++++++++++ typescript/src/models/index.ts | 2 + 24 files changed, 1035 insertions(+) create mode 100644 python/geoengine_openapi_client/models/update_layer.py create mode 100644 python/geoengine_openapi_client/models/update_layer_collection.py create mode 100644 python/test/test_update_layer.py create mode 100644 python/test/test_update_layer_collection.py create mode 100644 typescript/dist/esm/models/UpdateLayer.d.ts create mode 100644 typescript/dist/esm/models/UpdateLayer.js create mode 100644 typescript/dist/esm/models/UpdateLayerCollection.d.ts create mode 100644 typescript/dist/esm/models/UpdateLayerCollection.js create mode 100644 typescript/dist/models/UpdateLayer.d.ts create mode 100644 typescript/dist/models/UpdateLayer.js create mode 100644 typescript/dist/models/UpdateLayerCollection.d.ts create mode 100644 typescript/dist/models/UpdateLayerCollection.js create mode 100644 typescript/src/models/UpdateLayer.ts create mode 100644 typescript/src/models/UpdateLayerCollection.ts diff --git a/.generation/input/openapi.json b/.generation/input/openapi.json index 623f1141..8c4e4355 100644 --- a/.generation/input/openapi.json +++ b/.generation/input/openapi.json @@ -9026,6 +9026,72 @@ } } }, + "UpdateLayer": { + "type": "object", + "required": [ + "name", + "description", + "workflow" + ], + "properties": { + "description": { + "type": "string", + "example": "Example layer description" + }, + "metadata": { + "type": "object", + "description": "metadata used for loading the data", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string", + "example": "Example Layer" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Property" + }, + "description": "properties, for instance, to be rendered in the UI" + }, + "symbology": { + "allOf": [ + { + "$ref": "#/components/schemas/Symbology" + } + ], + "nullable": true + }, + "workflow": { + "$ref": "#/components/schemas/Workflow" + } + } + }, + "UpdateLayerCollection": { + "type": "object", + "required": [ + "name", + "description" + ], + "properties": { + "description": { + "type": "string", + "example": "A description for an example collection" + }, + "name": { + "type": "string", + "example": "Example Collection" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Property" + } + } + } + }, "UpdateProject": { "type": "object", "required": [ diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index ca69c146..b846d636 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -208,6 +208,8 @@ docs/TypedVectorResultDescriptor.md docs/UnitlessMeasurement.md docs/UnixTimeStampType.md docs/UpdateDataset.md +docs/UpdateLayer.md +docs/UpdateLayerCollection.md docs/UpdateProject.md docs/UpdateQuota.md docs/UploadFileLayersResponse.md @@ -449,6 +451,8 @@ geoengine_openapi_client/models/typed_vector_result_descriptor.py geoengine_openapi_client/models/unitless_measurement.py geoengine_openapi_client/models/unix_time_stamp_type.py geoengine_openapi_client/models/update_dataset.py +geoengine_openapi_client/models/update_layer.py +geoengine_openapi_client/models/update_layer_collection.py geoengine_openapi_client/models/update_project.py geoengine_openapi_client/models/update_quota.py geoengine_openapi_client/models/upload_file_layers_response.py @@ -686,6 +690,8 @@ test/test_typed_vector_result_descriptor.py test/test_unitless_measurement.py test/test_unix_time_stamp_type.py test/test_update_dataset.py +test/test_update_layer.py +test/test_update_layer_collection.py test/test_update_project.py test/test_update_quota.py test/test_upload_file_layers_response.py diff --git a/python/README.md b/python/README.md index 6d147fe5..f782e745 100644 --- a/python/README.md +++ b/python/README.md @@ -372,6 +372,8 @@ Class | Method | HTTP request | Description - [UnitlessMeasurement](docs/UnitlessMeasurement.md) - [UnixTimeStampType](docs/UnixTimeStampType.md) - [UpdateDataset](docs/UpdateDataset.md) + - [UpdateLayer](docs/UpdateLayer.md) + - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index cb2eb59a..e1eb79b8 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -239,6 +239,8 @@ from geoengine_openapi_client.models.unitless_measurement import UnitlessMeasurement from geoengine_openapi_client.models.unix_time_stamp_type import UnixTimeStampType from geoengine_openapi_client.models.update_dataset import UpdateDataset +from geoengine_openapi_client.models.update_layer import UpdateLayer +from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse diff --git a/python/geoengine_openapi_client/models/__init__.py b/python/geoengine_openapi_client/models/__init__.py index 6a60233c..6aab86e0 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -207,6 +207,8 @@ from geoengine_openapi_client.models.unitless_measurement import UnitlessMeasurement from geoengine_openapi_client.models.unix_time_stamp_type import UnixTimeStampType from geoengine_openapi_client.models.update_dataset import UpdateDataset +from geoengine_openapi_client.models.update_layer import UpdateLayer +from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse diff --git a/python/geoengine_openapi_client/models/update_layer.py b/python/geoengine_openapi_client/models/update_layer.py new file mode 100644 index 00000000..8044dd23 --- /dev/null +++ b/python/geoengine_openapi_client/models/update_layer.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Geo Engine Pro API + + No description provided (generated 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 typing import Dict, List, Optional +from pydantic import BaseModel, Field, StrictStr, conlist +from geoengine_openapi_client.models.symbology import Symbology +from geoengine_openapi_client.models.workflow import Workflow + +class UpdateLayer(BaseModel): + """ + UpdateLayer + """ + description: StrictStr = Field(...) + metadata: Optional[Dict[str, StrictStr]] = Field(None, description="metadata used for loading the data") + name: StrictStr = Field(...) + properties: Optional[conlist(conlist(StrictStr, max_items=2, min_items=2))] = Field(None, description="properties, for instance, to be rendered in the UI") + symbology: Optional[Symbology] = None + workflow: Workflow = Field(...) + __properties = ["description", "metadata", "name", "properties", "symbology", "workflow"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateLayer: + """Create an instance of UpdateLayer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of symbology + if self.symbology: + _dict['symbology'] = self.symbology.to_dict() + # override the default output from pydantic by calling `to_dict()` of workflow + if self.workflow: + _dict['workflow'] = self.workflow.to_dict() + # set to None if symbology (nullable) is None + # and __fields_set__ contains the field + if self.symbology is None and "symbology" in self.__fields_set__: + _dict['symbology'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateLayer: + """Create an instance of UpdateLayer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateLayer.parse_obj(obj) + + _obj = UpdateLayer.parse_obj({ + "description": obj.get("description"), + "metadata": obj.get("metadata"), + "name": obj.get("name"), + "properties": obj.get("properties"), + "symbology": Symbology.from_dict(obj.get("symbology")) if obj.get("symbology") is not None else None, + "workflow": Workflow.from_dict(obj.get("workflow")) if obj.get("workflow") is not None else None + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/update_layer_collection.py b/python/geoengine_openapi_client/models/update_layer_collection.py new file mode 100644 index 00000000..d322fec8 --- /dev/null +++ b/python/geoengine_openapi_client/models/update_layer_collection.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Geo Engine Pro API + + No description provided (generated 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 typing import List, Optional +from pydantic import BaseModel, Field, StrictStr, conlist + +class UpdateLayerCollection(BaseModel): + """ + UpdateLayerCollection + """ + description: StrictStr = Field(...) + name: StrictStr = Field(...) + properties: Optional[conlist(conlist(StrictStr, max_items=2, min_items=2))] = None + __properties = ["description", "name", "properties"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateLayerCollection: + """Create an instance of UpdateLayerCollection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateLayerCollection: + """Create an instance of UpdateLayerCollection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateLayerCollection.parse_obj(obj) + + _obj = UpdateLayerCollection.parse_obj({ + "description": obj.get("description"), + "name": obj.get("name"), + "properties": obj.get("properties") + }) + return _obj + + diff --git a/python/test/test_update_layer.py b/python/test/test_update_layer.py new file mode 100644 index 00000000..b9d0a2e5 --- /dev/null +++ b/python/test/test_update_layer.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Geo Engine Pro API + + No description provided (generated 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 +import datetime + +from geoengine_openapi_client.models.update_layer import UpdateLayer # noqa: E501 + +class TestUpdateLayer(unittest.TestCase): + """UpdateLayer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateLayer: + """Test UpdateLayer + include_option 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 `UpdateLayer` + """ + model = UpdateLayer() # noqa: E501 + if include_optional: + return UpdateLayer( + description = 'Example layer description', + metadata = { + 'key' : '' + }, + name = 'Example Layer', + properties = [ + [ + '' + ] + ], + symbology = None, + workflow = None + ) + else: + return UpdateLayer( + description = 'Example layer description', + name = 'Example Layer', + workflow = None, + ) + """ + + def testUpdateLayer(self): + """Test UpdateLayer""" + # 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_update_layer_collection.py b/python/test/test_update_layer_collection.py new file mode 100644 index 00000000..3b75aeef --- /dev/null +++ b/python/test/test_update_layer_collection.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Geo Engine Pro API + + No description provided (generated 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 +import datetime + +from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection # noqa: E501 + +class TestUpdateLayerCollection(unittest.TestCase): + """UpdateLayerCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateLayerCollection: + """Test UpdateLayerCollection + include_option 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 `UpdateLayerCollection` + """ + model = UpdateLayerCollection() # noqa: E501 + if include_optional: + return UpdateLayerCollection( + description = 'A description for an example collection', + name = 'Example Collection', + properties = [ + [ + '' + ] + ] + ) + else: + return UpdateLayerCollection( + description = 'A description for an example collection', + name = 'Example Collection', + ) + """ + + def testUpdateLayerCollection(self): + """Test UpdateLayerCollection""" + # 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/typescript/dist/esm/models/UpdateLayer.d.ts b/typescript/dist/esm/models/UpdateLayer.d.ts new file mode 100644 index 00000000..d00e51eb --- /dev/null +++ b/typescript/dist/esm/models/UpdateLayer.d.ts @@ -0,0 +1,65 @@ +/** + * Geo Engine Pro API + * No description 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 { Symbology } from './Symbology'; +import type { Workflow } from './Workflow'; +/** + * + * @export + * @interface UpdateLayer + */ +export interface UpdateLayer { + /** + * + * @type {string} + * @memberof UpdateLayer + */ + description: string; + /** + * metadata used for loading the data + * @type {{ [key: string]: string; }} + * @memberof UpdateLayer + */ + metadata?: { + [key: string]: string; + }; + /** + * + * @type {string} + * @memberof UpdateLayer + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof UpdateLayer + */ + properties?: Array>; + /** + * + * @type {Symbology} + * @memberof UpdateLayer + */ + symbology?: Symbology | null; + /** + * + * @type {Workflow} + * @memberof UpdateLayer + */ + workflow: Workflow; +} +/** + * Check if a given object implements the UpdateLayer interface. + */ +export declare function instanceOfUpdateLayer(value: object): boolean; +export declare function UpdateLayerFromJSON(json: any): UpdateLayer; +export declare function UpdateLayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayer; +export declare function UpdateLayerToJSON(value?: UpdateLayer | null): any; diff --git a/typescript/dist/esm/models/UpdateLayer.js b/typescript/dist/esm/models/UpdateLayer.js new file mode 100644 index 00000000..f894050a --- /dev/null +++ b/typescript/dist/esm/models/UpdateLayer.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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 { exists } from '../runtime'; +import { SymbologyFromJSON, SymbologyToJSON, } from './Symbology'; +import { WorkflowFromJSON, WorkflowToJSON, } from './Workflow'; +/** + * Check if a given object implements the UpdateLayer interface. + */ +export function instanceOfUpdateLayer(value) { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + return isInstance; +} +export function UpdateLayerFromJSON(json) { + return UpdateLayerFromJSONTyped(json, false); +} +export function UpdateLayerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['description'], + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + 'workflow': WorkflowFromJSON(json['workflow']), + }; +} +export function UpdateLayerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'description': value.description, + 'metadata': value.metadata, + 'name': value.name, + 'properties': value.properties, + 'symbology': SymbologyToJSON(value.symbology), + 'workflow': WorkflowToJSON(value.workflow), + }; +} diff --git a/typescript/dist/esm/models/UpdateLayerCollection.d.ts b/typescript/dist/esm/models/UpdateLayerCollection.d.ts new file mode 100644 index 00000000..948a5a57 --- /dev/null +++ b/typescript/dist/esm/models/UpdateLayerCollection.d.ts @@ -0,0 +1,43 @@ +/** + * Geo Engine Pro API + * No description 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 + * @interface UpdateLayerCollection + */ +export interface UpdateLayerCollection { + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + description: string; + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + name: string; + /** + * + * @type {Array>} + * @memberof UpdateLayerCollection + */ + properties?: Array>; +} +/** + * Check if a given object implements the UpdateLayerCollection interface. + */ +export declare function instanceOfUpdateLayerCollection(value: object): boolean; +export declare function UpdateLayerCollectionFromJSON(json: any): UpdateLayerCollection; +export declare function UpdateLayerCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayerCollection; +export declare function UpdateLayerCollectionToJSON(value?: UpdateLayerCollection | null): any; diff --git a/typescript/dist/esm/models/UpdateLayerCollection.js b/typescript/dist/esm/models/UpdateLayerCollection.js new file mode 100644 index 00000000..02c897a6 --- /dev/null +++ b/typescript/dist/esm/models/UpdateLayerCollection.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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 { exists } from '../runtime'; +/** + * Check if a given object implements the UpdateLayerCollection interface. + */ +export function instanceOfUpdateLayerCollection(value) { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + return isInstance; +} +export function UpdateLayerCollectionFromJSON(json) { + return UpdateLayerCollectionFromJSONTyped(json, false); +} +export function UpdateLayerCollectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['description'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + }; +} +export function UpdateLayerCollectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'description': value.description, + 'name': value.name, + 'properties': value.properties, + }; +} diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index e433c12e..d999291d 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -190,6 +190,8 @@ export * from './TypedVectorResultDescriptor'; export * from './UnitlessMeasurement'; export * from './UnixTimeStampType'; export * from './UpdateDataset'; +export * from './UpdateLayer'; +export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; export * from './UploadFileLayersResponse'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index c34b1cd0..2ec77280 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -192,6 +192,8 @@ export * from './TypedVectorResultDescriptor'; export * from './UnitlessMeasurement'; export * from './UnixTimeStampType'; export * from './UpdateDataset'; +export * from './UpdateLayer'; +export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; export * from './UploadFileLayersResponse'; diff --git a/typescript/dist/models/UpdateLayer.d.ts b/typescript/dist/models/UpdateLayer.d.ts new file mode 100644 index 00000000..d00e51eb --- /dev/null +++ b/typescript/dist/models/UpdateLayer.d.ts @@ -0,0 +1,65 @@ +/** + * Geo Engine Pro API + * No description 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 { Symbology } from './Symbology'; +import type { Workflow } from './Workflow'; +/** + * + * @export + * @interface UpdateLayer + */ +export interface UpdateLayer { + /** + * + * @type {string} + * @memberof UpdateLayer + */ + description: string; + /** + * metadata used for loading the data + * @type {{ [key: string]: string; }} + * @memberof UpdateLayer + */ + metadata?: { + [key: string]: string; + }; + /** + * + * @type {string} + * @memberof UpdateLayer + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof UpdateLayer + */ + properties?: Array>; + /** + * + * @type {Symbology} + * @memberof UpdateLayer + */ + symbology?: Symbology | null; + /** + * + * @type {Workflow} + * @memberof UpdateLayer + */ + workflow: Workflow; +} +/** + * Check if a given object implements the UpdateLayer interface. + */ +export declare function instanceOfUpdateLayer(value: object): boolean; +export declare function UpdateLayerFromJSON(json: any): UpdateLayer; +export declare function UpdateLayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayer; +export declare function UpdateLayerToJSON(value?: UpdateLayer | null): any; diff --git a/typescript/dist/models/UpdateLayer.js b/typescript/dist/models/UpdateLayer.js new file mode 100644 index 00000000..e2afa508 --- /dev/null +++ b/typescript/dist/models/UpdateLayer.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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.UpdateLayerToJSON = exports.UpdateLayerFromJSONTyped = exports.UpdateLayerFromJSON = exports.instanceOfUpdateLayer = void 0; +const runtime_1 = require("../runtime"); +const Symbology_1 = require("./Symbology"); +const Workflow_1 = require("./Workflow"); +/** + * Check if a given object implements the UpdateLayer interface. + */ +function instanceOfUpdateLayer(value) { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + return isInstance; +} +exports.instanceOfUpdateLayer = instanceOfUpdateLayer; +function UpdateLayerFromJSON(json) { + return UpdateLayerFromJSONTyped(json, false); +} +exports.UpdateLayerFromJSON = UpdateLayerFromJSON; +function UpdateLayerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['description'], + 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'], + 'name': json['name'], + 'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : json['properties'], + 'symbology': !(0, runtime_1.exists)(json, 'symbology') ? undefined : (0, Symbology_1.SymbologyFromJSON)(json['symbology']), + 'workflow': (0, Workflow_1.WorkflowFromJSON)(json['workflow']), + }; +} +exports.UpdateLayerFromJSONTyped = UpdateLayerFromJSONTyped; +function UpdateLayerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'description': value.description, + 'metadata': value.metadata, + 'name': value.name, + 'properties': value.properties, + 'symbology': (0, Symbology_1.SymbologyToJSON)(value.symbology), + 'workflow': (0, Workflow_1.WorkflowToJSON)(value.workflow), + }; +} +exports.UpdateLayerToJSON = UpdateLayerToJSON; diff --git a/typescript/dist/models/UpdateLayerCollection.d.ts b/typescript/dist/models/UpdateLayerCollection.d.ts new file mode 100644 index 00000000..948a5a57 --- /dev/null +++ b/typescript/dist/models/UpdateLayerCollection.d.ts @@ -0,0 +1,43 @@ +/** + * Geo Engine Pro API + * No description 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 + * @interface UpdateLayerCollection + */ +export interface UpdateLayerCollection { + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + description: string; + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + name: string; + /** + * + * @type {Array>} + * @memberof UpdateLayerCollection + */ + properties?: Array>; +} +/** + * Check if a given object implements the UpdateLayerCollection interface. + */ +export declare function instanceOfUpdateLayerCollection(value: object): boolean; +export declare function UpdateLayerCollectionFromJSON(json: any): UpdateLayerCollection; +export declare function UpdateLayerCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayerCollection; +export declare function UpdateLayerCollectionToJSON(value?: UpdateLayerCollection | null): any; diff --git a/typescript/dist/models/UpdateLayerCollection.js b/typescript/dist/models/UpdateLayerCollection.js new file mode 100644 index 00000000..b8f1a49e --- /dev/null +++ b/typescript/dist/models/UpdateLayerCollection.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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.UpdateLayerCollectionToJSON = exports.UpdateLayerCollectionFromJSONTyped = exports.UpdateLayerCollectionFromJSON = exports.instanceOfUpdateLayerCollection = void 0; +const runtime_1 = require("../runtime"); +/** + * Check if a given object implements the UpdateLayerCollection interface. + */ +function instanceOfUpdateLayerCollection(value) { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + return isInstance; +} +exports.instanceOfUpdateLayerCollection = instanceOfUpdateLayerCollection; +function UpdateLayerCollectionFromJSON(json) { + return UpdateLayerCollectionFromJSONTyped(json, false); +} +exports.UpdateLayerCollectionFromJSON = UpdateLayerCollectionFromJSON; +function UpdateLayerCollectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['description'], + 'name': json['name'], + 'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : json['properties'], + }; +} +exports.UpdateLayerCollectionFromJSONTyped = UpdateLayerCollectionFromJSONTyped; +function UpdateLayerCollectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'description': value.description, + 'name': value.name, + 'properties': value.properties, + }; +} +exports.UpdateLayerCollectionToJSON = UpdateLayerCollectionToJSON; diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index e433c12e..d999291d 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -190,6 +190,8 @@ export * from './TypedVectorResultDescriptor'; export * from './UnitlessMeasurement'; export * from './UnixTimeStampType'; export * from './UpdateDataset'; +export * from './UpdateLayer'; +export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; export * from './UploadFileLayersResponse'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index 7c486fb2..8d36742c 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -208,6 +208,8 @@ __exportStar(require("./TypedVectorResultDescriptor"), exports); __exportStar(require("./UnitlessMeasurement"), exports); __exportStar(require("./UnixTimeStampType"), exports); __exportStar(require("./UpdateDataset"), exports); +__exportStar(require("./UpdateLayer"), exports); +__exportStar(require("./UpdateLayerCollection"), exports); __exportStar(require("./UpdateProject"), exports); __exportStar(require("./UpdateQuota"), exports); __exportStar(require("./UploadFileLayersResponse"), exports); diff --git a/typescript/src/models/UpdateLayer.ts b/typescript/src/models/UpdateLayer.ts new file mode 100644 index 00000000..9031531f --- /dev/null +++ b/typescript/src/models/UpdateLayer.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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 { exists, mapValues } from '../runtime'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; +import type { Workflow } from './Workflow'; +import { + WorkflowFromJSON, + WorkflowFromJSONTyped, + WorkflowToJSON, +} from './Workflow'; + +/** + * + * @export + * @interface UpdateLayer + */ +export interface UpdateLayer { + /** + * + * @type {string} + * @memberof UpdateLayer + */ + description: string; + /** + * metadata used for loading the data + * @type {{ [key: string]: string; }} + * @memberof UpdateLayer + */ + metadata?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof UpdateLayer + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof UpdateLayer + */ + properties?: Array>; + /** + * + * @type {Symbology} + * @memberof UpdateLayer + */ + symbology?: Symbology | null; + /** + * + * @type {Workflow} + * @memberof UpdateLayer + */ + workflow: Workflow; +} + +/** + * Check if a given object implements the UpdateLayer interface. + */ +export function instanceOfUpdateLayer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + + return isInstance; +} + +export function UpdateLayerFromJSON(json: any): UpdateLayer { + return UpdateLayerFromJSONTyped(json, false); +} + +export function UpdateLayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + 'workflow': WorkflowFromJSON(json['workflow']), + }; +} + +export function UpdateLayerToJSON(value?: UpdateLayer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'metadata': value.metadata, + 'name': value.name, + 'properties': value.properties, + 'symbology': SymbologyToJSON(value.symbology), + 'workflow': WorkflowToJSON(value.workflow), + }; +} + diff --git a/typescript/src/models/UpdateLayerCollection.ts b/typescript/src/models/UpdateLayerCollection.ts new file mode 100644 index 00000000..f3081bfe --- /dev/null +++ b/typescript/src/models/UpdateLayerCollection.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description 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 { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateLayerCollection + */ +export interface UpdateLayerCollection { + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + description: string; + /** + * + * @type {string} + * @memberof UpdateLayerCollection + */ + name: string; + /** + * + * @type {Array>} + * @memberof UpdateLayerCollection + */ + properties?: Array>; +} + +/** + * Check if a given object implements the UpdateLayerCollection interface. + */ +export function instanceOfUpdateLayerCollection(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function UpdateLayerCollectionFromJSON(json: any): UpdateLayerCollection { + return UpdateLayerCollectionFromJSONTyped(json, false); +} + +export function UpdateLayerCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLayerCollection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + }; +} + +export function UpdateLayerCollectionToJSON(value?: UpdateLayerCollection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'name': value.name, + 'properties': value.properties, + }; +} + diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index c34b1cd0..2ec77280 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -192,6 +192,8 @@ export * from './TypedVectorResultDescriptor'; export * from './UnitlessMeasurement'; export * from './UnixTimeStampType'; export * from './UpdateDataset'; +export * from './UpdateLayer'; +export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; export * from './UploadFileLayersResponse';