Skip to content

Commit 7439456

Browse files
committed
MINOR: Merge branch 'release' into develop
1 parent 602baa2 commit 7439456

22 files changed

Lines changed: 182 additions & 176 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
144144
projects_pk = 1 # int | A unique integer value identifying this project.
145145
topics_guid = "topics_guid_example" # str |
146146
comment_request = CommentRequest(
147-
viewpoint_guid="viewpoint_guid_example",
148-
reply_to_comment_guid="reply_to_comment_guid_example",
149-
viewpoint_temp_id=1,
150147
author="author_example",
148+
reply_to_comment_guid="reply_to_comment_guid_example",
149+
viewpoint_guid="viewpoint_guid_example",
150+
modified_author="modified_author_example",
151151
date=dateutil_parser('1970-01-01T00:00:00.00Z'),
152+
viewpoint_temp_id=1,
152153
comment="comment_example",
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
@@ -10237,7 +10237,7 @@ def create_document(
1023710237
):
1023810238
"""Create a document # noqa: E501
1023910239

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

bimdata_api_client/model/comment.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def openapi_types():
8888
and the value is attribute type.
8989
"""
9090
return {
91-
'topic_guid': (str,), # noqa: E501
9291
'modified_date': (datetime,), # noqa: E501
93-
'viewpoint_guid': (str, none_type,), # noqa: E501
94-
'reply_to_comment_guid': (str, none_type,), # noqa: E501
92+
'topic_guid': (str,), # noqa: E501
9593
'author': (str, none_type,), # noqa: E501
94+
'reply_to_comment_guid': (str, none_type,), # noqa: E501
95+
'viewpoint_guid': (str, none_type,), # noqa: E501
96+
'modified_author': (str, none_type,), # noqa: E501
9697
'date': (datetime,), # noqa: E501
9798
'comment': (str,), # noqa: E501
98-
'modified_author': (str, none_type,), # noqa: E501
9999
'guid': (str,), # noqa: E501
100100
}
101101

@@ -105,32 +105,32 @@ def discriminator():
105105

106106

107107
attribute_map = {
108-
'topic_guid': 'topic_guid', # noqa: E501
109108
'modified_date': 'modified_date', # noqa: E501
110-
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
111-
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
109+
'topic_guid': 'topic_guid', # noqa: E501
112110
'author': 'author', # noqa: E501
111+
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
112+
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
113+
'modified_author': 'modified_author', # noqa: E501
113114
'date': 'date', # noqa: E501
114115
'comment': 'comment', # noqa: E501
115-
'modified_author': 'modified_author', # noqa: E501
116116
'guid': 'guid', # noqa: E501
117117
}
118118

119119
read_only_vars = {
120-
'topic_guid', # noqa: E501
121120
'modified_date', # noqa: E501
121+
'topic_guid', # noqa: E501
122122
}
123123

124124
_composed_schemas = {}
125125

126126
@classmethod
127127
@convert_js_args_to_python_args
128-
def _from_openapi_data(cls, topic_guid, modified_date, *args, **kwargs): # noqa: E501
128+
def _from_openapi_data(cls, modified_date, topic_guid, *args, **kwargs): # noqa: E501
129129
"""Comment - a model defined in OpenAPI
130130
131131
Args:
132-
topic_guid (str):
133132
modified_date (datetime):
133+
topic_guid (str):
134134
135135
Keyword Args:
136136
_check_type (bool): if True, values for parameters in openapi_types
@@ -163,12 +163,12 @@ def _from_openapi_data(cls, topic_guid, modified_date, *args, **kwargs): # noqa
163163
Animal class but this time we won't travel
164164
through its discriminator because we passed in
165165
_visited_composed_classes = (Animal,)
166-
viewpoint_guid (str, none_type): [optional] # noqa: E501
167-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
168166
author (str, none_type): [optional] # noqa: E501
167+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
168+
viewpoint_guid (str, none_type): [optional] # noqa: E501
169+
modified_author (str, none_type): [optional] # noqa: E501
169170
date (datetime): [optional] # noqa: E501
170171
comment (str): [optional] # noqa: E501
171-
modified_author (str, none_type): [optional] # noqa: E501
172172
guid (str): [optional] # noqa: E501
173173
"""
174174

@@ -197,8 +197,8 @@ def _from_openapi_data(cls, topic_guid, modified_date, *args, **kwargs): # noqa
197197
self._configuration = _configuration
198198
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
199199

200-
self.topic_guid = topic_guid
201200
self.modified_date = modified_date
201+
self.topic_guid = topic_guid
202202
for var_name, var_value in kwargs.items():
203203
if var_name not in self.attribute_map and \
204204
self._configuration is not None and \
@@ -253,12 +253,12 @@ def __init__(self, *args, **kwargs): # noqa: E501
253253
Animal class but this time we won't travel
254254
through its discriminator because we passed in
255255
_visited_composed_classes = (Animal,)
256-
viewpoint_guid (str, none_type): [optional] # noqa: E501
257-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
258256
author (str, none_type): [optional] # noqa: E501
257+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
258+
viewpoint_guid (str, none_type): [optional] # noqa: E501
259+
modified_author (str, none_type): [optional] # noqa: E501
259260
date (datetime): [optional] # noqa: E501
260261
comment (str): [optional] # noqa: E501
261-
modified_author (str, none_type): [optional] # noqa: E501
262262
guid (str): [optional] # noqa: E501
263263
"""
264264

bimdata_api_client/model/comment_request.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ def openapi_types():
8888
and the value is attribute type.
8989
"""
9090
return {
91-
'viewpoint_guid': (str, none_type,), # noqa: E501
92-
'reply_to_comment_guid': (str, none_type,), # noqa: E501
93-
'viewpoint_temp_id': (int,), # noqa: E501
9491
'author': (str, none_type,), # noqa: E501
92+
'reply_to_comment_guid': (str, none_type,), # noqa: E501
93+
'viewpoint_guid': (str, none_type,), # noqa: E501
94+
'modified_author': (str, none_type,), # noqa: E501
9595
'date': (datetime,), # noqa: E501
96+
'viewpoint_temp_id': (int,), # noqa: E501
9697
'comment': (str,), # noqa: E501
97-
'modified_author': (str, none_type,), # noqa: E501
9898
'guid': (str,), # noqa: E501
9999
}
100100

@@ -104,13 +104,13 @@ def discriminator():
104104

105105

106106
attribute_map = {
107-
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
108-
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
109-
'viewpoint_temp_id': 'viewpoint_temp_id', # noqa: E501
110107
'author': 'author', # noqa: E501
108+
'reply_to_comment_guid': 'reply_to_comment_guid', # noqa: E501
109+
'viewpoint_guid': 'viewpoint_guid', # noqa: E501
110+
'modified_author': 'modified_author', # noqa: E501
111111
'date': 'date', # noqa: E501
112+
'viewpoint_temp_id': 'viewpoint_temp_id', # noqa: E501
112113
'comment': 'comment', # noqa: E501
113-
'modified_author': 'modified_author', # noqa: E501
114114
'guid': 'guid', # noqa: E501
115115
}
116116

@@ -155,13 +155,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
155155
Animal class but this time we won't travel
156156
through its discriminator because we passed in
157157
_visited_composed_classes = (Animal,)
158-
viewpoint_guid (str, none_type): [optional] # noqa: E501
159-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
160-
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
161158
author (str, none_type): [optional] # noqa: E501
159+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
160+
viewpoint_guid (str, none_type): [optional] # noqa: E501
161+
modified_author (str, none_type): [optional] # noqa: E501
162162
date (datetime): [optional] # noqa: E501
163+
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
163164
comment (str): [optional] # noqa: E501
164-
modified_author (str, none_type): [optional] # noqa: E501
165165
guid (str): [optional] # noqa: E501
166166
"""
167167

@@ -244,13 +244,13 @@ def __init__(self, *args, **kwargs): # noqa: E501
244244
Animal class but this time we won't travel
245245
through its discriminator because we passed in
246246
_visited_composed_classes = (Animal,)
247-
viewpoint_guid (str, none_type): [optional] # noqa: E501
248-
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
249-
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
250247
author (str, none_type): [optional] # noqa: E501
248+
reply_to_comment_guid (str, none_type): [optional] # noqa: E501
249+
viewpoint_guid (str, none_type): [optional] # noqa: E501
250+
modified_author (str, none_type): [optional] # noqa: E501
251251
date (datetime): [optional] # noqa: E501
252+
viewpoint_temp_id (int): Only used when using POST on the full-topic route to bind viewpoint with comment. [optional] # noqa: E501
252253
comment (str): [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: 5 additions & 5 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",
6162
'SPANISH': "spanish",
62-
'ITALIAN': "italian",
63-
'GERMAN': "german",
6463
'ENGLISH': "english",
65-
'FRENCH': "french",
64+
'GERMAN': "german",
65+
'ITALIAN': "italian",
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): * `spanish` - spanish * `italian` - italian * `german` - german * `english` - english * `french` - french. [optional] # noqa: E501
156+
language (str, none_type): * `french` - french * `spanish` - spanish * `english` - english * `german` - german * `italian` - italian. [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): * `spanish` - spanish * `italian` - italian * `german` - german * `english` - english * `french` - french. [optional] # noqa: E501
240+
language (str, none_type): * `french` - french * `spanish` - spanish * `english` - english * `german` - german * `italian` - italian. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/edit_folder.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ def openapi_types():
109109
"""
110110
lazy_import()
111111
return {
112-
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
113-
'nature': (str,), # noqa: E501
114-
'type': (str,), # noqa: E501
115-
'created_at': (datetime,), # noqa: E501
116112
'groups_permissions': ([GroupFolderRead],), # noqa: E501
117-
'user_permission': (int,), # noqa: E501
113+
'nature': (str,), # noqa: E501
118114
'id': (int,), # noqa: E501
115+
'created_at': (datetime,), # noqa: E501
119116
'name': (str,), # noqa: E501
117+
'type': (str,), # noqa: E501
118+
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
119+
'user_permission': (int,), # noqa: E501
120120
'updated_at': (datetime,), # noqa: E501
121121
'conflicting_documents': ([LightDocument],), # noqa: E501
122122
'default_permission': (int,), # noqa: E501
@@ -129,28 +129,28 @@ def discriminator():
129129

130130

131131
attribute_map = {
132-
'created_by': 'created_by', # noqa: E501
133-
'nature': 'nature', # noqa: E501
134-
'type': 'type', # noqa: E501
135-
'created_at': 'created_at', # noqa: E501
136132
'groups_permissions': 'groups_permissions', # noqa: E501
137-
'user_permission': 'user_permission', # noqa: E501
133+
'nature': 'nature', # noqa: E501
138134
'id': 'id', # noqa: E501
135+
'created_at': 'created_at', # noqa: E501
139136
'name': 'name', # noqa: E501
137+
'type': 'type', # noqa: E501
138+
'created_by': 'created_by', # noqa: E501
139+
'user_permission': 'user_permission', # noqa: E501
140140
'updated_at': 'updated_at', # noqa: E501
141141
'conflicting_documents': 'conflicting_documents', # noqa: E501
142142
'default_permission': 'default_permission', # noqa: E501
143143
'parent_id': 'parent_id', # noqa: E501
144144
}
145145

146146
read_only_vars = {
147-
'created_by', # noqa: E501
147+
'groups_permissions', # noqa: E501
148148
'nature', # noqa: E501
149-
'type', # noqa: E501
149+
'id', # noqa: E501
150150
'created_at', # noqa: E501
151-
'groups_permissions', # noqa: E501
151+
'type', # noqa: E501
152+
'created_by', # noqa: E501
152153
'user_permission', # noqa: E501
153-
'id', # noqa: E501
154154
'updated_at', # noqa: E501
155155
'conflicting_documents', # noqa: E501
156156
}
@@ -159,18 +159,18 @@ def discriminator():
159159

160160
@classmethod
161161
@convert_js_args_to_python_args
162-
def _from_openapi_data(cls, created_by, nature, type, created_at, groups_permissions, user_permission, id, name, updated_at, conflicting_documents, *args, **kwargs): # noqa: E501
162+
def _from_openapi_data(cls, groups_permissions, nature, id, created_at, name, type, created_by, user_permission, updated_at, conflicting_documents, *args, **kwargs): # noqa: E501
163163
"""EditFolder - a model defined in OpenAPI
164164
165165
Args:
166-
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
167-
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
168-
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
169-
created_at (datetime): Creation date
170166
groups_permissions ([GroupFolderRead]): List of group permissions
171-
user_permission (int): Aggregate of group user permissions and folder default permission
167+
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
172168
id (int):
169+
created_at (datetime): Creation date
173170
name (str): Name of the folder
171+
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
172+
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
173+
user_permission (int): Aggregate of group user permissions and folder default permission
174174
updated_at (datetime): Date of the last update
175175
conflicting_documents ([LightDocument]): Return document with naming conflict. This is only set when you move a folder
176176
@@ -234,14 +234,14 @@ def _from_openapi_data(cls, created_by, nature, type, created_at, groups_permiss
234234
self._configuration = _configuration
235235
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
236236

237-
self.created_by = created_by
238-
self.nature = nature
239-
self.type = type
240-
self.created_at = created_at
241237
self.groups_permissions = groups_permissions
242-
self.user_permission = user_permission
238+
self.nature = nature
243239
self.id = id
240+
self.created_at = created_at
244241
self.name = name
242+
self.type = type
243+
self.created_by = created_by
244+
self.user_permission = user_permission
245245
self.updated_at = updated_at
246246
self.conflicting_documents = conflicting_documents
247247
for var_name, var_value in kwargs.items():

bimdata_api_client/model/light_model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def openapi_types():
120120
'source': (str,), # noqa: E501
121121
'archived': (bool,), # noqa: E501
122122
'status': (str,), # noqa: E501
123+
'fragments_status': (str,), # noqa: E501
123124
}
124125

125126
@cached_property
@@ -139,6 +140,7 @@ def discriminator():
139140
'source': 'source', # noqa: E501
140141
'archived': 'archived', # noqa: E501
141142
'status': 'status', # noqa: E501
143+
'fragments_status': 'fragments_status', # noqa: E501
142144
}
143145

144146
read_only_vars = {
@@ -153,13 +155,14 @@ def discriminator():
153155
'source', # noqa: E501
154156
'archived', # noqa: E501
155157
'status', # noqa: E501
158+
'fragments_status', # noqa: E501
156159
}
157160

158161
_composed_schemas = {}
159162

160163
@classmethod
161164
@convert_js_args_to_python_args
162-
def _from_openapi_data(cls, id, document_id, creator, name, type, preview_file, created_at, updated_at, source, archived, status, *args, **kwargs): # noqa: E501
165+
def _from_openapi_data(cls, id, document_id, creator, name, type, preview_file, created_at, updated_at, source, archived, status, fragments_status, *args, **kwargs): # noqa: E501
163166
"""LightModel - a model defined in OpenAPI
164167
165168
Args:
@@ -174,6 +177,7 @@ def _from_openapi_data(cls, id, document_id, creator, name, type, preview_file,
174177
source (str): * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
175178
archived (bool):
176179
status (str):
180+
fragments_status (str): Status of the fragments process. This field may be removed in future versions when the `status` will take fragments into account.
177181
178182
Keyword Args:
179183
_check_type (bool): if True, values for parameters in openapi_types
@@ -244,6 +248,7 @@ def _from_openapi_data(cls, id, document_id, creator, name, type, preview_file,
244248
self.source = source
245249
self.archived = archived
246250
self.status = status
251+
self.fragments_status = fragments_status
247252
for var_name, var_value in kwargs.items():
248253
if var_name not in self.attribute_map and \
249254
self._configuration is not None and \

0 commit comments

Comments
 (0)