Skip to content

Commit e2b806e

Browse files
committed
MINOR: add model layout_name for DWG models (#780)
1 parent ef39b5e commit e2b806e

11 files changed

+36
-3
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8860,7 +8860,7 @@ def create_document(
88608860
):
88618861
"""Create a document # noqa: E501
88628862

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

bimdata_api_client/model/create_multi_page_model_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def openapi_types():
8383
"""
8484
return {
8585
'map_files': ([file_type],), # noqa: E501
86+
'layout_names': ([str], none_type,), # noqa: E501
8687
}
8788

8889
@cached_property
@@ -92,6 +93,7 @@ def discriminator():
9293

9394
attribute_map = {
9495
'map_files': 'map_files', # noqa: E501
96+
'layout_names': 'layout_names', # noqa: E501
9597
}
9698

9799
read_only_vars = {
@@ -138,6 +140,7 @@ def _from_openapi_data(cls, map_files, *args, **kwargs): # noqa: E501
138140
Animal class but this time we won't travel
139141
through its discriminator because we passed in
140142
_visited_composed_classes = (Animal,)
143+
layout_names ([str], none_type): [optional] # noqa: E501
141144
"""
142145

143146
_check_type = kwargs.pop('_check_type', True)
@@ -223,6 +226,7 @@ def __init__(self, map_files, *args, **kwargs): # noqa: E501
223226
Animal class but this time we won't travel
224227
through its discriminator because we passed in
225228
_visited_composed_classes = (Animal,)
229+
layout_names ([str], none_type): [optional] # noqa: E501
226230
"""
227231

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

bimdata_api_client/model/model.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ class Model(ModelNormal):
102102
('north_vector',): {
103103
'max_items': 2,
104104
},
105+
('layout_name',): {
106+
'max_length': 256,
107+
},
105108
}
106109

107110
@cached_property
@@ -158,6 +161,7 @@ def openapi_types():
158161
'version': (str, none_type,), # noqa: E501
159162
'north_vector': ([[float]], none_type,), # noqa: E501
160163
'recommanded_2d_angle': (float, none_type,), # noqa: E501
164+
'layout_name': (str, none_type,), # noqa: E501
161165
}
162166

163167
@cached_property
@@ -197,6 +201,7 @@ def discriminator():
197201
'version': 'version', # noqa: E501
198202
'north_vector': 'north_vector', # noqa: E501
199203
'recommanded_2d_angle': 'recommanded_2d_angle', # noqa: E501
204+
'layout_name': 'layout_name', # noqa: E501
200205
}
201206

202207
read_only_vars = {
@@ -296,6 +301,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
296301
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
297302
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
298303
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
304+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
299305
"""
300306

301307
_check_type = kwargs.pop('_check_type', True)
@@ -408,6 +414,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
408414
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
409415
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
410416
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
417+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
411418
"""
412419

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

bimdata_api_client/model/model_serializer_without_children.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ class ModelSerializerWithoutChildren(ModelNormal):
100100
('north_vector',): {
101101
'max_items': 2,
102102
},
103+
('layout_name',): {
104+
'max_length': 256,
105+
},
103106
}
104107

105108
@cached_property
@@ -155,6 +158,7 @@ def openapi_types():
155158
'version': (str, none_type,), # noqa: E501
156159
'north_vector': ([[float]], none_type,), # noqa: E501
157160
'recommanded_2d_angle': (float, none_type,), # noqa: E501
161+
'layout_name': (str, none_type,), # noqa: E501
158162
}
159163

160164
@cached_property
@@ -193,6 +197,7 @@ def discriminator():
193197
'version': 'version', # noqa: E501
194198
'north_vector': 'north_vector', # noqa: E501
195199
'recommanded_2d_angle': 'recommanded_2d_angle', # noqa: E501
200+
'layout_name': 'layout_name', # noqa: E501
196201
}
197202

