Skip to content

Commit fcbdeda

Browse files
committed
MINOR: Add un change role routes
1 parent 7391132 commit fcbdeda

158 files changed

Lines changed: 1294 additions & 169 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# bimdata-api-client
2-
BIMData API documentation
2+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

@@ -177,12 +177,14 @@ Class | Method | HTTP request | Description
177177
*CloudApi* | [**create_demo**](docs/CloudApi.md#create_demo) | **POST** /cloud/{id}/create-demo |
178178
*CloudApi* | [**delete_cloud_user**](docs/CloudApi.md#delete_cloud_user) | **DELETE** /cloud/{cloud_pk}/user/{id} |
179179
*CloudApi* | [**full_update_cloud**](docs/CloudApi.md#full_update_cloud) | **PUT** /cloud/{id} |
180+
*CloudApi* | [**full_update_cloud_user**](docs/CloudApi.md#full_update_cloud_user) | **PUT** /cloud/{cloud_pk}/user/{id} |
180181
*CloudApi* | [**get_cloud**](docs/CloudApi.md#get_cloud) | **GET** /cloud/{id} |
181182
*CloudApi* | [**get_cloud_size**](docs/CloudApi.md#get_cloud_size) | **GET** /cloud/{id}/size |
182183
*CloudApi* | [**get_cloud_user**](docs/CloudApi.md#get_cloud_user) | **GET** /cloud/{cloud_pk}/user/{id} |
183184
*CloudApi* | [**get_cloud_users**](docs/CloudApi.md#get_cloud_users) | **GET** /cloud/{cloud_pk}/user |
184185
*CloudApi* | [**get_clouds**](docs/CloudApi.md#get_clouds) | **GET** /cloud |
185186
*CloudApi* | [**update_cloud**](docs/CloudApi.md#update_cloud) | **PATCH** /cloud/{id} |
187+
*CloudApi* | [**update_cloud_user**](docs/CloudApi.md#update_cloud_user) | **PATCH** /cloud/{cloud_pk}/user/{id} |
186188
*IfcApi* | [**bulk_delete_ifc_classifications**](docs/IfcApi.md#bulk_delete_ifc_classifications) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/list_destroy |
187189
*IfcApi* | [**bulk_delete_ifc_properties**](docs/IfcApi.md#bulk_delete_ifc_properties) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_destroy |
188190
*IfcApi* | [**bulk_delete_ifc_property_definitions**](docs/IfcApi.md#bulk_delete_ifc_property_definitions) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/bulk_destroy |
@@ -292,6 +294,7 @@ Class | Method | HTTP request | Description
292294
*ProjectApi* | [**full_update_document**](docs/ProjectApi.md#full_update_document) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
293295
*ProjectApi* | [**full_update_folder**](docs/ProjectApi.md#full_update_folder) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
294296
*ProjectApi* | [**full_update_project**](docs/ProjectApi.md#full_update_project) | **PUT** /cloud/{cloud_pk}/project/{id} |
297+
*ProjectApi* | [**full_update_project_user**](docs/ProjectApi.md#full_update_project_user) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
295298
*ProjectApi* | [**get_classification**](docs/ProjectApi.md#get_classification) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} |
296299
*ProjectApi* | [**get_classifications**](docs/ProjectApi.md#get_classifications) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification |
297300
*ProjectApi* | [**get_document**](docs/ProjectApi.md#get_document) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
@@ -308,6 +311,7 @@ Class | Method | HTTP request | Description
308311
*ProjectApi* | [**update_document**](docs/ProjectApi.md#update_document) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
309312
*ProjectApi* | [**update_folder**](docs/ProjectApi.md#update_folder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
310313
*ProjectApi* | [**update_project**](docs/ProjectApi.md#update_project) | **PATCH** /cloud/{cloud_pk}/project/{id} |
314+
*ProjectApi* | [**update_project_user**](docs/ProjectApi.md#update_project_user) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
311315
*UserApi* | [**get_self_projects**](docs/UserApi.md#get_self_projects) | **GET** /user/projects |
312316
*UserApi* | [**get_self_user**](docs/UserApi.md#get_self_user) | **GET** /user |
313317
*UserApi* | [**update_self_user**](docs/UserApi.md#update_self_user) | **PATCH** /user |
@@ -373,6 +377,8 @@ Class | Method | HTTP request | Description
373377
- [TopicType](docs/TopicType.md)
374378
- [Unit](docs/Unit.md)
375379
- [User](docs/User.md)
380+
- [UserCloudUpdate](docs/UserCloudUpdate.md)
381+
- [UserProjectUpdate](docs/UserProjectUpdate.md)
376382
- [ViewSetupHints](docs/ViewSetupHints.md)
377383
- [Viewpoint](docs/Viewpoint.md)
378384
- [Visibility](docs/Visibility.md)

‎bimdata_api_client/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66
BIMData API
77
8-
BIMData API documentation # noqa: E501
8+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
99
1010
OpenAPI spec version: v1
1111
Contact: contact@bimdata.io
@@ -88,6 +88,8 @@
8888
from bimdata_api_client.models.topic_type import TopicType
8989
from bimdata_api_client.models.unit import Unit
9090
from bimdata_api_client.models.user import User
91+
from bimdata_api_client.models.user_cloud_update import UserCloudUpdate
92+
from bimdata_api_client.models.user_project_update import UserProjectUpdate
9193
from bimdata_api_client.models.view_setup_hints import ViewSetupHints
9294
from bimdata_api_client.models.viewpoint import Viewpoint
9395
from bimdata_api_client.models.visibility import Visibility

‎bimdata_api_client/api/application_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
BIMData API
55
6-
BIMData API documentation # noqa: E501
6+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
77
88
OpenAPI spec version: v1
99
Contact: contact@bimdata.io

‎bimdata_api_client/api/bcf_api.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
BIMData API
55
6-
BIMData API documentation # noqa: E501
6+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
77
88
OpenAPI spec version: v1
99
Contact: contact@bimdata.io
@@ -1502,6 +1502,8 @@ def download_bcf_export(self, id, **kwargs): # noqa: E501
15021502
15031503
:param async_req bool
15041504
:param int id: A unique integer value identifying this project. (required)
1505+
:param str topics: topic guids to export, comma separated. Default = all
1506+
:param str format: topic format to export, comma separated. Default = all
15051507
:return: None
15061508
If the method is called asynchronously,
15071509
returns the request thread.
@@ -1524,14 +1526,16 @@ def download_bcf_export_with_http_info(self, id, **kwargs): # noqa: E501
15241526
15251527
:param async_req bool
15261528
:param int id: A unique integer value identifying this project. (required)
1529+
:param str topics: topic guids to export, comma separated. Default = all
1530+
:param str format: topic format to export, comma separated. Default = all
15271531
:return: None
15281532
If the method is called asynchronously,
15291533
returns the request thread.
15301534
"""
15311535

15321536
local_var_params = locals()
15331537

1534-
all_params = ['id'] # noqa: E501
1538+
all_params = ['id', 'topics', 'format'] # noqa: E501
15351539
all_params.append('async_req')
15361540
all_params.append('_return_http_data_only')
15371541
all_params.append('_preload_content')
@@ -1557,6 +1561,10 @@ def download_bcf_export_with_http_info(self, id, **kwargs): # noqa: E501
15571561
path_params['id'] = local_var_params['id'] # noqa: E501
15581562

15591563
query_params = []
1564+
if 'topics' in local_var_params:
1565+
query_params.append(('topics', local_var_params['topics'])) # noqa: E501
1566+
if 'format' in local_var_params:
1567+
query_params.append(('format', local_var_params['format'])) # noqa: E501
15601568

15611569
header_params = {}
15621570

‎bimdata_api_client/api/checkplan_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
BIMData API
55
6-
BIMData API documentation # noqa: E501
6+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
77
88
OpenAPI spec version: v1
99
Contact: contact@bimdata.io

‎bimdata_api_client/api/cloud_api.py‎

Lines changed: 233 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
BIMData API
55
6-
BIMData API documentation # noqa: E501
6+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
77
88
OpenAPI spec version: v1
99
Contact: contact@bimdata.io
@@ -535,6 +535,122 @@ def full_update_cloud_with_http_info(self, id, cloud, **kwargs): # noqa: E501
535535
_request_timeout=local_var_params.get('_request_timeout'),
536536
collection_formats=collection_formats)
537537

538+
def full_update_cloud_user(self, cloud_pk, id, user_cloud_update, **kwargs): # noqa: E501
539+
"""full_update_cloud_user # noqa: E501
540+
541+
Change the user role in the cloud # noqa: E501
542+
This method makes a synchronous HTTP request by default. To make an
543+
asynchronous HTTP request, please pass async_req=True
544+
>>> thread = api.full_update_cloud_user(cloud_pk, id, user_cloud_update, async_req=True)
545+
>>> result = thread.get()
546+
547+
:param async_req bool
548+
:param str cloud_pk: (required)
549+
:param str id: (required)
550+
:param UserCloudUpdate user_cloud_update: (required)
551+
:return: User
552+
If the method is called asynchronously,
553+
returns the request thread.
554+
"""
555+
kwargs['_return_http_data_only'] = True
556+
if kwargs.get('async_req'):
557+
return self.full_update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, **kwargs) # noqa: E501
558+
else:
559+
(data) = self.full_update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, **kwargs) # noqa: E501
560+
return data
561+
562+
def full_update_cloud_user_with_http_info(self, cloud_pk, id, user_cloud_update, **kwargs): # noqa: E501
563+
"""full_update_cloud_user # noqa: E501
564+
565+
Change the user role in the cloud # noqa: E501
566+
This method makes a synchronous HTTP request by default. To make an
567+
asynchronous HTTP request, please pass async_req=True
568+
>>> thread = api.full_update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, async_req=True)
569+
>>> result = thread.get()
570+
571+
:param async_req bool
572+
:param str cloud_pk: (required)
573+
:param str id: (required)
574+
:param UserCloudUpdate user_cloud_update: (required)
575+
:return: User
576+
If the method is called asynchronously,
577+
returns the request thread.
578+
"""
579+
580+
local_var_params = locals()
581+
582+
all_params = ['cloud_pk', 'id', 'user_cloud_update'] # noqa: E501
583+
all_params.append('async_req')
584+
all_params.append('_return_http_data_only')
585+
all_params.append('_preload_content')
586+
all_params.append('_request_timeout')
587+
588+
for key, val in six.iteritems(local_var_params['kwargs']):
589+
if key not in all_params:
590+
raise TypeError(
591+
"Got an unexpected keyword argument '%s'"
592+
" to method full_update_cloud_user" % key
593+
)
594+
local_var_params[key] = val
595+
del local_var_params['kwargs']
596+
# verify the required parameter 'cloud_pk' is set
597+
if ('cloud_pk' not in local_var_params or
598+
local_var_params['cloud_pk'] is None):
599+
raise ValueError("Missing the required parameter `cloud_pk` when calling `full_update_cloud_user`") # noqa: E501
600+
# verify the required parameter 'id' is set
601+
if ('id' not in local_var_params or
602+
local_var_params['id'] is None):
603+
raise ValueError("Missing the required parameter `id` when calling `full_update_cloud_user`") # noqa: E501
604+
# verify the required parameter 'user_cloud_update' is set
605+
if ('user_cloud_update' not in local_var_params or
606+
local_var_params['user_cloud_update'] is None):
607+
raise ValueError("Missing the required parameter `user_cloud_update` when calling `full_update_cloud_user`") # noqa: E501
608+
609+
collection_formats = {}
610+
611+
path_params = {}
612+
if 'cloud_pk' in local_var_params:
613+
path_params['cloud_pk'] = local_var_params['cloud_pk'] # noqa: E501
614+
if 'id' in local_var_params:
615+
path_params['id'] = local_var_params['id'] # noqa: E501
616+
617+
query_params = []
618+
619+
header_params = {}
620+
621+
form_params = []
622+
local_var_files = {}
623+
624+
body_params = None
625+
if 'user_cloud_update' in local_var_params:
626+
body_params = local_var_params['user_cloud_update']
627+
# HTTP header `Accept`
628+
header_params['Accept'] = self.api_client.select_header_accept(
629+
['application/json']) # noqa: E501
630+
631+
# HTTP header `Content-Type`
632+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
633+
['application/json']) # noqa: E501
634+
635+
# Authentication setting
636+
auth_settings = ['Bearer'] # noqa: E501
637+
638+
return self.api_client.call_api(
639+
'/cloud/{cloud_pk}/user/{id}', 'PUT',
640+
path_params,
641+
query_params,
642+
header_params,
643+
body=body_params,
644+
post_params=form_params,
645+
files=local_var_files,
646+
response_type='User', # noqa: E501
647+
auth_settings=auth_settings,
648+
async_req=local_var_params.get('async_req'),
649+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
650+
_preload_content=local_var_params.get('_preload_content', True),
651+
_request_timeout=local_var_params.get('_request_timeout'),
652+
collection_formats=collection_formats)
653+
538654
def get_cloud(self, id, **kwargs): # noqa: E501
539655
"""get_cloud # noqa: E501
540656
@@ -1114,3 +1230,119 @@ def update_cloud_with_http_info(self, id, cloud, **kwargs): # noqa: E501
11141230
_preload_content=local_var_params.get('_preload_content', True),
11151231
_request_timeout=local_var_params.get('_request_timeout'),
11161232
collection_formats=collection_formats)
1233+
1234+
def update_cloud_user(self, cloud_pk, id, user_cloud_update, **kwargs): # noqa: E501
1235+
"""update_cloud_user # noqa: E501
1236+
1237+
Change the user role in the cloud # noqa: E501
1238+
This method makes a synchronous HTTP request by default. To make an
1239+
asynchronous HTTP request, please pass async_req=True
1240+
>>> thread = api.update_cloud_user(cloud_pk, id, user_cloud_update, async_req=True)
1241+
>>> result = thread.get()
1242+
1243+
:param async_req bool
1244+
:param str cloud_pk: (required)
1245+
:param str id: (required)
1246+
:param UserCloudUpdate user_cloud_update: (required)
1247+
:return: User
1248+
If the method is called asynchronously,
1249+
returns the request thread.
1250+
"""
1251+
kwargs['_return_http_data_only'] = True
1252+
if kwargs.get('async_req'):
1253+
return self.update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, **kwargs) # noqa: E501
1254+
else:
1255+
(data) = self.update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, **kwargs) # noqa: E501
1256+
return data
1257+
1258+
def update_cloud_user_with_http_info(self, cloud_pk, id, user_cloud_update, **kwargs): # noqa: E501
1259+
"""update_cloud_user # noqa: E501
1260+
1261+
Change the user role in the cloud # noqa: E501
1262+
This method makes a synchronous HTTP request by default. To make an
1263+
asynchronous HTTP request, please pass async_req=True
1264+
>>> thread = api.update_cloud_user_with_http_info(cloud_pk, id, user_cloud_update, async_req=True)
1265+
>>> result = thread.get()
1266+
1267+
:param async_req bool
1268+
:param str cloud_pk: (required)
1269+
:param str id: (required)
1270+
:param UserCloudUpdate user_cloud_update: (required)
1271+
:return: User
1272+
If the method is called asynchronously,
1273+
returns the request thread.
1274+
"""
1275+
1276+
local_var_params = locals()
1277+
1278+
all_params = ['cloud_pk', 'id', 'user_cloud_update'] # noqa: E501
1279+
all_params.append('async_req')
1280+
all_params.append('_return_http_data_only')
1281+
all_params.append('_preload_content')
1282+
all_params.append('_request_timeout')
1283+
1284+
for key, val in six.iteritems(local_var_params['kwargs']):
1285+
if key not in all_params:
1286+
raise TypeError(
1287+
"Got an unexpected keyword argument '%s'"
1288+
" to method update_cloud_user" % key
1289+
)
1290+
local_var_params[key] = val
1291+
del local_var_params['kwargs']
1292+
# verify the required parameter 'cloud_pk' is set
1293+
if ('cloud_pk' not in local_var_params or
1294+
local_var_params['cloud_pk'] is None):
1295+
raise ValueError("Missing the required parameter `cloud_pk` when calling `update_cloud_user`") # noqa: E501
1296+
# verify the required parameter 'id' is set
1297+
if ('id' not in local_var_params or
1298+
local_var_params['id'] is None):
1299+
raise ValueError("Missing the required parameter `id` when calling `update_cloud_user`") # noqa: E501
1300+
# verify the required parameter 'user_cloud_update' is set
1301+
if ('user_cloud_update' not in local_var_params or
1302+
local_var_params['user_cloud_update'] is None):
1303+
raise ValueError("Missing the required parameter `user_cloud_update` when calling `update_cloud_user`") # noqa: E501
1304+
1305+
collection_formats = {}
1306+
1307+
path_params = {}
1308+
if 'cloud_pk' in local_var_params:
1309+
path_params['cloud_pk'] = local_var_params['cloud_pk'] # noqa: E501
1310+
if 'id' in local_var_params:
1311+
path_params['id'] = local_var_params['id'] # noqa: E501
1312+
1313+
query_params = []
1314+
1315+
header_params = {}
1316+
1317+
form_params = []
1318+
local_var_files = {}
1319+
1320+
body_params = None
1321+
if 'user_cloud_update' in local_var_params:
1322+
body_params = local_var_params['user_cloud_update']
1323+
# HTTP header `Accept`
1324+
header_params['Accept'] = self.api_client.select_header_accept(
1325+
['application/json']) # noqa: E501
1326+
1327+
# HTTP header `Content-Type`
1328+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1329+
['application/json']) # noqa: E501
1330+
1331+
# Authentication setting
1332+
auth_settings = ['Bearer'] # noqa: E501
1333+
1334+
return self.api_client.call_api(
1335+
'/cloud/{cloud_pk}/user/{id}', 'PATCH',
1336+
path_params,
1337+
query_params,
1338+
header_params,
1339+
body=body_params,
1340+
post_params=form_params,
1341+
files=local_var_files,
1342+
response_type='User', # noqa: E501
1343+
auth_settings=auth_settings,
1344+
async_req=local_var_params.get('async_req'),
1345+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1346+
_preload_content=local_var_params.get('_preload_content', True),
1347+
_request_timeout=local_var_params.get('_request_timeout'),
1348+
collection_formats=collection_formats)

‎bimdata_api_client/api/ifc_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
BIMData API
55

6-
BIMData API documentation # noqa: E501
6+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
77

88
OpenAPI spec version: v1
99
Contact: contact@bimdata.io

0 commit comments

Comments
 (0)