Skip to content

Commit b23ca4c

Browse files
committed
MINOR: gen the doc & lib with the AI app enabled (#982)
* MINOR: gen the lib with the AI app enabled * Fix ProjectAiViewSet argument usage. * Move ai features into private urls. * Fix url for document content
1 parent 8202feb commit b23ca4c

File tree

8 files changed

+39
-38
lines changed

8 files changed

+39
-38
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9333,7 +9333,7 @@ def create_document(
93339333
):
93349334
"""Create a document # noqa: E501
93359335

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

bimdata_api_client/model/document_text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class DocumentText(ModelNormal):
5959
('language',): {
6060
'None': None,
6161
'GERMAN': "german",
62-
'ENGLISH': "english",
6362
'ITALIAN': "italian",
64-
'FRENCH': "french",
63+
'ENGLISH': "english",
6564
'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): * `german` - german * `english` - english * `italian` - italian * `french` - french * `spanish` - spanish. [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 * `french` - french * `spanish` - spanish. [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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class PatchedDocumentTextRequest(ModelNormal):
5959
('language',): {
6060
'None': None,
6161
'GERMAN': "german",
62-
'ENGLISH': "english",
6362
'ITALIAN': "italian",
64-
'FRENCH': "french",
63+
'ENGLISH': "english",
6564
'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): * `german` - german * `english` - english * `italian` - italian * `french` - french * `spanish` - spanish. [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 * `french` - french * `spanish` - spanish. [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 & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ def openapi_types():
109109
return {
110110
'id': (int,), # noqa: E501
111111
'updated_at': (datetime,), # noqa: E501
112-
'groups_permissions': ([GroupFolderRead],), # noqa: E501
113-
'created_at': (datetime,), # noqa: E501
114-
'name': (str,), # noqa: E501
115-
'user_permission': (int,), # noqa: E501
116112
'type': (str,), # noqa: E501
117113
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
118114
'nature': (str,), # noqa: E501
115+
'groups_permissions': ([GroupFolderRead],), # noqa: E501
116+
'user_permission': (int,), # noqa: E501
117+
'created_at': (datetime,), # noqa: E501
118+
'name': (str,), # noqa: E501
119119
'default_permission': (int,), # noqa: E501
120120
'parent_id': (int, none_type,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
@@ -129,13 +129,13 @@ def discriminator():
129129
attribute_map = {
130130
'id': 'id', # noqa: E501
131131
'updated_at': 'updated_at', # noqa: E501
132-
'groups_permissions': 'groups_permissions', # noqa: E501
133-
'created_at': 'created_at', # noqa: E501
134-
'name': 'name', # noqa: E501
135-
'user_permission': 'user_permission', # noqa: E501
136132
'type': 'type', # noqa: E501
137133
'created_by': 'created_by', # noqa: E501
138134
'nature': 'nature', # noqa: E501
135+
'groups_permissions': 'groups_permissions', # noqa: E501
136+
'user_permission': 'user_permission', # noqa: E501
137+
'created_at': 'created_at', # noqa: E501
138+
'name': 'name', # noqa: E501
139139
'default_permission': 'default_permission', # noqa: E501
140140
'parent_id': 'parent_id', # noqa: E501
141141
'children': 'children', # noqa: E501
@@ -144,31 +144,31 @@ def discriminator():
144144
read_only_vars = {
145145
'id', # noqa: E501
146146
'updated_at', # noqa: E501
147-
'groups_permissions', # noqa: E501
148-
'created_at', # noqa: E501
149-
'user_permission', # noqa: E501
150147
'type', # noqa: E501
151148
'created_by', # noqa: E501
152149
'nature', # noqa: E501
150+
'groups_permissions', # noqa: E501
151+
'user_permission', # 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, id, updated_at, groups_permissions, created_at, name, user_permission, type, created_by, nature, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, id, updated_at, type, created_by, nature, groups_permissions, user_permission, created_at, name, *args, **kwargs): # noqa: E501
160160
"""WriteFolder - a model defined in OpenAPI
161161
162162
Args:
163163
id (int):
164164
updated_at (datetime): Date of the last update
165-
groups_permissions ([GroupFolderRead]): List of group permissions
166-
created_at (datetime): Creation date
167-
name (str): Name of the folder
168-
user_permission (int): Aggregate of group user permissions and folder default permission
169165
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
170166
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
171167
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
168+
groups_permissions ([GroupFolderRead]): List of group permissions
169+
user_permission (int): Aggregate of group user permissions and folder default permission
170+
created_at (datetime): Creation date
171+
name (str): Name of the folder
172172
173173
Keyword Args:
174174
_check_type (bool): if True, values for parameters in openapi_types
@@ -233,13 +233,13 @@ def _from_openapi_data(cls, id, updated_at, groups_permissions, created_at, name
233233

234234
self.id = id
235235
self.updated_at = updated_at
236-
self.groups_permissions = groups_permissions
237-
self.created_at = created_at
238-
self.name = name
239-
self.user_permission = user_permission
240236
self.type = type
241237
self.created_by = created_by
242238
self.nature = nature
239+
self.groups_permissions = groups_permissions
240+
self.user_permission = user_permission
241+
self.created_at = created_at
242+
self.name = name
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 \
@@ -264,6 +264,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
264264
"""WriteFolder - a model defined in OpenAPI
265265
266266
name (str): Name of the folder
267+
267268
Keyword Args:
268269
_check_type (bool): if True, values for parameters in openapi_types
269270
will be type checked and a TypeError will be

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,14 +1808,14 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
18081808
id = 1 # int | A unique integer value identifying this project.
18091809
write_folder_request = [
18101810
WriteFolderRequest(
1811-
name="name_example",
18121811
default_permission=1,
18131812
parent_id=1,
1813+
name="name_example",
18141814
children=[
18151815
WriteFolder(
1816-
name="name_example",
18171816
default_permission=1,
18181817
parent_id=1,
1818+
name="name_example",
18191819
children=None,
18201820
),
18211821
],
@@ -1872,7 +1872,7 @@ Name | Type | Description | Notes
18721872

18731873
Create a document
18741874

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

18771877
### Example
18781878

docs/DocumentText.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **int** | | [readonly]
88
**text** | **str, none_type** | The full text representation of a document if the feature is enabled and the file format supported | [optional]
9-
**language** | **str, none_type** | * `german` - german * `english` - english * `italian` - italian * `french` - french * `spanish` - spanish | [optional]
9+
**language** | **str, none_type** | * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french | [optional]
1010
**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]
1111

1212
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/PatchedDocumentTextRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**text** | **str, none_type** | The full text representation of a document if the feature is enabled and the file format supported | [optional]
8-
**language** | **str, none_type** | * `german` - german * `english` - english * `italian` - italian * `french` - french * `spanish` - spanish | [optional]
8+
**language** | **str, none_type** | * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french | [optional]
99
**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]
1010

1111
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/WriteFolder.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **int** | | [readonly]
88
**updated_at** | **datetime** | Date of the last update | [readonly]
9-
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
10-
**created_at** | **datetime** | Creation date | [readonly]
11-
**name** | **str** | Name of the folder |
12-
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
139
**type** | **str** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
1410
**created_by** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
1511
**nature** | **str** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
12+
**groups_permissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
13+
**user_permission** | **int** | Aggregate of group user permissions and folder default permission | [readonly]
14+
**created_at** | **datetime** | Creation date | [readonly]
15+
**name** | **str** | Name of the folder |
1616
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1717
**parent_id** | **int, none_type** | | [optional]
1818
**children** | [**[WriteFolder], none_type**](WriteFolder.md) | | [optional]

0 commit comments

Comments
 (0)