Skip to content

Commit 1bf3b71

Browse files
committed
PATCH: add filters to getRawElements and getSimpleElements
1 parent f83488f commit 1bf3b71

File tree

4 files changed

+68
-2
lines changed

4 files changed

+68
-2
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8303,7 +8303,7 @@ def create_document(
83038303
):
83048304
"""Create a document # noqa: E501
83058305

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

bimdata_api_client/api/model_api.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7331,6 +7331,9 @@ def __init__(self, api_client=None):
73317331
'cloud_pk',
73327332
'model_pk',
73337333
'project_pk',
7334+
'classification',
7335+
'classification__notation',
7336+
'type',
73347337
],
73357338
'required': [
73367339
'cloud_pk',
@@ -7356,16 +7359,28 @@ def __init__(self, api_client=None):
73567359
(int,),
73577360
'project_pk':
73587361
(int,),
7362+
'classification':
7363+
(str,),
7364+
'classification__notation':
7365+
(str,),
7366+
'type':
7367+
(str,),
73597368
},
73607369
'attribute_map': {
73617370
'cloud_pk': 'cloud_pk',
73627371
'model_pk': 'model_pk',
73637372
'project_pk': 'project_pk',
7373+
'classification': 'classification',
7374+
'classification__notation': 'classification__notation',
7375+
'type': 'type',
73647376
},
73657377
'location_map': {
73667378
'cloud_pk': 'path',
73677379
'model_pk': 'path',
73687380
'project_pk': 'path',
7381+
'classification': 'query',
7382+
'classification__notation': 'query',
7383+
'type': 'query',
73697384
},
73707385
'collection_format_map': {
73717386
}
@@ -7469,6 +7484,9 @@ def __init__(self, api_client=None):
74697484
'cloud_pk',
74707485
'model_pk',
74717486
'project_pk',
7487+
'classification',
7488+
'classification__notation',
7489+
'type',
74727490
],
74737491
'required': [
74747492
'cloud_pk',
@@ -7494,16 +7512,28 @@ def __init__(self, api_client=None):
74947512
(int,),
74957513
'project_pk':
74967514
(int,),
7515+
'classification':
7516+
(str,),
7517+
'classification__notation':
7518+
(str,),
7519+
'type':
7520+
(str,),
74977521
},
74987522
'attribute_map': {
74997523
'cloud_pk': 'cloud_pk',
75007524
'model_pk': 'model_pk',
75017525
'project_pk': 'project_pk',
7526+
'classification': 'classification',
7527+
'classification__notation': 'classification__notation',
7528+
'type': 'type',
75027529
},
75037530
'location_map': {
75047531
'cloud_pk': 'path',
75057532
'model_pk': 'path',
75067533
'project_pk': 'path',
7534+
'classification': 'query',
7535+
'classification__notation': 'query',
7536+
'type': 'query',
75077537
},
75087538
'collection_format_map': {
75097539
}
@@ -19919,6 +19949,9 @@ def get_raw_elements(
1991919949
project_pk (int): A unique integer value identifying this project.
1992019950

1992119951
Keyword Args:
19952+
classification (str): [optional]
19953+
classification__notation (str): [optional]
19954+
type (str): [optional]
1992219955
_return_http_data_only (bool): response data without head status
1992319956
code and headers. Default is True.
1992419957
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -20095,6 +20128,9 @@ def get_simple_elements(
2009520128
project_pk (int): A unique integer value identifying this project.
2009620129

2009720130
Keyword Args:
20131+
classification (str): [optional]
20132+
classification__notation (str): [optional]
20133+
type (str): [optional]
2009820134
_return_http_data_only (bool): response data without head status
2009920135
code and headers. Default is True.
2010020136
_preload_content (bool): if False, the urllib3.HTTPResponse object

docs/CollaborationApi.md

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

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

15311531
### Example
15321532

docs/ModelApi.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11429,6 +11429,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1142911429
cloud_pk = 1 # int | A unique integer value identifying this cloud.
1143011430
model_pk = 1 # int | A unique integer value identifying this model.
1143111431
project_pk = 1 # int | A unique integer value identifying this project.
11432+
classification = "classification_example" # str | (optional)
11433+
classification__notation = "classification__notation_example" # str | (optional)
11434+
type = "type_example" # str | (optional)
1143211435

1143311436
# example passing only required values which don't have defaults set
1143411437
try:
@@ -11437,6 +11440,15 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1143711440
pprint(api_response)
1143811441
except bimdata_api_client.ApiException as e:
1143911442
print("Exception when calling ModelApi->get_raw_elements: %s\n" % e)
11443+
11444+
# example passing only required values which don't have defaults set
11445+
# and optional values
11446+
try:
11447+
# Retrieve all elements in a optimized format
11448+
api_response = api_instance.get_raw_elements(cloud_pk, model_pk, project_pk, classification=classification, classification__notation=classification__notation, type=type)
11449+
pprint(api_response)
11450+
except bimdata_api_client.ApiException as e:
11451+
print("Exception when calling ModelApi->get_raw_elements: %s\n" % e)
1144011452
```
1144111453

1144211454

@@ -11447,6 +11459,9 @@ Name | Type | Description | Notes
1144711459
**cloud_pk** | **int**| A unique integer value identifying this cloud. |
1144811460
**model_pk** | **int**| A unique integer value identifying this model. |
1144911461
**project_pk** | **int**| A unique integer value identifying this project. |
11462+
**classification** | **str**| | [optional]
11463+
**classification__notation** | **str**| | [optional]
11464+
**type** | **str**| | [optional]
1145011465

1145111466
### Return type
1145211467

@@ -11645,6 +11660,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1164511660
cloud_pk = 1 # int | A unique integer value identifying this cloud.
1164611661
model_pk = 1 # int | A unique integer value identifying this model.
1164711662
project_pk = 1 # int | A unique integer value identifying this project.
11663+
classification = "classification_example" # str | (optional)
11664+
classification__notation = "classification__notation_example" # str | (optional)
11665+
type = "type_example" # str | (optional)
1164811666

1164911667
# example passing only required values which don't have defaults set
1165011668
try:
@@ -11653,6 +11671,15 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1165311671
pprint(api_response)
1165411672
except bimdata_api_client.ApiException as e:
1165511673
print("Exception when calling ModelApi->get_simple_elements: %s\n" % e)
11674+
11675+
# example passing only required values which don't have defaults set
11676+
# and optional values
11677+
try:
11678+
# Retrieve all elements of a model with a simple value representation
11679+
api_response = api_instance.get_simple_elements(cloud_pk, model_pk, project_pk, classification=classification, classification__notation=classification__notation, type=type)
11680+
pprint(api_response)
11681+
except bimdata_api_client.ApiException as e:
11682+
print("Exception when calling ModelApi->get_simple_elements: %s\n" % e)
1165611683
```
1165711684

1165811685

@@ -11663,6 +11690,9 @@ Name | Type | Description | Notes
1166311690
**cloud_pk** | **int**| A unique integer value identifying this cloud. |
1166411691
**model_pk** | **int**| A unique integer value identifying this model. |
1166511692
**project_pk** | **int**| A unique integer value identifying this project. |
11693+
**classification** | **str**| | [optional]
11694+
**classification__notation** | **str**| | [optional]
11695+
**type** | **str**| | [optional]
1166611696

1166711697
### Return type
1166811698

0 commit comments

Comments
 (0)