Skip to content

Commit c1afe9e

Browse files
committed
PATCH: reorder document history
1 parent 24aa746 commit c1afe9e

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

bimdata_api_client/model/document.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ class Document(ModelNormal):
6262
"""
6363

6464
allowed_values = {
65+
('model_type',): {
66+
'None': None,
67+
'IFC': "IFC",
68+
'DWG': "DWG",
69+
'DXF': "DXF",
70+
'GLTF': "GLTF",
71+
'PDF': "PDF",
72+
'JPEG': "JPEG",
73+
'PNG': "PNG",
74+
'OBJ': "OBJ",
75+
'DAE': "DAE",
76+
'BFX': "BFX",
77+
'NULL': "null",
78+
},
6579
('user_permission',): {
6680
'1': 1,
6781
'50': 50,
@@ -114,6 +128,7 @@ def openapi_types():
114128
'created_at': (datetime,), # noqa: E501
115129
'updated_at': (datetime,), # noqa: E501
116130
'model_id': (int, none_type,), # noqa: E501
131+
'model_type': (str, none_type,), # noqa: E501
117132
'ifc_id': (int, none_type,), # noqa: E501
118133
'user_permission': (int,), # noqa: E501
119134
'parent_id': (int, none_type,), # noqa: E501
@@ -137,6 +152,7 @@ def discriminator():
137152
'created_at': 'created_at', # noqa: E501
138153
'updated_at': 'updated_at', # noqa: E501
139154
'model_id': 'model_id', # noqa: E501
155+
'model_type': 'model_type', # noqa: E501
140156
'ifc_id': 'ifc_id', # noqa: E501
141157
'user_permission': 'user_permission', # noqa: E501
142158
'parent_id': 'parent_id', # noqa: E501
@@ -153,6 +169,7 @@ def discriminator():
153169
'created_at', # noqa: E501
154170
'updated_at', # noqa: E501
155171
'model_id', # noqa: E501
172+
'model_type', # noqa: E501
156173
'ifc_id', # noqa: E501
157174
'user_permission', # noqa: E501
158175
}
@@ -161,7 +178,7 @@ def discriminator():
161178

162179
@classmethod
163180
@convert_js_args_to_python_args
164-
def _from_openapi_data(cls, id, created_by, project, name, file, tags, created_at, updated_at, model_id, ifc_id, user_permission, *args, **kwargs): # noqa: E501
181+
def _from_openapi_data(cls, id, created_by, project, name, file, tags, created_at, updated_at, model_id, model_type, ifc_id, user_permission, *args, **kwargs): # noqa: E501
165182
"""Document - a model defined in OpenAPI
166183
167184
Args:
@@ -174,6 +191,7 @@ def _from_openapi_data(cls, id, created_by, project, name, file, tags, created_a
174191
created_at (datetime): Creation date
175192
updated_at (datetime): Date of the last update
176193
model_id (int, none_type):
194+
model_type (str, none_type): Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, DAE, BFX
177195
ifc_id (int, none_type): DEPRECATED: Use 'model_id' instead.
178196
user_permission (int): Aggregate of group user permissions and folder default permission
179197
@@ -248,6 +266,7 @@ def _from_openapi_data(cls, id, created_by, project, name, file, tags, created_a
248266
self.created_at = created_at
249267
self.updated_at = updated_at
250268
self.model_id = model_id
269+
self.model_type = model_type
251270
self.ifc_id = ifc_id
252271
self.user_permission = user_permission
253272
for var_name, var_value in kwargs.items():

docs/Document.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**created_at** | **datetime** | Creation date | [readonly]
1414
**updated_at** | **datetime** | Date of the last update | [readonly]
1515
**model_id** | **int, none_type** | | [readonly]
16+
**model_type** | **str, none_type** | Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, DAE, BFX | [readonly]
1617
**ifc_id** | **int, none_type** | DEPRECATED: Use 'model_id' instead. | [readonly]
1718
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
1819
**parent_id** | **int, none_type** | | [optional]

0 commit comments

Comments
 (0)