Skip to content

Commit 391aa88

Browse files
committed
MINOR: feat(organization): add main_model field to Project model
1 parent 5e30ae8 commit 391aa88

File tree

10 files changed

+26
-3
lines changed

10 files changed

+26
-3
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8373,7 +8373,7 @@ def create_document(
83738373
):
83748374
"""Create a document # noqa: E501
83758375

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

bimdata_api_client/model/patched_project_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def openapi_types():
9595
'description': (str, none_type,), # noqa: E501
9696
'status': (str,), # noqa: E501
9797
'parent_id': (int, none_type,), # noqa: E501
98+
'main_model_id': (int, none_type,), # noqa: E501
9899
}
99100

100101
@cached_property
@@ -108,6 +109,7 @@ def discriminator():
108109
'description': 'description', # noqa: E501
109110
'status': 'status', # noqa: E501
110111
'parent_id': 'parent_id', # noqa: E501
112+
'main_model_id': 'main_model_id', # noqa: E501
111113
}
112114

113115
read_only_vars = {
@@ -156,6 +158,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
156158
description (str, none_type): [optional] # noqa: E501
157159
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
158160
parent_id (int, none_type): [optional] # noqa: E501
161+
main_model_id (int, none_type): [optional] # noqa: E501
159162
"""
160163

161164
_check_type = kwargs.pop('_check_type', True)
@@ -242,6 +245,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
242245
description (str, none_type): [optional] # noqa: E501
243246
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
244247
parent_id (int, none_type): [optional] # noqa: E501
248+
main_model_id (int, none_type): [optional] # noqa: E501
245249
"""
246250

247251
_check_type = kwargs.pop('_check_type', True)

bimdata_api_client/model/project.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def openapi_types():
105105
'description': (str, none_type,), # noqa: E501
106106
'status': (str,), # noqa: E501
107107
'parent_id': (int, none_type,), # noqa: E501
108+
'main_model_id': (int, none_type,), # noqa: E501
108109
}
109110

110111
@cached_property
@@ -123,6 +124,7 @@ def discriminator():
123124
'description': 'description', # noqa: E501
124125
'status': 'status', # noqa: E501
125126
'parent_id': 'parent_id', # noqa: E501
127+
'main_model_id': 'main_model_id', # noqa: E501
126128
}
127129

128130
read_only_vars = {
@@ -183,6 +185,7 @@ def _from_openapi_data(cls, id, name, cloud, created_at, updated_at, root_folder
183185
description (str, none_type): [optional] # noqa: E501
184186
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
185187
parent_id (int, none_type): [optional] # noqa: E501
188+
main_model_id (int, none_type): [optional] # noqa: E501
186189
"""
187190

188191
_check_type = kwargs.pop('_check_type', True)
@@ -275,6 +278,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
275278
description (str, none_type): [optional] # noqa: E501
276279
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
277280
parent_id (int, none_type): [optional] # noqa: E501
281+
main_model_id (int, none_type): [optional] # noqa: E501
278282
"""
279283

280284
_check_type = kwargs.pop('_check_type', True)

bimdata_api_client/model/project_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def openapi_types():
9595
'description': (str, none_type,), # noqa: E501
9696
'status': (str,), # noqa: E501
9797
'parent_id': (int, none_type,), # noqa: E501
98+
'main_model_id': (int, none_type,), # noqa: E501
9899
}
99100

100101
@cached_property
@@ -108,6 +109,7 @@ def discriminator():
108109
'description': 'description', # noqa: E501
109110
'status': 'status', # noqa: E501
110111
'parent_id': 'parent_id', # noqa: E501
112+
'main_model_id': 'main_model_id', # noqa: E501
111113
}
112114

113115
read_only_vars = {
@@ -158,6 +160,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
158160
description (str, none_type): [optional] # noqa: E501
159161
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
160162
parent_id (int, none_type): [optional] # noqa: E501
163+
main_model_id (int, none_type): [optional] # noqa: E501
161164
"""
162165

