Skip to content

Commit af4f524

Browse files
committed
PATCH: fix model_type notification
1 parent 000bfb3 commit af4f524

20 files changed

+64
-60
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8940,7 +8940,7 @@ def create_document(
89408940
):
89418941
"""Create a document # noqa: E501
89428942

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

bimdata_api_client/api/model_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8203,6 +8203,7 @@ def __init__(self, api_client=None):
82038203
"OBJ": "OBJ",
82048204
"PDF": "PDF",
82058205
"PHOTOSPHERE": "PHOTOSPHERE",
8206+
"PHOTOSPHERE": "PHOTOSPHERE",
82068207
"PHOTOSPHERE_BUILDING": "PHOTOSPHERE_BUILDING",
82078208
"PNG": "PNG",
82088209
"POINT_CLOUD": "POINT_CLOUD"
@@ -22894,7 +22895,7 @@ def get_models(
2289422895
Keyword Args:
2289522896
source (str): * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED. [optional]
2289622897
status ([str]): * `C` - completed * `D` - deleted * `P` - pending * `W` - waiting * `I` - in process * `E` - errored * `X` - won't fix. [optional]
22897-
type ([str]): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `METABUILDING` - METABUILDING * `PHOTOSPHERE` - PHOTOSPHERE * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING. [optional]
22898+
type ([str]): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `PHOTOSPHERE` - PHOTOSPHERE * `METABUILDING` - METABUILDING * `PHOTOSPHERE` - PHOTOSPHERE * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING. [optional]
2289822899
_return_http_data_only (bool): response data without head status
2289922900
code and headers. Default is True.
2290022901
_preload_content (bool): if False, the urllib3.HTTPResponse object

bimdata_api_client/model/document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class Document(ModelNormal):
7575
'PNG': "PNG",
7676
'OBJ': "OBJ",
7777
'POINT_CLOUD': "POINT_CLOUD",
78+
'PHOTOSPHERE': "PHOTOSPHERE",
7879
'NULL': "null",
7980
},
8081
('user_permission',): {
@@ -213,7 +214,7 @@ def _from_openapi_data(cls, id, created_by, project, name, file, file_type, size
213214
created_at (datetime): Creation date
214215
updated_at (datetime): Date of the last update
215216
model_id (int, none_type):
216-
model_type (str, none_type): Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD
217+
model_type (str, none_type): Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD, PHOTOSPHERE
217218
ifc_id (int, none_type): DEPRECATED: Use 'model_id' instead.
218219
head_id (int, none_type): Document id of head version
219220
is_head_version (bool): Document is a head of version or is owned by another document

bimdata_api_client/model/document_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class DocumentText(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ITALIAN': "italian",
6261
'GERMAN': "german",
6362
'ENGLISH': "english",
6463
'SPANISH': "spanish",
64+
'ITALIAN': "italian",
6565
'FRENCH': "french",
6666
'NULL': "null",
6767
},
@@ -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 * `german` - german * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
156+
language (str, none_type): * `german` - german * `english` - english * `spanish` - spanish * `italian` - italian * `french` - french. [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 * `german` - german * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
240+
language (str, none_type): * `german` - german * `english` - english * `spanish` - spanish * `italian` - italian * `french` - french. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class Model(ModelNormal):
8080
'PNG': "PNG",
8181
'OBJ': "OBJ",
8282
'POINT_CLOUD': "POINT_CLOUD",
83-
'METABUILDING': "METABUILDING",
8483
'PHOTOSPHERE': "PHOTOSPHERE",
84+
'METABUILDING': "METABUILDING",
8585
'PHOTOSPHERE_BUILDING': "PHOTOSPHERE_BUILDING",
8686
},
8787
('source',): {
@@ -249,7 +249,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
249249
250250
Args:
251251
id (int):
252-
type (str): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `METABUILDING` - METABUILDING * `PHOTOSPHERE` - PHOTOSPHERE * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
252+
type (str): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `PHOTOSPHERE` - PHOTOSPHERE * `METABUILDING` - METABUILDING * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
253253
creator (bool, date, datetime, dict, float, int, list, str, none_type):
254254
status (str):
255255
created_at (datetime):

bimdata_api_client/model/model_serializer_without_children.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class ModelSerializerWithoutChildren(ModelNormal):
7878
'PNG': "PNG",
7979
'OBJ': "OBJ",
8080
'POINT_CLOUD': "POINT_CLOUD",
81-
'METABUILDING': "METABUILDING",
8281
'PHOTOSPHERE': "PHOTOSPHERE",
82+
'METABUILDING': "METABUILDING",
8383
'PHOTOSPHERE_BUILDING': "PHOTOSPHERE_BUILDING",
8484
},
8585
('source',): {
@@ -244,7 +244,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
244244
245245
Args:
246246
id (int):
247-
type (str): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `METABUILDING` - METABUILDING * `PHOTOSPHERE` - PHOTOSPHERE * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
247+
type (str): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `PHOTOSPHERE` - PHOTOSPHERE * `METABUILDING` - METABUILDING * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
248248
creator (bool, date, datetime, dict, float, int, list, str, none_type):
249249
status (str):
250250
created_at (datetime):

bimdata_api_client/model/patched_document_text_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class PatchedDocumentTextRequest(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ITALIAN': "italian",
6261
'GERMAN': "german",
6362
'ENGLISH': "english",
6463
'SPANISH': "spanish",
64+
'ITALIAN': "italian",
6565
'FRENCH': "french",
6666
'NULL': "null",
6767
},
@@ -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 * `german` - german * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
150+
language (str, none_type): * `german` - german * `english` - english * `spanish` - spanish * `italian` - italian * `french` - french. [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 * `german` - german * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
233+
language (str, none_type): * `german` - german * `english` - english * `spanish` - spanish * `italian` - italian * `french` - french. [optional] # noqa: E501
234234
"""
235235

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

