Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generation/config.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[input]
backendCommit = a67f76af99b5b579fa0823bfa5908fae0049cb22
backendCommit = 811d415f68e4e4878e7ff7f69eaad4a08d6fc16c

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

[python]
name = geoengine_openapi_client
Expand Down
31 changes: 26 additions & 5 deletions .generation/input/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -9528,6 +9528,10 @@
}
}
},
"Secret_String": {
"type": "string",
"description": "A wrapper type that serializes to \"*****\" and can be deserialized from any string.\nIf the inner value is \"*****\", it is considered unknown and `as_option` returns `None`.\nThis is useful for secrets that should not be exposed in API responses, but can be set in API requests."
},
"SentinelS2L2ACogsProviderDefinition": {
"type": "object",
"required": [
Expand Down Expand Up @@ -11036,14 +11040,15 @@
"description"
],
"properties": {
"apiKey": {
"description": {
"type": "string"
},
"expiryDate": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
],
"format": "date-time"
},
"id": {
"$ref": "#/components/schemas/DataProviderId"
Expand All @@ -11058,11 +11063,27 @@
],
"format": "int32"
},
"refreshToken": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Secret_String"
}
]
},
"type": {
"type": "string",
"enum": [
"WildLIVE!"
]
},
"user": {
"type": [
"string",
"null"
]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.27
- Package version: 0.0.28
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion python/geoengine_openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "0.0.27"
__version__ = "0.0.28"

# import apis into sdk package
from geoengine_openapi_client.api.datasets_api import DatasetsApi
Expand Down
2 changes: 1 addition & 1 deletion python/geoengine_openapi_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.27'
self.user_agent = 'geoengine/openapi-client/python/0.0.28'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion python/geoengine_openapi_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.27".\
"SDK Package Version: 0.0.28".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re # noqa: F401
import json

from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
Expand All @@ -27,13 +28,14 @@ class WildliveDataConnectorDefinition(BaseModel):
"""
WildliveDataConnectorDefinition
""" # noqa: E501
api_key: Optional[StrictStr] = Field(default=None, alias="apiKey")
description: StrictStr
expiry_date: Optional[datetime] = Field(default=None, alias="expiryDate")
id: StrictStr
name: StrictStr
priority: Optional[StrictInt] = None
refresh_token: Optional[StrictStr] = Field(default=None, description="A wrapper type that serializes to \"*****\" and can be deserialized from any string. If the inner value is \"*****\", it is considered unknown and `as_option` returns `None`. This is useful for secrets that should not be exposed in API responses, but can be set in API requests.", alias="refreshToken")
type: StrictStr
__properties: ClassVar[List[str]] = ["apiKey", "description", "id", "name", "priority", "type"]
__properties: ClassVar[List[str]] = ["description", "expiryDate", "id", "name", "priority", "refreshToken", "type"]

@field_validator('type')
def type_validate_enum(cls, value):
Expand Down Expand Up @@ -81,10 +83,10 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if api_key (nullable) is None
# set to None if expiry_date (nullable) is None
# and model_fields_set contains the field
if self.api_key is None and "api_key" in self.model_fields_set:
_dict['apiKey'] = None
if self.expiry_date is None and "expiry_date" in self.model_fields_set:
_dict['expiryDate'] = None

# set to None if priority (nullable) is None
# and model_fields_set contains the field
Expand All @@ -103,11 +105,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)

