Skip to content

Commit cd73c20

Browse files
committed
PATCH: fix dms tree openapi
1 parent 1fad8cc commit cd73c20

File tree

9 files changed

+48
-52
lines changed

9 files changed

+48
-52
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 {'DXF', 'IFC', 'DWG', 'OBJ', 'POINT_CLOUD', 'GLTF'}, 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 {'OBJ', 'DWG', 'IFC', 'DXF', 'GLTF', 'POINT_CLOUD'}, 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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@
3131

3232

3333
def lazy_import():
34-
from bimdata-api-client.model.recursive_folder_children import RecursiveFolderChildren
3534
from bimdata-api-client.model.short_user import ShortUser
3635
from bimdata-api-client.model.tag import Tag
37-
globals()['RecursiveFolderChildren'] = RecursiveFolderChildren
3836
globals()['ShortUser'] = ShortUser
3937
globals()['Tag'] = Tag
4038

@@ -140,7 +138,7 @@ def openapi_types():
140138
'user_permission': (int,), # noqa: E501
141139
'history_count': (int, none_type,), # noqa: E501
142140
'tags': ([Tag], none_type,), # noqa: E501
143-
'children': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
141+
'children': ([RecursiveFolderChildren], none_type,), # noqa: E501
144142
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
145143
'file_name': (str, none_type,), # noqa: E501
146144
'description': (str, none_type,), # noqa: E501
@@ -217,7 +215,7 @@ def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, creat
217215
user_permission (int): Aggregate of group user permissions and folder default permission
218216
history_count (int, none_type): Number of previous versions
219217
tags ([Tag], none_type): Tags of a document
220-
children (bool, date, datetime, dict, float, int, list, str, none_type):
218+
children ([RecursiveFolderChildren], none_type):
221219
222220
Keyword Args:
223221
_check_type (bool): if True, values for parameters in openapi_types

bimdata-api-client/model/write_folder.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110-
'nature': (str,), # noqa: E501
111-
'updated_at': (datetime,), # noqa: E501
112-
'id': (int,), # noqa: E501
113-
'type': (str,), # noqa: E501
114-
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
115110
'groups_permissions': ([GroupFolderRead],), # noqa: E501
116111
'created_at': (datetime,), # noqa: E501
112+
'type': (str,), # noqa: E501
117113
'name': (str,), # noqa: E501
118114
'user_permission': (int,), # noqa: E501
119-
'parent_id': (int, none_type,), # noqa: E501
115+
'updated_at': (datetime,), # noqa: E501
116+
'nature': (str,), # noqa: E501
117+
'id': (int,), # noqa: E501
118+
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
120119
'default_permission': (int,), # noqa: E501
120+
'parent_id': (int, none_type,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
122122
}
123123

@@ -127,48 +127,48 @@ def discriminator():
127127

128128

