Skip to content

Commit 2f61155

Browse files
committed
MINOR: Bimdata elevation (#770)
* add BIMData Elevation to storey * add update storey elevation * fix typo in comment
1 parent 3ab4d4f commit 2f61155

File tree

9 files changed

+24
-5
lines changed

9 files changed

+24
-5
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8860,7 +8860,7 @@ def create_document(
88608860
):
88618861
"""Create a document # noqa: E501
88628862

8863-
Create a document. If the document is one of {'POINT_CLOUD', 'GLTF', 'DWG', 'IFC', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501
8863+
Create a document. If the document is one of {'POINT_CLOUD', 'DXF', 'GLTF', 'DWG', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501
88648864
This method makes a synchronous HTTP request by default. To make an
88658865
asynchronous HTTP request, please pass async_req=True
88668866

bimdata_api_client/model/building.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def openapi_types():
9090
return {
9191
'uuid': (str,), # noqa: E501
9292
'name': (str,), # noqa: E501
93+
'bimdata_elevation': (str,), # noqa: E501
9394
'plans': ([ModelWithPositioningPlan],), # noqa: E501
9495
'plans_unreachable_count': (int,), # noqa: E501
9596
}
@@ -102,13 +103,15 @@ def discriminator():
102103
attribute_map = {
103104
'uuid': 'uuid', # noqa: E501
104105
'name': 'name', # noqa: E501
106+
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
105107
'plans': 'plans', # noqa: E501
106108
'plans_unreachable_count': 'plans_unreachable_count', # noqa: E501
107109
}
108110

109111
read_only_vars = {
110112
'uuid', # noqa: E501
111113
'name', # noqa: E501
114+
'bimdata_elevation', # noqa: E501
112115
'plans', # noqa: E501
113116
'plans_unreachable_count', # noqa: E501
114117
}
@@ -117,12 +120,13 @@ def discriminator():
117120

118121
@classmethod
119122
@convert_js_args_to_python_args
120-
def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
123+
def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
121124
"""Building - a model defined in OpenAPI
122125
123126
Args:
124127
uuid (str): IFC element or element type UUID
125128
name (str): Name of the building
129+
bimdata_elevation (str): Elevation computed by BIMData on storey's objects geometries.
126130
plans ([ModelWithPositioningPlan]):
127131
plans_unreachable_count (int):
128132
@@ -186,6 +190,7 @@ def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, *
186190

187191
self.uuid = uuid
188192
self.name = name
193+
self.bimdata_elevation = bimdata_elevation
189194
self.plans = plans
190195
self.plans_unreachable_count = plans_unreachable_count
191196
for var_name, var_value in kwargs.items():

bimdata_api_client/model/patched_storey_building_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def openapi_types():
8686
"""
8787
return {
8888
'name': (str,), # noqa: E501
89+
'bimdata_elevation': (float,), # noqa: E501
8990
}
9091

9192
@cached_property
@@ -95,6 +96,7 @@ def discriminator():
9596

9697
attribute_map = {
9798
'name': 'name', # noqa: E501
99+
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
98100
}
99101

100102
read_only_vars = {
@@ -139,6 +141,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
139141
through its discriminator because we passed in
140142
_visited_composed_classes = (Animal,)
141143
name (str): [optional] # noqa: E501
144+
bimdata_elevation (float): [optional] # noqa: E501
142145
"""
143146

144147
_check_type = kwargs.pop('_check_type', True)
@@ -221,6 +224,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
221224
through its discriminator because we passed in
222225
_visited_composed_classes = (Animal,)
223226
name (str): [optional] # noqa: E501
227+
bimdata_elevation (float): [optional] # noqa: E501
224228
"""
225229

226230
_check_type = kwargs.pop('_check_type', True)

bimdata_api_client/model/storey.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def openapi_types():
9090
return {
9191
'uuid': (str,), # noqa: E501
9292
'name': (str,), # noqa: E501
93+
'bimdata_elevation': (str,), # noqa: E501
9394
'plans': ([ModelWithPositioningPlan],), # noqa: E501
9495
'plans_unreachable_count': (int,), # noqa: E501
9596
}
@@ -102,13 +103,15 @@ def discriminator():
102103
attribute_map = {
103104
'uuid': 'uuid', # noqa: E501
104105
'name': 'name', # noqa: E501
106+
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
105107
'plans': 'plans', # noqa: E501
106108
'plans_unreachable_count': 'plans_unreachable_count', # noqa: E501
107109
}
108110

109111
read_only_vars = {
110112
'uuid', # noqa: E501
111113
'name', # noqa: E501
114+
'bimdata_elevation', # noqa: E501
112115
'plans', # noqa: E501
113116
'plans_unreachable_count', # noqa: E501
114117
}
@@ -117,12 +120,13 @@ def discriminator():
117120

118121
@classmethod
119122
@convert_js_args_to_python_args
120-
def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
123+
def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
121124
"""Storey - a model defined in OpenAPI
122125
123126
Args:
124127
uuid (str): IFC element or element type UUID
125128
name (str): Name of the storey
129+
bimdata_elevation (str): Elevation computed by BIMData on storey's objects geometries.
126130
plans ([ModelWithPositioningPlan]):
127131
plans_unreachable_count (int):
128132
@@ -186,6 +190,7 @@ def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, *
186190

187191
self.uuid = uuid
188192
self.name = name
193+
self.bimdata_elevation = bimdata_elevation
189194
self.plans = plans
190195
self.plans_unreachable_count = plans_unreachable_count
191196
for var_name, var_value in kwargs.items():

docs/Building.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**uuid** | **str** | IFC element or element type UUID | [readonly]
88
**name** | **str** | Name of the building | [readonly]
9+
**bimdata_elevation** | **str** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
910
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
1011
**plans_unreachable_count** | **int** | | [readonly]
1112
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

docs/CollaborationApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14821482
id = 1 # int | A unique integer value identifying this project.
14831483
write_folder_request = [
14841484
WriteFolderRequest(
1485-
name="name_example",
14861485
default_permission=1,
14871486
parent_id=1,
1487+
name="name_example",
14881488
children=[
14891489
WriteFolderRequest(),
14901490
],
@@ -1541,7 +1541,7 @@ Name | Type | Description | Notes
15411541
15421542
Create a document
15431543

1544-
Create a document. If the document is one of {'POINT_CLOUD', 'GLTF', 'DWG', 'IFC', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
1544+
Create a document. If the document is one of {'POINT_CLOUD', 'DXF', 'GLTF', 'DWG', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
15451545

15461546
### Example
15471547

docs/ModelApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15371,6 +15371,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1537115371
uuid = "uuid_example" # str |
1537215372
patched_storey_building_request = PatchedStoreyBuildingRequest(
1537315373
name="name_example",
15374+
bimdata_elevation=3.14,
1537415375
) # PatchedStoreyBuildingRequest | (optional)
1537515376

1537615377
# example passing only required values which don't have defaults set
@@ -17609,6 +17610,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1760917610
uuid = "uuid_example" # str |
1761017611
patched_storey_building_request = PatchedStoreyBuildingRequest(
1761117612
name="name_example",
17613+
bimdata_elevation=3.14,
1761217614
) # PatchedStoreyBuildingRequest | (optional)
1761317615

1761417616
# example passing only required values which don't have defaults set

docs/PatchedStoreyBuildingRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | | [optional]
8+
**bimdata_elevation** | **float** | | [optional]
89
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Storey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**uuid** | **str** | IFC element or element type UUID | [readonly]
88
**name** | **str** | Name of the storey | [readonly]
9+
**bimdata_elevation** | **str** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
910
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
1011
**plans_unreachable_count** | **int** | | [readonly]
1112
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

0 commit comments

Comments
 (0)