Skip to content

Commit b68c55a

Browse files
committed
PATCH: filter storey models with permissions and add models_unreachable_count field (#470)
* filter storey models with permissions * fix test add model to storey * rework storey serializer
1 parent 141455e commit b68c55a

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

bimdata_api_client/models/storey.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Storey(object):
4040
'elevation': 'float',
4141
'order': 'int',
4242
'models': 'list[Ifc]',
43+
'models_unreachable_count': 'int',
4344
'is_site': 'bool'
4445
}
4546

@@ -50,10 +51,11 @@ class Storey(object):
5051
'elevation': 'elevation',
5152
'order': 'order',
5253
'models': 'models',
54+
'models_unreachable_count': 'models_unreachable_count',
5355
'is_site': 'is_site'
5456
}
5557

56-
def __init__(self, id=None, ifc_id=None, name=None, elevation=None, order=None, models=None, is_site=None, local_vars_configuration=None): # noqa: E501
58+
def __init__(self, id=None, ifc_id=None, name=None, elevation=None, order=None, models=None, models_unreachable_count=None, is_site=None, local_vars_configuration=None): # noqa: E501
5759
"""Storey - a model defined in OpenAPI""" # noqa: E501
5860
if local_vars_configuration is None:
5961
local_vars_configuration = Configuration()
@@ -65,6 +67,7 @@ def __init__(self, id=None, ifc_id=None, name=None, elevation=None, order=None,
6567
self._elevation = None
6668
self._order = None
6769
self._models = None
70+
self._models_unreachable_count = None
6871
self._is_site = None
6972
self.discriminator = None
7073

@@ -78,6 +81,8 @@ def __init__(self, id=None, ifc_id=None, name=None, elevation=None, order=None,
7881
self.order = order
7982
if models is not None:
8083
self.models = models
84+
if models_unreachable_count is not None:
85+
self.models_unreachable_count = models_unreachable_count
8186
if is_site is not None:
8287
self.is_site = is_site
8388

@@ -215,6 +220,27 @@ def models(self, models):
215220

216221
self._models = models
217222

223+
@property
224+
def models_unreachable_count(self):
225+
"""Gets the models_unreachable_count of this Storey. # noqa: E501
226+
227+
228+
:return: The models_unreachable_count of this Storey. # noqa: E501
229+
:rtype: int
230+
"""
231+
return self._models_unreachable_count
232+
233+
@models_unreachable_count.setter
234+
def models_unreachable_count(self, models_unreachable_count):
235+
"""Sets the models_unreachable_count of this Storey.
236+
237+
238+
:param models_unreachable_count: The models_unreachable_count of this Storey. # noqa: E501
239+
:type: int
240+
"""
241+
242+
self._models_unreachable_count = models_unreachable_count
243+
218244
@property
219245
def is_site(self):
220246
"""Gets the is_site of this Storey. # noqa: E501

docs/Storey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**elevation** | **float** | | [optional]
1010
**order** | **int** | | [optional] [readonly]
1111
**models** | [**list[Ifc]**](Ifc.md) | | [optional] [readonly]
12+
**models_unreachable_count** | **int** | | [optional] [readonly]
1213
**is_site** | **bool** | | [optional] [readonly]
1314

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

test/test_storey.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def make_instance(self, include_optional):
105105
],
106106
recommanded_2d_angle = 1.337, )
107107
],
108+
models_unreachable_count = 56,
108109
is_site = True
109110
)
110111
else :

0 commit comments

Comments
 (0)