Skip to content

Commit aae8bd9

Browse files
committed
PATCH: fix declared auth method in openapi
1 parent 49b1ac6 commit aae8bd9

File tree

6 files changed

+45
-45
lines changed

6 files changed

+45
-45
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8599,7 +8599,7 @@ def create_document(
85998599
):
86008600
"""Create a document # noqa: E501
86018601

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

bimdata_api_client/model/write_folder.py

Lines changed: 30 additions & 30 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
110+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
111+
'created_at': (datetime,), # noqa: E501
111112
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
112113
'user_permission': (int,), # noqa: E501
113-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
114114
'name': (str,), # noqa: E501
115-
'nature': (str,), # noqa: E501
116-
'id': (int,), # noqa: E501
117-
'created_at': (datetime,), # noqa: E501
118115
'updated_at': (datetime,), # noqa: E501
119-
'default_permission': (int,), # noqa: E501
116+
'type': (str,), # noqa: E501
117+
'id': (int,), # noqa: E501
118+
'nature': (str,), # noqa: E501
120119
'parent_id': (int, none_type,), # noqa: E501
120+
'default_permission': (int,), # 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
130+
'groups_permissions': 'groups_permissions', # noqa: E501
131+
'created_at': 'created_at', # noqa: E501
131132
'created_by': 'created_by', # noqa: E501
132133
'user_permission': 'user_permission', # noqa: E501
133-
'groups_permissions': 'groups_permissions', # noqa: E501
134134
'name': 'name', # noqa: E501
135-
'nature': 'nature', # noqa: E501
136-
'id': 'id', # noqa: E501
137-
'created_at': 'created_at', # noqa: E501
138135
'updated_at': 'updated_at', # noqa: E501
139-
'default_permission': 'default_permission', # noqa: E501
136+
'type': 'type', # noqa: E501
137+
'id': 'id', # noqa: E501
138+
'nature': 'nature', # noqa: E501
140139
'parent_id': 'parent_id', # noqa: E501
140+
'default_permission': 'default_permission', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145-
'type', # noqa: E501
146-
'created_by', # noqa: E501
147-
'user_permission', # noqa: E501
148145
'groups_permissions', # noqa: E501
149-
'nature', # noqa: E501
150-
'id', # noqa: E501
151146
'created_at', # noqa: E501
147+
'created_by', # noqa: E501
148+
'user_permission', # noqa: E501
152149
'updated_at', # noqa: E501
150+
'type', # noqa: E501
151+
'id', # 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, type, created_by, user_permission, groups_permissions, name, nature, id, created_at, updated_at, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, groups_permissions, created_at, created_by, user_permission, name, updated_at, type, id, nature, *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
163+
groups_permissions ([GroupFolderRead]): List of group permissions
164+
created_at (datetime): Creation date
164165
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
165166
user_permission (int): Aggregate of group user permissions and folder default permission
166-
groups_permissions ([GroupFolderRead]): List of group permissions
167167
name (str): Name of the folder
168-
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
169-
id (int):
170-
created_at (datetime): Creation date
171168
updated_at (datetime): Date of the last update
169+
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
170+
id (int):
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
@@ -201,8 +201,8 @@ def _from_openapi_data(cls, type, created_by, user_permission, groups_permission
201201
Animal class but this time we won't travel
202202
through its discriminator because we passed in
203203
_visited_composed_classes = (Animal,)
204-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
205204
parent_id (int, none_type): [optional] # noqa: E501
205+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
206206
children ([WriteFolder], none_type): [optional] # noqa: E501
207207
"""
208208

@@ -231,15 +231,15 @@ def _from_openapi_data(cls, type, created_by, user_permission, groups_permission
231231
self._configuration = _configuration
232232
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
233233

234-
self.type = type
234+
self.groups_permissions = groups_permissions
235+
self.created_at = created_at
235236
self.created_by = created_by
236237
self.user_permission = user_permission
237-
self.groups_permissions = groups_permissions
238238
self.name = name
239-
self.nature = nature
240-
self.id = id
241-
self.created_at = created_at
242239
self.updated_at = updated_at
240+
self.type = type
241+
self.id = id
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 \
@@ -295,8 +295,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295295
Animal class but this time we won't travel
296296
through its discriminator because we passed in
297297
_visited_composed_classes = (Animal,)
298-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
299298
parent_id (int, none_type): [optional] # noqa: E501
299+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
300300
children ([WriteFolder], none_type): [optional] # noqa: E501
301301
"""
302302

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-
'default_permission': (int,), # noqa: E501
106105
'parent_id': (int, none_type,), # noqa: E501
106+
'default_permission': (int,), # 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-
'default_permission': 'default_permission', # noqa: E501
118117
'parent_id': 'parent_id', # noqa: E501
118+
'default_permission': 'default_permission', # 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-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
167166
parent_id (int, none_type): [optional] # noqa: E501
167+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [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-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
255254
parent_id (int, none_type): [optional] # noqa: E501
255+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
256256
children ([WriteFolder], none_type): [optional] # noqa: E501
257257
"""
258258

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,13 +1300,13 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
13001300
write_folder_request = [
13011301
WriteFolderRequest(
13021302
name="name_example",
1303-
default_permission=1,
13041303
parent_id=1,
1304+
default_permission=1,
13051305
children=[
13061306
WriteFolder(
13071307
name="name_example",
1308-
default_permission=1,
13091308
parent_id=1,
1309+
default_permission=1,
13101310
children=None,
13111311
),
13121312
],
@@ -1363,7 +1363,7 @@ Name | Type | Description | Notes
13631363
13641364
Create a document
13651365

1366-
Create a document. If the document is one of {'DWG', 'POINT_CLOUD', 'DXF', 'IFC', 'OBJ', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
1366+
Create a document. If the document is one of {'DXF', 'DWG', 'POINT_CLOUD', 'IFC', 'GLTF', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
13671367

13681368
### Example
13691369

docs/WriteFolder.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**type** | **str** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
7+
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
8+
**created_at** | **datetime** | Creation date | [readonly]
89
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
910
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
10-
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1111
**name** | **str** | Name of the folder |
12-
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
13-
**id** | **int** | | [readonly]
14-
**created_at** | **datetime** | Creation date | [readonly]
1512
**updated_at** | **datetime** | Date of the last update | [readonly]
16-
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
13+
**type** | **str** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
14+
**id** | **int** | | [readonly]
15+
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
1716
**parent_id** | **int, none_type** | | [optional]
17+
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1818
**children** | [**[WriteFolder], none_type**](WriteFolder.md) | | [optional]
1919
**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]
2020

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | Name of the folder |
8-
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
98
**parent_id** | **int, none_type** | | [optional]
9+
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1010
**children** | [**[WriteFolder], none_type**](WriteFolder.md) | | [optional]
1111
**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]
1212

0 commit comments

Comments
 (0)