Skip to content

Commit

Permalink
MINOR: remove smart_data from get_size routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Sep 16, 2024
1 parent b71fa60 commit 250dc2c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 35 deletions.
2 changes: 1 addition & 1 deletion bimdata_api_client/api/collaboration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8860,7 +8860,7 @@ def create_document(
):
"""Create a document # noqa: E501

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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
7 changes: 1 addition & 6 deletions bimdata_api_client/model/project_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def openapi_types():
"""
return {
'total_size': (int, none_type,), # noqa: E501
'smart_data_size': (int, none_type,), # noqa: E501
}

@cached_property
Expand All @@ -93,24 +92,21 @@ def discriminator():

attribute_map = {
'total_size': 'total_size', # noqa: E501
'smart_data_size': 'smart_data_size', # noqa: E501
}

read_only_vars = {
'total_size', # noqa: E501
'smart_data_size', # noqa: E501
}

_composed_schemas = {}

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, total_size, smart_data_size, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, total_size, *args, **kwargs): # noqa: E501
"""ProjectSize - a model defined in OpenAPI
Args:
total_size (int, none_type):
smart_data_size (int, none_type):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -171,7 +167,6 @@ def _from_openapi_data(cls, total_size, smart_data_size, *args, **kwargs): # no
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.total_size = total_size
self.smart_data_size = smart_data_size
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down
22 changes: 1 addition & 21 deletions bimdata_api_client/model/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,9 @@ def openapi_types():
'managed_by': (str,), # noqa: E501
'role': (int,), # noqa: E501
'total_size': (int, none_type,), # noqa: E501
'smart_data_size': (int, none_type,), # noqa: E501
'total_size_available': (int, none_type,), # noqa: E501
'smart_data_size_available': (int, none_type,), # noqa: E501
'remaining_total_size': (int, none_type,), # noqa: E501
'remaining_smart_data_size': (int, none_type,), # noqa: E501
'remaining_total_size_percent': (int, none_type,), # noqa: E501
'remaining_smart_data_size_percent': (int, none_type,), # noqa: E501
}

@cached_property
Expand All @@ -111,44 +107,32 @@ def discriminator():
'managed_by': 'managed_by', # noqa: E501
'role': 'role', # noqa: E501
'total_size': 'total_size', # noqa: E501
'smart_data_size': 'smart_data_size', # noqa: E501
'total_size_available': 'total_size_available', # noqa: E501
'smart_data_size_available': 'smart_data_size_available', # noqa: E501
'remaining_total_size': 'remaining_total_size', # noqa: E501
'remaining_smart_data_size': 'remaining_smart_data_size', # noqa: E501
'remaining_total_size_percent': 'remaining_total_size_percent', # noqa: E501
'remaining_smart_data_size_percent': 'remaining_smart_data_size_percent', # noqa: E501
}

read_only_vars = {
'total_size', # noqa: E501
'smart_data_size', # noqa: E501
'total_size_available', # noqa: E501
'smart_data_size_available', # noqa: E501
'remaining_total_size', # noqa: E501
'remaining_smart_data_size', # noqa: E501
'remaining_total_size_percent', # noqa: E501
'remaining_smart_data_size_percent', # noqa: E501
}

_composed_schemas = {}

@classmethod
@convert_js_args_to_python_args
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
def _from_openapi_data(cls, managed_by, role, total_size, total_size_available, remaining_total_size, remaining_total_size_percent, *args, **kwargs): # noqa: E501
"""Size - a model defined in OpenAPI
Args:
managed_by (str): * `BIMDATA_PLATFORM` - BIMDATA_PLATFORM * `ORGANIZATION` - ORGANIZATION
role (int): * `100` - admin * `50` - user
total_size (int, none_type):
smart_data_size (int, none_type):
total_size_available (int, none_type):
smart_data_size_available (int, none_type):
remaining_total_size (int, none_type):
remaining_smart_data_size (int, none_type):
remaining_total_size_percent (int, none_type):
remaining_smart_data_size_percent (int, none_type):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -211,13 +195,9 @@ def _from_openapi_data(cls, managed_by, role, total_size, smart_data_size, total
self.managed_by = managed_by
self.role = role
self.total_size = total_size
self.smart_data_size = smart_data_size
self.total_size_available = total_size_available
self.smart_data_size_available = smart_data_size_available
self.remaining_total_size = remaining_total_size
self.remaining_smart_data_size = remaining_smart_data_size
self.remaining_total_size_percent = remaining_total_size_percent
self.remaining_smart_data_size_percent = remaining_smart_data_size_percent
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down
4 changes: 2 additions & 2 deletions docs/CollaborationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,8 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
write_folder_request = [
WriteFolderRequest(
parent_id=1,
default_permission=1,
name="name_example",
default_permission=1,
children=[
WriteFolderRequest(),
],
Expand Down Expand Up @@ -1541,7 +1541,7 @@ Name | Type | Description | Notes
Create a document

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
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

### Example

Expand Down
1 change: 0 additions & 1 deletion docs/ProjectSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total_size** | **int, none_type** | | [readonly]
**smart_data_size** | **int, none_type** | | [readonly]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
4 changes: 0 additions & 4 deletions docs/Size.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ Name | Type | Description | Notes
**managed_by** | **str** | * `BIMDATA_PLATFORM` - BIMDATA_PLATFORM * `ORGANIZATION` - ORGANIZATION |
**role** | **int** | * `100` - admin * `50` - user |
**total_size** | **int, none_type** | | [readonly]
**smart_data_size** | **int, none_type** | | [readonly]
**total_size_available** | **int, none_type** | | [readonly]
**smart_data_size_available** | **int, none_type** | | [readonly]
**remaining_total_size** | **int, none_type** | | [readonly]
**remaining_smart_data_size** | **int, none_type** | | [readonly]
**remaining_total_size_percent** | **int, none_type** | | [readonly]
**remaining_smart_data_size_percent** | **int, none_type** | | [readonly]
**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]

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

0 comments on commit 250dc2c

Please sign in to comment.