Skip to content

Commit 21cd638

Browse files
committed
MINOR: add parent_id__in document filter
1 parent bdd0c25 commit 21cd638

File tree

8 files changed

+59
-38
lines changed

8 files changed

+59
-38
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,6 +3475,7 @@ def __init__(self, api_client=None):
34753475
'name__contains',
34763476
'name__endswith',
34773477
'name__startswith',
3478+
'parent_id__in',
34783479
'search',
34793480
'size_max',
34803481
'size_min',
@@ -3573,6 +3574,8 @@ def __init__(self, api_client=None):
35733574
(str,),
35743575
'name__startswith':
35753576
(str,),
3577+
'parent_id__in':
3578+
([float],),
35763579
'search':
35773580
(str,),
35783581
'size_max':
@@ -3622,6 +3625,7 @@ def __init__(self, api_client=None):
36223625
'name__contains': 'name__contains',
36233626
'name__endswith': 'name__endswith',
36243627
'name__startswith': 'name__startswith',
3628+
'parent_id__in': 'parent_id__in',
36253629
'search': 'search',
36263630
'size_max': 'size_max',
36273631
'size_min': 'size_min',
@@ -3657,6 +3661,7 @@ def __init__(self, api_client=None):
36573661
'name__contains': 'query',
36583662
'name__endswith': 'query',
36593663
'name__startswith': 'query',
3664+
'parent_id__in': 'query',
36603665
'search': 'query',
36613666
'size_max': 'query',
36623667
'size_min': 'query',
@@ -3674,6 +3679,7 @@ def __init__(self, api_client=None):
36743679
},
36753680
'collection_format_map': {
36763681
'id__in': 'csv',
3682+
'parent_id__in': 'csv',
36773683
'tags': 'csv',
36783684
}
36793685
},
@@ -3787,6 +3793,7 @@ def __init__(self, api_client=None):
37873793
'name__contains',
37883794
'name__endswith',
37893795
'name__startswith',
3796+
'parent_id__in',
37903797
'search',
37913798
'size_max',
37923799
'size_min',
@@ -3887,6 +3894,8 @@ def __init__(self, api_client=None):
38873894
(str,),
38883895
'name__startswith':
38893896
(str,),
3897+
'parent_id__in':
3898+
([float],),
38903899
'search':
38913900
(str,),
38923901
'size_max':
@@ -3935,6 +3944,7 @@ def __init__(self, api_client=None):
39353944
'name__contains': 'name__contains',
39363945
'name__endswith': 'name__endswith',
39373946
'name__startswith': 'name__startswith',
3947+
'parent_id__in': 'parent_id__in',
39383948
'search': 'search',
39393949
'size_max': 'size_max',
39403950
'size_min': 'size_min',
@@ -3970,6 +3980,7 @@ def __init__(self, api_client=None):
39703980
'name__contains': 'query',
39713981
'name__endswith': 'query',
39723982
'name__startswith': 'query',
3983+
'parent_id__in': 'query',
39733984
'search': 'query',
39743985
'size_max': 'query',
39753986
'size_min': 'query',
@@ -3986,6 +3997,7 @@ def __init__(self, api_client=None):
39863997
},
39873998
'collection_format_map': {
39883999
'id__in': 'csv',
4000+
'parent_id__in': 'csv',
39894001
'tags': 'csv',
39904002
}
39914003
},
@@ -8918,7 +8930,7 @@ def create_document(
89188930
):
89198931
"""Create a document # noqa: E501
89208932

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

@@ -12112,6 +12124,7 @@ def get_documents(
1211212124
name__contains (str): [optional]
1211312125
name__endswith (str): [optional]
1211412126
name__startswith (str): [optional]
12127+
parent_id__in ([float]): Multiple values may be separated by commas.. [optional]
1211512128
search (str): [optional]
1211612129
size_max (int, none_type): Size of the file.. [optional]
1211712130
size_min (int, none_type): Size of the file.. [optional]
@@ -12313,6 +12326,7 @@ def get_folder_documents(
1231312326
name__contains (str): [optional]
1231412327
name__endswith (str): [optional]
1231512328
name__startswith (str): [optional]
12329+
parent_id__in ([float]): Multiple values may be separated by commas.. [optional]
1231612330
search (str): [optional]
1231712331
size_max (int, none_type): Size of the file.. [optional]
1231812332
size_min (int, none_type): Size of the file.. [optional]

bimdata_api_client/model/document_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class DocumentText(ModelNormal):
5959
('language',): {
6060
'None': None,
6161
'GERMAN': "german",
62-
'ENGLISH': "english",
6362
'ITALIAN': "italian",
63+
'ENGLISH': "english",
6464
'SPANISH': "spanish",
6565
'FRENCH': "french",
6666
'NULL': "null",
@@ -153,7 +153,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
153153
through its discriminator because we passed in
154154
_visited_composed_classes = (Animal,)
155155
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
156-
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french. [optional] # noqa: E501
156+
language (str, none_type): * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
157157
"""
158158

