Skip to content

Commit 02e59c8

Browse files
committed
PATCH: add property filters (#883)
* add property filters * remove test of atrtibutes
1 parent a7c9885 commit 02e59c8

File tree

6 files changed

+114
-50
lines changed

6 files changed

+114
-50
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8815,7 +8815,7 @@ def create_document(
88158815
):
88168816
"""Create a document # noqa: E501
88178817

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

bimdata_api_client/api/model_api.py

Lines changed: 52 additions & 4 deletions
Large diffs are not rendered by default.

bimdata_api_client/model/write_folder.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110-
'nature': (str,), # noqa: E501
111-
'updated_at': (datetime,), # noqa: E501
112-
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
113-
'name': (str,), # noqa: E501
114-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
115110
'user_permission': (int,), # noqa: E501
111+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
116112
'id': (int,), # noqa: E501
113+
'name': (str,), # noqa: E501
117114
'type': (str,), # noqa: E501
115+
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
116+
'nature': (str,), # noqa: E501
117+
'updated_at': (datetime,), # noqa: E501
118118
'created_at': (datetime,), # noqa: E501
119119
'default_permission': (int,), # noqa: E501
120120
'parent_id': (int, none_type,), # noqa: E501
@@ -127,47 +127,47 @@ def discriminator():
127127

128128

129129
attribute_map = {
130-
'nature': 'nature', # noqa: E501
131-
'updated_at': 'updated_at', # noqa: E501
132-
'created_by': 'created_by', # noqa: E501
133-
'name': 'name', # noqa: E501
134-
'groups_permissions': 'groups_permissions', # noqa: E501
135130
'user_permission': 'user_permission', # noqa: E501
131+
'groups_permissions': 'groups_permissions', # noqa: E501
136132
'id': 'id', # noqa: E501
133+
'name': 'name', # noqa: E501
137134
'type': 'type', # noqa: E501
135+
'created_by': 'created_by', # noqa: E501
136+
'nature': 'nature', # noqa: E501
137+
'updated_at': 'updated_at', # noqa: E501
138138
'created_at': 'created_at', # noqa: E501
139139
'default_permission': 'default_permission', # noqa: E501
140140
'parent_id': 'parent_id', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145-
'nature', # noqa: E501
146-
'updated_at', # noqa: E501
147-
'created_by', # noqa: E501
148-
'groups_permissions', # noqa: E501
149145
'user_permission', # noqa: E501
146+
'groups_permissions', # noqa: E501
150147
'id', # noqa: E501
151148
'type', # noqa: E501
149+
'created_by', # noqa: E501
150+
'nature', # noqa: E501
151+
'updated_at', # noqa: E501
152152
'created_at', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

157157
@classmethod
158158
@convert_js_args_to_python_args
159-
def _from_openapi_data(cls, nature, updated_at, created_by, name, groups_permissions, user_permission, id, type, created_at, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, user_permission, groups_permissions, id, name, type, created_by, nature, updated_at, created_at, *args, **kwargs): # noqa: E501
160160
"""WriteFolder - a model defined in OpenAPI
161161
162162
Args:
163-
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
164-
updated_at (datetime): Date of the last update
165-
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
166-
name (str): Name of the folder
167-
groups_permissions ([GroupFolderRead]): List of group permissions
168163
user_permission (int): Aggregate of group user permissions and folder default permission
164+
groups_permissions ([GroupFolderRead]): List of group permissions
169165
id (int):
166+
name (str): Name of the folder
170167
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
168+
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
169+
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
170+
updated_at (datetime): Date of the last update
171171
created_at (datetime): Creation date
172172
173173
Keyword Args:
@@ -231,14 +231,14 @@ def _from_openapi_data(cls, nature, updated_at, created_by, name, groups_permiss
231231
self._configuration = _configuration
232232
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
233233

234-
self.nature = nature
235-
self.updated_at = updated_at
236-
self.created_by = created_by
237-
self.name = name
238-
self.groups_permissions = groups_permissions
239234
self.user_permission = user_permission
235+
self.groups_permissions = groups_permissions
240236
self.id = id
237+
self.name = name
241238
self.type = type
239+
self.created_by = created_by
240+
self.nature = nature
241+
self.updated_at = updated_at
242242
self.created_at = created_at
243243
for var_name, var_value in kwargs.items():
244244
if var_name not in self.attribute_map and \

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,13 +1481,13 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14811481
id = 1 # int | A unique integer value identifying this project.
14821482
write_folder_request = [
14831483
WriteFolderRequest(
1484-
name="name_example",
14851484
default_permission=1,
1485+
name="name_example",
14861486
parent_id=1,
14871487
children=[
14881488
WriteFolder(
1489-
name="name_example",
14901489
default_permission=1,
1490+
name="name_example",
14911491
parent_id=1,
14921492
children=None,
14931493
),
@@ -1545,7 +1545,7 @@ Name | Type | Description | Notes
15451545
15461546
Create a document
15471547

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

15501550
### Example
15511551

0 commit comments

Comments
 (0)