Skip to content

Commit 1bd6c69

Browse files
committed
MINOR: Add full path in document route (empty commit for release)
1 parent df22d1c commit 1bd6c69

File tree

8 files changed

+57
-51
lines changed

8 files changed

+57
-51
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8599,7 +8599,7 @@ def create_document(
85998599
):
86008600
"""Create a document # noqa: E501
86018601

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

bimdata_api_client/model/document.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def openapi_types():
134134
'history_count': (int, none_type,), # noqa: E501
135135
'user_permission': (int,), # noqa: E501
136136
'office_preview': (str, none_type,), # noqa: E501
137+
'path': (str,), # noqa: E501
137138
'parent_id': (int, none_type,), # noqa: E501
138139
'file_name': (str,), # noqa: E501
139140
'description': (str, none_type,), # noqa: E501
@@ -163,6 +164,7 @@ def discriminator():
163164
'history_count': 'history_count', # noqa: E501
164165
'user_permission': 'user_permission', # noqa: E501
165166
'office_preview': 'office_preview', # noqa: E501
167+
'path': 'path', # noqa: E501
166168
'parent_id': 'parent_id', # noqa: E501
167169
'file_name': 'file_name', # noqa: E501
168170
'description': 'description', # noqa: E501
@@ -185,13 +187,14 @@ def discriminator():
185187
'history_count', # noqa: E501
186188
'user_permission', # noqa: E501
187189
'office_preview', # noqa: E501
190+
'path', # noqa: E501
188191
}
189192

190193
_composed_schemas = {}
191194

192195
@classmethod
193196
@convert_js_args_to_python_args
194-
def _from_openapi_data(cls, id, created_by, project, name, file, size, tags, visas, created_at, updated_at, model_id, model_type, ifc_id, head_id, is_head_version, history_count, user_permission, office_preview, *args, **kwargs): # noqa: E501
197+
def _from_openapi_data(cls, id, created_by, project, name, file, size, tags, visas, created_at, updated_at, model_id, model_type, ifc_id, head_id, is_head_version, history_count, user_permission, office_preview, path, *args, **kwargs): # noqa: E501
195198
"""Document - a model defined in OpenAPI
196199
197200
Args:
@@ -213,6 +216,7 @@ def _from_openapi_data(cls, id, created_by, project, name, file, size, tags, vis
213216
history_count (int, none_type): Number of previous versions
214217
user_permission (int): Aggregate of group user permissions and folder default permission
215218
office_preview (str, none_type): Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt
219+
path (str):
216220
217221
Keyword Args:
218222
_check_type (bool): if True, values for parameters in openapi_types
@@ -293,6 +297,7 @@ def _from_openapi_data(cls, id, created_by, project, name, file, size, tags, vis
293297
self.history_count = history_count
294298
self.user_permission = user_permission
295299
self.office_preview = office_preview
300+
self.path = path
296301
for var_name, var_value in kwargs.items():
297302
if var_name not in self.attribute_map and \
298303
self._configuration is not None and \

bimdata_api_client/model/write_folder.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110-
'id': (int,), # noqa: E501
111-
'created_at': (datetime,), # noqa: E501
112-
'name': (str,), # noqa: E501
113-
'updated_at': (datetime,), # noqa: E501
114-
'user_permission': (int,), # noqa: E501
115110
'type': (str,), # noqa: E501
116-
'nature': (str,), # noqa: E501
117111
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
112+
'user_permission': (int,), # noqa: E501
118113
'groups_permissions': ([GroupFolderRead],), # noqa: E501
119-
'parent_id': (int, none_type,), # noqa: E501
114+
'name': (str,), # noqa: E501
115+
'nature': (str,), # noqa: E501
116+
'id': (int,), # noqa: E501
117+
'created_at': (datetime,), # noqa: E501
118+
'updated_at': (datetime,), # 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-
'id': 'id', # noqa: E501
131-
'created_at': 'created_at', # noqa: E501
132-
'name': 'name', # noqa: E501
133-
'updated_at': 'updated_at', # noqa: E501
134-
'user_permission': 'user_permission', # noqa: E501
135130
'type': 'type', # noqa: E501
136-
'nature': 'nature', # noqa: E501
137131
'created_by': 'created_by', # noqa: E501
132+
'user_permission': 'user_permission', # noqa: E501
138133
'groups_permissions': 'groups_permissions', # noqa: E501
139-
'parent_id': 'parent_id', # noqa: E501
134+
'name': 'name', # noqa: E501
135+
'nature': 'nature', # noqa: E501
136+
'id': 'id', # noqa: E501
137+
'created_at': 'created_at', # noqa: E501
138+
'updated_at': 'updated_at', # 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-
'id', # noqa: E501
146-
'created_at', # noqa: E501
147-
'updated_at', # noqa: E501
148-
'user_permission', # noqa: E501
149145
'type', # noqa: E501
150-
'nature', # noqa: E501
151146
'created_by', # noqa: E501
147+
'user_permission', # noqa: E501
152148
'groups_permissions', # noqa: E501
149+
'nature', # noqa: E501
150+
'id', # noqa: E501
151+
'created_at', # noqa: E501
152+
'updated_at', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

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

234-
self.id = id
235-
self.created_at = created_at
236-
self.name = name
237-
self.updated_at = updated_at
238-
self.user_permission = user_permission
239234
self.type = type
240-
self.nature = nature
241235
self.created_by = created_by
236+
self.user_permission = user_permission
242237
self.groups_permissions = groups_permissions
238+
self.name = name
239+
self.nature = nature
240+
self.id = id
241+
self.created_at = created_at
242+
self.updated_at = updated_at
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
@@ -1299,14 +1299,14 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
12991299
id = 1 # int | A unique integer value identifying this project.
13001300
write_folder_request = [
13011301
WriteFolderRequest(
1302-
parent_id=1,
13031302
name="name_example",
13041303
default_permission=1,
1304+
parent_id=1,
13051305
children=[
13061306
WriteFolder(
1307-
parent_id=1,
13081307
name="name_example",
13091308
default_permission=1,
1309+
parent_id=1,
13101310
children=None,
13111311
),
13121312
],
@@ -1363,7 +1363,7 @@ Name | Type | Description | Notes
13631363
13641364
Create a document
13651365

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

13681368
### Example
13691369

docs/Document.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**history_count** | **int, none_type** | Number of previous versions | [readonly]
2323
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
2424
**office_preview** | **str, none_type** | Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt | [readonly]
25+
**path** | **str** | | [readonly]
2526
**parent_id** | **int, none_type** | | [optional]
2627
**file_name** | **str** | Full name of the file | [optional]
2728
**description** | **str, none_type** | Description of the file | [optional]

docs/WriteFolder.md

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

0 commit comments

Comments
 (0)