Skip to content

Commit 71dfe01

Browse files
committed
MINOR: add params to ifc/export route
1 parent 5940bd5 commit 71dfe01

File tree

8 files changed

+375
-20
lines changed

8 files changed

+375
-20
lines changed

bimdata_api_client/api/identity_provider_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def accept_invitation_with_http_info(self, id, **kwargs): # noqa: E501
144144
def delete_user(self, data, **kwargs): # noqa: E501
145145
"""Delete user form BIMData # noqa: E501
146146
147-
Delete the user and all clouds where the user is alone # noqa: E501
147+
NON HANDLED EDGE CASE: The user has been created on the identity provider (exists on the IDP) The user (or an app) has requested an access token (exists on keycloak) But the user has never used the API (doesn't exist on the API) So the API can't delete the user and can't forward the call to keycloak so a zombie user will stay on keycloak # noqa: E501
148148
This method makes a synchronous HTTP request by default. To make an
149149
asynchronous HTTP request, please pass async_req=True
150150
>>> thread = api.delete_user(data, async_req=True)
@@ -169,7 +169,7 @@ def delete_user(self, data, **kwargs): # noqa: E501
169169
def delete_user_with_http_info(self, data, **kwargs): # noqa: E501
170170
"""Delete user form BIMData # noqa: E501
171171
172-
Delete the user and all clouds where the user is alone # noqa: E501
172+
NON HANDLED EDGE CASE: The user has been created on the identity provider (exists on the IDP) The user (or an app) has requested an access token (exists on keycloak) But the user has never used the API (doesn't exist on the API) So the API can't delete the user and can't forward the call to keycloak so a zombie user will stay on keycloak # noqa: E501
173173
This method makes a synchronous HTTP request by default. To make an
174174
asynchronous HTTP request, please pass async_req=True
175175
>>> thread = api.delete_user_with_http_info(data, async_req=True)

bimdata_api_client/api/ifc_api.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5644,7 +5644,7 @@ def delete_zone_space_with_http_info(self, cloud_pk, id, ifc_pk, project_pk, zon
56445644
def export_ifc(self, cloud_pk, id, project_pk, data, **kwargs): # noqa: E501
56455645
"""Export IFC # noqa: E501
56465646

5647-
Export IFC as requested in parameters. This call doesn't return the IFC. When the export is finished, a new IFC file with '_export_DD_MM_YYYY' suffix will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write # noqa: E501
5647+
Export IFC as requested in parameters. When the export is finished, a new IFC file with will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write # noqa: E501
56485648
This method makes a synchronous HTTP request by default. To make an
56495649
asynchronous HTTP request, please pass async_req=True
56505650
>>> thread = api.export_ifc(cloud_pk, id, project_pk, data, async_req=True)
@@ -5672,7 +5672,7 @@ def export_ifc(self, cloud_pk, id, project_pk, data, **kwargs): # noqa: E501
56725672
def export_ifc_with_http_info(self, cloud_pk, id, project_pk, data, **kwargs): # noqa: E501
56735673
"""Export IFC # noqa: E501
56745674

5675-
Export IFC as requested in parameters. This call doesn't return the IFC. When the export is finished, a new IFC file with '_export_DD_MM_YYYY' suffix will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write # noqa: E501
5675+
Export IFC as requested in parameters. When the export is finished, a new IFC file with will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write # noqa: E501
56765676
This method makes a synchronous HTTP request by default. To make an
56775677
asynchronous HTTP request, please pass async_req=True
56785678
>>> thread = api.export_ifc_with_http_info(cloud_pk, id, project_pk, data, async_req=True)
@@ -11250,6 +11250,7 @@ def get_ifcs(self, cloud_pk, project_pk, **kwargs): # noqa: E501
1125011250
:param str cloud_pk: (required)
1125111251
:param str project_pk: (required)
1125211252
:param str status: Filter the returned list by status
11253+
:param str source: Filter the returned list by source
1125311254
:param _preload_content: if False, the urllib3.HTTPResponse object will
1125411255
be returned without reading/decoding response
1125511256
data. Default is True.
@@ -11277,6 +11278,7 @@ def get_ifcs_with_http_info(self, cloud_pk, project_pk, **kwargs): # noqa: E501
1127711278
:param str cloud_pk: (required)
1127811279
:param str project_pk: (required)
1127911280
:param str status: Filter the returned list by status
11281+
:param str source: Filter the returned list by source
1128011282
:param _return_http_data_only: response data without head status code
1128111283
and headers
1128211284
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -11293,7 +11295,7 @@ def get_ifcs_with_http_info(self, cloud_pk, project_pk, **kwargs): # noqa: E501
1129311295

1129411296
local_var_params = locals()
1129511297

11296-
all_params = ['cloud_pk', 'project_pk', 'status'] # noqa: E501
11298+
all_params = ['cloud_pk', 'project_pk', 'status', 'source'] # noqa: E501
1129711299
all_params.append('async_req')
1129811300
all_params.append('_return_http_data_only')
1129911301
all_params.append('_preload_content')
@@ -11327,6 +11329,8 @@ def get_ifcs_with_http_info(self, cloud_pk, project_pk, **kwargs): # noqa: E501
1132711329
query_params = []
1132811330
if 'status' in local_var_params:
1132911331
query_params.append(('status', local_var_params['status'])) # noqa: E501
11332+
if 'source' in local_var_params:
11333+
query_params.append(('source', local_var_params['source'])) # noqa: E501
1133011334

1133111335
header_params = {}
1133211336

bimdata_api_client/models/ifc.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Ifc(object):
3636
'name': 'str',
3737
'creator': 'User',
3838
'status': 'str',
39+
'source': 'str',
3940
'created_at': 'datetime',
4041
'updated_at': 'datetime',
4142
'document_id': 'str',
@@ -58,6 +59,7 @@ class Ifc(object):
5859
'name': 'name',
5960
'creator': 'creator',
6061
'status': 'status',
62+
'source': 'source',
6163
'created_at': 'created_at',
6264
'updated_at': 'updated_at',
6365
'document_id': 'document_id',
@@ -75,13 +77,14 @@ class Ifc(object):
7577
'warnings': 'warnings'
7678
}
7779

78-
def __init__(self, id=None, name=None, creator=None, status=None, created_at=None, updated_at=None, document_id=None, document=None, structure_file=None, systems_file=None, map_file=None, gltf_file=None, bvh_tree_file=None, viewer_360_file=None, xkt_file=None, project_id=None, world_position=None, errors=None, warnings=None): # noqa: E501
80+
def __init__(self, id=None, name=None, creator=None, status=None, source=None, created_at=None, updated_at=None, document_id=None, document=None, structure_file=None, systems_file=None, map_file=None, gltf_file=None, bvh_tree_file=None, viewer_360_file=None, xkt_file=None, project_id=None, world_position=None, errors=None, warnings=None): # noqa: E501
7981
"""Ifc - a model defined in OpenAPI""" # noqa: E501
8082

8183
self._id = None
8284
self._name = None
8385
self._creator = None
8486
self._status = None
87+
self._source = None
8588
self._created_at = None
8689
self._updated_at = None
8790
self._document_id = None
@@ -107,6 +110,8 @@ def __init__(self, id=None, name=None, creator=None, status=None, created_at=Non
107110
self.creator = creator
108111
if status is not None:
109112
self.status = status
113+
if source is not None:
114+
self.source = source
110115
if created_at is not None:
111116
self.created_at = created_at
112117
if updated_at is not None:
@@ -221,6 +226,33 @@ def status(self, status):
221226

222227
self._status = status
223228

229+
@property
230+
def source(self):
231+
"""Gets the source of this Ifc. # noqa: E501
232+
233+
234+
:return: The source of this Ifc. # noqa: E501
235+
:rtype: str
236+
"""
237+
return self._source
238+
239+
@source.setter
240+
def source(self, source):
241+
"""Sets the source of this Ifc.
242+
243+
244+
:param source: The source of this Ifc. # noqa: E501
245+
:type: str
246+
"""
247+
allowed_values = ["UPLOAD", "SPLIT", "MERGE", "EXPORT"] # noqa: E501
248+
if source not in allowed_values:
249+
raise ValueError(
250+
"Invalid value for `source` ({0}), must be one of {1}" # noqa: E501
251+
.format(source, allowed_values)
252+
)
253+
254+
self._source = source
255+
224256
@property
225257
def created_at(self):
226258
"""Gets the created_at of this Ifc. # noqa: E501

0 commit comments

Comments
 (0)