Skip to content

Commit 7ec69f0

Browse files
committed
PATCH: add parent_id field in model
1 parent a7bc16d commit 7ec69f0

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8303,7 +8303,7 @@ def create_document(
83038303
):
83048304
"""Create a document # noqa: E501
83058305

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

bimdata_api_client/model/model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def openapi_types():
145145
'project_id': (int, none_type,), # noqa: E501
146146
'errors': ([str], none_type,), # noqa: E501
147147
'warnings': ([str], none_type,), # noqa: E501
148+
'parent_id': (int, none_type,), # noqa: E501
148149
'page_number': (int, none_type,), # noqa: E501
149150
'children': ([ModelSerializerWithoutChildren],), # noqa: E501
150151
'name': (str, none_type,), # noqa: E501
@@ -183,6 +184,7 @@ def discriminator():
183184
'project_id': 'project_id', # noqa: E501
184185
'errors': 'errors', # noqa: E501
185186
'warnings': 'warnings', # noqa: E501
187+
'parent_id': 'parent_id', # noqa: E501
186188
'page_number': 'page_number', # noqa: E501
187189
'children': 'children', # noqa: E501
188190
'name': 'name', # noqa: E501
@@ -216,6 +218,7 @@ def discriminator():
216218
'project_id', # noqa: E501
217219
'errors', # noqa: E501
218220
'warnings', # noqa: E501
221+
'parent_id', # noqa: E501
219222
'page_number', # noqa: E501
220223
'children', # noqa: E501
221224
}
@@ -224,7 +227,7 @@ def discriminator():
224227

225228
@classmethod
226229
@convert_js_args_to_python_args
227-
def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, document_id, document, structure_file, systems_file, map_file, gltf_file, preview_file, viewer_360_file, xkt_file, xkt_files, binary_2d_file, project_id, errors, warnings, page_number, children, *args, **kwargs): # noqa: E501
230+
def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, document_id, document, structure_file, systems_file, map_file, gltf_file, preview_file, viewer_360_file, xkt_file, xkt_files, binary_2d_file, project_id, errors, warnings, parent_id, page_number, children, *args, **kwargs): # noqa: E501
228231
"""Model - a model defined in OpenAPI
229232
230233
Args:
@@ -248,6 +251,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
248251
project_id (int, none_type):
249252
errors ([str], none_type): List of errors that happened during IFC processing
250253
warnings ([str], none_type): List of warnings that happened during IFC processing
254+
parent_id (int, none_type): The first page of the pdf
251255
page_number (int, none_type): The page number of the related pdf
252256
children ([ModelSerializerWithoutChildren]): Contains additional pages of a pdf
253257
@@ -337,6 +341,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
337341
self.project_id = project_id
338342
self.errors = errors
339343
self.warnings = warnings
344+
self.parent_id = parent_id
340345
self.page_number = page_number
341346
self.children = children
342347
for var_name, var_value in kwargs.items():

bimdata_api_client/model/model_serializer_without_children.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def openapi_types():
143143
'project_id': (int, none_type,), # noqa: E501
144144
'errors': ([str], none_type,), # noqa: E501
145145
'warnings': ([str], none_type,), # noqa: E501
146+
'parent_id': (int, none_type,), # noqa: E501
146147
'page_number': (int, none_type,), # noqa: E501
147148
'name': (str, none_type,), # noqa: E501
148149
'source': (str,), # noqa: E501
@@ -180,6 +181,7 @@ def discriminator():
180181
'project_id': 'project_id', # noqa: E501
181182
'errors': 'errors', # noqa: E501
182183
'warnings': 'warnings', # noqa: E501
184+
'parent_id': 'parent_id', # noqa: E501
183185
'page_number': 'page_number', # noqa: E501
184186
'name': 'name', # noqa: E501
185187
'source': 'source', # noqa: E501
@@ -212,14 +214,15 @@ def discriminator():
212214
'project_id', # noqa: E501
213215
'errors', # noqa: E501
214216
'warnings', # noqa: E501
217+
'parent_id', # noqa: E501
215218
'page_number', # noqa: E501
216219
}
217220

218221
_composed_schemas = {}
219222

220223
@classmethod
221224
@convert_js_args_to_python_args
222-
def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, document_id, document, structure_file, systems_file, map_file, gltf_file, preview_file, viewer_360_file, xkt_file, xkt_files, binary_2d_file, project_id, errors, warnings, page_number, *args, **kwargs): # noqa: E501
225+
def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, document_id, document, structure_file, systems_file, map_file, gltf_file, preview_file, viewer_360_file, xkt_file, xkt_files, binary_2d_file, project_id, errors, warnings, parent_id, page_number, *args, **kwargs): # noqa: E501
223226
"""ModelSerializerWithoutChildren - a model defined in OpenAPI
224227
225228
Args:
@@ -243,6 +246,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
243246
project_id (int, none_type):
244247
errors ([str], none_type): List of errors that happened during IFC processing
245248
warnings ([str], none_type): List of warnings that happened during IFC processing
249+
parent_id (int, none_type): The first page of the pdf
246250
page_number (int, none_type): The page number of the related pdf
247251
248252
Keyword Args:
@@ -331,6 +335,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
331335
self.project_id = project_id
332336
self.errors = errors
333337
self.warnings = warnings
338+
self.parent_id = parent_id
334339
self.page_number = page_number
335340
for var_name, var_value in kwargs.items():
336341
if var_name not in self.attribute_map and \

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ Name | Type | Description | Notes
15261526
15271527
Create a document
15281528

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

15311531
### Example
15321532

docs/Model.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
2424
**project_id** | **int, none_type** | | [readonly]
2525
**errors** | **[str], none_type** | List of errors that happened during IFC processing | [readonly]
2626
**warnings** | **[str], none_type** | List of warnings that happened during IFC processing | [readonly]
27+
**parent_id** | **int, none_type** | The first page of the pdf | [readonly]
2728
**page_number** | **int, none_type** | The page number of the related pdf | [readonly]
2829
**children** | [**[ModelSerializerWithoutChildren]**](ModelSerializerWithoutChildren.md) | Contains additional pages of a pdf | [readonly]
2930
**name** | **str, none_type** | | [optional]

docs/ModelSerializerWithoutChildren.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
2424
**project_id** | **int, none_type** | | [readonly]
2525
**errors** | **[str], none_type** | List of errors that happened during IFC processing | [readonly]
2626
**warnings** | **[str], none_type** | List of warnings that happened during IFC processing | [readonly]
27+
**parent_id** | **int, none_type** | The first page of the pdf | [readonly]
2728
**page_number** | **int, none_type** | The page number of the related pdf | [readonly]
2829
**name** | **str, none_type** | | [optional]
2930
**source** | **str** | * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED | [optional]

0 commit comments

Comments
 (0)