Skip to content

Commit 01b3da8

Browse files
committed
PATCH: fix #536 body in linkDocumentsOfElement
1 parent 39a7294 commit 01b3da8

12 files changed

Lines changed: 369 additions & 12 deletions

File tree

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ bimdata_api_client/model/detailed_extensions.py
4747
bimdata_api_client/model/direction.py
4848
bimdata_api_client/model/direction_request.py
4949
bimdata_api_client/model/document.py
50+
bimdata_api_client/model/document_id_request.py
5051
bimdata_api_client/model/document_with_element_list.py
5152
bimdata_api_client/model/element.py
5253
bimdata_api_client/model/element_classification_relation.py
@@ -297,6 +298,7 @@ docs/DetailedExtensions.md
297298
docs/Direction.md
298299
docs/DirectionRequest.md
299300
docs/Document.md
301+
docs/DocumentIdRequest.md
300302
docs/DocumentWithElementList.md
301303
docs/Element.md
302304
docs/ElementClassificationRelation.md
@@ -552,6 +554,7 @@ test/test_detailed_extensions.py
552554
test/test_direction.py
553555
test/test_direction_request.py
554556
test/test_document.py
557+
test/test_document_id_request.py
555558
test/test_document_with_element_list.py
556559
test/test_element.py
557560
test/test_element_classification_relation.py

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ Class | Method | HTTP request | Description
689689
- [Direction](docs/Direction.md)
690690
- [DirectionRequest](docs/DirectionRequest.md)
691691
- [Document](docs/Document.md)
692+
- [DocumentIdRequest](docs/DocumentIdRequest.md)
692693
- [DocumentWithElementList](docs/DocumentWithElementList.md)
693694
- [Element](docs/Element.md)
694695
- [ElementClassificationRelation](docs/ElementClassificationRelation.md)

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8027,7 +8027,7 @@ def create_document(
80278027
):
80288028
"""Create a document # noqa: E501
80298029

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

bimdata_api_client/api/ifc_api.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from bimdata_api_client.model.create_building_by_name_request import CreateBuildingByNameRequest
3232
from bimdata_api_client.model.create_model_request import CreateModelRequest
3333
from bimdata_api_client.model.document import Document
34+
from bimdata_api_client.model.document_id_request import DocumentIdRequest
3435
from bimdata_api_client.model.document_with_element_list import DocumentWithElementList
3536
from bimdata_api_client.model.element import Element
3637
from bimdata_api_client.model.element_classification_relation import ElementClassificationRelation
@@ -8926,12 +8927,14 @@ def __init__(self, api_client=None):
89268927
'element_uuid',
89278928
'ifc_pk',
89288929
'project_pk',
8930+
'document_id_request',
89298931
],
89308932
'required': [
89318933
'cloud_pk',
89328934
'element_uuid',
89338935
'ifc_pk',
89348936
'project_pk',
8937+
'document_id_request',
89358938
],
89368939
'nullable': [
89378940
],
@@ -8954,6 +8957,8 @@ def __init__(self, api_client=None):
89548957
(int,),
89558958
'project_pk':
89568959
(int,),
8960+
'document_id_request':
8961+
([DocumentIdRequest],),
89578962
},
89588963
'attribute_map': {
89598964
'cloud_pk': 'cloud_pk',
@@ -8966,6 +8971,7 @@ def __init__(self, api_client=None):
89668971
'element_uuid': 'path',
89678972
'ifc_pk': 'path',
89688973
'project_pk': 'path',
8974+
'document_id_request': 'body',
89698975
},
89708976
'collection_format_map': {
89718977
}
@@ -8974,7 +8980,11 @@ def __init__(self, api_client=None):
89748980
'accept': [
89758981
'application/json'
89768982
],
8977-
'content_type': [],
8983+
'content_type': [
8984+
'application/json',
8985+
'application/x-www-form-urlencoded',
8986+
'multipart/form-data'
8987+
]
89788988
},
89798989
api_client=api_client
89808990
)
@@ -22622,6 +22632,7 @@ def link_documents_of_element_deprecated(
2262222632
element_uuid,
2262322633
ifc_pk,
2262422634
project_pk,
22635+
document_id_request,
2262522636
**kwargs
2262622637
):
2262722638
"""Link one or many documents to an element # noqa: E501
@@ -22630,14 +22641,15 @@ def link_documents_of_element_deprecated(
2263022641
This method makes a synchronous HTTP request by default. To make an
2263122642
asynchronous HTTP request, please pass async_req=True
2263222643

22633-
>>> thread = api.link_documents_of_element_deprecated(cloud_pk, element_uuid, ifc_pk, project_pk, async_req=True)
22644+
>>> thread = api.link_documents_of_element_deprecated(cloud_pk, element_uuid, ifc_pk, project_pk, document_id_request, async_req=True)
2263422645
>>> result = thread.get()
2263522646

2263622647
Args:
2263722648
cloud_pk (int): A unique integer value identifying this cloud.
2263822649
element_uuid (str):
2263922650
ifc_pk (int): A unique integer value identifying this model.
2264022651
project_pk (int): A unique integer value identifying this project.
22652+
document_id_request ([DocumentIdRequest]):
2264122653

2264222654
Keyword Args:
2264322655
_return_http_data_only (bool): response data without head status
@@ -22704,6 +22716,8 @@ def link_documents_of_element_deprecated(
2270422716
ifc_pk
2270522717
kwargs['project_pk'] = \
2270622718
project_pk
22719+
kwargs['document_id_request'] = \
22720+
document_id_request
2270722721
return self.link_documents_of_element_deprecated_endpoint.call_with_http_info(**kwargs)
2270822722

2270922723
def list_classification_element_relations_deprecated(

bimdata_api_client/api/model_api.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from bimdata_api_client.model.create_building_by_name_request import CreateBuildingByNameRequest
3030
from bimdata_api_client.model.create_model_request import CreateModelRequest
3131
from bimdata_api_client.model.document import Document
32+
from bimdata_api_client.model.document_id_request import DocumentIdRequest
3233
from bimdata_api_client.model.document_with_element_list import DocumentWithElementList
3334
from bimdata_api_client.model.element import Element
3435
from bimdata_api_client.model.element_classification_relation import ElementClassificationRelation
@@ -8254,12 +8255,14 @@ def __init__(self, api_client=None):
82548255
'element_uuid',
82558256
'model_pk',
82568257
'project_pk',
8258+
'document_id_request',
82578259
],
82588260
'required': [
82598261
'cloud_pk',
82608262
'element_uuid',
82618263
'model_pk',
82628264
'project_pk',
8265+
'document_id_request',
82638266
],
82648267
'nullable': [
82658268
],
@@ -8282,6 +8285,8 @@ def __init__(self, api_client=None):
82828285
(int,),
82838286
'project_pk':
82848287
(int,),
8288+
'document_id_request':
8289+
([DocumentIdRequest],),
82858290
},
82868291
'attribute_map': {
82878292
'cloud_pk': 'cloud_pk',
@@ -8294,6 +8299,7 @@ def __init__(self, api_client=None):
82948299
'element_uuid': 'path',
82958300
'model_pk': 'path',
82968301
'project_pk': 'path',
8302+
'document_id_request': 'body',
82978303
},
82988304
'collection_format_map': {
82998305
}
@@ -8302,7 +8308,11 @@ def __init__(self, api_client=None):
83028308
'accept': [
83038309
'application/json'
83048310
],
8305-
'content_type': [],
8311+
'content_type': [
8312+
'application/json',
8313+
'application/x-www-form-urlencoded',
8314+
'multipart/form-data'
8315+
]
83068316
},
83078317
api_client=api_client
83088318
)
@@ -20971,6 +20981,7 @@ def link_documents_of_element(
2097120981
element_uuid,
2097220982
model_pk,
2097320983
project_pk,
20984+
document_id_request,
2097420985
**kwargs
2097520986
):
2097620987
"""Link one or many documents to an element # noqa: E501
@@ -20979,14 +20990,15 @@ def link_documents_of_element(
2097920990
This method makes a synchronous HTTP request by default. To make an
2098020991
asynchronous HTTP request, please pass async_req=True
2098120992

20982-
>>> thread = api.link_documents_of_element(cloud_pk, element_uuid, model_pk, project_pk, async_req=True)
20993+
>>> thread = api.link_documents_of_element(cloud_pk, element_uuid, model_pk, project_pk, document_id_request, async_req=True)
2098320994
>>> result = thread.get()
2098420995

2098520996
Args:
2098620997
cloud_pk (int): A unique integer value identifying this cloud.
2098720998
element_uuid (str):
2098820999
model_pk (int): A unique integer value identifying this model.
2098921000
project_pk (int): A unique integer value identifying this project.
21001+
document_id_request ([DocumentIdRequest]):
2099021002

2099121003
Keyword Args:
2099221004
_return_http_data_only (bool): response data without head status
@@ -21053,6 +21065,8 @@ def link_documents_of_element(
2105321065
model_pk
2105421066
kwargs['project_pk'] = \
2105521067
project_pk
21068+
kwargs['document_id_request'] = \
21069+
document_id_request
2105621070
return self.link_documents_of_element_endpoint.call_with_http_info(**kwargs)
2105721071

2105821072
def list_classification_element_relations(

0 commit comments

Comments
 (0)