Skip to content

Commit

Permalink
MINOR: remove sub projects (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Oct 24, 2024
1 parent 83bbed4 commit 640445c
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 275 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ Class | Method | HTTP request | Description
*CollaborationApi* | [**get_project_folder_tree**](docs/CollaborationApi.md#get_project_folder_tree) | **GET** /cloud/{cloud_pk}/project/{id}/folder-tree | Retrieve folder tree of the project
*CollaborationApi* | [**get_project_invitations**](docs/CollaborationApi.md#get_project_invitations) | **GET** /cloud/{cloud_pk}/project/{project_pk}/invitation | Retrieve all pending invitations in the project
*CollaborationApi* | [**get_project_size**](docs/CollaborationApi.md#get_project_size) | **GET** /cloud/{cloud_pk}/project/{id}/size | Get size of all model files in the project
*CollaborationApi* | [**get_project_sub_tree**](docs/CollaborationApi.md#get_project_sub_tree) | **GET** /cloud/{cloud_pk}/project/subtree | Retrieve the complete projects tree of the cloud
*CollaborationApi* | [**get_project_tree**](docs/CollaborationApi.md#get_project_tree) | **GET** /cloud/{cloud_pk}/project/{id}/tree | Retrieve the complete DMS tree
*CollaborationApi* | [**get_project_users**](docs/CollaborationApi.md#get_project_users) | **GET** /cloud/{cloud_pk}/project/{project_pk}/user | Retrieve all users in a project, or a list with a filter by email
*CollaborationApi* | [**get_project_validator_visas**](docs/CollaborationApi.md#get_project_validator_visas) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/visa/validator | List visas where user is a validator
Expand Down
134 changes: 1 addition & 133 deletions bimdata_api_client/api/collaboration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4915,60 +4915,6 @@ def __init__(self, api_client=None):
},
api_client=api_client
)
self.get_project_sub_tree_endpoint = _Endpoint(
settings={
'response_type': ([ProjectWithChildren],),
'auth': [
'ApiKey',
'BIMData_Connect',
'BIMData_Connect',
'Bearer'
],
'endpoint_path': '/cloud/{cloud_pk}/project/subtree',
'operation_id': 'get_project_sub_tree',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'cloud_pk',
],
'required': [
'cloud_pk',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'cloud_pk':
(int,),
},
'attribute_map': {
'cloud_pk': 'cloud_pk',
},
'location_map': {
'cloud_pk': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.get_project_tree_endpoint = _Endpoint(
settings={
'response_type': (Folder,),
Expand Down Expand Up @@ -8860,7 +8806,7 @@ def create_document(
):
"""Create a document # noqa: E501

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
Create a document. If the document is one of {'DXF', 'IFC', 'POINT_CLOUD', 'GLTF', 'DWG', 'OBJ'}, 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 Expand Up @@ -13577,84 +13523,6 @@ def get_project_size(
id
return self.get_project_size_endpoint.call_with_http_info(**kwargs)

def get_project_sub_tree(
self,
cloud_pk,
**kwargs
):
"""Retrieve the complete projects tree of the cloud # noqa: E501

Retrieve the complete projects tree of the cloud # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_project_sub_tree(cloud_pk, async_req=True)
>>> result = thread.get()

Args:
cloud_pk (int):

Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously

Returns:
[ProjectWithChildren]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['cloud_pk'] = \
cloud_pk
return self.get_project_sub_tree_endpoint.call_with_http_info(**kwargs)

def get_project_tree(
self,
cloud_pk,
Expand Down
10 changes: 4 additions & 6 deletions bimdata_api_client/model/group_folder_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def openapi_types():
"""
lazy_import()
return {
'group': (Group,), # noqa: E501
'group': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
'permission': (int, none_type,), # noqa: E501
}

Expand All @@ -110,6 +110,7 @@ def discriminator():
}

read_only_vars = {
'group', # noqa: E501
}

_composed_schemas = {}
Expand All @@ -120,7 +121,7 @@ def _from_openapi_data(cls, group, permission, *args, **kwargs): # noqa: E501
"""GroupFolderRead - a model defined in OpenAPI
Args:
group (Group):
group (bool, date, datetime, dict, float, int, list, str, none_type):
permission (int, none_type): * `1` - denied * `50` - read_only * `100` - read_write
Keyword Args:
Expand Down Expand Up @@ -203,11 +204,9 @@ def _from_openapi_data(cls, group, permission, *args, **kwargs): # noqa: E501
])

@convert_js_args_to_python_args
def __init__(self, group, permission, *args, **kwargs): # noqa: E501
def __init__(self, permission, *args, **kwargs): # noqa: E501
"""GroupFolderRead - a model defined in OpenAPI
Args:
group (Group):
permission (int, none_type): * `1` - denied * `50` - read_only * `100` - read_write
Keyword Args:
Expand Down Expand Up @@ -266,7 +265,6 @@ def __init__(self, group, permission, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.group = group
self.permission = permission
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand Down
4 changes: 0 additions & 4 deletions bimdata_api_client/model/patched_project_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def openapi_types():
'name': (str,), # noqa: E501
'description': (str, none_type,), # noqa: E501
'status': (str,), # noqa: E501
'parent_id': (int, none_type,), # noqa: E501
'main_model_id': (int, none_type,), # noqa: E501
}

Expand All @@ -108,7 +107,6 @@ def discriminator():
'name': 'name', # noqa: E501
'description': 'description', # noqa: E501
'status': 'status', # noqa: E501
'parent_id': 'parent_id', # noqa: E501
'main_model_id': 'main_model_id', # noqa: E501
}

Expand Down Expand Up @@ -157,7 +155,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
name (str): Name of the project. [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down Expand Up @@ -244,7 +241,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
name (str): Name of the project. [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down
4 changes: 0 additions & 4 deletions bimdata_api_client/model/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def openapi_types():
'logo': (str, none_type,), # noqa: E501
'description': (str, none_type,), # noqa: E501
'status': (str,), # noqa: E501
'parent_id': (int, none_type,), # noqa: E501
'main_model_id': (int, none_type,), # noqa: E501
}

Expand All @@ -123,7 +122,6 @@ def discriminator():
'logo': 'logo', # noqa: E501
'description': 'description', # noqa: E501
'status': 'status', # noqa: E501
'parent_id': 'parent_id', # noqa: E501
'main_model_id': 'main_model_id', # noqa: E501
}

Expand Down Expand Up @@ -184,7 +182,6 @@ def _from_openapi_data(cls, id, name, cloud, created_at, updated_at, root_folder
logo (str, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down Expand Up @@ -277,7 +274,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
logo (str, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down
4 changes: 0 additions & 4 deletions bimdata_api_client/model/project_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def openapi_types():
'logo': (file_type, none_type,), # noqa: E501
'description': (str, none_type,), # noqa: E501
'status': (str,), # noqa: E501
'parent_id': (int, none_type,), # noqa: E501
'main_model_id': (int, none_type,), # noqa: E501
}

Expand All @@ -108,7 +107,6 @@ def discriminator():
'logo': 'logo', # noqa: E501
'description': 'description', # noqa: E501
'status': 'status', # noqa: E501
'parent_id': 'parent_id', # noqa: E501
'main_model_id': 'main_model_id', # noqa: E501
}

Expand Down Expand Up @@ -159,7 +157,6 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
logo (file_type, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down Expand Up @@ -249,7 +246,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
logo (file_type, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
main_model_id (int, none_type): [optional] # noqa: E501
"""

Expand Down
4 changes: 0 additions & 4 deletions bimdata_api_client/model/project_with_children.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def openapi_types():
'logo': (str, none_type,), # noqa: E501
'description': (str, none_type,), # noqa: E501
'status': (str,), # noqa: E501
'parent_id': (int, none_type,), # noqa: E501
}

@cached_property
Expand All @@ -118,7 +117,6 @@ def discriminator():
'logo': 'logo', # noqa: E501
'description': 'description', # noqa: E501
'status': 'status', # noqa: E501
'parent_id': 'parent_id', # noqa: E501
}

read_only_vars = {
Expand Down Expand Up @@ -180,7 +178,6 @@ def _from_openapi_data(cls, id, name, created_at, updated_at, children, root_fol
logo (str, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -273,7 +270,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
logo (str, none_type): [optional] # noqa: E501
description (str, none_type): [optional] # noqa: E501
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
parent_id (int, none_type): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
Loading

0 comments on commit 640445c

Please sign in to comment.