Skip to content

Commit a2f63e3

Browse files
committed
PATCH: Add document history count (#681)
* add document history count * typo fixe
1 parent f571c05 commit a2f63e3

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

bimdata_api_client/api/bcf_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ def __init__(self, api_client=None):
13861386
'all': [
13871387
'id',
13881388
'format',
1389+
'locale',
13891390
'topics',
13901391
],
13911392
'required': [
@@ -1394,6 +1395,7 @@ def __init__(self, api_client=None):
13941395
'nullable': [
13951396
],
13961397
'enum': [
1398+
'locale',
13971399
],
13981400
'validation': [
13991401
]
@@ -1402,23 +1404,32 @@ def __init__(self, api_client=None):
14021404
'validations': {
14031405
},
14041406
'allowed_values': {
1407+
('locale',): {
1408+
1409+
"EN": "en",
1410+
"FR": "fr"
1411+
},
14051412
},
14061413
'openapi_types': {
14071414
'id':
14081415
(int,),
14091416
'format':
14101417
(str,),
1418+
'locale':
1419+
(str,),
14111420
'topics':
14121421
(str,),
14131422
},
14141423
'attribute_map': {
14151424
'id': 'id',
14161425
'format': 'format',
1426+
'locale': 'locale',
14171427
'topics': 'topics',
14181428
},
14191429
'location_map': {
14201430
'id': 'path',
14211431
'format': 'query',
1432+
'locale': 'query',
14221433
'topics': 'query',
14231434
},
14241435
'collection_format_map': {
@@ -5951,6 +5962,7 @@ def download_bcf_export_xlsx(
59515962
59525963
Keyword Args:
59535964
format (str): topic format to export, comma separated. Default = standard. [optional]
5965+
locale (str): Locale of the exported file. Available locales are 'en' and 'fr'. If set locale is not supported, 'en' will be used. [optional]
59545966
topics (str): topic guids to export, comma separated. Default = all. [optional]
59555967
_return_http_data_only (bool): response data without head status
59565968
code and headers. Default is True.

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8373,7 +8373,7 @@ def create_document(
83738373
):
83748374
"""Create a document # noqa: E501
83758375

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

docs/BcfApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
25162516
api_instance = bcf_api.BcfApi(api_client)
25172517
id = 1 # int | A unique integer value identifying this project.
25182518
format = "format_example" # str | topic format to export, comma separated. Default = standard (optional)
2519+
locale = "en" # str | Locale of the exported file. Available locales are 'en' and 'fr'. If set locale is not supported, 'en' will be used (optional)
25192520
topics = "topics_example" # str | topic guids to export, comma separated. Default = all (optional)
25202521

25212522
# example passing only required values which don't have defaults set
@@ -2530,7 +2531,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
25302531
# and optional values
25312532
try:
25322533
# Export project's topics in excel format
2533-
api_response = api_instance.download_bcf_export_xlsx(id, format=format, topics=topics)
2534+
api_response = api_instance.download_bcf_export_xlsx(id, format=format, locale=locale, topics=topics)
25342535
pprint(api_response)
25352536
except bimdata_api_client.ApiException as e:
25362537
print("Exception when calling BcfApi->download_bcf_export_xlsx: %s\n" % e)
@@ -2543,6 +2544,7 @@ Name | Type | Description | Notes
25432544
------------- | ------------- | ------------- | -------------
25442545
**id** | **int**| A unique integer value identifying this project. |
25452546
**format** | **str**| topic format to export, comma separated. Default = standard | [optional]
2547+
**locale** | **str**| Locale of the exported file. Available locales are 'en' and 'fr'. If set locale is not supported, 'en' will be used | [optional]
25462548
**topics** | **str**| topic guids to export, comma separated. Default = all | [optional]
25472549

25482550
### Return type

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ Name | Type | Description | Notes
15271527
15281528
Create a document
15291529

1530-
Create a document. If the document is one of {'POINT_CLOUD', 'IFC', 'GLTF', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
1530+
Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'DWG', 'IFC', 'DXF', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
15311531

15321532
### Example
15331533

0 commit comments

Comments
 (0)