Skip to content

Commit af35c6e

Browse files
committed
MINOR: add fragments_file (#980)
* add fragments_file * add test * add fragments to demo * fix typos * add fragments worker to ifc process graph * fix demo typo
1 parent 8858f4e commit af35c6e

18 files changed

+75
-49
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9333,7 +9333,7 @@ def create_document(
93339333
):
93349334
"""Create a document # noqa: E501
93359335

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

bimdata_api_client/api/model_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11787,6 +11787,7 @@ def __init__(self, api_client=None):
1178711787
'gltf_file',
1178811788
'preview_file',
1178911789
'xkt_file',
11790+
'fragments_file',
1179011791
'binary_2d_file',
1179111792
],
1179211793
'required': [
@@ -11801,6 +11802,7 @@ def __init__(self, api_client=None):
1180111802
'gltf_file',
1180211803
'preview_file',
1180311804
'xkt_file',
11805+
'fragments_file',
1180411806
'binary_2d_file',
1180511807
],
1180611808
'enum': [
@@ -11832,6 +11834,8 @@ def __init__(self, api_client=None):
1183211834
(file_type, none_type,),
1183311835
'xkt_file':
1183411836
(file_type, none_type,),
11837+
'fragments_file':
11838+
(file_type, none_type,),
1183511839
'binary_2d_file':
1183611840
(file_type, none_type,),
1183711841
},
@@ -11845,6 +11849,7 @@ def __init__(self, api_client=None):
1184511849
'gltf_file': 'gltf_file',
1184611850
'preview_file': 'preview_file',
1184711851
'xkt_file': 'xkt_file',
11852+
'fragments_file': 'fragments_file',
1184811853
'binary_2d_file': 'binary_2d_file',
1184911854
},
1185011855
'location_map': {
@@ -11857,6 +11862,7 @@ def __init__(self, api_client=None):
1185711862
'gltf_file': 'form',
1185811863
'preview_file': 'form',
1185911864
'xkt_file': 'form',
11865+
'fragments_file': 'form',
1186011866
'binary_2d_file': 'form',
1186111867
},
1186211868
'collection_format_map': {
@@ -27237,6 +27243,7 @@ def update_model_files(
2723727243
gltf_file (file_type, none_type): [optional]
2723827244
preview_file (file_type, none_type): [optional]
2723927245
xkt_file (file_type, none_type): DEPRECATED. xkt file url is now in xkt_files field with its version number. [optional]
27246+
fragments_file (file_type, none_type): [optional]
2724027247
binary_2d_file (file_type, none_type): [optional]
2724127248
_return_http_data_only (bool): response data without head status
2724227249
code and headers. Default is True.

bimdata_api_client/model/document_text.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class DocumentText(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ITALIAN': "italian",
62-
'FRENCH': "french",
6361
'SPANISH': "spanish",
64-
'ENGLISH': "english",
6562
'GERMAN': "german",
63+
'ENGLISH': "english",
64+
'FRENCH': "french",
65+
'ITALIAN': "italian",
6666
'NULL': "null",
6767
},
6868
}
@@ -153,7 +153,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
153153
through its discriminator because we passed in
154154
_visited_composed_classes = (Animal,)
155155
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
156-
language (str, none_type): * `italian` - italian * `french` - french * `spanish` - spanish * `english` - english * `german` - german. [optional] # noqa: E501
156+
language (str, none_type): * `spanish` - spanish * `german` - german * `english` - english * `french` - french * `italian` - italian. [optional] # noqa: E501
157157
"""
158158

159159
_check_type = kwargs.pop('_check_type', True)
@@ -237,7 +237,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
237237
through its discriminator because we passed in
238238
_visited_composed_classes = (Animal,)
239239
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
240-
language (str, none_type): * `italian` - italian * `french` - french * `spanish` - spanish * `english` - english * `german` - german. [optional] # noqa: E501
240+
language (str, none_type): * `spanish` - spanish * `german` - german * `english` - english * `french` - french * `italian` - italian. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def openapi_types():
150150
'viewer_360_file': (str, none_type,), # noqa: E501
151151
'xkt_file': (str, none_type,), # noqa: E501
152152
'xkt_files': ([XktFile],), # noqa: E501
153+
'fragments_file': (str, none_type,), # noqa: E501
153154
'binary_2d_file': (str, none_type,), # noqa: E501
154155
'project_id': (int, none_type,), # noqa: E501
155156
'errors': ([str], none_type,), # noqa: E501
@@ -192,6 +193,7 @@ def discriminator():
192193
'viewer_360_file': 'viewer_360_file', # noqa: E501
193194
'xkt_file': 'xkt_file', # noqa: E501
194195
'xkt_files': 'xkt_files', # noqa: E501
196+
'fragments_file': 'fragments_file', # noqa: E501
195197
'binary_2d_file': 'binary_2d_file', # noqa: E501
196198
'project_id': 'project_id', # noqa: E501
197199
'errors': 'errors', # noqa: E501
@@ -229,6 +231,7 @@ def discriminator():
229231
'viewer_360_file', # noqa: E501
230232
'xkt_file', # noqa: E501
231233
'xkt_files', # noqa: E501
234+
'fragments_file', # noqa: E501
232235
'binary_2d_file', # noqa: E501
233236
'project_id', # noqa: E501
234237
'errors', # noqa: E501
@@ -244,7 +247,7 @@ def discriminator():
244247

245248
@classmethod
246249
@convert_js_args_to_python_args
247-
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, mask_2d, transform, children, *args, **kwargs): # noqa: E501
250+
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, fragments_file, binary_2d_file, project_id, errors, warnings, parent_id, page_number, mask_2d, transform, children, *args, **kwargs): # noqa: E501
248251
"""Model - a model defined in OpenAPI
249252
250253
Args:
@@ -264,6 +267,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
264267
viewer_360_file (str, none_type): DEPRECATED: Use 'preview_file' instead.
265268
xkt_file (str, none_type): DEPRECATED: Use 'xkt_files' instead. This field only respond with xkt v6 files
266269
xkt_files ([XktFile]):
270+
fragments_file (str, none_type):
267271
binary_2d_file (str, none_type):
268272
project_id (int, none_type):
269273
errors ([str], none_type): List of errors that happened during IFC processing
@@ -357,6 +361,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
357361
self.viewer_360_file = viewer_360_file
358362
self.xkt_file = xkt_file
359363
self.xkt_files = xkt_files
364+
self.fragments_file = fragments_file
360365
self.binary_2d_file = binary_2d_file
361366
self.project_id = project_id
362367
self.errors = errors

bimdata_api_client/model/model_files.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def openapi_types():
8888
'gltf_file': (str, none_type,), # noqa: E501
8989
'preview_file': (str, none_type,), # noqa: E501
9090
'xkt_file': (str, none_type,), # noqa: E501
91+
'fragments_file': (str, none_type,), # noqa: E501
9192
'binary_2d_file': (str, none_type,), # noqa: E501
9293
}
9394

@@ -103,6 +104,7 @@ def discriminator():
103104
'gltf_file': 'gltf_file', # noqa: E501
104105
'preview_file': 'preview_file', # noqa: E501
105106
'xkt_file': 'xkt_file', # noqa: E501
107+
'fragments_file': 'fragments_file', # noqa: E501
106108
'binary_2d_file': 'binary_2d_file', # noqa: E501
107109
}
108110

@@ -153,6 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
153155
gltf_file (str, none_type): [optional] # noqa: E501
154156
preview_file (str, none_type): [optional] # noqa: E501
155157
xkt_file (str, none_type): DEPRECATED. xkt file url is now in xkt_files field with its version number. [optional] # noqa: E501
158+
fragments_file (str, none_type): [optional] # noqa: E501
156159
binary_2d_file (str, none_type): [optional] # noqa: E501
157160
"""
158161

