Skip to content

Commit 1395597

Browse files
committed
MINOR: feat(equipment): add equipment reference_link (#1058)
* MINOR: feat(equipment): add equipment reference_link * fix(equipment): update reference_link help_text
1 parent c4526a8 commit 1395597

29 files changed

Lines changed: 199 additions & 183 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ topics_guid = "topics_guid_example" # str |
146146
comment_request = CommentRequest(
147147
comment="comment_example",
148148
viewpoint_guid="viewpoint_guid_example",
149-
date=dateutil_parser('1970-01-01T00:00:00.00Z'),
150-
modified_author="modified_author_example",
151149
viewpoint_temp_id=1,
152-
reply_to_comment_guid="reply_to_comment_guid_example",
153150
author="author_example",
151+
reply_to_comment_guid="reply_to_comment_guid_example",
152+
date=dateutil_parser('1970-01-01T00:00:00.00Z'),
153+
modified_author="modified_author_example",
154154
guid="guid_example",
155155
) # CommentRequest | (optional)
156156

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10239,7 +10239,7 @@ def create_document(
1023910239
):
1024010240
"""Create a document # noqa: E501
1024110241

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

bimdata_api_client/model/comment.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class Comment(ModelNormal):
5959
}
6060

6161
validations = {
62-
('modified_author',): {
62+
('author',): {
6363
'max_length': 254,
6464
},
65-
('author',): {
65+
('modified_author',): {
6666
'max_length': 254,
6767
},
6868
}
@@ -92,10 +92,10 @@ def openapi_types():
9292
'topic_guid': (str,), # noqa: E501
9393
'comment': (str,), # noqa: E501
9494
'viewpoint_guid': (str, none_type,), # noqa: E501
95+
'author': (str, none_type,), # noqa: E501
96+
'reply_to_comment_guid': (str, none_type,), # noqa: E501
9597
'date': (datetime,), # noqa: E501
9698
'modified_author': (str, none_type,), # noqa: E501
97-
'reply_to_comment_guid': (str, none_type,), # noqa: E501
98-
'author': (str, none_type,), # noqa: E501
9999
'guid': (str,), # noqa: E501
100100
}
101101

@@ -109,10 +109,10 @@ def discriminator():
109109
'topic_guid': 'topic_guid', # noqa: E501
110110
'comment': 'comment', # noqa: E501
111111
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
112+
'author': 'author', # noqa: E501
113+
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
112114
'date': 'date', # noqa: E501
113115
'modified_author': 'modified_author', # noqa: E501
114-
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
115-
'author': 'author', # noqa: E501
116116
'guid': 'guid', # noqa: E501
117117
}
118118

@@ -165,10 +165,10 @@ def _from_openapi_data(cls, modified_date, topic_guid, *args, **kwargs): # noqa
165165
_visited_composed_classes = (Animal,)
166166
comment (str): [optional] # noqa: E501
167167
viewpoint_guid (str, none_type): [optional] # noqa: E501
168+
author (str, none_type): [optional] # noqa: E501
169+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
168170
date (datetime): [optional] # noqa: E501
169171
modified_author (str, none_type): [optional] # noqa: E501
170-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
171-
author (str, none_type): [optional] # noqa: E501
172172
guid (str): [optional] # noqa: E501
173173
"""
174174

@@ -255,10 +255,10 @@ def __init__(self, *args, **kwargs): # noqa: E501
255255
_visited_composed_classes = (Animal,)
256256
comment (str): [optional] # noqa: E501
257257
viewpoint_guid (str, none_type): [optional] # noqa: E501
258+
author (str, none_type): [optional] # noqa: E501
259+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
258260
date (datetime): [optional] # noqa: E501
259261
modified_author (str, none_type): [optional] # noqa: E501
260-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
261-
author (str, none_type): [optional] # noqa: E501
262262
guid (str): [optional] # noqa: E501
263263
"""
264264

bimdata_api_client/model/comment_request.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class CommentRequest(ModelNormal):
5959
}
6060

6161
validations = {
62-
('modified_author',): {
62+
('author',): {
6363
'max_length': 254,
6464
},
65-
('author',): {
65+
('modified_author',): {
6666
'max_length': 254,
6767
},
6868
}
@@ -90,11 +90,11 @@ def openapi_types():
9090
return {
9191
'comment': (str,), # noqa: E501
9292
'viewpoint_guid': (str, none_type,), # noqa: E501
93-
'date': (datetime,), # noqa: E501
94-
'modified_author': (str, none_type,), # noqa: E501
9593
'viewpoint_temp_id': (int,), # noqa: E501
96-
'reply_to_comment_guid': (str, none_type,), # noqa: E501
9794
'author': (str, none_type,), # noqa: E501
95+
'reply_to_comment_guid': (str, none_type,), # noqa: E501
96+
'date': (datetime,), # noqa: E501
97+
'modified_author': (str, none_type,), # noqa: E501
9898
'guid': (str,), # noqa: E501
9999
}
100100

@@ -106,11 +106,11 @@ def discriminator():
106106
attribute_map = {
107107
'comment': 'comment', # noqa: E501
108108
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
109-
'date': 'date', # noqa: E501
110-
'modified_author': 'modified_author', # noqa: E501
111109
'viewpoint_temp_id': 'viewpoint_temp_id', # noqa: E501
112-
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
113110
'author': 'author', # noqa: E501
111+
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
112+
'date': 'date', # noqa: E501
113+
'modified_author': 'modified_author', # noqa: E501
114114
'guid': 'guid', # noqa: E501
115115
}
116116

@@ -157,11 +157,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
157157
_visited_composed_classes = (Animal,)
158158
comment (str): [optional] # noqa: E501
159159
viewpoint_guid (str, none_type): [optional] # noqa: E501
160-
date (datetime): [optional] # noqa: E501
161-
modified_author (str, none_type): [optional] # noqa: E501
162160
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
163-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
164161
author (str, none_type): [optional] # noqa: E501
162+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
163+
date (datetime): [optional] # noqa: E501
164+
modified_author (str, none_type): [optional] # noqa: E501
165165
guid (str): [optional] # noqa: E501
166166
"""
167167

@@ -246,11 +246,11 @@ def __init__(self, *args, **kwargs): # noqa: E501
246246
_visited_composed_classes = (Animal,)
247247
comment (str): [optional] # noqa: E501
248248
viewpoint_guid (str, none_type): [optional] # noqa: E501
249-
date (datetime): [optional] # noqa: E501
250-
modified_author (str, none_type): [optional] # noqa: E501
251249
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
252-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
253250
author (str, none_type): [optional] # noqa: E501
251+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
252+
date (datetime): [optional] # noqa: E501
253+
modified_author (str, none_type): [optional] # noqa: E501
254254
guid (str): [optional] # noqa: E501
255255
"""
256256

bimdata_api_client/model/document_text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class DocumentText(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'GERMAN': "german",
6261
'ENGLISH': "english",
63-
'FRENCH': "french",
6462
'ITALIAN': "italian",
63+
'GERMAN': "german",
64+
'FRENCH': "french",
6565
'SPANISH': "spanish",
6666
'NULL': "null",
6767
},
@@ -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 * `french` - french * `italian` - italian * `spanish` - spanish. [optional] # noqa: E501
156+
language (str, none_type): * `english` - english * `italian` - italian * `german` - german * `french` - french * `spanish` - spanish. [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 * `french` - french * `italian` - italian * `spanish` - spanish. [optional] # noqa: E501
240+
language (str, none_type): * `english` - english * `italian` - italian * `german` - german * `french` - french * `spanish` - spanish. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/edit_folder.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ def openapi_types():
109109
"""
110110
lazy_import()
111111
return {
112-
'type': (str,), # noqa: E501
113-
'nature': (str,), # noqa: E501
112+
'id': (int,), # noqa: E501
113+
'user_permission': (int,), # noqa: E501
114+
'name': (str,), # noqa: E501
114115
'created_at': (datetime,), # noqa: E501
115116
'groups_permissions': ([GroupFolderRead],), # noqa: E501
116-
'user_permission': (int,), # noqa: E501
117-
'updated_at': (datetime,), # noqa: E501
118117
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
119-
'id': (int,), # noqa: E501
120-
'name': (str,), # noqa: E501
118+
'nature': (str,), # noqa: E501
119+
'updated_at': (datetime,), # noqa: E501
120+
'type': (str,), # noqa: E501
121121
'conflicting_documents': ([LightDocument],), # noqa: E501
122-
'default_permission': (int,), # noqa: E501
123122
'parent_id': (int, none_type,), # noqa: E501
123+
'default_permission': (int,), # noqa: E501
124124
}
125125

126126
@cached_property
@@ -129,49 +129,49 @@ def discriminator():
129129

130130

131131
attribute_map = {
132-
'type': 'type', # noqa: E501
133-
'nature': 'nature', # noqa: E501
132+
'id': 'id', # noqa: E501
133+
'user_permission': 'user_permission', # noqa: E501
134+
'name': 'name', # noqa: E501
134135
'created_at': 'created_at', # noqa: E501
135136
'groups_permissions': 'groups_permissions', # noqa: E501
136-
'user_permission': 'user_permission', # noqa: E501
137-
'updated_at': 'updated_at', # noqa: E501
138137
'created_by': 'created_by', # noqa: E501
139-
'id': 'id', # noqa: E501
140-
'name': 'name', # noqa: E501
138+
'nature': 'nature', # noqa: E501
139+
'updated_at': 'updated_at', # noqa: E501
140+
'type': 'type', # noqa: E501
141141
'conflicting_documents': 'conflicting_documents', # noqa: E501
142-
'default_permission': 'default_permission', # noqa: E501
143142
'parent_id': 'parent_id', # noqa: E501
143+
'default_permission': 'default_permission', # noqa: E501
144144
}
145145

146146
read_only_vars = {
147-
'type', # noqa: E501
148-
'nature', # noqa: E501
147+
'id', # noqa: E501
148+
'user_permission', # noqa: E501
149149
'created_at', # noqa: E501
150150
'groups_permissions', # noqa: E501
151-
'user_permission', # noqa: E501
152-
'updated_at', # noqa: E501
153151
'created_by', # noqa: E501
154-
'id', # noqa: E501
152+
'nature', # noqa: E501
153+
'updated_at', # noqa: E501
154+
'type', # noqa: E501
155155
'conflicting_documents', # noqa: E501
156156
}
157157

158158
_composed_schemas = {}
159159

160160
@classmethod
161161
@convert_js_args_to_python_args
162-
def _from_openapi_data(cls, type, nature, created_at, groups_permissions, user_permission, updated_at, created_by, id, name, conflicting_documents, *args, **kwargs): # noqa: E501
162+
def _from_openapi_data(cls, id, user_permission, name, created_at, groups_permissions, created_by, nature, updated_at, type, conflicting_documents, *args, **kwargs): # noqa: E501
163163
"""EditFolder - a model defined in OpenAPI
164164
165165
Args:
166-
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
167-
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
166+
id (int):
167+
user_permission (int): Aggregate of group user permissions and folder default permission
168+
name (str): Name of the folder
168169
created_at (datetime): Creation date
169170
groups_permissions ([GroupFolderRead]): List of group permissions
170-
user_permission (int): Aggregate of group user permissions and folder default permission
171-
updated_at (datetime): Date of the last update
172171
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
173-
id (int):
174-
name (str): Name of the folder
172+
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
173+
updated_at (datetime): Date of the last update
174+
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
175175
conflicting_documents ([LightDocument]): Return document with naming conflict. This is only set when you move a folder
176176
177177
Keyword Args:
@@ -205,8 +205,8 @@ def _from_openapi_data(cls, type, nature, created_at, groups_permissions, user_p
205205
Animal class but this time we won't travel
206206
through its discriminator because we passed in
207207
_visited_composed_classes = (Animal,)
208-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
209208
parent_id (int, none_type): [optional] # noqa: E501
209+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
210210
"""
211211

212212
_check_type = kwargs.pop('_check_type', True)
@@ -234,15 +234,15 @@ def _from_openapi_data(cls, type, nature, created_at, groups_permissions, user_p
234234
self._configuration = _configuration
235235
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
236236

237-
self.type = type
238-
self.nature = nature
237+
self.id = id
238+
self.user_permission = user_permission
239+
self.name = name
239240
self.created_at = created_at
240241
self.groups_permissions = groups_permissions
241-
self.user_permission = user_permission
242-
self.updated_at = updated_at
243242
self.created_by = created_by
244-
self.id = id
245-
self.name = name
243+
self.nature = nature
244+
self.updated_at = updated_at
245+
self.type = type
246246
self.conflicting_documents = conflicting_documents
247247
for var_name, var_value in kwargs.items():
248248
if var_name not in self.attribute_map and \
@@ -299,8 +299,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
299299
Animal class but this time we won't travel
300300
through its discriminator because we passed in
301301
_visited_composed_classes = (Animal,)
302-
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
303302
parent_id (int, none_type): [optional] # noqa: E501
303+
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
304304
"""
305305

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

bimdata_api_client/model/model_equipment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def openapi_types():
105105
'created_at': (datetime,), # noqa: E501
106106
'updated_at': (datetime,), # noqa: E501
107107
'description': (str, none_type,), # noqa: E501
108+
'reference_link': (str, none_type,), # noqa: E501
108109
}
109110

110111
@cached_property
@@ -122,6 +123,7 @@ def discriminator():
122123
'created_at': 'created_at', # noqa: E501
123124
'updated_at': 'updated_at', # noqa: E501
124125
'description': 'description', # noqa: E501
126+
'reference_link': 'reference_link', # noqa: E501
125127
}
126128

127129
read_only_vars = {
@@ -182,6 +184,7 @@ def _from_openapi_data(cls, id, model_id, name, position, images, creator, creat
182184
through its discriminator because we passed in
183185
_visited_composed_classes = (Animal,)
184186
description (str, none_type): Description of the equipment. [optional] # noqa: E501
187+
reference_link (str, none_type): An optional link to the equipment reference.. [optional] # noqa: E501
185188
"""
186189

187190
_check_type = kwargs.pop('_check_type', True)
@@ -274,6 +277,7 @@ def __init__(self, name, position, *args, **kwargs): # noqa: E501
274277
through its discriminator because we passed in
275278
_visited_composed_classes = (Animal,)
276279
description (str, none_type): Description of the equipment. [optional] # noqa: E501
280+
reference_link (str, none_type): An optional link to the equipment reference.. [optional] # noqa: E501
277281
"""
278282

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

bimdata_api_client/model/model_equipment_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def openapi_types():
9292
'name': (str,), # noqa: E501
9393
'position': ([float],), # noqa: E501
9494
'description': (str, none_type,), # noqa: E501
95+
'reference_link': (str, none_type,), # noqa: E501
9596
}
9697

9798
@cached_property
@@ -103,6 +104,7 @@ def discriminator():
103104
'name': 'name', # noqa: E501
104105
'position': 'position', # noqa: E501
105106
'description': 'description', # noqa: E501
107+
'reference_link': 'reference_link', # noqa: E501
106108
}
107109

108110
read_only_vars = {
@@ -151,6 +153,7 @@ def _from_openapi_data(cls, name, position, *args, **kwargs): # noqa: E501
151153
through its discriminator because we passed in
152154
_visited_composed_classes = (Animal,)
153155
description (str, none_type): Description of the equipment. [optional] # noqa: E501
156+
reference_link (str, none_type): An optional link to the equipment reference.. [optional] # noqa: E501
154157
"""
155158

156159
_check_type = kwargs.pop('_check_type', True)
@@ -239,6 +242,7 @@ def __init__(self, name, position, *args, **kwargs): # noqa: E501
239242
through its discriminator because we passed in
240243
_visited_composed_classes = (Animal,)
241244
description (str, none_type): Description of the equipment. [optional] # noqa: E501
245+
reference_link (str, none_type): An optional link to the equipment reference.. [optional] # noqa: E501
242246
"""
243247

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

0 commit comments

Comments
 (0)