159159
_check_type = kwargs.pop('_check_type', True)
@@ -237,7 +237,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
237237
through its discriminator because we passed in
238238
_visited_composed_classes = (Animal,)
239239
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
240-
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french. [optional] # noqa: E501
240+
language (str, none_type): * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/patched_document_text_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class PatchedDocumentTextRequest(ModelNormal):
5959
('language',): {
6060
'None': None,
6161
'GERMAN': "german",
62-
'ENGLISH': "english",
6362
'ITALIAN': "italian",
63+
'ENGLISH': "english",
6464
'SPANISH': "spanish",
6565
'FRENCH': "french",
6666
'NULL': "null",
@@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
147147
through its discriminator because we passed in
148148
_visited_composed_classes = (Animal,)
149149
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
150-
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french. [optional] # noqa: E501
150+
language (str, none_type): * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
151151
"""
152152

153153
_check_type = kwargs.pop('_check_type', True)
@@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
230230
through its discriminator because we passed in
231231
_visited_composed_classes = (Animal,)
232232
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
233-
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french. [optional] # noqa: E501
233+
language (str, none_type): * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french. [optional] # noqa: E501
234234
"""
235235

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

bimdata_api_client/model/write_folder.py

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110+
'user_permission': (int,), # noqa: E501
110111
'name': (str,), # noqa: E501
112+
'updated_at': (datetime,), # noqa: E501
113+
'type': (str,), # noqa: E501
111114
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
112-
'user_permission': (int,), # noqa: E501
113115
'groups_permissions': ([GroupFolderRead],), # noqa: E501
114116
'id': (int,), # noqa: E501
115-
'updated_at': (datetime,), # noqa: E501
116-
'nature': (str,), # noqa: E501
117-
'type': (str,), # noqa: E501
118117
'created_at': (datetime,), # noqa: E501
118+
'nature': (str,), # noqa: E501
119119
'default_permission': (int,), # noqa: E501
120120
'parent_id': (int, none_type,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
@@ -127,48 +127,48 @@ def discriminator():
127127

128128

129129
attribute_map = {
130+
'user_permission': 'user_permission', # noqa: E501
130131
'name': 'name', # noqa: E501
132+
'updated_at': 'updated_at', # noqa: E501
133+
'type': 'type', # noqa: E501
131134
'created_by': 'created_by', # noqa: E501
132-
'user_permission': 'user_permission', # noqa: E501
133135
'groups_permissions': 'groups_permissions', # noqa: E501
134136
'id': 'id', # noqa: E501
135-
'updated_at': 'updated_at', # noqa: E501
136-
'nature': 'nature', # noqa: E501
137-
'type': 'type', # noqa: E501
138137
'created_at': 'created_at', # noqa: E501
138+
'nature': 'nature', # noqa: E501
139139
'default_permission': 'default_permission', # noqa: E501
140140
'parent_id': 'parent_id', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145-
'created_by', # noqa: E501
146145
'user_permission', # noqa: E501
147-
'groups_permissions', # noqa: E501
148-
'id', # noqa: E501
149146
'updated_at', # noqa: E501
150-
'nature', # noqa: E501
151147
'type', # noqa: E501
148+
'created_by', # noqa: E501
149+
'groups_permissions', # noqa: E501
150+
'id', # noqa: E501
152151
'created_at', # noqa: E501
152+
'nature', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

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

234+
self.user_permission = user_permission
234235
self.name = name
236+
self.updated_at = updated_at
237+
self.type = type
235238
self.created_by = created_by
236-
self.user_permission = user_permission
237239
self.groups_permissions = groups_permissions
238240
self.id = id
239-
self.updated_at = updated_at
240-
self.nature = nature
241-
self.type = type
242241
self.created_at = created_at
242+
self.nature = nature
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 \
@@ -263,7 +263,6 @@ def _from_openapi_data(cls, name, created_by, user_permission, groups_permission
263263
def __init__(self, name, *args, **kwargs): # noqa: E501
264264
"""WriteFolder - a model defined in OpenAPI
265265
266-
Args:
267266
name (str): Name of the folder
268267
Keyword Args:
269268
_check_type (bool): if True, values for parameters in openapi_types

0 commit comments

Comments
 (0)