@@ -241,6 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
241244
gltf_file (str, none_type): [optional] # noqa: E501
242245
preview_file (str, none_type): [optional] # noqa: E501
243246
xkt_file (str, none_type): DEPRECATED. xkt file url is now in xkt_files field with its version number. [optional] # noqa: E501
247+
fragments_file (str, none_type): [optional] # noqa: E501
244248
binary_2d_file (str, none_type): [optional] # noqa: E501
245249
"""
246250

bimdata_api_client/model/model_serializer_without_children.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def openapi_types():
148148
'viewer_360_file': (str, none_type,), # noqa: E501
149149
'xkt_file': (str, none_type,), # noqa: E501
150150
'xkt_files': ([XktFile],), # noqa: E501
151+
'fragments_file': (str, none_type,), # noqa: E501
151152
'binary_2d_file': (str, none_type,), # noqa: E501
152153
'project_id': (int, none_type,), # noqa: E501
153154
'errors': ([str], none_type,), # noqa: E501
@@ -189,6 +190,7 @@ def discriminator():
189190
'viewer_360_file': 'viewer_360_file', # noqa: E501
190191
'xkt_file': 'xkt_file', # noqa: E501
191192
'xkt_files': 'xkt_files', # noqa: E501
193+
'fragments_file': 'fragments_file', # noqa: E501
192194
'binary_2d_file': 'binary_2d_file', # noqa: E501
193195
'project_id': 'project_id', # noqa: E501
194196
'errors': 'errors', # noqa: E501
@@ -225,6 +227,7 @@ def discriminator():
225227
'viewer_360_file', # noqa: E501
226228
'xkt_file', # noqa: E501
227229
'xkt_files', # noqa: E501
230+
'fragments_file', # noqa: E501
228231
'binary_2d_file', # noqa: E501
229232
'project_id', # noqa: E501
230233
'errors', # noqa: E501
@@ -239,7 +242,7 @@ def discriminator():
239242

240243
@classmethod
241244
@convert_js_args_to_python_args
242-
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, mask_2d, transform, *args, **kwargs): # noqa: E501
245+
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, fragments_file, binary_2d_file, project_id, errors, warnings, parent_id, page_number, mask_2d, transform, *args, **kwargs): # noqa: E501
243246
"""ModelSerializerWithoutChildren - a model defined in OpenAPI
244247
245248
Args:
@@ -259,6 +262,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
259262
viewer_360_file (str, none_type): DEPRECATED: Use 'preview_file' instead.
260263
xkt_file (str, none_type): DEPRECATED: Use 'xkt_files' instead. This field only respond with xkt v6 files
261264
xkt_files ([XktFile]):
265+
fragments_file (str, none_type):
262266
binary_2d_file (str, none_type):
263267
project_id (int, none_type):
264268
errors ([str], none_type): List of errors that happened during IFC processing
@@ -351,6 +355,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
351355
self.viewer_360_file = viewer_360_file
352356
self.xkt_file = xkt_file
353357
self.xkt_files = xkt_files
358+
self.fragments_file = fragments_file
354359
self.binary_2d_file = binary_2d_file
355360
self.project_id = project_id
356361
self.errors = errors