163166
_check_type = kwargs.pop('_check_type', True)
@@ -247,6 +250,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
247250
description (str, none_type): [optional] # noqa: E501
248251
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
249252
parent_id (int, none_type): [optional] # noqa: E501
253+
main_model_id (int, none_type): [optional] # noqa: E501
250254
"""
251255

252256
_check_type = kwargs.pop('_check_type', True)

bimdata_api_client/model/project_with_children.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def openapi_types():
9595
'updated_at': (datetime,), # noqa: E501
9696
'children': ([ProjectWithChildren],), # noqa: E501
9797
'root_folder_id': (int, none_type,), # noqa: E501
98+
'main_model_id': (int, none_type,), # noqa: E501
9899
'logo': (str, none_type,), # noqa: E501
99100
'description': (str, none_type,), # noqa: E501
100101
'status': (str,), # noqa: E501
@@ -113,6 +114,7 @@ def discriminator():
113114
'updated_at': 'updated_at', # noqa: E501
114115
'children': 'children', # noqa: E501
115116
'root_folder_id': 'root_folder_id', # noqa: E501
117+
'main_model_id': 'main_model_id', # noqa: E501
116118
'logo': 'logo', # noqa: E501
117119
'description': 'description', # noqa: E501
118120
'status': 'status', # noqa: E501
@@ -125,13 +127,14 @@ def discriminator():
125127
'updated_at', # noqa: E501
126128
'children', # noqa: E501
127129
'root_folder_id', # noqa: E501
130+
'main_model_id', # noqa: E501
128131
}
129132

130133
_composed_schemas = {}
131134

132135
@classmethod
133136
@convert_js_args_to_python_args
134-
def _from_openapi_data(cls, id, name, created_at, updated_at, children, root_folder_id, *args, **kwargs): # noqa: E501
137+
def _from_openapi_data(cls, id, name, created_at, updated_at, children, root_folder_id, main_model_id, *args, **kwargs): # noqa: E501
135138
"""ProjectWithChildren - a model defined in OpenAPI
136139
137140
Args:
@@ -141,6 +144,7 @@ def _from_openapi_data(cls, id, name, created_at, updated_at, children, root_fol
141144
updated_at (datetime): Date of the last update
142145
children ([ProjectWithChildren]):
143146
root_folder_id (int, none_type):
147+
main_model_id (int, none_type): Main model of the project
144148
145149
Keyword Args:
146150
_check_type (bool): if True, values for parameters in openapi_types
@@ -210,6 +214,7 @@ def _from_openapi_data(cls, id, name, created_at, updated_at, children, root_fol
210214
self.updated_at = updated_at
211215
self.children = children
212216
self.root_folder_id = root_folder_id
217+
self.main_model_id = main_model_id
213218
for var_name, var_value in kwargs.items():
214219
if var_name not in self.attribute_map and \
215220
self._configuration is not None and \

docs/CollaborationApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ Name | Type | Description | Notes
15271527
15281528
Create a document
15291529

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

15321532
### Example
15331533

@@ -1946,6 +1946,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
19461946
description="description_example",
19471947
status="A",
19481948
parent_id=1,
1949+
main_model_id=1,
19491950
) # ProjectRequest |
19501951

19511952
# example passing only required values which don't have defaults set
@@ -11177,6 +11178,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1117711178
description="description_example",
1117811179
status="A",
1117911180
parent_id=1,
11181+
main_model_id=1,
1118011182
) # PatchedProjectRequest | (optional)
1118111183

1118211184
# example passing only required values which don't have defaults set

docs/PatchedProjectRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**description** | **str, none_type** | | [optional]
1010
**status** | **str** | * `A` - active * `D` - deleted | [optional]
1111
**parent_id** | **int, none_type** | | [optional]
12+
**main_model_id** | **int, none_type** | | [optional]
1213
**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]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**description** | **str, none_type** | | [optional]
1515
**status** | **str** | * `A` - active * `D` - deleted | [optional]
1616
**parent_id** | **int, none_type** | | [optional]
17+
**main_model_id** | **int, none_type** | | [optional]
1718
**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]
1819

1920
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ProjectRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**description** | **str, none_type** | | [optional]
1010
**status** | **str** | * `A` - active * `D` - deleted | [optional]
1111
**parent_id** | **int, none_type** | | [optional]
12+
**main_model_id** | **int, none_type** | | [optional]
1213
**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]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ProjectWithChildren.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**updated_at** | **datetime** | Date of the last update | [readonly]
1111
**children** | [**[ProjectWithChildren]**](ProjectWithChildren.md) | | [readonly]
1212
**root_folder_id** | **int, none_type** | | [readonly]
13+
**main_model_id** | **int, none_type** | Main model of the project | [readonly]
1314
**logo** | **str, none_type** | | [optional]
1415
**description** | **str, none_type** | | [optional]
1516
**status** | **str** | * `A` - active * `D` - deleted | [optional]

0 commit comments

Comments
 (0)