Skip to content

Commit 250dc2c

Browse files
committed
MINOR: remove smart_data from get_size routes
1 parent b71fa60 commit 250dc2c

File tree

6 files changed

+5
-35
lines changed

6 files changed

+5
-35
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 {'DXF', 'POINT_CLOUD', 'OBJ', 'DWG', 'IFC', 'GLTF'}, 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 {'OBJ', 'IFC', 'POINT_CLOUD', 'GLTF', 'DXF', '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/project_size.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def openapi_types():
8383
"""
8484
return {
8585
'total_size': (int, none_type,), # noqa: E501
86-
'smart_data_size': (int, none_type,), # noqa: E501
8786
}
8887

8988
@cached_property
@@ -93,24 +92,21 @@ def discriminator():
9392

9493
attribute_map = {
9594
'total_size': 'total_size', # noqa: E501
96-
'smart_data_size': 'smart_data_size', # noqa: E501
9795
}
9896

9997
read_only_vars = {
10098
'total_size', # noqa: E501
101-
'smart_data_size', # noqa: E501
10299
}
103100

104101
_composed_schemas = {}
105102

106103
@classmethod
107104
@convert_js_args_to_python_args
108-
def _from_openapi_data(cls, total_size, smart_data_size, *args, **kwargs): # noqa: E501
105+
def _from_openapi_data(cls, total_size, *args, **kwargs): # noqa: E501
109106
"""ProjectSize - a model defined in OpenAPI
110107
111108
Args:
112109
total_size (int, none_type):
113-
smart_data_size (int, none_type):
114110
115111
Keyword Args:
116112
_check_type (bool): if True, values for parameters in openapi_types
@@ -171,7 +167,6 @@ def _from_openapi_data(cls, total_size, smart_data_size, *args, **kwargs): # no
171167
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172168

173169
self.total_size = total_size
174-
self.smart_data_size = smart_data_size
175170
for var_name, var_value in kwargs.items():
176171
if var_name not in self.attribute_map and \
177172
self._configuration is not None and \

bimdata_api_client/model/size.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,9 @@ def openapi_types():
9393
'managed_by': (str,), # noqa: E501
9494
'role': (int,), # noqa: E501
9595
'total_size': (int, none_type,), # noqa: E501
96-
'smart_data_size': (int, none_type,), # noqa: E501
9796
'total_size_available': (int, none_type,), # noqa: E501
98-
'smart_data_size_available': (int, none_type,), # noqa: E501
9997
'remaining_total_size': (int, none_type,), # noqa: E501
100-
'remaining_smart_data_size': (int, none_type,), # noqa: E501
10198
'remaining_total_size_percent': (int, none_type,), # noqa: E501
102-
'remaining_smart_data_size_percent': (int, none_type,), # noqa: E501
10399
}
104100

105101
@cached_property
@@ -111,44 +107,32 @@ def discriminator():
111107
'managed_by': 'managed_by', # noqa: E501
112108
'role': 'role', # noqa: E501
113109
'total_size': 'total_size', # noqa: E501
114-
'smart_data_size': 'smart_data_size', # noqa: E501
115110
'total_size_available': 'total_size_available', # noqa: E501
116-
'smart_data_size_available': 'smart_data_size_available', # noqa: E501
117111
'remaining_total_size': 'remaining_total_size', # noqa: E501
118-
'remaining_smart_data_size': 'remaining_smart_data_size', # noqa: E501
119112
'remaining_total_size_percent': 'remaining_total_size_percent', # noqa: E501
120-
'remaining_smart_data_size_percent': 'remaining_smart_data_size_percent', # noqa: E501
121113
}
122114

123115
read_only_vars = {
124116
'total_size', # noqa: E501
125-
'smart_data_size', # noqa: E501
126117
'total_size_available', # noqa: E501
127-
'smart_data_size_available', # noqa: E501
128118
'remaining_total_size', # noqa: E501
129-
'remaining_smart_data_size', # noqa: E501
130119
'remaining_total_size_percent', # noqa: E501
131-
'remaining_smart_data_size_percent', # noqa: E501
132120
}
133121

