Skip to content

Commit 9f58aae

Browse files
committed
PATCH: fix create-dsm-tree serializer
1 parent 8ca3aa9 commit 9f58aae

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

bimdata_api_client/api/collaboration_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def __init__(self, api_client=None):
779779
'id':
780780
(int,),
781781
'write_folder_request':
782-
(WriteFolderRequest,),
782+
([WriteFolderRequest],),
783783
},
784784
'attribute_map': {
785785
'cloud_pk': 'cloud_pk',
@@ -7609,7 +7609,7 @@ def create_dms_tree(
76097609
Args:
76107610
cloud_pk (int):
76117611
id (int): A unique integer value identifying this project.
7612-
write_folder_request (WriteFolderRequest):
7612+
write_folder_request ([WriteFolderRequest]):
76137613

76147614
Keyword Args:
76157615
_return_http_data_only (bool): response data without head status
@@ -7686,7 +7686,7 @@ def create_document(
76867686
):
76877687
"""Create a document # noqa: E501
76887688

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

docs/CollaborationApi.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,14 +1249,16 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
12491249
api_instance = collaboration_api.CollaborationApi(api_client)
12501250
cloud_pk = 1 # int |
12511251
id = 1 # int | A unique integer value identifying this project.
1252-
write_folder_request = WriteFolderRequest(
1253-
parent_id=1,
1254-
name="name_example",
1255-
default_permission=1,
1256-
children=[
1257-
WriteFolderRequest(),
1258-
],
1259-
) # WriteFolderRequest |
1252+
write_folder_request = [
1253+
WriteFolderRequest(
1254+
parent_id=1,
1255+
name="name_example",
1256+
default_permission=1,
1257+
children=[
1258+
WriteFolderRequest(),
1259+
],
1260+
),
1261+
] # [WriteFolderRequest] |
12601262

12611263
# example passing only required values which don't have defaults set
12621264
try:
@@ -1273,7 +1275,7 @@ Name | Type | Description | Notes
12731275
------------- | ------------- | ------------- | -------------
12741276
**cloud_pk** | **int**| |
12751277
**id** | **int**| A unique integer value identifying this project. |
1276-
**write_folder_request** | [**WriteFolderRequest**](WriteFolderRequest.md)| |
1278+
**write_folder_request** | [**[WriteFolderRequest]**](WriteFolderRequest.md)| |
12771279

12781280
### Return type
12791281

@@ -1307,7 +1309,7 @@ void (empty response body)
13071309
13081310
Create a document
13091311

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

13121314
### Example
13131315

0 commit comments

Comments
 (0)