Skip to content

Commit

Permalink
MINOR: Bimdata elevation (#770)
Browse files Browse the repository at this point in the history
* add BIMData Elevation to storey

* add update storey elevation

* fix typo in comment
  • Loading branch information
Bimdata-io committed Sep 9, 2024
1 parent 3ab4d4f commit 2f61155
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bimdata_api_client/api/collaboration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8860,7 +8860,7 @@ def create_document(
):
"""Create a document # noqa: E501

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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
7 changes: 6 additions & 1 deletion bimdata_api_client/model/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def openapi_types():
return {
'uuid': (str,), # noqa: E501
'name': (str,), # noqa: E501
'bimdata_elevation': (str,), # noqa: E501
'plans': ([ModelWithPositioningPlan],), # noqa: E501
'plans_unreachable_count': (int,), # noqa: E501
}
Expand All @@ -102,13 +103,15 @@ def discriminator():
attribute_map = {
'uuid': 'uuid', # noqa: E501
'name': 'name', # noqa: E501
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
'plans': 'plans', # noqa: E501
'plans_unreachable_count': 'plans_unreachable_count', # noqa: E501
}

read_only_vars = {
'uuid', # noqa: E501
'name', # noqa: E501
'bimdata_elevation', # noqa: E501
'plans', # noqa: E501
'plans_unreachable_count', # noqa: E501
}
Expand All @@ -117,12 +120,13 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
"""Building - a model defined in OpenAPI
Args:
uuid (str): IFC element or element type UUID
name (str): Name of the building
bimdata_elevation (str): Elevation computed by BIMData on storey's objects geometries.
plans ([ModelWithPositioningPlan]):
plans_unreachable_count (int):
Expand Down Expand Up @@ -186,6 +190,7 @@ def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, *

self.uuid = uuid
self.name = name
self.bimdata_elevation = bimdata_elevation
self.plans = plans
self.plans_unreachable_count = plans_unreachable_count
for var_name, var_value in kwargs.items():
Expand Down
4 changes: 4 additions & 0 deletions bimdata_api_client/model/patched_storey_building_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def openapi_types():
"""
return {
'name': (str,), # noqa: E501
'bimdata_elevation': (float,), # noqa: E501
}

@cached_property
Expand All @@ -95,6 +96,7 @@ def discriminator():

attribute_map = {
'name': 'name', # noqa: E501
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
}

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

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

_check_type = kwargs.pop('_check_type', True)
Expand Down
7 changes: 6 additions & 1 deletion bimdata_api_client/model/storey.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def openapi_types():
return {
'uuid': (str,), # noqa: E501
'name': (str,), # noqa: E501
'bimdata_elevation': (str,), # noqa: E501
'plans': ([ModelWithPositioningPlan],), # noqa: E501
'plans_unreachable_count': (int,), # noqa: E501
}
Expand All @@ -102,13 +103,15 @@ def discriminator():
attribute_map = {
'uuid': 'uuid', # noqa: E501
'name': 'name', # noqa: E501
'bimdata_elevation': 'bimdata_elevation', # noqa: E501
'plans': 'plans', # noqa: E501
'plans_unreachable_count': 'plans_unreachable_count', # noqa: E501
}

read_only_vars = {
'uuid', # noqa: E501
'name', # noqa: E501
'bimdata_elevation', # noqa: E501
'plans', # noqa: E501
'plans_unreachable_count', # noqa: E501
}
Expand All @@ -117,12 +120,13 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreachable_count, *args, **kwargs): # noqa: E501
"""Storey - a model defined in OpenAPI
Args:
uuid (str): IFC element or element type UUID
name (str): Name of the storey
bimdata_elevation (str): Elevation computed by BIMData on storey's objects geometries.
plans ([ModelWithPositioningPlan]):
plans_unreachable_count (int):
Expand Down Expand Up @@ -186,6 +190,7 @@ def _from_openapi_data(cls, uuid, name, plans, plans_unreachable_count, *args, *

self.uuid = uuid
self.name = name
self.bimdata_elevation = bimdata_elevation
self.plans = plans
self.plans_unreachable_count = plans_unreachable_count
for var_name, var_value in kwargs.items():
Expand Down
1 change: 1 addition & 0 deletions docs/Building.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **str** | IFC element or element type UUID | [readonly]
**name** | **str** | Name of the building | [readonly]
**bimdata_elevation** | **str** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
**plans_unreachable_count** | **int** | | [readonly]
**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]
Expand Down
4 changes: 2 additions & 2 deletions docs/CollaborationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1482,9 +1482,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
id = 1 # int | A unique integer value identifying this project.
write_folder_request = [
WriteFolderRequest(
name="name_example",
default_permission=1,
parent_id=1,
name="name_example",
children=[
WriteFolderRequest(),
],
Expand Down Expand Up @@ -1541,7 +1541,7 @@ Name | Type | Description | Notes
Create a document

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
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

### Example

Expand Down
2 changes: 2 additions & 0 deletions docs/ModelApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15371,6 +15371,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
uuid = "uuid_example" # str |
patched_storey_building_request = PatchedStoreyBuildingRequest(
name="name_example",
bimdata_elevation=3.14,
) # PatchedStoreyBuildingRequest | (optional)

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

# example passing only required values which don't have defaults set
Expand Down
1 change: 1 addition & 0 deletions docs/PatchedStoreyBuildingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | | [optional]
**bimdata_elevation** | **float** | | [optional]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions docs/Storey.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **str** | IFC element or element type UUID | [readonly]
**name** | **str** | Name of the storey | [readonly]
**bimdata_elevation** | **str** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
**plans_unreachable_count** | **int** | | [readonly]
**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]
Expand Down

0 comments on commit 2f61155

Please sign in to comment.