Skip to content

Commit 81cff13

Browse files
committed
PATCH: fix bad body serializer linkDocumentsOfElement
1 parent 90e08ad commit 81cff13

File tree

12 files changed

+34
-357
lines changed

12 files changed

+34
-357
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ 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
5150
bimdata_api_client/model/document_with_element_list.py
5251
bimdata_api_client/model/element.py
5352
bimdata_api_client/model/element_classification_relation.py
@@ -298,7 +297,6 @@ docs/DetailedExtensions.md
298297
docs/Direction.md
299298
docs/DirectionRequest.md
300299
docs/Document.md
301-
docs/DocumentIdRequest.md
302300
docs/DocumentWithElementList.md
303301
docs/Element.md
304302
docs/ElementClassificationRelation.md
@@ -554,7 +552,6 @@ test/test_detailed_extensions.py
554552
test/test_direction.py
555553
test/test_direction_request.py
556554
test/test_document.py
557-
test/test_document_id_request.py
558555
test/test_document_with_element_list.py
559556
test/test_element.py
560557
test/test_element_classification_relation.py

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ 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)
693692
- [DocumentWithElementList](docs/DocumentWithElementList.md)
694693
- [Element](docs/Element.md)
695694
- [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', 'DWG', 'DXF', 'BFX', 'IFC', 'OBJ', 'DAE', 'POINT_CLOUD'}, 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 {'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF', 'DAE', 'DWG', 'BFX'}, 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: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
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
3534
from bimdata_api_client.model.document_with_element_list import DocumentWithElementList
3635
from bimdata_api_client.model.element import Element
3736
from bimdata_api_client.model.element_classification_relation import ElementClassificationRelation
@@ -8927,14 +8926,14 @@ def __init__(self, api_client=None):
89278926
'element_uuid',
89288927
'ifc_pk',
89298928
'project_pk',
8930-
'document_id_request',
8929+
'request_body',
89318930
],
89328931
'required': [
89338932
'cloud_pk',
89348933
'element_uuid',
89358934
'ifc_pk',
89368935
'project_pk',
8937-
'document_id_request',
8936+
'request_body',
89388937
],
89398938
'nullable': [
89408939
],
@@ -8957,8 +8956,8 @@ def __init__(self, api_client=None):
89578956
(int,),
89588957
'project_pk':
89598958
(int,),
8960-
'document_id_request':
8961-
([DocumentIdRequest],),
8959+
'request_body':
8960+
([int],),
89628961
},
89638962
'attribute_map': {
89648963
'cloud_pk': 'cloud_pk',
@@ -8971,7 +8970,7 @@ def __init__(self, api_client=None):
89718970
'element_uuid': 'path',
89728971
'ifc_pk': 'path',
89738972
'project_pk': 'path',
8974-
'document_id_request': 'body',
8973+
'request_body': 'body',
89758974
},
89768975
'collection_format_map': {
89778976
}
@@ -22632,7 +22631,7 @@ def link_documents_of_element_deprecated(
2263222631
element_uuid,
2263322632
ifc_pk,
2263422633
project_pk,
22635-
document_id_request,
22634+
request_body,
2263622635
**kwargs
2263722636
):
2263822637
"""Link one or many documents to an element # noqa: E501
@@ -22641,15 +22640,15 @@ def link_documents_of_element_deprecated(
2264122640
This method makes a synchronous HTTP request by default. To make an
2264222641
asynchronous HTTP request, please pass async_req=True
2264322642

22644-
>>> thread = api.link_documents_of_element_deprecated(cloud_pk, element_uuid, ifc_pk, project_pk, document_id_request, async_req=True)
22643+
>>> thread = api.link_documents_of_element_deprecated(cloud_pk, element_uuid, ifc_pk, project_pk, request_body, async_req=True)
2264522644
>>> result = thread.get()
2264622645

2264722646
Args:
2264822647
cloud_pk (int): A unique integer value identifying this cloud.
2264922648
element_uuid (str):
2265022649
ifc_pk (int): A unique integer value identifying this model.
2265122650
project_pk (int): A unique integer value identifying this project.
22652-
document_id_request ([DocumentIdRequest]):
22651+
request_body ([int]):
2265322652

2265422653
Keyword Args:
2265522654
_return_http_data_only (bool): response data without head status
@@ -22716,8 +22715,8 @@ def link_documents_of_element_deprecated(
2271622715
ifc_pk
2271722716
kwargs['project_pk'] = \
2271822717
project_pk
22719-
kwargs['document_id_request'] = \
22720-
document_id_request
22718+
kwargs['request_body'] = \
22719+
request_body
2272122720
return self.link_documents_of_element_deprecated_endpoint.call_with_http_info(**kwargs)
2272222721

2272322722
def list_classification_element_relations_deprecated(

bimdata_api_client/api/model_api.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
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
3332
from bimdata_api_client.model.document_with_element_list import DocumentWithElementList
3433
from bimdata_api_client.model.element import Element
3534
from bimdata_api_client.model.element_classification_relation import ElementClassificationRelation
@@ -8255,14 +8254,14 @@ def __init__(self, api_client=None):
82558254
'element_uuid',
82568255
'model_pk',
82578256
'project_pk',
8258-
'document_id_request',
8257+
'request_body',
82598258
],
82608259
'required': [
82618260
'cloud_pk',
82628261
'element_uuid',
82638262
'model_pk',
82648263
'project_pk',
8265-
'document_id_request',
8264+
'request_body',
82668265
],
82678266
'nullable': [
82688267
],
@@ -8285,8 +8284,8 @@ def __init__(self, api_client=None):
82858284
(int,),
82868285
'project_pk':
82878286
(int,),
8288-
'document_id_request':
8289-
([DocumentIdRequest],),
8287+
'request_body':
8288+
([int],),
82908289
},
82918290
'attribute_map': {
82928291
'cloud_pk': 'cloud_pk',
@@ -8299,7 +8298,7 @@ def __init__(self, api_client=None):
82998298
'element_uuid': 'path',
83008299
'model_pk': 'path',
83018300
'project_pk': 'path',
8302-
'document_id_request': 'body',
8301+
'request_body': 'body',
83038302
},
83048303
'collection_format_map': {
83058304
}
@@ -20981,7 +20980,7 @@ def link_documents_of_element(
2098120980
element_uuid,
2098220981
model_pk,
2098320982
project_pk,
20984-
document_id_request,
20983+
request_body,
2098520984
**kwargs
2098620985
):
2098720986
"""Link one or many documents to an element # noqa: E501
@@ -20990,15 +20989,15 @@ def link_documents_of_element(
2099020989
This method makes a synchronous HTTP request by default. To make an
2099120990
asynchronous HTTP request, please pass async_req=True
2099220991

20993-
>>> thread = api.link_documents_of_element(cloud_pk, element_uuid, model_pk, project_pk, document_id_request, async_req=True)
20992+
>>> thread = api.link_documents_of_element(cloud_pk, element_uuid, model_pk, project_pk, request_body, async_req=True)
2099420993
>>> result = thread.get()
2099520994

2099620995
Args:
2099720996
cloud_pk (int): A unique integer value identifying this cloud.
2099820997
element_uuid (str):
2099920998
model_pk (int): A unique integer value identifying this model.
2100020999
project_pk (int): A unique integer value identifying this project.
21001-
document_id_request ([DocumentIdRequest]):
21000+
request_body ([int]):
2100221001

2100321002
Keyword Args:
2100421003
_return_http_data_only (bool): response data without head status
@@ -21065,8 +21064,8 @@ def link_documents_of_element(
2106521064
model_pk
2106621065
kwargs['project_pk'] = \
2106721066
project_pk
21068-
kwargs['document_id_request'] = \
21069-
document_id_request
21067+
kwargs['request_body'] = \
21068+
request_body
2107021069
return self.link_documents_of_element_endpoint.call_with_http_info(**kwargs)
2107121070

2107221071
def list_classification_element_relations(

0 commit comments

Comments
 (0)