129129
attribute_map = {
130-
'nature': 'nature', # noqa: E501
131-
'updated_at': 'updated_at', # noqa: E501
132-
'id': 'id', # noqa: E501
133-
'type': 'type', # noqa: E501
134-
'created_by': 'created_by', # noqa: E501
135130
'groups_permissions': 'groups_permissions', # noqa: E501
136131
'created_at': 'created_at', # noqa: E501
132+
'type': 'type', # noqa: E501
137133
'name': 'name', # noqa: E501
138134
'user_permission': 'user_permission', # noqa: E501
139-
'parent_id': 'parent_id', # noqa: E501
135+
'updated_at': 'updated_at', # noqa: E501
136+
'nature': 'nature', # noqa: E501
137+
'id': 'id', # noqa: E501
138+
'created_by': 'created_by', # noqa: E501
140139
'default_permission': 'default_permission', # noqa: E501
140+
'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-
'id', # noqa: E501
148-
'type', # noqa: E501
149-
'created_by', # noqa: E501
150145
'groups_permissions', # noqa: E501
151146
'created_at', # noqa: E501
147+
'type', # noqa: E501
152148
'user_permission', # noqa: E501
149+
'updated_at', # noqa: E501
150+
'nature', # noqa: E501
151+
'id', # noqa: E501
152+
'created_by', # 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, id, type, created_by, groups_permissions, created_at, name, user_permission, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, groups_permissions, created_at, type, name, user_permission, updated_at, nature, id, created_by, *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-
id (int):
166-
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
167-
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
168163
groups_permissions ([GroupFolderRead]): List of group permissions
169164
created_at (datetime): Creation date
165+
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
170166
name (str): Name of the folder
171167
user_permission (int): Aggregate of group user permissions and folder default permission
168+
updated_at (datetime): Date of the last update
169+
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
170+
id (int):
171+
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
172172
173173
Keyword Args:
174174
_check_type (bool): if True, values for parameters in openapi_types
@@ -201,8 +201,8 @@ def _from_openapi_data(cls, nature, updated_at, id, type, created_by, groups_per
201201
Animal class but this time we won't travel
202202
through its discriminator because we passed in
203203
_visited_composed_classes = (Animal,)
204-
parent_id (int, none_type): [optional] # noqa: E501
205204
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
205+
parent_id (int, none_type): [optional] # noqa: E501
206206
children ([WriteFolder], none_type): [optional] # noqa: E501
207207
"""
208208

@@ -231,15 +231,15 @@ def _from_openapi_data(cls, nature, updated_at, id, type, created_by, groups_per
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.id = id
237-
self.type = type
238-
self.created_by = created_by
239234
self.groups_permissions = groups_permissions
240235
self.created_at = created_at
236+
self.type = type
241237
self.name = name
242238
self.user_permission = user_permission
239+
self.updated_at = updated_at
240+
self.nature = nature
241+
self.id = id
242+
self.created_by = created_by
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 \
@@ -295,8 +295,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295295
Animal class but this time we won't travel
296296
through its discriminator because we passed in
297297
_visited_composed_classes = (Animal,)
298-
parent_id (int, none_type): [optional] # noqa: E501
299298
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
299+
parent_id (int, none_type): [optional] # noqa: E501
300300
children ([WriteFolder], none_type): [optional] # noqa: E501
301301
"""
302302

bimdata-api-client/model/write_folder_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def openapi_types():
102102
lazy_import()
103103
return {
104104
'name': (str,), # noqa: E501
105-
'parent_id': (int, none_type,), # noqa: E501
106105
'default_permission': (int,), # noqa: E501
106+
'parent_id': (int, none_type,), # noqa: E501
107107
'children': ([WriteFolder], none_type,), # noqa: E501
108108
}
109109

@@ -114,8 +114,8 @@ def discriminator():
114114

115115
attribute_map = {
116116
'name': 'name', # noqa: E501
117-
'parent_id': 'parent_id', # noqa: E501
118117
'default_permission': 'default_permission', # noqa: E501
118+
'parent_id': 'parent_id', # noqa: E501
119119
'children': 'children', # noqa: E501
120120
}
121121

@@ -163,8 +163,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
163163
Animal class but this time we won't travel
164164
through its discriminator because we passed in
165165
_visited_composed_classes = (Animal,)
166-
parent_id (int, none_type): [optional] # noqa: E501
167166
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
167+
parent_id (int, none_type): [optional] # noqa: E501
168168
children ([WriteFolder], none_type): [optional] # noqa: E501
169169
"""
170170

@@ -251,8 +251,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
251251
Animal class but this time we won't travel
252252
through its discriminator because we passed in
253253
_visited_composed_classes = (Animal,)
254-
parent_id (int, none_type): [optional] # noqa: E501
255254
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
255+
parent_id (int, none_type): [optional] # noqa: E501
256256
children ([WriteFolder], none_type): [optional] # noqa: E501
257257
"""
258258

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,14 +1481,14 @@ 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-
parent_id=1,
14851484
default_permission=1,
14861485
name="name_example",
1486+
parent_id=1,
14871487
children=[
14881488
WriteFolder(
1489-
parent_id=1,
14901489
default_permission=1,
14911490
name="name_example",
1491+
parent_id=1,
14921492
children=None,
14931493
),
14941494
],
@@ -1545,7 +1545,7 @@ Name | Type | Description | Notes
15451545
15461546
Create a document
15471547

1548-
Create a document. If the document is one of {'DXF', 'IFC', 'DWG', 'OBJ', 'POINT_CLOUD', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
1548+
Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'DXF', 'GLTF', 'POINT_CLOUD'}, 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,7 +19,7 @@ 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** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
22+
**children** | [**[RecursiveFolderChildren], none_type**](RecursiveFolderChildren.md) | | [readonly]
2323
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
2424
**file_name** | **str, none_type** | | [optional]
2525
**description** | **str, none_type** | | [optional]

docs/WriteFolder.md

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

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-
**parent_id** | **int, none_type** | | [optional]
98
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
9+
**parent_id** | **int, none_type** | | [optional]
1010
**children** | [**[WriteFolder], none_type**](WriteFolder.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

test/test_recursive_folder_children.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
import unittest
1414

1515
import bimdata-api-client
16-
from bimdata-api-client.model.recursive_folder_children import RecursiveFolderChildren
1716
from bimdata-api-client.model.short_user import ShortUser
1817
from bimdata-api-client.model.tag import Tag
19-
globals()['RecursiveFolderChildren'] = RecursiveFolderChildren
2018
globals()['ShortUser'] = ShortUser
2119
globals()['Tag'] = Tag
2220
from bimdata-api-client.model.recursive_folder_children import RecursiveFolderChildren

0 commit comments

Comments
 (0)