Skip to content

Commit a367be3

Browse files
committed
PATCH: bimdata_elevation response can be null
1 parent ed9a77d commit a367be3

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
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 {'OBJ', 'GLTF', 'IFC', 'DXF', 'DWG', 'POINT_CLOUD'}, 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 {'GLTF', 'DXF', 'DWG', 'IFC', 'OBJ', 'POINT_CLOUD'}, 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def openapi_types():
9090
return {
9191
'uuid': (str,), # noqa: E501
9292
'name': (str,), # noqa: E501
93-
'bimdata_elevation': (float,), # noqa: E501
93+
'bimdata_elevation': (float, none_type,), # noqa: E501
9494
'plans': ([ModelWithPositioningPlan],), # noqa: E501
9595
'plans_unreachable_count': (int,), # noqa: E501
9696
}
@@ -126,7 +126,7 @@ def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreacha
126126
Args:
127127
uuid (str): IFC element or element type UUID
128128
name (str): Name of the building
129-
bimdata_elevation (float): Elevation computed by BIMData on storey's objects geometries.
129+
bimdata_elevation (float, none_type): Elevation computed by BIMData on storey's objects geometries.
130130
plans ([ModelWithPositioningPlan]):
131131
plans_unreachable_count (int):
132132

bimdata_api_client/model/storey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def openapi_types():
9090
return {
9191
'uuid': (str,), # noqa: E501
9292
'name': (str,), # noqa: E501
93-
'bimdata_elevation': (float,), # noqa: E501
93+
'bimdata_elevation': (float, none_type,), # noqa: E501
9494
'plans': ([ModelWithPositioningPlan],), # noqa: E501
9595
'plans_unreachable_count': (int,), # noqa: E501
9696
}
@@ -126,7 +126,7 @@ def _from_openapi_data(cls, uuid, name, bimdata_elevation, plans, plans_unreacha
126126
Args:
127127
uuid (str): IFC element or element type UUID
128128
name (str): Name of the storey
129-
bimdata_elevation (float): Elevation computed by BIMData on storey's objects geometries.
129+
bimdata_elevation (float, none_type): Elevation computed by BIMData on storey's objects geometries.
130130
plans ([ModelWithPositioningPlan]):
131131
plans_unreachable_count (int):
132132

bimdata_api_client/model/write_folder_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def openapi_types():
9696
"""
9797
return {
9898
'name': (str,), # noqa: E501
99-
'default_permission': (int,), # noqa: E501
10099
'parent_id': (int, none_type,), # noqa: E501
100+
'default_permission': (int,), # noqa: E501
101101
'children': ([WriteFolderRequest], none_type,), # noqa: E501
102102
}
103103

@@ -108,8 +108,8 @@ def discriminator():
108108

109109
attribute_map = {
110110
'name': 'name', # noqa: E501
111-
'default_permission': 'default_permission', # noqa: E501
112111
'parent_id': 'parent_id', # noqa: E501
112+
'default_permission': 'default_permission', # noqa: E501
113113
'children': 'children', # noqa: E501
114114
}
115115

@@ -157,8 +157,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
157157
Animal class but this time we won't travel
158158
through its discriminator because we passed in
159159
_visited_composed_classes = (Animal,)
160-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
161160
parent_id (int, none_type): [optional] # noqa: E501
161+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
162162
children ([WriteFolderRequest], none_type): [optional] # noqa: E501
163163
"""
164164

@@ -245,8 +245,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
245245
Animal class but this time we won't travel
246246
through its discriminator because we passed in
247247
_visited_composed_classes = (Animal,)
248-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
249248
parent_id (int, none_type): [optional] # noqa: E501
249+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
250250
children ([WriteFolderRequest], none_type): [optional] # noqa: E501
251251
"""
252252

docs/Building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +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** | **float** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
9+
**bimdata_elevation** | **float, none_type** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
1010
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
1111
**plans_unreachable_count** | **int** | | [readonly]
1212
**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: 3 additions & 3 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-
default_permission=1,
1486-
name="name_example",
14871485
parent_id=1,
1486+
name="name_example",
1487+
default_permission=1,
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 {'OBJ', 'GLTF', 'IFC', 'DXF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
1544+
Create a document. If the document is one of {'GLTF', 'DXF', 'DWG', 'IFC', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
15451545

15461546
### Example
15471547

docs/Storey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +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** | **float** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
9+
**bimdata_elevation** | **float, none_type** | Elevation computed by BIMData on storey's objects geometries. | [readonly]
1010
**plans** | [**[ModelWithPositioningPlan]**](ModelWithPositioningPlan.md) | | [readonly]
1111
**plans_unreachable_count** | **int** | | [readonly]
1212
**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/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | Name of the folder |
8-
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
98
**parent_id** | **int, none_type** | | [optional]
9+
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1010
**children** | [**[WriteFolderRequest], none_type**](WriteFolderRequest.md) | | [optional]
1111
**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]
1212

0 commit comments

Comments
 (0)