198203
read_only_vars = {
@@ -290,6 +295,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
290295
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
291296
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
292297
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
298+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
293299
"""
294300

295301
_check_type = kwargs.pop('_check_type', True)
@@ -401,6 +407,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
401407
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
402408
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
403409
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
410+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
404411
"""
405412

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

bimdata_api_client/model/patched_model_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class PatchedModelRequest(ModelNormal):
7878
('north_vector',): {
7979
'max_items': 2,
8080
},
81+
('layout_name',): {
82+
'max_length': 256,
83+
},
8184
}
8285

8386
@cached_property
@@ -109,6 +112,7 @@ def openapi_types():
109112
'version': (str, none_type,), # noqa: E501
110113
'north_vector': ([[float]], none_type,), # noqa: E501
111114
'recommanded_2d_angle': (float, none_type,), # noqa: E501
115+
'layout_name': (str, none_type,), # noqa: E501
112116
}
113117

114118
@cached_property
@@ -125,6 +129,7 @@ def discriminator():
125129
'version': 'version', # noqa: E501
126130
'north_vector': 'north_vector', # noqa: E501
127131
'recommanded_2d_angle': 'recommanded_2d_angle', # noqa: E501
132+
'layout_name': 'layout_name', # noqa: E501
128133
}
129134

130135
read_only_vars = {
@@ -176,6 +181,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
176181
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
177182
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
178183
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
184+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
179185
"""
180186

181187
_check_type = kwargs.pop('_check_type', True)
@@ -265,6 +271,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
265271
version (str, none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
266272
north_vector ([[float]], none_type): This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
267273
recommanded_2d_angle (float, none_type): This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export.. [optional] # noqa: E501
274+
layout_name (str, none_type): The name of the DWG layout (only set when type==DWG). [optional] # noqa: E501
268275
"""
269276

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

docs/CollaborationApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14821482
id = 1 # int | A unique integer value identifying this project.
14831483
write_folder_request = [
14841484
WriteFolderRequest(
1485+
name="name_example",
14851486
default_permission=1,
14861487
parent_id=1,
1487-
name="name_example",
14881488
children=[
14891489
WriteFolderRequest(),
14901490
],
@@ -1541,7 +1541,7 @@ Name | Type | Description | Notes
15411541
15421542
Create a document
15431543

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

15461546
### Example
15471547

docs/CreateMultiPageModelRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**map_files** | **[file_type]** | |
8+
**layout_names** | **[str], none_type** | | [optional]
89
**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]
910

1011
[[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/Model.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Name | Type | Description | Notes
3535
**version** | **str, none_type** | This field is only for information. Updating it won't impact the export. | [optional]
3636
**north_vector** | **[[float]], none_type** | This field is only for information. Updating it won't impact the export. | [optional]
3737
**recommanded_2d_angle** | **float, none_type** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
38+
**layout_name** | **str, none_type** | The name of the DWG layout (only set when type==DWG) | [optional]
3839
**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]
3940

4041
[[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/ModelApi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,6 +3986,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
39863986
map_files=[
39873987
open('/path/to/file', 'rb'),
39883988
],
3989+
layout_names=[
3990+
"layout_names_example",
3991+
],
39893992
) # CreateMultiPageModelRequest |
39903993

39913994
# example passing only required values which don't have defaults set
@@ -16431,6 +16434,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1643116434
],
1643216435
],
1643316436
recommanded_2d_angle=3.14,
16437+
layout_name="layout_name_example",
1643416438
) # PatchedModelRequest | (optional)
1643516439

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

docs/ModelSerializerWithoutChildren.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
3434
**version** | **str, none_type** | This field is only for information. Updating it won't impact the export. | [optional]
3535
**north_vector** | **[[float]], none_type** | This field is only for information. Updating it won't impact the export. | [optional]
3636
**recommanded_2d_angle** | **float, none_type** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
37+
**layout_name** | **str, none_type** | The name of the DWG layout (only set when type==DWG) | [optional]
3738
**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]
3839

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

0 commit comments

Comments
 (0)