bimdata_api_client/model/patched_document_text_request.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class PatchedDocumentTextRequest(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ITALIAN': "italian",
62-
'FRENCH': "french",
6361
'SPANISH': "spanish",
64-
'ENGLISH': "english",
6562
'GERMAN': "german",
63+
'ENGLISH': "english",
64+
'FRENCH': "french",
65+
'ITALIAN': "italian",
6666
'NULL': "null",
6767
},
6868
}
@@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
147147
through its discriminator because we passed in
148148
_visited_composed_classes = (Animal,)
149149
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
150-
language (str, none_type): * `italian` - italian * `french` - french * `spanish` - spanish * `english` - english * `german` - german. [optional] # noqa: E501
150+
language (str, none_type): * `spanish` - spanish * `german` - german * `english` - english * `french` - french * `italian` - italian. [optional] # noqa: E501
151151
"""
152152

153153
_check_type = kwargs.pop('_check_type', True)
@@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
230230
through its discriminator because we passed in
231231
_visited_composed_classes = (Animal,)
232232
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
233-
language (str, none_type): * `italian` - italian * `french` - french * `spanish` - spanish * `english` - english * `german` - german. [optional] # noqa: E501
233+
language (str, none_type): * `spanish` - spanish * `german` - german * `english` - english * `french` - french * `italian` - italian. [optional] # noqa: E501
234234
"""
235235

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

0 commit comments

Comments
 (0)