Skip to content

Commit

Permalink
Excavator: Upgrade API Version (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Sep 25, 2024
1 parent 0717f9b commit 2a648e6
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ Namespace | Resource | Operation | HTTP request |
- [GeoPointTypeDict](docs/v2/models/GeoPointTypeDict.md)
- [GeoShapeType](docs/v2/models/GeoShapeType.md)
- [GeoShapeTypeDict](docs/v2/models/GeoShapeTypeDict.md)
- [GeotimeSeriesReferenceType](docs/v2/models/GeotimeSeriesReferenceType.md)
- [GeotimeSeriesReferenceTypeDict](docs/v2/models/GeotimeSeriesReferenceTypeDict.md)
- [IntegerType](docs/v2/models/IntegerType.md)
- [IntegerTypeDict](docs/v2/models/IntegerTypeDict.md)
- [LongType](docs/v2/models/LongType.md)
Expand Down
11 changes: 11 additions & 0 deletions docs/v2/core/models/GeotimeSeriesReferenceType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GeotimeSeriesReferenceType

GeotimeSeriesReferenceType

## Properties
| Name | Type | Required | Description |
| ------------ | ------------- | ------------- | ------------- |
**type** | Literal["geotimeSeriesReference"] | Yes | None |


[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
11 changes: 11 additions & 0 deletions docs/v2/core/models/GeotimeSeriesReferenceTypeDict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GeotimeSeriesReferenceTypeDict

GeotimeSeriesReferenceType

## Properties
| Name | Type | Required | Description |
| ------------ | ------------- | ------------- | ------------- |
**type** | Literal["geotimeSeriesReference"] | Yes | None |


[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
1 change: 1 addition & 0 deletions docs/v2/ontologies/models/ObjectPropertyType.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ StringType | string
ByteType | byte
DoubleType | double
GeoPointType | geopoint
GeotimeSeriesReferenceType | geotimeSeriesReference
IntegerType | integer
FloatType | float
GeoShapeType | geoshape
Expand Down
1 change: 1 addition & 0 deletions docs/v2/ontologies/models/ObjectPropertyTypeDict.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ StringTypeDict | string
ByteTypeDict | byte
DoubleTypeDict | double
GeoPointTypeDict | geopoint
GeotimeSeriesReferenceTypeDict | geotimeSeriesReference
IntegerTypeDict | integer
FloatTypeDict | float
GeoShapeTypeDict | geoshape
Expand Down
6 changes: 6 additions & 0 deletions foundry/v2/core/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
from foundry.v2.core.models._geo_point_type_dict import GeoPointTypeDict
from foundry.v2.core.models._geo_shape_type import GeoShapeType
from foundry.v2.core.models._geo_shape_type_dict import GeoShapeTypeDict
from foundry.v2.core.models._geotime_series_reference_type import GeotimeSeriesReferenceType # NOQA
from foundry.v2.core.models._geotime_series_reference_type_dict import (
GeotimeSeriesReferenceTypeDict,
) # NOQA
from foundry.v2.core.models._integer_type import IntegerType
from foundry.v2.core.models._integer_type_dict import IntegerTypeDict
from foundry.v2.core.models._long_type import LongType
Expand Down Expand Up @@ -114,6 +118,8 @@
"GeoPointTypeDict",
"GeoShapeType",
"GeoShapeTypeDict",
"GeotimeSeriesReferenceType",
"GeotimeSeriesReferenceTypeDict",
"IntegerType",
"IntegerTypeDict",
"LongType",
Expand Down
39 changes: 39 additions & 0 deletions foundry/v2/core/models/_geotime_series_reference_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2024 Palantir Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


from __future__ import annotations

from typing import Literal
from typing import cast

from pydantic import BaseModel

from foundry.v2.core.models._geotime_series_reference_type_dict import (
GeotimeSeriesReferenceTypeDict,
) # NOQA


class GeotimeSeriesReferenceType(BaseModel):
"""GeotimeSeriesReferenceType"""

type: Literal["geotimeSeriesReference"]

model_config = {"extra": "allow"}

def to_dict(self) -> GeotimeSeriesReferenceTypeDict:
"""Return the dictionary representation of the model using the field aliases."""
return cast(
GeotimeSeriesReferenceTypeDict, self.model_dump(by_alias=True, exclude_unset=True)
)
28 changes: 28 additions & 0 deletions foundry/v2/core/models/_geotime_series_reference_type_dict.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2024 Palantir Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


from __future__ import annotations

from typing import Literal

from typing_extensions import TypedDict


class GeotimeSeriesReferenceTypeDict(TypedDict):
"""GeotimeSeriesReferenceType"""

__pydantic_config__ = {"extra": "allow"} # type: ignore

type: Literal["geotimeSeriesReference"]
2 changes: 2 additions & 0 deletions foundry/v2/ontologies/models/_object_property_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from foundry.v2.core.models._float_type import FloatType
from foundry.v2.core.models._geo_point_type import GeoPointType
from foundry.v2.core.models._geo_shape_type import GeoShapeType
from foundry.v2.core.models._geotime_series_reference_type import GeotimeSeriesReferenceType # NOQA
from foundry.v2.core.models._integer_type import IntegerType
from foundry.v2.core.models._long_type import LongType
from foundry.v2.core.models._marking_type import MarkingType
Expand Down Expand Up @@ -65,6 +66,7 @@ def to_dict(self) -> OntologyObjectArrayTypeDict:
ByteType,
DoubleType,
GeoPointType,
GeotimeSeriesReferenceType,
IntegerType,
FloatType,
GeoShapeType,
Expand Down
4 changes: 4 additions & 0 deletions foundry/v2/ontologies/models/_object_property_type_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
from foundry.v2.core.models._float_type_dict import FloatTypeDict
from foundry.v2.core.models._geo_point_type_dict import GeoPointTypeDict
from foundry.v2.core.models._geo_shape_type_dict import GeoShapeTypeDict
from foundry.v2.core.models._geotime_series_reference_type_dict import (
GeotimeSeriesReferenceTypeDict,
) # NOQA
from foundry.v2.core.models._integer_type_dict import IntegerTypeDict
from foundry.v2.core.models._long_type_dict import LongTypeDict
from foundry.v2.core.models._marking_type_dict import MarkingTypeDict
Expand All @@ -57,6 +60,7 @@ class OntologyObjectArrayTypeDict(TypedDict):
ByteTypeDict,
DoubleTypeDict,
GeoPointTypeDict,
GeotimeSeriesReferenceTypeDict,
IntegerTypeDict,
FloatTypeDict,
GeoShapeTypeDict,
Expand Down

0 comments on commit 2a648e6

Please sign in to comment.