Skip to content

Commit cef9ff1

Browse files
committed
PATCH: fix dms tree openapi
1 parent 4ae0210 commit cef9ff1

File tree

6 files changed

+44
-46
lines changed

6 files changed

+44
-46
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 {'IFC', 'OBJ', 'GLTF', 'POINT_CLOUD', 'DXF', '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 {'GLTF', 'OBJ', 'IFC', 'POINT_CLOUD', 'DWG', 'DXF'}, 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/model/recursive_folder_children.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ def openapi_types():
138138
'user_permission': (int,), # noqa: E501
139139
'history_count': (int, none_type,), # noqa: E501
140140
'tags': ([Tag], none_type,), # noqa: E501
141-
'children': ([RecursiveFolderChildren], none_type,), # noqa: E501
142141
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
143142
'file_name': (str, none_type,), # noqa: E501
144143
'description': (str, none_type,), # noqa: E501
145144
'size': (int, none_type,), # noqa: E501
146145
'file': (str, none_type,), # noqa: E501
147146
'office_preview': (str, none_type,), # noqa: E501
147+
'children': ([RecursiveFolderChildren], none_type,), # noqa: E501
148148
}
149149

150150
@cached_property
@@ -168,13 +168,13 @@ def discriminator():
168168
'user_permission': 'user_permission', # noqa: E501
169169
'history_count': 'history_count', # noqa: E501
170170
'tags': 'tags', # noqa: E501
171-
'children': 'children', # noqa: E501
172171
'created_by': 'created_by', # noqa: E501
173172
'file_name': 'file_name', # noqa: E501
174173
'description': 'description', # noqa: E501
175174
'size': 'size', # noqa: E501
176175
'file': 'file', # noqa: E501
177176
'office_preview': 'office_preview', # noqa: E501
177+
'children': 'children', # noqa: E501
178178
}
179179

180180
read_only_vars = {
@@ -189,14 +189,13 @@ def discriminator():
189189
'user_permission', # noqa: E501
190190
'history_count', # noqa: E501
191191
'tags', # noqa: E501
192-
'children', # noqa: E501
193192
}
194193

195194
_composed_schemas = {}
196195

197196
@classmethod
198197
@convert_js_args_to_python_args
199-
def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, created_at, updated_at, model_id, ifc_id, groups_permissions, default_permission, user_permission, history_count, tags, children, *args, **kwargs): # noqa: E501
198+
def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, created_at, updated_at, model_id, ifc_id, groups_permissions, default_permission, user_permission, history_count, tags, *args, **kwargs): # noqa: E501
200199
"""RecursiveFolderChildren - a model defined in OpenAPI
201200
202201
Args:
@@ -215,7 +214,6 @@ def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, creat
215214
user_permission (int): Aggregate of group user permissions and folder default permission
216215
history_count (int, none_type): Number of previous versions
217216
tags ([Tag], none_type): Tags of a document
218-
children ([RecursiveFolderChildren], none_type):
219217
220218
Keyword Args:
221219
_check_type (bool): if True, values for parameters in openapi_types
@@ -254,6 +252,7 @@ def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, creat
254252
size (int, none_type): [optional] # noqa: E501
255253
file (str, none_type): [optional] # noqa: E501
256254
office_preview (str, none_type): [optional] # noqa: E501
255+
children ([RecursiveFolderChildren], none_type): [optional] # noqa: E501
257256
"""
258257

259258
_check_type = kwargs.pop('_check_type', True)
@@ -296,7 +295,6 @@ def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, creat
296295
self.user_permission = user_permission
297296
self.history_count = history_count
298297
self.tags = tags
299-
self.children = children
300298
for var_name, var_value in kwargs.items():
301299
if var_name not in self.attribute_map and \
302300
self._configuration is not None and \
@@ -362,6 +360,7 @@ def __init__(self, id, name, created_at, updated_at, *args, **kwargs): # noqa:
362360
size (int, none_type): [optional] # noqa: E501
363361
file (str, none_type): [optional] # noqa: E501
364362
office_preview (str, none_type): [optional] # noqa: E501
363+
children ([RecursiveFolderChildren], none_type): [optional] # noqa: E501
365364
"""
366365

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

bimdata-api-client/model/write_folder.py

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110-
'created_at': (datetime,), # noqa: E501
111-
'user_permission': (int,), # noqa: E501
112-
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
113-
'id': (int,), # noqa: E501
114110
'updated_at': (datetime,), # noqa: E501
115-
'nature': (str,), # noqa: E501
111+
'id': (int,), # noqa: E501
116112
'type': (str,), # noqa: E501
117-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
113+
'user_permission': (int,), # noqa: E501
118114
'name': (str,), # noqa: E501
115+
'created_at': (datetime,), # noqa: E501
116+
'nature': (str,), # noqa: E501
117+
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
118+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
119119
'parent_id': (int, none_type,), # noqa: E501
120120
'default_permission': (int,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
@@ -127,48 +127,48 @@ def discriminator():
127127

128128

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

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

155155
_composed_schemas = {}
156156

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

234-
self.created_at = created_at
235-
self.user_permission = user_permission
236-
self.created_by = created_by
237-
self.id = id
238234
self.updated_at = updated_at
239-
self.nature = nature
235+
self.id = id
240236
self.type = type
241-
self.groups_permissions = groups_permissions
237+
self.user_permission = user_permission
242238
self.name = name
239+
self.created_at = created_at
240+
self.nature = nature
241+
self.created_by = created_by
242+
self.groups_permissions = groups_permissions
243243
for var_name, var_value in kwargs.items():
244244
if var_name not in self.attribute_map and \
245245
self._configuration is not None and \
@@ -264,7 +264,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
264264
"""WriteFolder - a model defined in OpenAPI
265265
266266
name (str): Name of the folder
267-
268267
Keyword Args:
269268
_check_type (bool): if True, values for parameters in openapi_types
270269
will be type checked and a TypeError will be

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ Name | Type | Description | Notes
15451545
15461546
Create a document
15471547

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

15501550
### Example
15511551

docs/RecursiveFolderChildren.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Name | Type | Description | Notes
1919
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
2020
**history_count** | **int, none_type** | Number of previous versions | [readonly]
2121
**tags** | [**[Tag], none_type**](Tag.md) | Tags of a document | [readonly]
22-
**children** | [**[RecursiveFolderChildren], none_type**](RecursiveFolderChildren.md) | | [readonly]
2322
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
2423
**file_name** | **str, none_type** | | [optional]
2524
**description** | **str, none_type** | | [optional]
2625
**size** | **int, none_type** | | [optional]
2726
**file** | **str, none_type** | | [optional]
2827
**office_preview** | **str, none_type** | | [optional]
28+
**children** | [**[RecursiveFolderChildren], none_type**](RecursiveFolderChildren.md) | | [optional]
2929
**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]
3030

3131
[[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/WriteFolder.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**created_at** | **datetime** | Creation date | [readonly]
8-
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
9-
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
10-
**id** | **int** | | [readonly]
117
**updated_at** | **datetime** | Date of the last update | [readonly]
12-
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
8+
**id** | **int** | | [readonly]
139
**type** | **str** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
14-
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
10+
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
1511
**name** | **str** | Name of the folder |
12+
**created_at** | **datetime** | Creation date | [readonly]
13+
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
14+
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
15+
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1616
**parent_id** | **int, none_type** | | [optional]
1717
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1818
**children** | [**[WriteFolder], none_type**](WriteFolder.md) | | [optional]

0 commit comments

Comments
 (0)