bimdata_api_client/model/recursive_folder_children.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class RecursiveFolderChildren(ModelNormal):
8383
'PNG': "PNG",
8484
'OBJ': "OBJ",
8585
'POINT_CLOUD': "POINT_CLOUD",
86+
'PHOTOSPHERE': "PHOTOSPHERE",
8687
'NULL': "null",
8788
},
8889
('default_permission',): {
@@ -203,7 +204,7 @@ def _from_openapi_data(cls, id, parent_id, type, nature, model_type, name, creat
203204
parent_id (int, none_type):
204205
type (str): DEPRECATED: Use 'nature' instead. Values can be 'Folder', 'Document' or 'Ifc'. It is usefull to parse the tree and discriminate folders and files
205206
nature (str): Values can be 'Folder', 'Document' or 'Model'. It is usefull to parse the tree and discriminate folders and files
206-
model_type (str, none_type): Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD
207+
model_type (str, none_type): Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD, PHOTOSPHERE
207208
name (str):
208209
created_at (datetime):
209210
updated_at (datetime):

bimdata_api_client/model/write_folder.py

Lines changed: 25 additions & 24 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-
'id': (int,), # noqa: E501
112110
'name': (str,), # noqa: E501
111+
'created_at': (datetime,), # noqa: E501
112+
'user_permission': (int,), # noqa: E501
113+
'id': (int,), # noqa: E501
113114
'type': (str,), # noqa: E501
115+
'nature': (str,), # noqa: E501
114116
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
115-
'user_permission': (int,), # noqa: E501
116117
'groups_permissions': ([GroupFolderRead],), # noqa: E501
117118
'updated_at': (datetime,), # noqa: E501
118-
'created_at': (datetime,), # noqa: E501
119-
'parent_id': (int, 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-
'id': 'id', # noqa: E501
132130
'name': 'name', # noqa: E501
131+
'created_at': 'created_at', # noqa: E501
132+
'user_permission': 'user_permission', # noqa: E501
133+
'id': 'id', # noqa: E501
133134
'type': 'type', # noqa: E501
135+
'nature': 'nature', # noqa: E501
134136
'created_by': 'created_by', # noqa: E501
135-
'user_permission': 'user_permission', # noqa: E501
136137
'groups_permissions': 'groups_permissions', # noqa: E501
137138
'updated_at': 'updated_at', # noqa: E501
138-
'created_at': 'created_at', # noqa: E501
139-
'parent_id': 'parent_id', # 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
145+
'created_at', # noqa: E501
146+
'user_permission', # noqa: E501
146147
'id', # noqa: E501
147148
'type', # noqa: E501
149+
'nature', # noqa: E501
148150
'created_by', # noqa: E501
149-
'user_permission', # noqa: E501
150151
'groups_permissions', # noqa: E501
151152
'updated_at', # noqa: E501
152-
'created_at', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

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

234-
self.nature = nature
235-
self.id = id
236234
self.name = name
235+
self.created_at = created_at
236+
self.user_permission = user_permission
237+
self.id = id
237238
self.type = type
239+
self.nature = nature
238240
self.created_by = created_by
239-
self.user_permission = user_permission
240241
self.groups_permissions = groups_permissions
241242
self.updated_at = updated_at
242-
self.created_at = created_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 \
@@ -263,6 +263,7 @@ def _from_openapi_data(cls, nature, id, name, type, created_by, user_permission,
263263
def __init__(self, name, *args, **kwargs): # noqa: E501
264264
"""WriteFolder - a model defined in OpenAPI
265265
266+
Args:
266267
name (str): Name of the folder
267268
Keyword Args:
268269
_check_type (bool): if True, values for parameters in openapi_types
@@ -295,8 +296,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295296
Animal class but this time we won't travel
296297
through its discriminator because we passed in
297298
_visited_composed_classes = (Animal,)
298-
parent_id (int, none_type): [optional] # noqa: E501
299299
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
300+
parent_id (int, none_type): [optional] # noqa: E501
300301
children ([WriteFolder], none_type): [optional] # noqa: E501
301302
"""
302303

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

0 commit comments

Comments
 (0)