Skip to content

Commit f7fe306

Browse files
committed
PATCH: add size-ratios for create-multimodel (#891)
1 parent d77acee commit f7fe306

File tree

7 files changed

+37
-29
lines changed

7 files changed

+37
-29
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8815,7 +8815,7 @@ def create_document(
88158815
):
88168816
"""Create a document # noqa: E501
88178817

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

bimdata_api_client/model/create_multi_page_model_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def openapi_types():
8484
return {
8585
'map_files': ([file_type],), # noqa: E501
8686
'layout_names': ([str], none_type,), # noqa: E501
87+
'size_ratios': ([float], none_type,), # noqa: E501
8788
}
8889

8990
@cached_property
@@ -94,6 +95,7 @@ def discriminator():
9495
attribute_map = {
9596
'map_files': 'map_files', # noqa: E501
9697
'layout_names': 'layout_names', # noqa: E501
98+
'size_ratios': 'size_ratios', # noqa: E501
9799
}
98100

99101
read_only_vars = {
@@ -141,6 +143,7 @@ def _from_openapi_data(cls, map_files, *args, **kwargs): # noqa: E501
141143
through its discriminator because we passed in
142144
_visited_composed_classes = (Animal,)
143145
layout_names ([str], none_type): [optional] # noqa: E501
146+
size_ratios ([float], none_type): [optional] # noqa: E501
144147
"""
145148

146149
_check_type = kwargs.pop('_check_type', True)
@@ -227,6 +230,7 @@ def __init__(self, map_files, *args, **kwargs): # noqa: E501
227230
through its discriminator because we passed in
228231
_visited_composed_classes = (Animal,)
229232
layout_names ([str], none_type): [optional] # noqa: E501
233+
size_ratios ([float], none_type): [optional] # noqa: E501
230234
"""
231235

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

bimdata_api_client/model/write_folder.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ def openapi_types():
108108
lazy_import()
109109
return {
110110
'updated_at': (datetime,), # noqa: E501
111+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
111112
'name': (str,), # noqa: E501
113+
'id': (int,), # noqa: E501
114+
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
115+
'user_permission': (int,), # noqa: E501
112116
'nature': (str,), # noqa: E501
113117
'created_at': (datetime,), # noqa: E501
114118
'type': (str,), # noqa: E501
115-
'user_permission': (int,), # noqa: E501
116-
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
117-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
118-
'id': (int,), # noqa: E501
119119
'parent_id': (int, none_type,), # noqa: E501
120120
'default_permission': (int,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
@@ -128,47 +128,47 @@ def discriminator():
128128

129129
attribute_map = {
130130
'updated_at': 'updated_at', # noqa: E501
131+
'groups_permissions': 'groups_permissions', # noqa: E501
131132
'name': 'name', # noqa: E501
133+
'id': 'id', # noqa: E501
134+
'created_by': 'created_by', # noqa: E501
135+
'user_permission': 'user_permission', # noqa: E501
132136
'nature': 'nature', # noqa: E501
133137
'created_at': 'created_at', # noqa: E501
134138
'type': 'type', # noqa: E501
135-
'user_permission': 'user_permission', # noqa: E501
136-
'created_by': 'created_by', # noqa: E501
137-
'groups_permissions': 'groups_permissions', # noqa: E501
138-
'id': 'id', # noqa: E501
139139
'parent_id': 'parent_id', # noqa: E501
140140
'default_permission': 'default_permission', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145145
'updated_at', # noqa: E501
146+
'groups_permissions', # noqa: E501
147+
'id', # noqa: E501
148+
'created_by', # noqa: E501
149+
'user_permission', # noqa: E501
146150
'nature', # noqa: E501
147151
'created_at', # noqa: E501
148152
'type', # noqa: E501
149-
'user_permission', # noqa: E501
150-
'created_by', # noqa: E501
151-
'groups_permissions', # noqa: E501
152-
'id', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

157157
@classmethod
158158
@convert_js_args_to_python_args
159-
def _from_openapi_data(cls, updated_at, name, nature, created_at, type, user_permission, created_by, groups_permissions, id, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, updated_at, groups_permissions, name, id, created_by, user_permission, nature, created_at, type, *args, **kwargs): # noqa: E501
160160
"""WriteFolder - a model defined in OpenAPI
161161
162162
Args:
163163
updated_at (datetime): Date of the last update
164+
groups_permissions ([GroupFolderRead]): List of group permissions
164165
name (str): Name of the folder
166+
id (int):
167+
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
168+
user_permission (int): Aggregate of group user permissions and folder default permission
165169
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
166170
created_at (datetime): Creation date
167171
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
168-
user_permission (int): Aggregate of group user permissions and folder default permission
169-
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
170-
groups_permissions ([GroupFolderRead]): List of group permissions
171-
id (int):
172172
173173
Keyword Args:
174174
_check_type (bool): if True, values for parameters in openapi_types
@@ -232,14 +232,14 @@ def _from_openapi_data(cls, updated_at, name, nature, created_at, type, user_per
232232
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
233233

234234
self.updated_at = updated_at
235+
self.groups_permissions = groups_permissions
235236
self.name = name
237+
self.id = id
238+
self.created_by = created_by
239+
self.user_permission = user_permission
236240
self.nature = nature
237241
self.created_at = created_at
238242
self.type = type
239-
self.user_permission = user_permission
240-
self.created_by = created_by
241-
self.groups_permissions = groups_permissions
242-
self.id = id
243243
for var_name, var_value in kwargs.items():
244244
if var_name not in self.attribute_map and \
245245
self._configuration is not None and \

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,13 +1481,13 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14811481
id = 1 # int | A unique integer value identifying this project.
14821482
write_folder_request = [
14831483
WriteFolderRequest(
1484-
name="name_example",
14851484
parent_id=1,
1485+
name="name_example",
14861486
default_permission=1,
14871487
children=[
14881488
WriteFolder(
1489-
name="name_example",
14901489
parent_id=1,
1490+
name="name_example",
14911491
default_permission=1,
14921492
children=None,
14931493
),
@@ -1545,7 +1545,7 @@ Name | Type | Description | Notes
15451545
15461546
Create a document
15471547

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

15501550
### Example
15511551

docs/CreateMultiPageModelRequest.md

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

1112
[[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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,6 +4258,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
42584258
layout_names=[
42594259
"layout_names_example",
42604260
],
4261+
size_ratios=[
4262+
3.14,
4263+
],
42614264
) # CreateMultiPageModelRequest |
42624265

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

docs/WriteFolder.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**updated_at** | **datetime** | Date of the last update | [readonly]
8+
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
89
**name** | **str** | Name of the folder |
10+
**id** | **int** | | [readonly]
11+
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
12+
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
913
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
1014
**created_at** | **datetime** | Creation date | [readonly]
1115
**type** | **str** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
12-
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
13-
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
14-
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
15-
**id** | **int** | | [readonly]
1616
**parent_id** | **int, none_type** | | [optional]
1717
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1818
**children** | [**[WriteFolder], none_type**](WriteFolder.md) | | [optional]

0 commit comments

Comments
 (0)