Skip to content

Commit d665ee0

Browse files
committed
MINOR: Naming template (#1039)
* temp diff for debug * fix tests, move some method * fix openAPI * betters tests * use 409 instead of 400 when uploading documents * fix serialization of naming_constraint_conflit * fix pyproject.toml * use textwrap.dedent, merge migraitons
1 parent d47bf3b commit d665ee0

109 files changed

Lines changed: 7868 additions & 1223 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ bimdata_api_client/model/drawing.py
6060
bimdata_api_client/model/drawing_request.py
6161
bimdata_api_client/model/edit_comment.py
6262
bimdata_api_client/model/edit_comment_request.py
63+
bimdata_api_client/model/edit_folder.py
6364
bimdata_api_client/model/element.py
6465
bimdata_api_client/model/element_classification_relation.py
6566
bimdata_api_client/model/element_classification_relation_request.py
@@ -71,6 +72,8 @@ bimdata_api_client/model/extensions.py
7172
bimdata_api_client/model/feature.py
7273
bimdata_api_client/model/feature_request.py
7374
bimdata_api_client/model/folder.py
75+
bimdata_api_client/model/folder_naming_constraint.py
76+
bimdata_api_client/model/folder_naming_constraint_request.py
7477
bimdata_api_client/model/folder_tree.py
7578
bimdata_api_client/model/folder_user_project.py
7679
bimdata_api_client/model/folder_without_children.py
@@ -127,6 +130,10 @@ bimdata_api_client/model/model_on_model_position_creation_request.py
127130
bimdata_api_client/model/model_property.py
128131
bimdata_api_client/model/model_serializer_without_children.py
129132
bimdata_api_client/model/model_with_positioning_plan.py
133+
bimdata_api_client/model/naming_constraint.py
134+
bimdata_api_client/model/naming_constraint_request.py
135+
bimdata_api_client/model/naming_parts_template.py
136+
bimdata_api_client/model/naming_parts_template_request.py
130137
bimdata_api_client/model/organization.py
131138
bimdata_api_client/model/organization_request.py
132139
bimdata_api_client/model/orthogonal_camera.py
@@ -139,8 +146,8 @@ bimdata_api_client/model/patched_comment_request.py
139146
bimdata_api_client/model/patched_document_request.py
140147
bimdata_api_client/model/patched_document_text_request.py
141148
bimdata_api_client/model/patched_drawing_request.py
149+
bimdata_api_client/model/patched_edit_folder_request.py
142150
bimdata_api_client/model/patched_element_request.py
143-
bimdata_api_client/model/patched_folder_without_children_request.py
144151
bimdata_api_client/model/patched_full_topic_request.py
145152
bimdata_api_client/model/patched_group_folder_request.py
146153
bimdata_api_client/model/patched_group_request.py
@@ -151,6 +158,8 @@ bimdata_api_client/model/patched_model_equipment_request.py
151158
bimdata_api_client/model/patched_model_label_request.py
152159
bimdata_api_client/model/patched_model_on_model_position_request.py
153160
bimdata_api_client/model/patched_model_request.py
161+
bimdata_api_client/model/patched_naming_constraint_request.py
162+
bimdata_api_client/model/patched_naming_parts_template_request.py
154163
bimdata_api_client/model/patched_pin_request.py
155164
bimdata_api_client/model/patched_positioning_plan_request.py
156165
bimdata_api_client/model/patched_priority_request.py
@@ -353,6 +362,7 @@ docs/Drawing.md
353362
docs/DrawingRequest.md
354363
docs/EditComment.md
355364
docs/EditCommentRequest.md
365+
docs/EditFolder.md
356366
docs/Element.md
357367
docs/ElementClassificationRelation.md
358368
docs/ElementClassificationRelationRequest.md
@@ -364,6 +374,8 @@ docs/Extensions.md
364374
docs/Feature.md
365375
docs/FeatureRequest.md
366376
docs/Folder.md
377+
docs/FolderNamingConstraint.md
378+
docs/FolderNamingConstraintRequest.md
367379
docs/FolderTree.md
368380
docs/FolderUserProject.md
369381
docs/FolderWithoutChildren.md
@@ -421,6 +433,10 @@ docs/ModelOnModelPositionCreationRequest.md
421433
docs/ModelProperty.md
422434
docs/ModelSerializerWithoutChildren.md
423435
docs/ModelWithPositioningPlan.md
436+
docs/NamingConstraint.md
437+
docs/NamingConstraintRequest.md
438+
docs/NamingPartsTemplate.md
439+
docs/NamingPartsTemplateRequest.md
424440
docs/Organization.md
425441
docs/OrganizationRequest.md
426442
docs/OrthogonalCamera.md
@@ -433,8 +449,8 @@ docs/PatchedCommentRequest.md
433449
docs/PatchedDocumentRequest.md
434450
docs/PatchedDocumentTextRequest.md
435451
docs/PatchedDrawingRequest.md
452+
docs/PatchedEditFolderRequest.md
436453
docs/PatchedElementRequest.md
437-
docs/PatchedFolderWithoutChildrenRequest.md
438454
docs/PatchedFullTopicRequest.md
439455
docs/PatchedGroupFolderRequest.md
440456
docs/PatchedGroupRequest.md
@@ -445,6 +461,8 @@ docs/PatchedModelEquipmentRequest.md
445461
docs/PatchedModelLabelRequest.md
446462
docs/PatchedModelOnModelPositionRequest.md
447463
docs/PatchedModelRequest.md
464+
docs/PatchedNamingConstraintRequest.md
465+
docs/PatchedNamingPartsTemplateRequest.md
448466
docs/PatchedPinRequest.md
449467
docs/PatchedPositioningPlanRequest.md
450468
docs/PatchedPriorityRequest.md
@@ -650,6 +668,7 @@ test/test_drawing.py
650668
test/test_drawing_request.py
651669
test/test_edit_comment.py
652670
test/test_edit_comment_request.py
671+
test/test_edit_folder.py
653672
test/test_element.py
654673
test/test_element_classification_relation.py
655674
test/test_element_classification_relation_request.py
@@ -661,6 +680,8 @@ test/test_extensions.py
661680
test/test_feature.py
662681
test/test_feature_request.py
663682
test/test_folder.py
683+
test/test_folder_naming_constraint.py
684+
test/test_folder_naming_constraint_request.py
664685
test/test_folder_tree.py
665686
test/test_folder_user_project.py
666687
test/test_folder_without_children.py
@@ -718,6 +739,10 @@ test/test_model_on_model_position_creation_request.py
718739
test/test_model_property.py
719740
test/test_model_serializer_without_children.py
720741
test/test_model_with_positioning_plan.py
742+
test/test_naming_constraint.py
743+
test/test_naming_constraint_request.py
744+
test/test_naming_parts_template.py
745+
test/test_naming_parts_template_request.py
721746
test/test_organization.py
722747
test/test_organization_request.py
723748
test/test_orthogonal_camera.py
@@ -730,8 +755,8 @@ test/test_patched_comment_request.py
730755
test/test_patched_document_request.py
731756
test/test_patched_document_text_request.py
732757
test/test_patched_drawing_request.py
758+
test/test_patched_edit_folder_request.py
733759
test/test_patched_element_request.py
734-
test/test_patched_folder_without_children_request.py
735760
test/test_patched_full_topic_request.py
736761
test/test_patched_group_folder_request.py
737762
test/test_patched_group_request.py
@@ -742,6 +767,8 @@ test/test_patched_model_equipment_request.py
742767
test/test_patched_model_label_request.py
743768
test/test_patched_model_on_model_position_request.py
744769
test/test_patched_model_request.py
770+
test/test_patched_naming_constraint_request.py
771+
test/test_patched_naming_parts_template_request.py
745772
test/test_patched_pin_request.py
746773
test/test_patched_positioning_plan_request.py
747774
test/test_patched_priority_request.py

README.md

Lines changed: 27 additions & 5 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-
author="author_example",
148-
date=dateutil_parser('1970-01-01T00:00:00.00Z'),
147+
viewpoint_temp_id=1,
149148
viewpoint_guid="viewpoint_guid_example",
149+
author="author_example",
150150
comment="comment_example",
151-
viewpoint_temp_id=1,
152-
modified_author="modified_author_example",
153151
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

@@ -256,6 +256,8 @@ Class | Method | HTTP request | Description
256256
*CollaborationApi* | [**create_document**](docs/CollaborationApi.md#create_document) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document | Create a document
257257
*CollaborationApi* | [**create_folder**](docs/CollaborationApi.md#create_folder) | **POST** /cloud/{cloud_pk}/project/{project_pk}/folder | Create a folder
258258
*CollaborationApi* | [**create_manage_group**](docs/CollaborationApi.md#create_manage_group) | **POST** /cloud/{cloud_pk}/project/{project_pk}/group | Create a group
259+
*CollaborationApi* | [**create_naming_constraint**](docs/CollaborationApi.md#create_naming_constraint) | **POST** /cloud/{cloud_pk}/project/{project_pk}/naming-constraint | Create a naming constraint
260+
*CollaborationApi* | [**create_naming_parts_template**](docs/CollaborationApi.md#create_naming_parts_template) | **POST** /cloud/{cloud_pk}/project/{project_pk}/naming-parts-template | Create a naming rule list
259261
*CollaborationApi* | [**create_project**](docs/CollaborationApi.md#create_project) | **POST** /cloud/{cloud_pk}/project | Create a project
260262
*CollaborationApi* | [**create_project_access_token**](docs/CollaborationApi.md#create_project_access_token) | **POST** /cloud/{cloud_pk}/project/{project_pk}/access-token | Create a token for this project
261263
*CollaborationApi* | [**create_tag**](docs/CollaborationApi.md#create_tag) | **POST** /cloud/{cloud_pk}/project/{project_pk}/tag | Create a tag
@@ -269,8 +271,11 @@ Class | Method | HTTP request | Description
269271
*CollaborationApi* | [**delete_document**](docs/CollaborationApi.md#delete_document) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{id} | Delete the document
270272
*CollaborationApi* | [**delete_document_tag**](docs/CollaborationApi.md#delete_document_tag) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/tag/{id} | Delete a tag from a document
271273
*CollaborationApi* | [**delete_folder**](docs/CollaborationApi.md#delete_folder) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Delete a folder
274+
*CollaborationApi* | [**delete_folder_naming_constraint**](docs/CollaborationApi.md#delete_folder_naming_constraint) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/folder/{id}/naming-constraint | Remove a naming constraint from a folder
272275
*CollaborationApi* | [**delete_group_member**](docs/CollaborationApi.md#delete_group_member) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/group/{group_pk}/member/{id} | Delete a user from a group
273276
*CollaborationApi* | [**delete_manage_group**](docs/CollaborationApi.md#delete_manage_group) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/group/{id} | Delete a group
277+
*CollaborationApi* | [**delete_naming_constraint**](docs/CollaborationApi.md#delete_naming_constraint) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/naming-constraint/{id} | Delete a naming constraint
278+
*CollaborationApi* | [**delete_naming_parts_template**](docs/CollaborationApi.md#delete_naming_parts_template) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/naming-parts-template/{id} | Delete a naming rule list
274279
*CollaborationApi* | [**delete_project**](docs/CollaborationApi.md#delete_project) | **DELETE** /cloud/{cloud_pk}/project/{id} | Delete a project
275280
*CollaborationApi* | [**delete_project_access_token**](docs/CollaborationApi.md#delete_project_access_token) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/access-token/{token} | Delete a token
276281
*CollaborationApi* | [**delete_project_user**](docs/CollaborationApi.md#delete_project_user) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/user/{id} | Remove a user from a project
@@ -292,13 +297,18 @@ Class | Method | HTTP request | Description
292297
*CollaborationApi* | [**get_documents**](docs/CollaborationApi.md#get_documents) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document | Retrieve all documents
293298
*CollaborationApi* | [**get_folder**](docs/CollaborationApi.md#get_folder) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Retrieve a folder
294299
*CollaborationApi* | [**get_folder_documents**](docs/CollaborationApi.md#get_folder_documents) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/document | Get all documents of a folder
300+
*CollaborationApi* | [**get_folder_naming_constraint**](docs/CollaborationApi.md#get_folder_naming_constraint) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{id}/naming-constraint | Get the naming constraint of a folder
295301
*CollaborationApi* | [**get_folder_project_users**](docs/CollaborationApi.md#get_folder_project_users) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/user | Retrieve all users in a project with the permission on the folder
296302
*CollaborationApi* | [**get_folders**](docs/CollaborationApi.md#get_folders) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder | Retrieve all folders
297303
*CollaborationApi* | [**get_group**](docs/CollaborationApi.md#get_group) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/group/{id} | Retrieve a group
298304
*CollaborationApi* | [**get_groups**](docs/CollaborationApi.md#get_groups) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/group | Retrieve all groups
299305
*CollaborationApi* | [**get_logs**](docs/CollaborationApi.md#get_logs) | **GET** /cloud/{cloud_pk}/project/{project_pk}/logs | Retrieve all logs of the project
300306
*CollaborationApi* | [**get_manage_group**](docs/CollaborationApi.md#get_manage_group) | **GET** /cloud/{cloud_pk}/project/{project_pk}/group/{id} | Retrieve a group
301307
*CollaborationApi* | [**get_manage_groups**](docs/CollaborationApi.md#get_manage_groups) | **GET** /cloud/{cloud_pk}/project/{project_pk}/group | Retrieve all groups
308+
*CollaborationApi* | [**get_naming_constraint**](docs/CollaborationApi.md#get_naming_constraint) | **GET** /cloud/{cloud_pk}/project/{project_pk}/naming-constraint/{id} | Retrieve a naming constraint
309+
*CollaborationApi* | [**get_naming_constraints**](docs/CollaborationApi.md#get_naming_constraints) | **GET** /cloud/{cloud_pk}/project/{project_pk}/naming-constraint | Retrieve all naming constraints
310+
*CollaborationApi* | [**get_naming_parts_template**](docs/CollaborationApi.md#get_naming_parts_template) | **GET** /cloud/{cloud_pk}/project/{project_pk}/naming-parts-template/{id} | Retrieve a naming rule list
311+
*CollaborationApi* | [**get_naming_parts_templates**](docs/CollaborationApi.md#get_naming_parts_templates) | **GET** /cloud/{cloud_pk}/project/{project_pk}/naming-parts-template | Retrieve all naming rule lists
302312
*CollaborationApi* | [**get_project**](docs/CollaborationApi.md#get_project) | **GET** /cloud/{cloud_pk}/project/{id} | Retrieve a project
303313
*CollaborationApi* | [**get_project_access_token**](docs/CollaborationApi.md#get_project_access_token) | **GET** /cloud/{cloud_pk}/project/{project_pk}/access-token/{token} | Retrieve one token created for this project
304314
*CollaborationApi* | [**get_project_access_tokens**](docs/CollaborationApi.md#get_project_access_tokens) | **GET** /cloud/{cloud_pk}/project/{project_pk}/access-token | Retrieve all tokens created for this project
@@ -333,6 +343,7 @@ Class | Method | HTTP request | Description
333343
*CollaborationApi* | [**pause_visa**](docs/CollaborationApi.md#pause_visa) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{id}/pause | Pause a visa of a document
334344
*CollaborationApi* | [**reset_validation**](docs/CollaborationApi.md#reset_validation) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation/{id}/reset | Reset a validation
335345
*CollaborationApi* | [**resume_visa**](docs/CollaborationApi.md#resume_visa) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{id}/resume | Resume a visa of a document
346+
*CollaborationApi* | [**set_folder_naming_constraint**](docs/CollaborationApi.md#set_folder_naming_constraint) | **POST** /cloud/{cloud_pk}/project/{project_pk}/folder/{id}/naming-constraint | Set or replace a naming constraint on a folder
336347
*CollaborationApi* | [**update_classification**](docs/CollaborationApi.md#update_classification) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} | Update some fields of a classification
337348
*CollaborationApi* | [**update_cloud**](docs/CollaborationApi.md#update_cloud) | **PATCH** /cloud/{id} | Update some fields of a cloud
338349
*CollaborationApi* | [**update_cloud_user**](docs/CollaborationApi.md#update_cloud_user) | **PATCH** /cloud/{cloud_pk}/user/{id} | Change the user role in the cloud
@@ -341,6 +352,8 @@ Class | Method | HTTP request | Description
341352
*CollaborationApi* | [**update_folder**](docs/CollaborationApi.md#update_folder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Update some fields of a folder
342353
*CollaborationApi* | [**update_group_folder**](docs/CollaborationApi.md#update_group_folder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/group/{id} | Update the permission of a group on a folder. When propagate is set to True, the permission of all children in the folder will be updated.
343354
*CollaborationApi* | [**update_manage_group**](docs/CollaborationApi.md#update_manage_group) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/group/{id} | Update some fields of a group
355+
*CollaborationApi* | [**update_naming_constraint**](docs/CollaborationApi.md#update_naming_constraint) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/naming-constraint/{id} | Update some fields of a naming constraint
356+
*CollaborationApi* | [**update_naming_parts_template**](docs/CollaborationApi.md#update_naming_parts_template) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/naming-parts-template/{id} | Update some fields of a naming rule list
344357
*CollaborationApi* | [**update_preview_file**](docs/CollaborationApi.md#update_preview_file) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id}/preview-file | Update preview of the document
345358
*CollaborationApi* | [**update_project**](docs/CollaborationApi.md#update_project) | **PATCH** /cloud/{cloud_pk}/project/{id} | Update some fields of a project
346359
*CollaborationApi* | [**update_project_user**](docs/CollaborationApi.md#update_project_user) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} | Change the user role in the cloud
@@ -597,6 +610,7 @@ Class | Method | HTTP request | Description
597610
- [DrawingRequest](docs/DrawingRequest.md)
598611
- [EditComment](docs/EditComment.md)
599612
- [EditCommentRequest](docs/EditCommentRequest.md)
613+
- [EditFolder](docs/EditFolder.md)
600614
- [Element](docs/Element.md)
601615
- [ElementClassificationRelation](docs/ElementClassificationRelation.md)
602616
- [ElementClassificationRelationRequest](docs/ElementClassificationRelationRequest.md)
@@ -608,6 +622,8 @@ Class | Method | HTTP request | Description
608622
- [Feature](docs/Feature.md)
609623
- [FeatureRequest](docs/FeatureRequest.md)
610624
- [Folder](docs/Folder.md)
625+
- [FolderNamingConstraint](docs/FolderNamingConstraint.md)
626+
- [FolderNamingConstraintRequest](docs/FolderNamingConstraintRequest.md)
611627
- [FolderTree](docs/FolderTree.md)
612628
- [FolderUserProject](docs/FolderUserProject.md)
613629
- [FolderWithoutChildren](docs/FolderWithoutChildren.md)
@@ -664,6 +680,10 @@ Class | Method | HTTP request | Description
664680
- [ModelProperty](docs/ModelProperty.md)
665681
- [ModelSerializerWithoutChildren](docs/ModelSerializerWithoutChildren.md)
666682
- [ModelWithPositioningPlan](docs/ModelWithPositioningPlan.md)
683+
- [NamingConstraint](docs/NamingConstraint.md)
684+
- [NamingConstraintRequest](docs/NamingConstraintRequest.md)
685+
- [NamingPartsTemplate](docs/NamingPartsTemplate.md)
686+
- [NamingPartsTemplateRequest](docs/NamingPartsTemplateRequest.md)
667687
- [Organization](docs/Organization.md)
668688
- [OrganizationRequest](docs/OrganizationRequest.md)
669689
- [OrthogonalCamera](docs/OrthogonalCamera.md)
@@ -676,8 +696,8 @@ Class | Method | HTTP request | Description
676696
- [PatchedDocumentRequest](docs/PatchedDocumentRequest.md)
677697
- [PatchedDocumentTextRequest](docs/PatchedDocumentTextRequest.md)
678698
- [PatchedDrawingRequest](docs/PatchedDrawingRequest.md)
699+
- [PatchedEditFolderRequest](docs/PatchedEditFolderRequest.md)
679700
- [PatchedElementRequest](docs/PatchedElementRequest.md)
680-
- [PatchedFolderWithoutChildrenRequest](docs/PatchedFolderWithoutChildrenRequest.md)
681701
- [PatchedFullTopicRequest](docs/PatchedFullTopicRequest.md)
682702
- [PatchedGroupFolderRequest](docs/PatchedGroupFolderRequest.md)
683703
- [PatchedGroupRequest](docs/PatchedGroupRequest.md)
@@ -688,6 +708,8 @@ Class | Method | HTTP request | Description
688708
- [PatchedModelLabelRequest](docs/PatchedModelLabelRequest.md)
689709
- [PatchedModelOnModelPositionRequest](docs/PatchedModelOnModelPositionRequest.md)
690710
- [PatchedModelRequest](docs/PatchedModelRequest.md)
711+
- [PatchedNamingConstraintRequest](docs/PatchedNamingConstraintRequest.md)
712+
- [PatchedNamingPartsTemplateRequest](docs/PatchedNamingPartsTemplateRequest.md)
691713
- [PatchedPinRequest](docs/PatchedPinRequest.md)
692714
- [PatchedPositioningPlanRequest](docs/PatchedPositioningPlanRequest.md)
693715
- [PatchedPriorityRequest](docs/PatchedPriorityRequest.md)

0 commit comments

Comments
 (0)