Skip to content

Commit fbe126b

Browse files
committed
PATCH: add id project to serializer getProjectFolderTreeSerializers
1 parent 554199b commit fbe126b

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

bimdata_api_client/api/collaboration_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8298,7 +8298,7 @@ def create_document(
82988298
):
82998299
"""Create a document # noqa: E501
83008300

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

@@ -8733,7 +8733,7 @@ def create_tag(
87338733
):
87348734
"""Create a tag # noqa: E501
87358735

8736-
Create a tag Required scopes: org:manage # noqa: E501
8736+
Create a tag Required scopes: document:write # noqa: E501
87378737
This method makes a synchronous HTTP request by default. To make an
87388738
asynchronous HTTP request, please pass async_req=True
87398739

@@ -10115,7 +10115,7 @@ def delete_tag(
1011510115
):
1011610116
"""Delete the tag # noqa: E501
1011710117

10118-
Delete the tag Required scopes: org:manage # noqa: E501
10118+
Delete the tag Required scopes: document:write # noqa: E501
1011910119
This method makes a synchronous HTTP request by default. To make an
1012010120
asynchronous HTTP request, please pass async_req=True
1012110121

@@ -13342,7 +13342,7 @@ def get_tag(
1334213342
):
1334313343
"""Retrieve a tag # noqa: E501
1334413344

13345-
Retrieve a tag in the project Required scopes: org:manage # noqa: E501
13345+
Retrieve a tag in the project Required scopes: document:read # noqa: E501
1334613346
This method makes a synchronous HTTP request by default. To make an
1334713347
asynchronous HTTP request, please pass async_req=True
1334813348

@@ -13427,7 +13427,7 @@ def get_tags(
1342713427
):
1342813428
"""Retrieve all tags # noqa: E501
1342913429

13430-
Retrieve all tags in the project Required scopes: org:manage # noqa: E501
13430+
Retrieve all tags in the project Required scopes: document:read # noqa: E501
1343113431
This method makes a synchronous HTTP request by default. To make an
1343213432
asynchronous HTTP request, please pass async_req=True
1343313433

@@ -15939,7 +15939,7 @@ def update_tag(
1593915939
):
1594015940
"""Update some fields of the tag # noqa: E501
1594115941

15942-
Update some fields of the tag Required scopes: org:manage # noqa: E501
15942+
Update some fields of the tag Required scopes: document:write # noqa: E501
1594315943
This method makes a synchronous HTTP request by default. To make an
1594415944
asynchronous HTTP request, please pass async_req=True
1594515945

bimdata_api_client/model/project_folder_tree.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def openapi_types():
8888
"""
8989
lazy_import()
9090
return {
91+
'id': (int,), # noqa: E501
9192
'name': (str,), # noqa: E501
9293
'folders': ([FolderTree],), # noqa: E501
9394
}
@@ -98,6 +99,7 @@ def discriminator():
9899

99100

100101
attribute_map = {
102+
'id': 'id', # noqa: E501
101103
'name': 'name', # noqa: E501
102104
'folders': 'folders', # noqa: E501
103105
}
@@ -109,10 +111,11 @@ def discriminator():
109111

110112
@classmethod
111113
@convert_js_args_to_python_args
112-
def _from_openapi_data(cls, name, folders, *args, **kwargs): # noqa: E501
114+
def _from_openapi_data(cls, id, name, folders, *args, **kwargs): # noqa: E501
113115
"""ProjectFolderTree - a model defined in OpenAPI
114116
115117
Args:
118+
id (int):
116119
name (str):
117120
folders ([FolderTree]):
118121
@@ -174,6 +177,7 @@ def _from_openapi_data(cls, name, folders, *args, **kwargs): # noqa: E501
174177
self._configuration = _configuration
175178
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176179

180+
self.id = id
177181
self.name = name
178182
self.folders = folders
179183
for var_name, var_value in kwargs.items():
@@ -196,10 +200,11 @@ def _from_openapi_data(cls, name, folders, *args, **kwargs): # noqa: E501
196200
])
197201

198202
@convert_js_args_to_python_args
199-
def __init__(self, name, folders, *args, **kwargs): # noqa: E501
203+
def __init__(self, id, name, folders, *args, **kwargs): # noqa: E501
200204
"""ProjectFolderTree - a model defined in OpenAPI
201205
202206
Args:
207+
id (int):
203208
name (str):
204209
folders ([FolderTree]):
205210
@@ -259,6 +264,7 @@ def __init__(self, name, folders, *args, **kwargs): # noqa: E501
259264
self._configuration = _configuration
260265
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261266

267+
self.id = id
262268
self.name = name
263269
self.folders = folders
264270
for var_name, var_value in kwargs.items():

docs/CollaborationApi.md

Lines changed: 6 additions & 6 deletions
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 {'IFC', 'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
1529+
Create a document. If the document is one of {'DXF', 'IFC', 'GLTF', 'OBJ', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
15301530

15311531
### Example
15321532

@@ -2112,7 +2112,7 @@ Name | Type | Description | Notes
21122112
21132113
Create a tag
21142114

2115-
Create a tag Required scopes: org:manage
2115+
Create a tag Required scopes: document:write
21162116

21172117
### Example
21182118

@@ -3856,7 +3856,7 @@ void (empty response body)
38563856
38573857
Delete the tag
38583858

3859-
Delete the tag Required scopes: org:manage
3859+
Delete the tag Required scopes: document:write
38603860

38613861
### Example
38623862

@@ -7965,7 +7965,7 @@ This endpoint does not need any parameter.
79657965
79667966
Retrieve a tag
79677967

7968-
Retrieve a tag in the project Required scopes: org:manage
7968+
Retrieve a tag in the project Required scopes: document:read
79697969

79707970
### Example
79717971

@@ -8072,7 +8072,7 @@ Name | Type | Description | Notes
80728072
80738073
Retrieve all tags
80748074

8075-
Retrieve all tags in the project Required scopes: org:manage
8075+
Retrieve all tags in the project Required scopes: document:read
80768076

80778077
### Example
80788078

@@ -11362,7 +11362,7 @@ Name | Type | Description | Notes
1136211362
1136311363
Update some fields of the tag
1136411364

11365-
Update some fields of the tag Required scopes: org:manage
11365+
Update some fields of the tag Required scopes: document:write
1136611366

1136711367
### Example
1136811368

docs/ProjectFolderTree.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**id** | **int** | |
78
**name** | **str** | |
89
**folders** | [**[FolderTree]**](FolderTree.md) | |
910
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

0 commit comments

Comments
 (0)