_obj = cls.model_validate({
"apiKey": obj.get("apiKey"),
"description": obj.get("description"),
"expiryDate": obj.get("expiryDate"),
"id": obj.get("id"),
"name": obj.get("name"),
"priority": obj.get("priority"),
"refreshToken": obj.get("refreshToken"),
"type": obj.get("type")
})
return _obj
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "geoengine_openapi_client"
version = "0.0.27"
version = "0.0.28"
description = "Geo Engine API"
authors = ["Geo Engine Developers <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "geoengine-openapi-client"
VERSION = "0.0.27"
VERSION = "0.0.28"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion python/test/test_typed_data_provider_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def make_instance(self, include_optional) -> TypedDataProviderDefinition:
epsg = 0,
name = '', )
],
api_key = ''
expiry_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
refresh_token = ''
)
else:
return TypedDataProviderDefinition(
Expand Down
3 changes: 2 additions & 1 deletion python/test/test_wildlive_data_connector_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ def make_instance(self, include_optional) -> WildliveDataConnectorDefinition:
model = WildliveDataConnectorDefinition()
if include_optional:
return WildliveDataConnectorDefinition(
api_key = '',
description = '',
expiry_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = '',
name = '',
priority = 56,
refresh_token = '',
type = 'WildLIVE!'
)
else:
Expand Down
4 changes: 2 additions & 2 deletions typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @geoengine/[email protected].27
## @geoengine/[email protected].28

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install @geoengine/[email protected].27 --save
npm install @geoengine/[email protected].28 --save
```

_unPublished (not recommended):_
Expand Down
20 changes: 17 additions & 3 deletions typescript/dist/esm/models/WildliveDataConnectorDefinition.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export interface WildliveDataConnectorDefinition {
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
apiKey?: string | null;
description: string;
/**
*
* @type {string}
* @type {Date}
* @memberof WildliveDataConnectorDefinition
*/
description: string;
expiryDate?: Date | null;
/**
*
* @type {string}
Expand All @@ -45,12 +45,26 @@ export interface WildliveDataConnectorDefinition {
* @memberof WildliveDataConnectorDefinition
*/
priority?: number | null;
/**
* A wrapper type that serializes to "*****" and can be deserialized from any string.
* If the inner value is "*****", it is considered unknown and `as_option` returns `None`.
* This is useful for secrets that should not be exposed in API responses, but can be set in API requests.
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
refreshToken?: string;
/**
*
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
type: WildliveDataConnectorDefinitionTypeEnum;
/**
*
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
user?: string | null;
}
/**
* @export
Expand Down
8 changes: 6 additions & 2 deletions typescript/dist/esm/models/WildliveDataConnectorDefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ export function WildliveDataConnectorDefinitionFromJSONTyped(json, ignoreDiscrim
return json;
}
return {
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
'description': json['description'],
'expiryDate': json['expiryDate'] == null ? undefined : (new Date(json['expiryDate'])),
'id': json['id'],
'name': json['name'],
'priority': json['priority'] == null ? undefined : json['priority'],
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
'type': json['type'],
'user': json['user'] == null ? undefined : json['user'],
};
}
export function WildliveDataConnectorDefinitionToJSON(json) {
Expand All @@ -55,11 +57,13 @@ export function WildliveDataConnectorDefinitionToJSONTyped(value, ignoreDiscrimi
return value;
}
return {
'apiKey': value['apiKey'],
'description': value['description'],
'expiryDate': value['expiryDate'] == null ? undefined : (value['expiryDate'].toISOString()),
'id': value['id'],
'name': value['name'],
'priority': value['priority'],
'refreshToken': value['refreshToken'],
'type': value['type'],
'user': value['user'],
};
}
2 changes: 1 addition & 1 deletion typescript/dist/esm/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Configuration {
}
export const DefaultConfig = new Configuration({
headers: {
'User-Agent': 'geoengine/openapi-client/typescript/0.0.27'
'User-Agent': 'geoengine/openapi-client/typescript/0.0.28'
}
});
/**
Expand Down
20 changes: 17 additions & 3 deletions typescript/dist/models/WildliveDataConnectorDefinition.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export interface WildliveDataConnectorDefinition {
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
apiKey?: string | null;
description: string;
/**
*
* @type {string}
* @type {Date}
* @memberof WildliveDataConnectorDefinition
*/
description: string;
expiryDate?: Date | null;
/**
*
* @type {string}
Expand All @@ -45,12 +45,26 @@ export interface WildliveDataConnectorDefinition {
* @memberof WildliveDataConnectorDefinition
*/
priority?: number | null;
/**
* A wrapper type that serializes to "*****" and can be deserialized from any string.
* If the inner value is "*****", it is considered unknown and `as_option` returns `None`.
* This is useful for secrets that should not be exposed in API responses, but can be set in API requests.
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
refreshToken?: string;
/**
*
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
type: WildliveDataConnectorDefinitionTypeEnum;
/**
*
* @type {string}
* @memberof WildliveDataConnectorDefinition
*/
user?: string | null;
}
/**
* @export
Expand Down
8 changes: 6 additions & 2 deletions typescript/dist/models/WildliveDataConnectorDefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ function WildliveDataConnectorDefinitionFromJSONTyped(json, ignoreDiscriminator)
return json;
}
return {
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
'description': json['description'],
'expiryDate': json['expiryDate'] == null ? undefined : (new Date(json['expiryDate'])),
'id': json['id'],
'name': json['name'],
'priority': json['priority'] == null ? undefined : json['priority'],
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
'type': json['type'],
'user': json['user'] == null ? undefined : json['user'],
};
}
function WildliveDataConnectorDefinitionToJSON(json) {
Expand All @@ -63,11 +65,13 @@ function WildliveDataConnectorDefinitionToJSONTyped(value, ignoreDiscriminator =
return value;
}
return {
'apiKey': value['apiKey'],
'description': value['description'],
'expiryDate': value['expiryDate'] == null ? undefined : (value['expiryDate'].toISOString()),
'id': value['id'],
'name': value['name'],
'priority': value['priority'],
'refreshToken': value['refreshToken'],
'type': value['type'],
'user': value['user'],
};
}
2 changes: 1 addition & 1 deletion typescript/dist/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Configuration {
exports.Configuration = Configuration;
exports.DefaultConfig = new Configuration({
headers: {
'User-Agent': 'geoengine/openapi-client/typescript/0.0.27'
'User-Agent': 'geoengine/openapi-client/typescript/0.0.28'
}
});
/**
Expand Down
4 changes: 2 additions & 2 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading