|
31 | 31 | from bimdata_api_client.model.cloud_request import CloudRequest |
32 | 32 | from bimdata_api_client.model.document import Document |
33 | 33 | from bimdata_api_client.model.document_preview_file import DocumentPreviewFile |
| 34 | +from bimdata_api_client.model.document_text import DocumentText |
34 | 35 | from bimdata_api_client.model.folder import Folder |
35 | 36 | from bimdata_api_client.model.folder_tree import FolderTree |
36 | 37 | from bimdata_api_client.model.folder_user_project import FolderUserProject |
|
44 | 45 | from bimdata_api_client.model.patched_classification_request import PatchedClassificationRequest |
45 | 46 | from bimdata_api_client.model.patched_cloud_request import PatchedCloudRequest |
46 | 47 | from bimdata_api_client.model.patched_document_request import PatchedDocumentRequest |
| 48 | +from bimdata_api_client.model.patched_document_text_request import PatchedDocumentTextRequest |
47 | 49 | from bimdata_api_client.model.patched_folder_without_children_request import PatchedFolderWithoutChildrenRequest |
48 | 50 | from bimdata_api_client.model.patched_group_folder_request import PatchedGroupFolderRequest |
49 | 51 | from bimdata_api_client.model.patched_group_request import PatchedGroupRequest |
@@ -3472,9 +3474,11 @@ def __init__(self, api_client=None): |
3472 | 3474 | 'name__contains', |
3473 | 3475 | 'name__endswith', |
3474 | 3476 | 'name__startswith', |
| 3477 | + 'search', |
3475 | 3478 | 'size_max', |
3476 | 3479 | 'size_min', |
3477 | 3480 | 'tags', |
| 3481 | + 'text', |
3478 | 3482 | 'visa__creator_email', |
3479 | 3483 | 'visa__deadline_after', |
3480 | 3484 | 'visa__deadline_before', |
@@ -3566,12 +3570,16 @@ def __init__(self, api_client=None): |
3566 | 3570 | (str,), |
3567 | 3571 | 'name__startswith': |
3568 | 3572 | (str,), |
| 3573 | + 'search': |
| 3574 | + (str,), |
3569 | 3575 | 'size_max': |
3570 | 3576 | (int, none_type,), |
3571 | 3577 | 'size_min': |
3572 | 3578 | (int, none_type,), |
3573 | 3579 | 'tags': |
3574 | 3580 | ([str],), |
| 3581 | + 'text': |
| 3582 | + (bool,), |
3575 | 3583 | 'visa__creator_email': |
3576 | 3584 | (str,), |
3577 | 3585 | 'visa__deadline_after': |
@@ -3610,9 +3618,11 @@ def __init__(self, api_client=None): |
3610 | 3618 | 'name__contains': 'name__contains', |
3611 | 3619 | 'name__endswith': 'name__endswith', |
3612 | 3620 | 'name__startswith': 'name__startswith', |
| 3621 | + 'search': 'search', |
3613 | 3622 | 'size_max': 'size_max', |
3614 | 3623 | 'size_min': 'size_min', |
3615 | 3624 | 'tags': 'tags', |
| 3625 | + 'text': 'text', |
3616 | 3626 | 'visa__creator_email': 'visa__creator_email', |
3617 | 3627 | 'visa__deadline_after': 'visa__deadline_after', |
3618 | 3628 | 'visa__deadline_before': 'visa__deadline_before', |
@@ -3642,9 +3652,11 @@ def __init__(self, api_client=None): |
3642 | 3652 | 'name__contains': 'query', |
3643 | 3653 | 'name__endswith': 'query', |
3644 | 3654 | 'name__startswith': 'query', |
| 3655 | + 'search': 'query', |
3645 | 3656 | 'size_max': 'query', |
3646 | 3657 | 'size_min': 'query', |
3647 | 3658 | 'tags': 'query', |
| 3659 | + 'text': 'query', |
3648 | 3660 | 'visa__creator_email': 'query', |
3649 | 3661 | 'visa__deadline_after': 'query', |
3650 | 3662 | 'visa__deadline_before': 'query', |
@@ -3768,6 +3780,7 @@ def __init__(self, api_client=None): |
3768 | 3780 | 'name__contains', |
3769 | 3781 | 'name__endswith', |
3770 | 3782 | 'name__startswith', |
| 3783 | + 'search', |
3771 | 3784 | 'size_max', |
3772 | 3785 | 'size_min', |
3773 | 3786 | 'tags', |
@@ -3865,6 +3878,8 @@ def __init__(self, api_client=None): |
3865 | 3878 | (str,), |
3866 | 3879 | 'name__startswith': |
3867 | 3880 | (str,), |
| 3881 | + 'search': |
| 3882 | + (str,), |
3868 | 3883 | 'size_max': |
3869 | 3884 | (int, none_type,), |
3870 | 3885 | 'size_min': |
@@ -3910,6 +3925,7 @@ def __init__(self, api_client=None): |
3910 | 3925 | 'name__contains': 'name__contains', |
3911 | 3926 | 'name__endswith': 'name__endswith', |
3912 | 3927 | 'name__startswith': 'name__startswith', |
| 3928 | + 'search': 'search', |
3913 | 3929 | 'size_max': 'size_max', |
3914 | 3930 | 'size_min': 'size_min', |
3915 | 3931 | 'tags': 'tags', |
@@ -3943,6 +3959,7 @@ def __init__(self, api_client=None): |
3943 | 3959 | 'name__contains': 'query', |
3944 | 3960 | 'name__endswith': 'query', |
3945 | 3961 | 'name__startswith': 'query', |
| 3962 | + 'search': 'query', |
3946 | 3963 | 'size_max': 'query', |
3947 | 3964 | 'size_min': 'query', |
3948 | 3965 | 'tags': 'query', |
@@ -6935,6 +6952,80 @@ def __init__(self, api_client=None): |
6935 | 6952 | }, |
6936 | 6953 | api_client=api_client |
6937 | 6954 | ) |
| 6955 | + self.update_document_text_endpoint = _Endpoint( |
| 6956 | + settings={ |
| 6957 | + 'response_type': (DocumentText,), |
| 6958 | + 'auth': [ |
| 6959 | + 'ApiKey', |
| 6960 | + 'BIMData_Connect', |
| 6961 | + 'BIMData_Connect', |
| 6962 | + 'Bearer' |
| 6963 | + ], |
| 6964 | + 'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/document/{id}/text', |
| 6965 | + 'operation_id': 'update_document_text', |
| 6966 | + 'http_method': 'PATCH', |
| 6967 | + 'servers': None, |
| 6968 | + }, |
| 6969 | + params_map={ |
| 6970 | + 'all': [ |
| 6971 | + 'cloud_pk', |
| 6972 | + 'id', |
| 6973 | + 'project_pk', |
| 6974 | + 'patched_document_text_request', |
| 6975 | + ], |
| 6976 | + 'required': [ |
| 6977 | + 'cloud_pk', |
| 6978 | + 'id', |
| 6979 | + 'project_pk', |
| 6980 | + ], |
| 6981 | + 'nullable': [ |
| 6982 | + ], |
| 6983 | + 'enum': [ |
| 6984 | + ], |
| 6985 | + 'validation': [ |
| 6986 | + ] |
| 6987 | + }, |
| 6988 | + root_map={ |
| 6989 | + 'validations': { |
| 6990 | + }, |
| 6991 | + 'allowed_values': { |
| 6992 | + }, |
| 6993 | + 'openapi_types': { |
| 6994 | + 'cloud_pk': |
| 6995 | + (int,), |
| 6996 | + 'id': |
| 6997 | + (int,), |
| 6998 | + 'project_pk': |
| 6999 | + (int,), |
| 7000 | + 'patched_document_text_request': |
| 7001 | + (PatchedDocumentTextRequest,), |
| 7002 | + }, |
| 7003 | + 'attribute_map': { |
| 7004 | + 'cloud_pk': 'cloud_pk', |
| 7005 | + 'id': 'id', |
| 7006 | + 'project_pk': 'project_pk', |
| 7007 | + }, |
| 7008 | + 'location_map': { |
| 7009 | + 'cloud_pk': 'path', |
| 7010 | + 'id': 'path', |
| 7011 | + 'project_pk': 'path', |
| 7012 | + 'patched_document_text_request': 'body', |
| 7013 | + }, |
| 7014 | + 'collection_format_map': { |
| 7015 | + } |
| 7016 | + }, |
| 7017 | + headers_map={ |
| 7018 | + 'accept': [ |
| 7019 | + 'application/json' |
| 7020 | + ], |
| 7021 | + 'content_type': [ |
| 7022 | + 'application/json', |
| 7023 | + 'application/x-www-form-urlencoded', |
| 7024 | + 'multipart/form-data' |
| 7025 | + ] |
| 7026 | + }, |
| 7027 | + api_client=api_client |
| 7028 | + ) |
6938 | 7029 | self.update_folder_endpoint = _Endpoint( |
6939 | 7030 | settings={ |
6940 | 7031 | 'response_type': (FolderWithoutChildren,), |
@@ -8815,7 +8906,7 @@ def create_document( |
8815 | 8906 | ): |
8816 | 8907 | """Create a document # noqa: E501 |
8817 | 8908 |
|
8818 | | - Create a document. If the document is one of {'GLTF', 'IFC', 'OBJ', 'POINT_CLOUD', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501 |
| 8909 | + Create a document. If the document is one of {'IFC', 'POINT_CLOUD', 'DWG', 'DXF', 'GLTF', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501 |
8819 | 8910 | This method makes a synchronous HTTP request by default. To make an |
8820 | 8911 | asynchronous HTTP request, please pass async_req=True |
8821 | 8912 |
|
@@ -11980,7 +12071,7 @@ def get_documents( |
11980 | 12071 | ): |
11981 | 12072 | """Retrieve all documents # noqa: E501 |
11982 | 12073 |
|
11983 | | - Retrieve all documents in the project. Filters are case insentive Required scopes: document:read # noqa: E501 |
| 12074 | + Retrieve all documents in the project. Filters are case insentive. Search filter only works if AI features are enabled. Required scopes: document:read # noqa: E501 |
11984 | 12075 | This method makes a synchronous HTTP request by default. To make an |
11985 | 12076 | asynchronous HTTP request, please pass async_req=True |
11986 | 12077 |
|
@@ -12008,9 +12099,11 @@ def get_documents( |
12008 | 12099 | name__contains (str): [optional] |
12009 | 12100 | name__endswith (str): [optional] |
12010 | 12101 | name__startswith (str): [optional] |
| 12102 | + search (str): [optional] |
12011 | 12103 | size_max (int, none_type): Size of the file.. [optional] |
12012 | 12104 | size_min (int, none_type): Size of the file.. [optional] |
12013 | 12105 | tags ([str]): Multiple values may be separated by commas.. [optional] |
| 12106 | + text (bool): If this field is present (with any value), the full text representation of the documents will be added to the response under the field `text`. [optional] |
12014 | 12107 | visa__creator_email (str): [optional] |
12015 | 12108 | visa__deadline_after (date): [optional] |
12016 | 12109 | visa__deadline_before (date): [optional] |
@@ -12206,6 +12299,7 @@ def get_folder_documents( |
12206 | 12299 | name__contains (str): [optional] |
12207 | 12300 | name__endswith (str): [optional] |
12208 | 12301 | name__startswith (str): [optional] |
| 12302 | + search (str): [optional] |
12209 | 12303 | size_max (int, none_type): Size of the file.. [optional] |
12210 | 12304 | size_min (int, none_type): Size of the file.. [optional] |
12211 | 12305 | tags ([str]): Multiple values may be separated by commas.. [optional] |
@@ -16087,6 +16181,93 @@ def update_document( |
16087 | 16181 | project_pk |
16088 | 16182 | return self.update_document_endpoint.call_with_http_info(**kwargs) |
16089 | 16183 |
|
| 16184 | + def update_document_text( |
| 16185 | + self, |
| 16186 | + cloud_pk, |
| 16187 | + id, |
| 16188 | + project_pk, |
| 16189 | + **kwargs |
| 16190 | + ): |
| 16191 | + """Update the text representation of a document # noqa: E501 |
| 16192 | + |
| 16193 | + Update the text representation of a document. The document itself will not be changed. It is useful for full text search Required scopes: document:write # noqa: E501 |
| 16194 | + This method makes a synchronous HTTP request by default. To make an |
| 16195 | + asynchronous HTTP request, please pass async_req=True |
| 16196 | + |
| 16197 | + >>> thread = api.update_document_text(cloud_pk, id, project_pk, async_req=True) |
| 16198 | + >>> result = thread.get() |
| 16199 | + |
| 16200 | + Args: |
| 16201 | + cloud_pk (int): A unique integer value identifying this cloud. |
| 16202 | + id (int): A unique integer value identifying this document. |
| 16203 | + project_pk (int): A unique integer value identifying this project. |
| 16204 | + |
| 16205 | + Keyword Args: |
| 16206 | + patched_document_text_request (PatchedDocumentTextRequest): [optional] |
| 16207 | + _return_http_data_only (bool): response data without head status |
| 16208 | + code and headers. Default is True. |
| 16209 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 16210 | + will be returned without reading/decoding response data. |
| 16211 | + Default is True. |
| 16212 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 16213 | + one number provided, it will be total request timeout. It can also |
| 16214 | + be a pair (tuple) of (connection, read) timeouts. |
| 16215 | + Default is None. |
| 16216 | + _check_input_type (bool): specifies if type checking |
| 16217 | + should be done one the data sent to the server. |
| 16218 | + Default is True. |
| 16219 | + _check_return_type (bool): specifies if type checking |
| 16220 | + should be done one the data received from the server. |
| 16221 | + Default is True. |
| 16222 | + _spec_property_naming (bool): True if the variable names in the input data |
| 16223 | + are serialized names, as specified in the OpenAPI document. |
| 16224 | + False if the variable names in the input data |
| 16225 | + are pythonic names, e.g. snake case (default) |
| 16226 | + _content_type (str/None): force body content-type. |
| 16227 | + Default is None and content-type will be predicted by allowed |
| 16228 | + content-types and body. |
| 16229 | + _host_index (int/None): specifies the index of the server |
| 16230 | + that we want to use. |
| 16231 | + Default is read from the configuration. |
| 16232 | + async_req (bool): execute request asynchronously |
| 16233 | + |
| 16234 | + Returns: |
| 16235 | + DocumentText |
| 16236 | + If the method is called asynchronously, returns the request |
| 16237 | + thread. |
| 16238 | + """ |
| 16239 | + kwargs['async_req'] = kwargs.get( |
| 16240 | + 'async_req', False |
| 16241 | + ) |
| 16242 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 16243 | + '_return_http_data_only', True |
| 16244 | + ) |
| 16245 | + kwargs['_preload_content'] = kwargs.get( |
| 16246 | + '_preload_content', True |
| 16247 | + ) |
| 16248 | + kwargs['_request_timeout'] = kwargs.get( |
| 16249 | + '_request_timeout', None |
| 16250 | + ) |
| 16251 | + kwargs['_check_input_type'] = kwargs.get( |
| 16252 | + '_check_input_type', True |
| 16253 | + ) |
| 16254 | + kwargs['_check_return_type'] = kwargs.get( |
| 16255 | + '_check_return_type', True |
| 16256 | + ) |
| 16257 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 16258 | + '_spec_property_naming', False |
| 16259 | + ) |
| 16260 | + kwargs['_content_type'] = kwargs.get( |
| 16261 | + '_content_type') |
| 16262 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 16263 | + kwargs['cloud_pk'] = \ |
| 16264 | + cloud_pk |
| 16265 | + kwargs['id'] = \ |
| 16266 | + id |
| 16267 | + kwargs['project_pk'] = \ |
| 16268 | + project_pk |
| 16269 | + return self.update_document_text_endpoint.call_with_http_info(**kwargs) |
| 16270 | + |
16090 | 16271 | def update_folder( |
16091 | 16272 | self, |
16092 | 16273 | cloud_pk, |
|
0 commit comments