Skip to content

Commit 640445c

Browse files
committed
MINOR: remove sub projects (#782)
1 parent 83bbed4 commit 640445c

14 files changed

+8
-275
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ Class | Method | HTTP request | Description
290290
*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
291291
*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
292292
*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
293-
*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
294293
*CollaborationApi* | [**get_project_tree**](docs/CollaborationApi.md#get_project_tree) | **GET** /cloud/{cloud_pk}/project/{id}/tree | Retrieve the complete DMS tree
295294
*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
296295
*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

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -4915,60 +4915,6 @@ def __init__(self, api_client=None):
49154915
},
49164916
api_client=api_client
49174917
)
4918-
self.get_project_sub_tree_endpoint = _Endpoint(
4919-
settings={
4920-
'response_type': ([ProjectWithChildren],),
4921-
'auth': [
4922-
'ApiKey',
4923-
'BIMData_Connect',
4924-
'BIMData_Connect',
4925-
'Bearer'
4926-
],
4927-
'endpoint_path': '/cloud/{cloud_pk}/project/subtree',
4928-
'operation_id': 'get_project_sub_tree',
4929-
'http_method': 'GET',
4930-
'servers': None,
4931-
},
4932-
params_map={
4933-
'all': [
4934-
'cloud_pk',
4935-
],
4936-
'required': [
4937-
'cloud_pk',
4938-
],
4939-
'nullable': [
4940-
],
4941-
'enum': [
4942-
],
4943-
'validation': [
4944-
]
4945-
},
4946-
root_map={
4947-
'validations': {
4948-
},
4949-
'allowed_values': {
4950-
},
4951-
'openapi_types': {
4952-
'cloud_pk':
4953-
(int,),
4954-
},
4955-
'attribute_map': {
4956-
'cloud_pk': 'cloud_pk',
4957-
},
4958-
'location_map': {
4959-
'cloud_pk': 'path',
4960-
},
4961-
'collection_format_map': {
4962-
}
4963-
},
4964-
headers_map={
4965-
'accept': [
4966-
'application/json'
4967-
],
4968-
'content_type': [],
4969-
},
4970-
api_client=api_client
4971-
)
49724918
self.get_project_tree_endpoint = _Endpoint(
49734919
settings={
49744920
'response_type': (Folder,),
@@ -8860,7 +8806,7 @@ def create_document(
88608806
):
88618807
"""Create a document # noqa: E501
88628808

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

@@ -13577,84 +13523,6 @@ def get_project_size(
1357713523
id
1357813524
return self.get_project_size_endpoint.call_with_http_info(**kwargs)
1357913525

13580-
def get_project_sub_tree(
13581-
self,
13582-
cloud_pk,
13583-
**kwargs
13584-
):
13585-
"""Retrieve the complete projects tree of the cloud # noqa: E501
13586-
13587-
Retrieve the complete projects tree of the cloud # noqa: E501
13588-
This method makes a synchronous HTTP request by default. To make an
13589-
asynchronous HTTP request, please pass async_req=True
13590-
13591-
>>> thread = api.get_project_sub_tree(cloud_pk, async_req=True)
13592-
>>> result = thread.get()
13593-
13594-
Args:
13595-
cloud_pk (int):
13596-
13597-
Keyword Args:
13598-
_return_http_data_only (bool): response data without head status
13599-
code and headers. Default is True.
13600-
_preload_content (bool): if False, the urllib3.HTTPResponse object
13601-
will be returned without reading/decoding response data.
13602-
Default is True.
13603-
_request_timeout (int/float/tuple): timeout setting for this request. If
13604-
one number provided, it will be total request timeout. It can also
13605-
be a pair (tuple) of (connection, read) timeouts.
13606-
Default is None.
13607-
_check_input_type (bool): specifies if type checking
13608-
should be done one the data sent to the server.
13609-
Default is True.
13610-
_check_return_type (bool): specifies if type checking
13611-
should be done one the data received from the server.
13612-
Default is True.
13613-
_spec_property_naming (bool): True if the variable names in the input data
13614-
are serialized names, as specified in the OpenAPI document.
13615-
False if the variable names in the input data
13616-
are pythonic names, e.g. snake case (default)
13617-
_content_type (str/None): force body content-type.
13618-
Default is None and content-type will be predicted by allowed
13619-
content-types and body.
13620-
_host_index (int/None): specifies the index of the server
13621-
that we want to use.
13622-
Default is read from the configuration.
13623-
async_req (bool): execute request asynchronously
13624-
13625-
Returns:
13626-
[ProjectWithChildren]
13627-
If the method is called asynchronously, returns the request
13628-
thread.
13629-
"""
13630-
kwargs['async_req'] = kwargs.get(
13631-
'async_req', False
13632-
)
13633-
kwargs['_return_http_data_only'] = kwargs.get(
13634-
'_return_http_data_only', True
13635-
)
13636-
kwargs['_preload_content'] = kwargs.get(
13637-
'_preload_content', True
13638-
)
13639-
kwargs['_request_timeout'] = kwargs.get(
13640-
'_request_timeout', None
13641-
)
13642-
kwargs['_check_input_type'] = kwargs.get(
13643-
'_check_input_type', True
13644-
)
13645-
kwargs['_check_return_type'] = kwargs.get(
13646-
'_check_return_type', True
13647-
)
13648-
kwargs['_spec_property_naming'] = kwargs.get(
13649-
'_spec_property_naming', False
13650-
)
13651-
kwargs['_content_type'] = kwargs.get(
13652-
'_content_type')
13653-
kwargs['_host_index'] = kwargs.get('_host_index')
13654-
kwargs['cloud_pk'] = \
13655-
cloud_pk
13656-
return self.get_project_sub_tree_endpoint.call_with_http_info(**kwargs)
13657-
1365813526
def get_project_tree(
1365913527
self,
1366013528
cloud_pk,

bimdata_api_client/model/group_folder_read.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def openapi_types():
9595
"""
9696
lazy_import()
9797
return {
98-
'group': (Group,), # noqa: E501
98+
'group': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
9999
'permission': (int, none_type,), # noqa: E501
100100
}
101101

@@ -110,6 +110,7 @@ def discriminator():
110110
}
111111

112112
read_only_vars = {
113+
'group', # noqa: E501
113114
}
114115

115116
_composed_schemas = {}
@@ -120,7 +121,7 @@ def _from_openapi_data(cls, group, permission, *args, **kwargs): # noqa: E501
120121
"""GroupFolderRead - a model defined in OpenAPI
121122
122123
Args:
123-
group (Group):
124+
group (bool, date, datetime, dict, float, int, list, str, none_type):
124125
permission (int, none_type): * `1` - denied * `50` - read_only * `100` - read_write
125126
126127
Keyword Args:
@@ -203,11 +204,9 @@ def _from_openapi_data(cls, group, permission, *args, **kwargs): # noqa: E501
203204
])
204205

205206
@convert_js_args_to_python_args
206-
def __init__(self, group, permission, *args, **kwargs): # noqa: E501
207+
def __init__(self, permission, *args, **kwargs): # noqa: E501
207208
"""GroupFolderRead - a model defined in OpenAPI
208209
209-
Args:
210-
group (Group):
211210
permission (int, none_type): * `1` - denied * `50` - read_only * `100` - read_write
212211
213212
Keyword Args:
@@ -266,7 +265,6 @@ def __init__(self, group, permission, *args, **kwargs): # noqa: E501
266265
self._configuration = _configuration
267266
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
268267

269-
self.group = group
270268
self.permission = permission
271269
for var_name, var_value in kwargs.items():
272270
if var_name not in self.attribute_map and \

bimdata_api_client/model/patched_project_request.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def openapi_types():
9494
'name': (str,), # noqa: E501
9595
'description': (str, none_type,), # noqa: E501
9696
'status': (str,), # noqa: E501
97-
'parent_id': (int, none_type,), # noqa: E501
9897
'main_model_id': (int, none_type,), # noqa: E501
9998
}
10099

