Skip to content

Commit 89ba13e

Browse files
committed
MINOR: add id__in document filter
1 parent d76694b commit 89ba13e

File tree

10 files changed

+80
-57
lines changed

10 files changed

+80
-57
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3470,6 +3470,7 @@ def __init__(self, api_client=None):
34703470
'file_name__endswith',
34713471
'file_name__startswith',
34723472
'has__visa',
3473+
'id__in',
34733474
'name',
34743475
'name__contains',
34753476
'name__endswith',
@@ -3562,6 +3563,8 @@ def __init__(self, api_client=None):
35623563
(str,),
35633564
'has__visa':
35643565
(bool,),
3566+
'id__in':
3567+
([int],),
35653568
'name':
35663569
(str,),
35673570
'name__contains':
@@ -3614,6 +3617,7 @@ def __init__(self, api_client=None):
36143617
'file_name__endswith': 'file_name__endswith',
36153618
'file_name__startswith': 'file_name__startswith',
36163619
'has__visa': 'has__visa',
3620+
'id__in': 'id__in',
36173621
'name': 'name',
36183622
'name__contains': 'name__contains',
36193623
'name__endswith': 'name__endswith',
@@ -3648,6 +3652,7 @@ def __init__(self, api_client=None):
36483652
'file_name__endswith': 'query',
36493653
'file_name__startswith': 'query',
36503654
'has__visa': 'query',
3655+
'id__in': 'query',
36513656
'name': 'query',
36523657
'name__contains': 'query',
36533658
'name__endswith': 'query',
@@ -3668,6 +3673,7 @@ def __init__(self, api_client=None):
36683673
'visa__validator_email': 'query',
36693674
},
36703675
'collection_format_map': {
3676+
'id__in': 'csv',
36713677
'tags': 'csv',
36723678
}
36733679
},
@@ -3776,6 +3782,7 @@ def __init__(self, api_client=None):
37763782
'file_name__endswith',
37773783
'file_name__startswith',
37783784
'has__visa',
3785+
'id__in',
37793786
'name',
37803787
'name__contains',
37813788
'name__endswith',
@@ -3870,6 +3877,8 @@ def __init__(self, api_client=None):
38703877
(str,),
38713878
'has__visa':
38723879
(bool,),
3880+
'id__in':
3881+
([int],),
38733882
'name':
38743883
(str,),
38753884
'name__contains':
@@ -3921,6 +3930,7 @@ def __init__(self, api_client=None):
39213930
'file_name__endswith': 'file_name__endswith',
39223931
'file_name__startswith': 'file_name__startswith',
39233932
'has__visa': 'has__visa',
3933+
'id__in': 'id__in',
39243934
'name': 'name',
39253935
'name__contains': 'name__contains',
39263936
'name__endswith': 'name__endswith',
@@ -3955,6 +3965,7 @@ def __init__(self, api_client=None):
39553965
'file_name__endswith': 'query',
39563966
'file_name__startswith': 'query',
39573967
'has__visa': 'query',
3968+
'id__in': 'query',
39583969
'name': 'query',
39593970
'name__contains': 'query',
39603971
'name__endswith': 'query',
@@ -3974,6 +3985,7 @@ def __init__(self, api_client=None):
39743985
'visa__validator_email': 'query',
39753986
},
39763987
'collection_format_map': {
3988+
'id__in': 'csv',
39773989
'tags': 'csv',
39783990
}
39793991
},
@@ -8906,7 +8918,7 @@ def create_document(
89068918
):
89078919
"""Create a document # noqa: E501
89088920

8909-
Create a document. If the document is one of {'IFC', 'POINT_CLOUD', 'DWG', 'DXF', 'GLTF', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501
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
89108922
This method makes a synchronous HTTP request by default. To make an
89118923
asynchronous HTTP request, please pass async_req=True
89128924

@@ -12095,6 +12107,7 @@ def get_documents(
1209512107
file_name__endswith (str): [optional]
1209612108
file_name__startswith (str): [optional]
1209712109
has__visa (bool): [optional]
12110+
id__in ([int]): Multiple values may be separated by commas.. [optional]
1209812111
name (str): [optional]
1209912112
name__contains (str): [optional]
1210012113
name__endswith (str): [optional]
@@ -12295,6 +12308,7 @@ def get_folder_documents(
1229512308
file_name__endswith (str): [optional]
1229612309
file_name__startswith (str): [optional]
1229712310
has__visa (bool): [optional]
12311+
id__in ([int]): Multiple values may be separated by commas.. [optional]
1229812312
name (str): [optional]
1229912313
name__contains (str): [optional]
1230012314
name__endswith (str): [optional]

bimdata_api_client/model/document_text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class DocumentText(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'FRENCH': "french",
62-
'SPANISH': "spanish",
6361
'GERMAN': "german",
6462
'ENGLISH': "english",
6563
'ITALIAN': "italian",
64+
'SPANISH': "spanish",
65+
'FRENCH': "french",
6666
'NULL': "null",
6767
},
6868
}
@@ -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): * `french` - french * `spanish` - spanish * `german` - german * `english` - english * `italian` - italian. [optional] # noqa: E501
156+
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `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): * `french` - french * `spanish` - spanish * `german` - german * `english` - english * `italian` - italian. [optional] # noqa: E501
240+
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class PatchedDocumentTextRequest(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'FRENCH': "french",
62-
'SPANISH': "spanish",
6361
'GERMAN': "german",
6462
'ENGLISH': "english",
6563
'ITALIAN': "italian",
64+
'SPANISH': "spanish",
65+
'FRENCH': "french",
6666
'NULL': "null",
6767
},
6868
}
@@ -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): * `french` - french * `spanish` - spanish * `german` - german * `english` - english * `italian` - italian. [optional] # noqa: E501
150+
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `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): * `french` - french * `spanish` - spanish * `german` - german * `english` - english * `italian` - italian. [optional] # noqa: E501
233+
language (str, none_type): * `german` - german * `english` - english * `italian` - italian * `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: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ def openapi_types():
107107
"""
108108
lazy_import()
109109
return {
110-
'type': (str,), # noqa: E501
111-
'created_at': (datetime,), # noqa: E501
110+
'name': (str,), # noqa: E501
112111
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
112+
'user_permission': (int,), # noqa: E501
113+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
113114
'id': (int,), # noqa: E501
114-
'name': (str,), # noqa: E501
115115
'updated_at': (datetime,), # noqa: E501
116-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
117-
'user_permission': (int,), # noqa: E501
118116
'nature': (str,), # noqa: E501
119-
'parent_id': (int, none_type,), # noqa: E501
117+
'type': (str,), # noqa: E501
118+
'created_at': (datetime,), # noqa: E501
120119
'default_permission': (int,), # noqa: E501
120+
'parent_id': (int, none_type,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
122122
}
123123

@@ -127,48 +127,48 @@ def discriminator():
127127

128128

129129
attribute_map = {
130-
'type': 'type', # noqa: E501
131-
'created_at': 'created_at', # noqa: E501
130+
'name': 'name', # noqa: E501
132131
'created_by': 'created_by', # noqa: E501
132+
'user_permission': 'user_permission', # noqa: E501
133+
'groups_permissions': 'groups_permissions', # noqa: E501
133134
'id': 'id', # noqa: E501
134-
'name': 'name', # noqa: E501
135135
'updated_at': 'updated_at', # noqa: E501
136-
'groups_permissions': 'groups_permissions', # noqa: E501
137-
'user_permission': 'user_permission', # noqa: E501
138136
'nature': 'nature', # noqa: E501
139-
'parent_id': 'parent_id', # noqa: E501
137+
'type': 'type', # noqa: E501
138+
'created_at': 'created_at', # noqa: E501
140139
'default_permission': 'default_permission', # noqa: E501
140+
'parent_id': 'parent_id', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145-
'type', # noqa: E501
146-
'created_at', # noqa: E501
147145
'created_by', # noqa: E501
146+
'user_permission', # noqa: E501
147+
'groups_permissions', # noqa: E501
148148
'id', # noqa: E501
149149
'updated_at', # noqa: E501
150-
'groups_permissions', # noqa: E501
151-
'user_permission', # noqa: E501
152150
'nature', # noqa: E501
151+
'type', # noqa: E501
152+
'created_at', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

157157
@classmethod
158158
@convert_js_args_to_python_args
159-
def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at, groups_permissions, user_permission, nature, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, name, created_by, user_permission, groups_permissions, id, updated_at, nature, type, created_at, *args, **kwargs): # noqa: E501
160160
"""WriteFolder - a model defined in OpenAPI
161161
162162
Args:
163-
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
164-
created_at (datetime): Creation date
163+
name (str): Name of the folder
165164
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
166+
groups_permissions ([GroupFolderRead]): List of group permissions
166167
id (int):
167-
name (str): Name of the folder
168168
updated_at (datetime): Date of the last update
169-
groups_permissions ([GroupFolderRead]): List of group permissions
170-
user_permission (int): Aggregate of group user permissions and folder default permission
171169
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
171+
created_at (datetime): Creation date
172172
173173
Keyword Args:
174174
_check_type (bool): if True, values for parameters in openapi_types
@@ -201,8 +201,8 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
201201
Animal class but this time we won't travel
202202
through its discriminator because we passed in
203203
_visited_composed_classes = (Animal,)
204-
parent_id (int, none_type): [optional] # noqa: E501
205204
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
205+
parent_id (int, none_type): [optional] # noqa: E501
206206
children ([WriteFolder], none_type): [optional] # noqa: E501
207207
"""
208208

@@ -231,15 +231,15 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
231231
self._configuration = _configuration
232232
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
233233

234-
self.type = type
235-
self.created_at = created_at
234+
self.name = name
236235
self.created_by = created_by
236+
self.user_permission = user_permission
237+
self.groups_permissions = groups_permissions
237238
self.id = id
238-
self.name = name
239239
self.updated_at = updated_at
240-
self.groups_permissions = groups_permissions
241-
self.user_permission = user_permission
242240
self.nature = nature
241+
self.type = type
242+
self.created_at = created_at
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,6 +263,7 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
263263
def __init__(self, name, *args, **kwargs): # noqa: E501
264264
"""WriteFolder - a model defined in OpenAPI
265265
266+
Args:
266267
name (str): Name of the folder
267268
Keyword Args:
268269
_check_type (bool): if True, values for parameters in openapi_types
@@ -295,8 +296,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295296
Animal class but this time we won't travel
296297
through its discriminator because we passed in
297298
_visited_composed_classes = (Animal,)
298-
parent_id (int, none_type): [optional] # noqa: E501
299299
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
300+
parent_id (int, none_type): [optional] # noqa: E501
300301
children ([WriteFolder], none_type): [optional] # noqa: E501
301302
"""
302303

bimdata_api_client/model/write_folder_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def openapi_types():
102102
lazy_import()
103103
return {
104104
'name': (str,), # noqa: E501
105-
'parent_id': (int, none_type,), # noqa: E501
106105
'default_permission': (int,), # noqa: E501
106+
'parent_id': (int, none_type,), # noqa: E501
107107
'children': ([WriteFolder], none_type,), # noqa: E501
108108
}
109109

@@ -114,8 +114,8 @@ def discriminator():
114114

115115
attribute_map = {
116116
'name': 'name', # noqa: E501
117-
'parent_id': 'parent_id', # noqa: E501
118117
'default_permission': 'default_permission', # noqa: E501
118+
'parent_id': 'parent_id', # noqa: E501
119119
'children': 'children', # noqa: E501
120120
}
121121

@@ -163,8 +163,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
163163
Animal class but this time we won't travel
164164
through its discriminator because we passed in
165165
_visited_composed_classes = (Animal,)
166-
parent_id (int, none_type): [optional] # noqa: E501
167166
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
167+
parent_id (int, none_type): [optional] # noqa: E501
168168
children ([WriteFolder], none_type): [optional] # noqa: E501
169169
"""
170170

@@ -251,8 +251,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
251251
Animal class but this time we won't travel
252252
through its discriminator because we passed in
253253
_visited_composed_classes = (Animal,)
254-
parent_id (int, none_type): [optional] # noqa: E501
255254
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
255+
parent_id (int, none_type): [optional] # noqa: E501
256256
children ([WriteFolder], none_type): [optional] # noqa: E501
257257
"""
258258

0 commit comments

Comments
 (0)