134122
_composed_schemas = {}
135123

136124
@classmethod
137125
@convert_js_args_to_python_args
138-
def _from_openapi_data(cls, managed_by, role, total_size, smart_data_size, total_size_available, smart_data_size_available, remaining_total_size, remaining_smart_data_size, remaining_total_size_percent, remaining_smart_data_size_percent, *args, **kwargs): # noqa: E501
126+
def _from_openapi_data(cls, managed_by, role, total_size, total_size_available, remaining_total_size, remaining_total_size_percent, *args, **kwargs): # noqa: E501
139127
"""Size - a model defined in OpenAPI
140128
141129
Args:
142130
managed_by (str): * `BIMDATA_PLATFORM` - BIMDATA_PLATFORM * `ORGANIZATION` - ORGANIZATION
143131
role (int): * `100` - admin * `50` - user
144132
total_size (int, none_type):
145-
smart_data_size (int, none_type):
146133
total_size_available (int, none_type):
147-
smart_data_size_available (int, none_type):
148134
remaining_total_size (int, none_type):
149-
remaining_smart_data_size (int, none_type):
150135
remaining_total_size_percent (int, none_type):
151-
remaining_smart_data_size_percent (int, none_type):
152136
153137
Keyword Args:
154138
_check_type (bool): if True, values for parameters in openapi_types
@@ -211,13 +195,9 @@ def _from_openapi_data(cls, managed_by, role, total_size, smart_data_size, total
211195
self.managed_by = managed_by
212196
self.role = role
213197
self.total_size = total_size
214-
self.smart_data_size = smart_data_size
215198
self.total_size_available = total_size_available
216-
self.smart_data_size_available = smart_data_size_available
217199
self.remaining_total_size = remaining_total_size
218-
self.remaining_smart_data_size = remaining_smart_data_size
219200
self.remaining_total_size_percent = remaining_total_size_percent
220-
self.remaining_smart_data_size_percent = remaining_smart_data_size_percent
221201
for var_name, var_value in kwargs.items():
222202
if var_name not in self.attribute_map and \
223203
self._configuration is not None and \

docs/CollaborationApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,8 +1483,8 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14831483
write_folder_request = [
14841484
WriteFolderRequest(
14851485
parent_id=1,
1486-
default_permission=1,
14871486
name="name_example",
1487+
default_permission=1,
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 {'DXF', 'POINT_CLOUD', 'OBJ', 'DWG', 'IFC', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
1544+
Create a document. If the document is one of {'OBJ', 'IFC', 'POINT_CLOUD', 'GLTF', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
15451545

15461546
### Example
15471547

docs/ProjectSize.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**total_size** | **int, none_type** | | [readonly]
8-
**smart_data_size** | **int, none_type** | | [readonly]
98
**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]
109

1110
[[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/Size.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ Name | Type | Description | Notes
77
**managed_by** | **str** | * `BIMDATA_PLATFORM` - BIMDATA_PLATFORM * `ORGANIZATION` - ORGANIZATION |
88
**role** | **int** | * `100` - admin * `50` - user |
99
**total_size** | **int, none_type** | | [readonly]
10-
**smart_data_size** | **int, none_type** | | [readonly]
1110
**total_size_available** | **int, none_type** | | [readonly]
12-
**smart_data_size_available** | **int, none_type** | | [readonly]
1311
**remaining_total_size** | **int, none_type** | | [readonly]
14-
**remaining_smart_data_size** | **int, none_type** | | [readonly]
1512
**remaining_total_size_percent** | **int, none_type** | | [readonly]
16-
**remaining_smart_data_size_percent** | **int, none_type** | | [readonly]
1713
**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]
1814

1915
[[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)