@@ -108,7 +107,6 @@ def discriminator():
108107
'name': 'name', # noqa: E501
109108
'description': 'description', # noqa: E501
110109
'status': 'status', # noqa: E501
111-
'parent_id': 'parent_id', # noqa: E501
112110
'main_model_id': 'main_model_id', # noqa: E501
113111
}
114112

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

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

bimdata_api_client/model/project.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def openapi_types():
104104
'logo': (str, none_type,), # noqa: E501
105105
'description': (str, none_type,), # noqa: E501
106106
'status': (str,), # noqa: E501
107-
'parent_id': (int, none_type,), # noqa: E501
108107
'main_model_id': (int, none_type,), # noqa: E501
109108
}
110109

@@ -123,7 +122,6 @@ def discriminator():
123122
'logo': 'logo', # noqa: E501
124123
'description': 'description', # noqa: E501
125124
'status': 'status', # noqa: E501
126-
'parent_id': 'parent_id', # noqa: E501
127125
'main_model_id': 'main_model_id', # noqa: E501
128126
}
129127

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

@@ -277,7 +274,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
277274
logo (str, none_type): [optional] # noqa: E501
278275
description (str, none_type): [optional] # noqa: E501
279276
status (str): * `A` - active * `D` - deleted. [optional] # noqa: E501
280-
parent_id (int, none_type): [optional] # noqa: E501
281277
main_model_id (int, none_type): [optional] # noqa: E501
282278
"""
283279

bimdata_api_client/model/project_request.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def openapi_types():
9494
'logo': (file_type, none_type,), # noqa: E501
9595
'description': (str, none_type,), # noqa: E501
9696
'status': (str,), # noqa: E501
97-
'parent_id': (int, none_type,), # noqa: E501
9897
'main_model_id': (int, none_type,), # noqa: E501
9998
}
10099

@@ -108,7 +107,6 @@ def discriminator():
108107
'logo': 'logo', # noqa: E501
109108
'description': 'description', # noqa: E501
110109
'status': 'status', # noqa: E501
111-
'parent_id': 'parent_id', # noqa: E501
112110
'main_model_id': 'main_model_id', # noqa: E501
113111
}
114112

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

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

bimdata_api_client/model/project_with_children.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def openapi_types():
9999
'logo': (str, none_type,), # noqa: E501
100100
'description': (str, none_type,), # noqa: E501
101101
'status': (str,), # noqa: E501
102-
'parent_id': (int, none_type,), # noqa: E501
103102
}
104103

105104
@cached_property
@@ -118,7 +117,6 @@ def discriminator():
118117
'logo': 'logo', # noqa: E501
119118
'description': 'description', # noqa: E501
120119
'status': 'status', # noqa: E501
121-
'parent_id': 'parent_id', # noqa: E501
122120
}
123121

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

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

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

0 commit comments

Comments
 (0)