diff --git a/README.md b/README.md index 668978f..41bfcb7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. This Python package provides a native API client for [Cloudmersive Document Conversion](https://www.cloudmersive.com/convert-api) - API version: v1 -- Package version: 2.3.4 +- Package version: 2.3.5 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -143,6 +143,8 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_docx_delete_pages**](docs/EditDocumentApi.md#edit_document_docx_delete_pages) | **POST** /convert/edit/docx/delete-pages | Delete, remove pages from a Word DOCX document *EditDocumentApi* | [**edit_document_docx_delete_table_row**](docs/EditDocumentApi.md#edit_document_docx_delete_table_row) | **POST** /convert/edit/docx/delete-table-row | Deletes a table row in an existing table in a Word DOCX document *EditDocumentApi* | [**edit_document_docx_delete_table_row_range**](docs/EditDocumentApi.md#edit_document_docx_delete_table_row_range) | **POST** /convert/edit/docx/delete-table-row/range | Deletes a range of multiple table rows in an existing table in a Word DOCX document +*EditDocumentApi* | [**edit_document_docx_get_comments**](docs/EditDocumentApi.md#edit_document_docx_get_comments) | **POST** /convert/edit/docx/get-comments/flat-list | Get comments from a Word DOCX document as a flat list +*EditDocumentApi* | [**edit_document_docx_get_comments_hierarchical**](docs/EditDocumentApi.md#edit_document_docx_get_comments_hierarchical) | **POST** /convert/edit/docx/get-comments/hierarchical | Get comments from a Word DOCX document hierarchically *EditDocumentApi* | [**edit_document_docx_get_headers_and_footers**](docs/EditDocumentApi.md#edit_document_docx_get_headers_and_footers) | **POST** /convert/edit/docx/get-headers-and-footers | Get content of a footer from a Word DOCX document *EditDocumentApi* | [**edit_document_docx_get_images**](docs/EditDocumentApi.md#edit_document_docx_get_images) | **POST** /convert/edit/docx/get-images | Get images from a Word DOCX document *EditDocumentApi* | [**edit_document_docx_get_sections**](docs/EditDocumentApi.md#edit_document_docx_get_sections) | **POST** /convert/edit/docx/get-sections | Get sections from a Word DOCX document @@ -150,6 +152,7 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_docx_get_table_by_index**](docs/EditDocumentApi.md#edit_document_docx_get_table_by_index) | **POST** /convert/edit/docx/get-table/by-index | Get a specific table by index in a Word DOCX document *EditDocumentApi* | [**edit_document_docx_get_table_row**](docs/EditDocumentApi.md#edit_document_docx_get_table_row) | **POST** /convert/edit/docx/get-table-row | Gets the contents of an existing table row in an existing table in a Word DOCX document *EditDocumentApi* | [**edit_document_docx_get_tables**](docs/EditDocumentApi.md#edit_document_docx_get_tables) | **POST** /convert/edit/docx/get-tables | Get all tables in Word DOCX document +*EditDocumentApi* | [**edit_document_docx_insert_comment_on_paragraph**](docs/EditDocumentApi.md#edit_document_docx_insert_comment_on_paragraph) | **POST** /convert/edit/docx/insert-comment/on/paragraph | Insert a new comment into a Word DOCX document attached to a paragraph *EditDocumentApi* | [**edit_document_docx_insert_image**](docs/EditDocumentApi.md#edit_document_docx_insert_image) | **POST** /convert/edit/docx/insert-image | Insert image into a Word DOCX document *EditDocumentApi* | [**edit_document_docx_insert_paragraph**](docs/EditDocumentApi.md#edit_document_docx_insert_paragraph) | **POST** /convert/edit/docx/insert-paragraph | Insert a new paragraph into a Word DOCX document *EditDocumentApi* | [**edit_document_docx_insert_table**](docs/EditDocumentApi.md#edit_document_docx_insert_table) | **POST** /convert/edit/docx/insert-table | Insert a new table into a Word DOCX document @@ -247,9 +250,11 @@ Class | Method | HTTP request | Description - [DocumentValidationResult](docs/DocumentValidationResult.md) - [DocxBody](docs/DocxBody.md) - [DocxCellStyle](docs/DocxCellStyle.md) + - [DocxComment](docs/DocxComment.md) - [DocxFooter](docs/DocxFooter.md) - [DocxHeader](docs/DocxHeader.md) - [DocxImage](docs/DocxImage.md) + - [DocxInsertCommentOnParagraphRequest](docs/DocxInsertCommentOnParagraphRequest.md) - [DocxInsertImageRequest](docs/DocxInsertImageRequest.md) - [DocxInsertImageResponse](docs/DocxInsertImageResponse.md) - [DocxPage](docs/DocxPage.md) @@ -270,10 +275,15 @@ Class | Method | HTTP request | Description - [DocxTemplateApplicationRequest](docs/DocxTemplateApplicationRequest.md) - [DocxTemplateOperation](docs/DocxTemplateOperation.md) - [DocxText](docs/DocxText.md) + - [DocxTopLevelComment](docs/DocxTopLevelComment.md) - [ExifValue](docs/ExifValue.md) - [FinishEditingRequest](docs/FinishEditingRequest.md) - [GetDocxBodyRequest](docs/GetDocxBodyRequest.md) - [GetDocxBodyResponse](docs/GetDocxBodyResponse.md) + - [GetDocxCommentsHierarchicalResponse](docs/GetDocxCommentsHierarchicalResponse.md) + - [GetDocxCommentsResponse](docs/GetDocxCommentsResponse.md) + - [GetDocxGetCommentsHierarchicalRequest](docs/GetDocxGetCommentsHierarchicalRequest.md) + - [GetDocxGetCommentsRequest](docs/GetDocxGetCommentsRequest.md) - [GetDocxHeadersAndFootersRequest](docs/GetDocxHeadersAndFootersRequest.md) - [GetDocxHeadersAndFootersResponse](docs/GetDocxHeadersAndFootersResponse.md) - [GetDocxImagesRequest](docs/GetDocxImagesRequest.md) @@ -315,6 +325,7 @@ Class | Method | HTTP request | Description - [HtmlToPngRequest](docs/HtmlToPngRequest.md) - [HtmlToTextRequest](docs/HtmlToTextRequest.md) - [HtmlToTextResponse](docs/HtmlToTextResponse.md) + - [InsertDocxCommentOnParagraphResponse](docs/InsertDocxCommentOnParagraphResponse.md) - [InsertDocxInsertParagraphRequest](docs/InsertDocxInsertParagraphRequest.md) - [InsertDocxInsertParagraphResponse](docs/InsertDocxInsertParagraphResponse.md) - [InsertDocxTableRowRequest](docs/InsertDocxTableRowRequest.md) diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index 6a22ec5..f86b045 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -55,9 +55,11 @@ from cloudmersive_convert_api_client.models.document_validation_result import DocumentValidationResult from cloudmersive_convert_api_client.models.docx_body import DocxBody from cloudmersive_convert_api_client.models.docx_cell_style import DocxCellStyle +from cloudmersive_convert_api_client.models.docx_comment import DocxComment from cloudmersive_convert_api_client.models.docx_footer import DocxFooter from cloudmersive_convert_api_client.models.docx_header import DocxHeader from cloudmersive_convert_api_client.models.docx_image import DocxImage +from cloudmersive_convert_api_client.models.docx_insert_comment_on_paragraph_request import DocxInsertCommentOnParagraphRequest from cloudmersive_convert_api_client.models.docx_insert_image_request import DocxInsertImageRequest from cloudmersive_convert_api_client.models.docx_insert_image_response import DocxInsertImageResponse from cloudmersive_convert_api_client.models.docx_page import DocxPage @@ -78,10 +80,15 @@ from cloudmersive_convert_api_client.models.docx_template_application_request import DocxTemplateApplicationRequest from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation from cloudmersive_convert_api_client.models.docx_text import DocxText +from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment from cloudmersive_convert_api_client.models.exif_value import ExifValue from cloudmersive_convert_api_client.models.finish_editing_request import FinishEditingRequest from cloudmersive_convert_api_client.models.get_docx_body_request import GetDocxBodyRequest from cloudmersive_convert_api_client.models.get_docx_body_response import GetDocxBodyResponse +from cloudmersive_convert_api_client.models.get_docx_comments_hierarchical_response import GetDocxCommentsHierarchicalResponse +from cloudmersive_convert_api_client.models.get_docx_comments_response import GetDocxCommentsResponse +from cloudmersive_convert_api_client.models.get_docx_get_comments_hierarchical_request import GetDocxGetCommentsHierarchicalRequest +from cloudmersive_convert_api_client.models.get_docx_get_comments_request import GetDocxGetCommentsRequest from cloudmersive_convert_api_client.models.get_docx_headers_and_footers_request import GetDocxHeadersAndFootersRequest from cloudmersive_convert_api_client.models.get_docx_headers_and_footers_response import GetDocxHeadersAndFootersResponse from cloudmersive_convert_api_client.models.get_docx_images_request import GetDocxImagesRequest @@ -123,6 +130,7 @@ from cloudmersive_convert_api_client.models.html_to_png_request import HtmlToPngRequest from cloudmersive_convert_api_client.models.html_to_text_request import HtmlToTextRequest from cloudmersive_convert_api_client.models.html_to_text_response import HtmlToTextResponse +from cloudmersive_convert_api_client.models.insert_docx_comment_on_paragraph_response import InsertDocxCommentOnParagraphResponse from cloudmersive_convert_api_client.models.insert_docx_insert_paragraph_request import InsertDocxInsertParagraphRequest from cloudmersive_convert_api_client.models.insert_docx_insert_paragraph_response import InsertDocxInsertParagraphResponse from cloudmersive_convert_api_client.models.insert_docx_table_row_request import InsertDocxTableRowRequest diff --git a/cloudmersive_convert_api_client/api/edit_document_api.py b/cloudmersive_convert_api_client/api/edit_document_api.py index 4604a15..5499e4c 100644 --- a/cloudmersive_convert_api_client/api/edit_document_api.py +++ b/cloudmersive_convert_api_client/api/edit_document_api.py @@ -627,6 +627,204 @@ def edit_document_docx_delete_table_row_range_with_http_info(self, req_config, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_docx_get_comments(self, req_config, **kwargs): # noqa: E501 + """Get comments from a Word DOCX document as a flat list # noqa: E501 + + Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_get_comments(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetDocxGetCommentsRequest req_config: Document input request (required) + :return: GetDocxCommentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_document_docx_get_comments_with_http_info(req_config, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_docx_get_comments_with_http_info(req_config, **kwargs) # noqa: E501 + return data + + def edit_document_docx_get_comments_with_http_info(self, req_config, **kwargs): # noqa: E501 + """Get comments from a Word DOCX document as a flat list # noqa: E501 + + Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_get_comments_with_http_info(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetDocxGetCommentsRequest req_config: Document input request (required) + :return: GetDocxCommentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['req_config'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method edit_document_docx_get_comments" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'req_config' is set + if ('req_config' not in params or + params['req_config'] is None): + raise ValueError("Missing the required parameter `req_config` when calling `edit_document_docx_get_comments`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'req_config' in params: + body_params = params['req_config'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/docx/get-comments/flat-list', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetDocxCommentsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def edit_document_docx_get_comments_hierarchical(self, req_config, **kwargs): # noqa: E501 + """Get comments from a Word DOCX document hierarchically # noqa: E501 + + Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_get_comments_hierarchical(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetDocxGetCommentsHierarchicalRequest req_config: Document input request (required) + :return: GetDocxCommentsHierarchicalResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_document_docx_get_comments_hierarchical_with_http_info(req_config, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_docx_get_comments_hierarchical_with_http_info(req_config, **kwargs) # noqa: E501 + return data + + def edit_document_docx_get_comments_hierarchical_with_http_info(self, req_config, **kwargs): # noqa: E501 + """Get comments from a Word DOCX document hierarchically # noqa: E501 + + Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_get_comments_hierarchical_with_http_info(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetDocxGetCommentsHierarchicalRequest req_config: Document input request (required) + :return: GetDocxCommentsHierarchicalResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['req_config'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method edit_document_docx_get_comments_hierarchical" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'req_config' is set + if ('req_config' not in params or + params['req_config'] is None): + raise ValueError("Missing the required parameter `req_config` when calling `edit_document_docx_get_comments_hierarchical`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'req_config' in params: + body_params = params['req_config'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/docx/get-comments/hierarchical', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetDocxCommentsHierarchicalResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def edit_document_docx_get_headers_and_footers(self, req_config, **kwargs): # noqa: E501 """Get content of a footer from a Word DOCX document # noqa: E501 @@ -1320,6 +1518,105 @@ def edit_document_docx_get_tables_with_http_info(self, req_config, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_docx_insert_comment_on_paragraph(self, req_config, **kwargs): # noqa: E501 + """Insert a new comment into a Word DOCX document attached to a paragraph # noqa: E501 + + Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_insert_comment_on_paragraph(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param DocxInsertCommentOnParagraphRequest req_config: Document input request (required) + :return: InsertDocxCommentOnParagraphResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_document_docx_insert_comment_on_paragraph_with_http_info(req_config, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_docx_insert_comment_on_paragraph_with_http_info(req_config, **kwargs) # noqa: E501 + return data + + def edit_document_docx_insert_comment_on_paragraph_with_http_info(self, req_config, **kwargs): # noqa: E501 + """Insert a new comment into a Word DOCX document attached to a paragraph # noqa: E501 + + Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_docx_insert_comment_on_paragraph_with_http_info(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param DocxInsertCommentOnParagraphRequest req_config: Document input request (required) + :return: InsertDocxCommentOnParagraphResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['req_config'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method edit_document_docx_insert_comment_on_paragraph" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'req_config' is set + if ('req_config' not in params or + params['req_config'] is None): + raise ValueError("Missing the required parameter `req_config` when calling `edit_document_docx_insert_comment_on_paragraph`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'req_config' in params: + body_params = params['req_config'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/docx/insert-comment/on/paragraph', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InsertDocxCommentOnParagraphResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def edit_document_docx_insert_image(self, req_config, **kwargs): # noqa: E501 """Insert image into a Word DOCX document # noqa: E501 diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index 4472ad6..21fd2d2 100644 --- a/cloudmersive_convert_api_client/api_client.py +++ b/cloudmersive_convert_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.3.4/python' + self.user_agent = 'Swagger-Codegen/2.3.5/python' def __del__(self): if self._pool is not None: diff --git a/cloudmersive_convert_api_client/configuration.py b/cloudmersive_convert_api_client/configuration.py index c699088..7609456 100644 --- a/cloudmersive_convert_api_client/configuration.py +++ b/cloudmersive_convert_api_client/configuration.py @@ -240,5 +240,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.3.4".\ + "SDK Package Version: 2.3.5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudmersive_convert_api_client/models/__init__.py b/cloudmersive_convert_api_client/models/__init__.py index d98d801..7b3f027 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -37,9 +37,11 @@ from cloudmersive_convert_api_client.models.document_validation_result import DocumentValidationResult from cloudmersive_convert_api_client.models.docx_body import DocxBody from cloudmersive_convert_api_client.models.docx_cell_style import DocxCellStyle +from cloudmersive_convert_api_client.models.docx_comment import DocxComment from cloudmersive_convert_api_client.models.docx_footer import DocxFooter from cloudmersive_convert_api_client.models.docx_header import DocxHeader from cloudmersive_convert_api_client.models.docx_image import DocxImage +from cloudmersive_convert_api_client.models.docx_insert_comment_on_paragraph_request import DocxInsertCommentOnParagraphRequest from cloudmersive_convert_api_client.models.docx_insert_image_request import DocxInsertImageRequest from cloudmersive_convert_api_client.models.docx_insert_image_response import DocxInsertImageResponse from cloudmersive_convert_api_client.models.docx_page import DocxPage @@ -60,10 +62,15 @@ from cloudmersive_convert_api_client.models.docx_template_application_request import DocxTemplateApplicationRequest from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation from cloudmersive_convert_api_client.models.docx_text import DocxText +from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment from cloudmersive_convert_api_client.models.exif_value import ExifValue from cloudmersive_convert_api_client.models.finish_editing_request import FinishEditingRequest from cloudmersive_convert_api_client.models.get_docx_body_request import GetDocxBodyRequest from cloudmersive_convert_api_client.models.get_docx_body_response import GetDocxBodyResponse +from cloudmersive_convert_api_client.models.get_docx_comments_hierarchical_response import GetDocxCommentsHierarchicalResponse +from cloudmersive_convert_api_client.models.get_docx_comments_response import GetDocxCommentsResponse +from cloudmersive_convert_api_client.models.get_docx_get_comments_hierarchical_request import GetDocxGetCommentsHierarchicalRequest +from cloudmersive_convert_api_client.models.get_docx_get_comments_request import GetDocxGetCommentsRequest from cloudmersive_convert_api_client.models.get_docx_headers_and_footers_request import GetDocxHeadersAndFootersRequest from cloudmersive_convert_api_client.models.get_docx_headers_and_footers_response import GetDocxHeadersAndFootersResponse from cloudmersive_convert_api_client.models.get_docx_images_request import GetDocxImagesRequest @@ -105,6 +112,7 @@ from cloudmersive_convert_api_client.models.html_to_png_request import HtmlToPngRequest from cloudmersive_convert_api_client.models.html_to_text_request import HtmlToTextRequest from cloudmersive_convert_api_client.models.html_to_text_response import HtmlToTextResponse +from cloudmersive_convert_api_client.models.insert_docx_comment_on_paragraph_response import InsertDocxCommentOnParagraphResponse from cloudmersive_convert_api_client.models.insert_docx_insert_paragraph_request import InsertDocxInsertParagraphRequest from cloudmersive_convert_api_client.models.insert_docx_insert_paragraph_response import InsertDocxInsertParagraphResponse from cloudmersive_convert_api_client.models.insert_docx_table_row_request import InsertDocxTableRowRequest diff --git a/cloudmersive_convert_api_client/models/docx_comment.py b/cloudmersive_convert_api_client/models/docx_comment.py new file mode 100644 index 0000000..ee15aa2 --- /dev/null +++ b/cloudmersive_convert_api_client/models/docx_comment.py @@ -0,0 +1,341 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DocxComment(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'path': 'str', + 'author': 'str', + 'author_initials': 'str', + 'comment_text': 'str', + 'comment_date': 'datetime', + 'is_top_level': 'bool', + 'is_reply': 'bool', + 'parent_comment_path': 'str', + 'done': 'bool' + } + + attribute_map = { + 'path': 'Path', + 'author': 'Author', + 'author_initials': 'AuthorInitials', + 'comment_text': 'CommentText', + 'comment_date': 'CommentDate', + 'is_top_level': 'IsTopLevel', + 'is_reply': 'IsReply', + 'parent_comment_path': 'ParentCommentPath', + 'done': 'Done' + } + + def __init__(self, path=None, author=None, author_initials=None, comment_text=None, comment_date=None, is_top_level=None, is_reply=None, parent_comment_path=None, done=None): # noqa: E501 + """DocxComment - a model defined in Swagger""" # noqa: E501 + + self._path = None + self._author = None + self._author_initials = None + self._comment_text = None + self._comment_date = None + self._is_top_level = None + self._is_reply = None + self._parent_comment_path = None + self._done = None + self.discriminator = None + + if path is not None: + self.path = path + if author is not None: + self.author = author + if author_initials is not None: + self.author_initials = author_initials + if comment_text is not None: + self.comment_text = comment_text + if comment_date is not None: + self.comment_date = comment_date + if is_top_level is not None: + self.is_top_level = is_top_level + if is_reply is not None: + self.is_reply = is_reply + if parent_comment_path is not None: + self.parent_comment_path = parent_comment_path + if done is not None: + self.done = done + + @property + def path(self): + """Gets the path of this DocxComment. # noqa: E501 + + Path to the comment in the document # noqa: E501 + + :return: The path of this DocxComment. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this DocxComment. + + Path to the comment in the document # noqa: E501 + + :param path: The path of this DocxComment. # noqa: E501 + :type: str + """ + + self._path = path + + @property + def author(self): + """Gets the author of this DocxComment. # noqa: E501 + + Author name of the comment # noqa: E501 + + :return: The author of this DocxComment. # noqa: E501 + :rtype: str + """ + return self._author + + @author.setter + def author(self, author): + """Sets the author of this DocxComment. + + Author name of the comment # noqa: E501 + + :param author: The author of this DocxComment. # noqa: E501 + :type: str + """ + + self._author = author + + @property + def author_initials(self): + """Gets the author_initials of this DocxComment. # noqa: E501 + + Initials of the author of the comment # noqa: E501 + + :return: The author_initials of this DocxComment. # noqa: E501 + :rtype: str + """ + return self._author_initials + + @author_initials.setter + def author_initials(self, author_initials): + """Sets the author_initials of this DocxComment. + + Initials of the author of the comment # noqa: E501 + + :param author_initials: The author_initials of this DocxComment. # noqa: E501 + :type: str + """ + + self._author_initials = author_initials + + @property + def comment_text(self): + """Gets the comment_text of this DocxComment. # noqa: E501 + + Text content of the comment # noqa: E501 + + :return: The comment_text of this DocxComment. # noqa: E501 + :rtype: str + """ + return self._comment_text + + @comment_text.setter + def comment_text(self, comment_text): + """Sets the comment_text of this DocxComment. + + Text content of the comment # noqa: E501 + + :param comment_text: The comment_text of this DocxComment. # noqa: E501 + :type: str + """ + + self._comment_text = comment_text + + @property + def comment_date(self): + """Gets the comment_date of this DocxComment. # noqa: E501 + + Date timestamp of the comment # noqa: E501 + + :return: The comment_date of this DocxComment. # noqa: E501 + :rtype: datetime + """ + return self._comment_date + + @comment_date.setter + def comment_date(self, comment_date): + """Sets the comment_date of this DocxComment. + + Date timestamp of the comment # noqa: E501 + + :param comment_date: The comment_date of this DocxComment. # noqa: E501 + :type: datetime + """ + + self._comment_date = comment_date + + @property + def is_top_level(self): + """Gets the is_top_level of this DocxComment. # noqa: E501 + + True if the comment is at the top level, false if this comment is a child reply of another comment # noqa: E501 + + :return: The is_top_level of this DocxComment. # noqa: E501 + :rtype: bool + """ + return self._is_top_level + + @is_top_level.setter + def is_top_level(self, is_top_level): + """Sets the is_top_level of this DocxComment. + + True if the comment is at the top level, false if this comment is a child reply of another comment # noqa: E501 + + :param is_top_level: The is_top_level of this DocxComment. # noqa: E501 + :type: bool + """ + + self._is_top_level = is_top_level + + @property + def is_reply(self): + """Gets the is_reply of this DocxComment. # noqa: E501 + + True if this comment is a reply to another comment, false otherwise # noqa: E501 + + :return: The is_reply of this DocxComment. # noqa: E501 + :rtype: bool + """ + return self._is_reply + + @is_reply.setter + def is_reply(self, is_reply): + """Sets the is_reply of this DocxComment. + + True if this comment is a reply to another comment, false otherwise # noqa: E501 + + :param is_reply: The is_reply of this DocxComment. # noqa: E501 + :type: bool + """ + + self._is_reply = is_reply + + @property + def parent_comment_path(self): + """Gets the parent_comment_path of this DocxComment. # noqa: E501 + + Path to the parent of this comment, if this comment is a reply, otherwise this value will be null # noqa: E501 + + :return: The parent_comment_path of this DocxComment. # noqa: E501 + :rtype: str + """ + return self._parent_comment_path + + @parent_comment_path.setter + def parent_comment_path(self, parent_comment_path): + """Sets the parent_comment_path of this DocxComment. + + Path to the parent of this comment, if this comment is a reply, otherwise this value will be null # noqa: E501 + + :param parent_comment_path: The parent_comment_path of this DocxComment. # noqa: E501 + :type: str + """ + + self._parent_comment_path = parent_comment_path + + @property + def done(self): + """Gets the done of this DocxComment. # noqa: E501 + + True if this comment is marked as Done in Word, otherwise it is false # noqa: E501 + + :return: The done of this DocxComment. # noqa: E501 + :rtype: bool + """ + return self._done + + @done.setter + def done(self, done): + """Sets the done of this DocxComment. + + True if this comment is marked as Done in Word, otherwise it is false # noqa: E501 + + :param done: The done of this DocxComment. # noqa: E501 + :type: bool + """ + + self._done = done + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DocxComment, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocxComment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/docx_insert_comment_on_paragraph_request.py b/cloudmersive_convert_api_client/models/docx_insert_comment_on_paragraph_request.py new file mode 100644 index 0000000..8e7b27b --- /dev/null +++ b/cloudmersive_convert_api_client/models/docx_insert_comment_on_paragraph_request.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.docx_comment import DocxComment # noqa: F401,E501 + + +class DocxInsertCommentOnParagraphRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'input_file_bytes': 'str', + 'input_file_url': 'str', + 'paragraph_path': 'str', + 'comment_to_insert': 'DocxComment' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl', + 'paragraph_path': 'ParagraphPath', + 'comment_to_insert': 'CommentToInsert' + } + + def __init__(self, input_file_bytes=None, input_file_url=None, paragraph_path=None, comment_to_insert=None): # noqa: E501 + """DocxInsertCommentOnParagraphRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self._paragraph_path = None + self._comment_to_insert = None + self.discriminator = None + + if input_file_bytes is not None: + self.input_file_bytes = input_file_bytes + if input_file_url is not None: + self.input_file_url = input_file_url + if paragraph_path is not None: + self.paragraph_path = paragraph_path + if comment_to_insert is not None: + self.comment_to_insert = comment_to_insert + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_bytes + + @input_file_bytes.setter + def input_file_bytes(self, input_file_bytes): + """Sets the input_file_bytes of this DocxInsertCommentOnParagraphRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :type: str + """ + if input_file_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', input_file_bytes): # noqa: E501 + raise ValueError(r"Invalid value for `input_file_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._input_file_bytes = input_file_bytes + + @property + def input_file_url(self): + """Gets the input_file_url of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :return: The input_file_url of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_url + + @input_file_url.setter + def input_file_url(self, input_file_url): + """Sets the input_file_url of this DocxInsertCommentOnParagraphRequest. + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :param input_file_url: The input_file_url of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + @property + def paragraph_path(self): + """Gets the paragraph_path of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + + Path to the paragraph to attach the comment to. You can get the Path by retrieving all of the Paragraphs in document by calling Get Body and taking the Path property of the desired paragraph to add the comment to. # noqa: E501 + + :return: The paragraph_path of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :rtype: str + """ + return self._paragraph_path + + @paragraph_path.setter + def paragraph_path(self, paragraph_path): + """Sets the paragraph_path of this DocxInsertCommentOnParagraphRequest. + + Path to the paragraph to attach the comment to. You can get the Path by retrieving all of the Paragraphs in document by calling Get Body and taking the Path property of the desired paragraph to add the comment to. # noqa: E501 + + :param paragraph_path: The paragraph_path of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :type: str + """ + + self._paragraph_path = paragraph_path + + @property + def comment_to_insert(self): + """Gets the comment_to_insert of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + + Comment to insert # noqa: E501 + + :return: The comment_to_insert of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :rtype: DocxComment + """ + return self._comment_to_insert + + @comment_to_insert.setter + def comment_to_insert(self, comment_to_insert): + """Sets the comment_to_insert of this DocxInsertCommentOnParagraphRequest. + + Comment to insert # noqa: E501 + + :param comment_to_insert: The comment_to_insert of this DocxInsertCommentOnParagraphRequest. # noqa: E501 + :type: DocxComment + """ + + self._comment_to_insert = comment_to_insert + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DocxInsertCommentOnParagraphRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocxInsertCommentOnParagraphRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/docx_top_level_comment.py b/cloudmersive_convert_api_client/models/docx_top_level_comment.py new file mode 100644 index 0000000..f9234bc --- /dev/null +++ b/cloudmersive_convert_api_client/models/docx_top_level_comment.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.docx_comment import DocxComment # noqa: F401,E501 + + +class DocxTopLevelComment(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'path': 'str', + 'author': 'str', + 'author_initials': 'str', + 'comment_text': 'str', + 'comment_date': 'datetime', + 'reply_child_comments': 'list[DocxComment]', + 'done': 'bool' + } + + attribute_map = { + 'path': 'Path', + 'author': 'Author', + 'author_initials': 'AuthorInitials', + 'comment_text': 'CommentText', + 'comment_date': 'CommentDate', + 'reply_child_comments': 'ReplyChildComments', + 'done': 'Done' + } + + def __init__(self, path=None, author=None, author_initials=None, comment_text=None, comment_date=None, reply_child_comments=None, done=None): # noqa: E501 + """DocxTopLevelComment - a model defined in Swagger""" # noqa: E501 + + self._path = None + self._author = None + self._author_initials = None + self._comment_text = None + self._comment_date = None + self._reply_child_comments = None + self._done = None + self.discriminator = None + + if path is not None: + self.path = path + if author is not None: + self.author = author + if author_initials is not None: + self.author_initials = author_initials + if comment_text is not None: + self.comment_text = comment_text + if comment_date is not None: + self.comment_date = comment_date + if reply_child_comments is not None: + self.reply_child_comments = reply_child_comments + if done is not None: + self.done = done + + @property + def path(self): + """Gets the path of this DocxTopLevelComment. # noqa: E501 + + Path to the comment in the document # noqa: E501 + + :return: The path of this DocxTopLevelComment. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this DocxTopLevelComment. + + Path to the comment in the document # noqa: E501 + + :param path: The path of this DocxTopLevelComment. # noqa: E501 + :type: str + """ + + self._path = path + + @property + def author(self): + """Gets the author of this DocxTopLevelComment. # noqa: E501 + + Author name of the comment # noqa: E501 + + :return: The author of this DocxTopLevelComment. # noqa: E501 + :rtype: str + """ + return self._author + + @author.setter + def author(self, author): + """Sets the author of this DocxTopLevelComment. + + Author name of the comment # noqa: E501 + + :param author: The author of this DocxTopLevelComment. # noqa: E501 + :type: str + """ + + self._author = author + + @property + def author_initials(self): + """Gets the author_initials of this DocxTopLevelComment. # noqa: E501 + + Initials of the author of the comment # noqa: E501 + + :return: The author_initials of this DocxTopLevelComment. # noqa: E501 + :rtype: str + """ + return self._author_initials + + @author_initials.setter + def author_initials(self, author_initials): + """Sets the author_initials of this DocxTopLevelComment. + + Initials of the author of the comment # noqa: E501 + + :param author_initials: The author_initials of this DocxTopLevelComment. # noqa: E501 + :type: str + """ + + self._author_initials = author_initials + + @property + def comment_text(self): + """Gets the comment_text of this DocxTopLevelComment. # noqa: E501 + + Text content of the comment # noqa: E501 + + :return: The comment_text of this DocxTopLevelComment. # noqa: E501 + :rtype: str + """ + return self._comment_text + + @comment_text.setter + def comment_text(self, comment_text): + """Sets the comment_text of this DocxTopLevelComment. + + Text content of the comment # noqa: E501 + + :param comment_text: The comment_text of this DocxTopLevelComment. # noqa: E501 + :type: str + """ + + self._comment_text = comment_text + + @property + def comment_date(self): + """Gets the comment_date of this DocxTopLevelComment. # noqa: E501 + + Date timestamp of the comment # noqa: E501 + + :return: The comment_date of this DocxTopLevelComment. # noqa: E501 + :rtype: datetime + """ + return self._comment_date + + @comment_date.setter + def comment_date(self, comment_date): + """Sets the comment_date of this DocxTopLevelComment. + + Date timestamp of the comment # noqa: E501 + + :param comment_date: The comment_date of this DocxTopLevelComment. # noqa: E501 + :type: datetime + """ + + self._comment_date = comment_date + + @property + def reply_child_comments(self): + """Gets the reply_child_comments of this DocxTopLevelComment. # noqa: E501 + + Child comments, that are replies to this one # noqa: E501 + + :return: The reply_child_comments of this DocxTopLevelComment. # noqa: E501 + :rtype: list[DocxComment] + """ + return self._reply_child_comments + + @reply_child_comments.setter + def reply_child_comments(self, reply_child_comments): + """Sets the reply_child_comments of this DocxTopLevelComment. + + Child comments, that are replies to this one # noqa: E501 + + :param reply_child_comments: The reply_child_comments of this DocxTopLevelComment. # noqa: E501 + :type: list[DocxComment] + """ + + self._reply_child_comments = reply_child_comments + + @property + def done(self): + """Gets the done of this DocxTopLevelComment. # noqa: E501 + + True if this comment is marked as Done in Word, otherwise it is false # noqa: E501 + + :return: The done of this DocxTopLevelComment. # noqa: E501 + :rtype: bool + """ + return self._done + + @done.setter + def done(self, done): + """Sets the done of this DocxTopLevelComment. + + True if this comment is marked as Done in Word, otherwise it is false # noqa: E501 + + :param done: The done of this DocxTopLevelComment. # noqa: E501 + :type: bool + """ + + self._done = done + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DocxTopLevelComment, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocxTopLevelComment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_docx_comments_hierarchical_response.py b/cloudmersive_convert_api_client/models/get_docx_comments_hierarchical_response.py new file mode 100644 index 0000000..d742535 --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_docx_comments_hierarchical_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment # noqa: F401,E501 + + +class GetDocxCommentsHierarchicalResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'successful': 'bool', + 'comments': 'list[DocxTopLevelComment]', + 'top_level_comment_count': 'int' + } + + attribute_map = { + 'successful': 'Successful', + 'comments': 'Comments', + 'top_level_comment_count': 'TopLevelCommentCount' + } + + def __init__(self, successful=None, comments=None, top_level_comment_count=None): # noqa: E501 + """GetDocxCommentsHierarchicalResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._comments = None + self._top_level_comment_count = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if comments is not None: + self.comments = comments + if top_level_comment_count is not None: + self.top_level_comment_count = top_level_comment_count + + @property + def successful(self): + """Gets the successful of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this GetDocxCommentsHierarchicalResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def comments(self): + """Gets the comments of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + + Comments in the document # noqa: E501 + + :return: The comments of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :rtype: list[DocxTopLevelComment] + """ + return self._comments + + @comments.setter + def comments(self, comments): + """Sets the comments of this GetDocxCommentsHierarchicalResponse. + + Comments in the document # noqa: E501 + + :param comments: The comments of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :type: list[DocxTopLevelComment] + """ + + self._comments = comments + + @property + def top_level_comment_count(self): + """Gets the top_level_comment_count of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + + The number of comments in the document # noqa: E501 + + :return: The top_level_comment_count of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :rtype: int + """ + return self._top_level_comment_count + + @top_level_comment_count.setter + def top_level_comment_count(self, top_level_comment_count): + """Sets the top_level_comment_count of this GetDocxCommentsHierarchicalResponse. + + The number of comments in the document # noqa: E501 + + :param top_level_comment_count: The top_level_comment_count of this GetDocxCommentsHierarchicalResponse. # noqa: E501 + :type: int + """ + + self._top_level_comment_count = top_level_comment_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetDocxCommentsHierarchicalResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetDocxCommentsHierarchicalResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_docx_comments_response.py b/cloudmersive_convert_api_client/models/get_docx_comments_response.py new file mode 100644 index 0000000..493495f --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_docx_comments_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.docx_comment import DocxComment # noqa: F401,E501 + + +class GetDocxCommentsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'successful': 'bool', + 'comments': 'list[DocxComment]', + 'comment_count': 'int' + } + + attribute_map = { + 'successful': 'Successful', + 'comments': 'Comments', + 'comment_count': 'CommentCount' + } + + def __init__(self, successful=None, comments=None, comment_count=None): # noqa: E501 + """GetDocxCommentsResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._comments = None + self._comment_count = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if comments is not None: + self.comments = comments + if comment_count is not None: + self.comment_count = comment_count + + @property + def successful(self): + """Gets the successful of this GetDocxCommentsResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this GetDocxCommentsResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this GetDocxCommentsResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this GetDocxCommentsResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def comments(self): + """Gets the comments of this GetDocxCommentsResponse. # noqa: E501 + + Comments in the document # noqa: E501 + + :return: The comments of this GetDocxCommentsResponse. # noqa: E501 + :rtype: list[DocxComment] + """ + return self._comments + + @comments.setter + def comments(self, comments): + """Sets the comments of this GetDocxCommentsResponse. + + Comments in the document # noqa: E501 + + :param comments: The comments of this GetDocxCommentsResponse. # noqa: E501 + :type: list[DocxComment] + """ + + self._comments = comments + + @property + def comment_count(self): + """Gets the comment_count of this GetDocxCommentsResponse. # noqa: E501 + + The number of comments in the document # noqa: E501 + + :return: The comment_count of this GetDocxCommentsResponse. # noqa: E501 + :rtype: int + """ + return self._comment_count + + @comment_count.setter + def comment_count(self, comment_count): + """Sets the comment_count of this GetDocxCommentsResponse. + + The number of comments in the document # noqa: E501 + + :param comment_count: The comment_count of this GetDocxCommentsResponse. # noqa: E501 + :type: int + """ + + self._comment_count = comment_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetDocxCommentsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetDocxCommentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_docx_get_comments_hierarchical_request.py b/cloudmersive_convert_api_client/models/get_docx_get_comments_hierarchical_request.py new file mode 100644 index 0000000..fff959b --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_docx_get_comments_hierarchical_request.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetDocxGetCommentsHierarchicalRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'input_file_bytes': 'str', + 'input_file_url': 'str' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl' + } + + def __init__(self, input_file_bytes=None, input_file_url=None): # noqa: E501 + """GetDocxGetCommentsHierarchicalRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self.discriminator = None + + if input_file_bytes is not None: + self.input_file_bytes = input_file_bytes + if input_file_url is not None: + self.input_file_url = input_file_url + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_bytes + + @input_file_bytes.setter + def input_file_bytes(self, input_file_bytes): + """Sets the input_file_bytes of this GetDocxGetCommentsHierarchicalRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + :type: str + """ + if input_file_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', input_file_bytes): # noqa: E501 + raise ValueError(r"Invalid value for `input_file_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._input_file_bytes = input_file_bytes + + @property + def input_file_url(self): + """Gets the input_file_url of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :return: The input_file_url of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_url + + @input_file_url.setter + def input_file_url(self, input_file_url): + """Sets the input_file_url of this GetDocxGetCommentsHierarchicalRequest. + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :param input_file_url: The input_file_url of this GetDocxGetCommentsHierarchicalRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetDocxGetCommentsHierarchicalRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetDocxGetCommentsHierarchicalRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_docx_get_comments_request.py b/cloudmersive_convert_api_client/models/get_docx_get_comments_request.py new file mode 100644 index 0000000..71cf708 --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_docx_get_comments_request.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetDocxGetCommentsRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'input_file_bytes': 'str', + 'input_file_url': 'str' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl' + } + + def __init__(self, input_file_bytes=None, input_file_url=None): # noqa: E501 + """GetDocxGetCommentsRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self.discriminator = None + + if input_file_bytes is not None: + self.input_file_bytes = input_file_bytes + if input_file_url is not None: + self.input_file_url = input_file_url + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this GetDocxGetCommentsRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this GetDocxGetCommentsRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_bytes + + @input_file_bytes.setter + def input_file_bytes(self, input_file_bytes): + """Sets the input_file_bytes of this GetDocxGetCommentsRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this GetDocxGetCommentsRequest. # noqa: E501 + :type: str + """ + if input_file_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', input_file_bytes): # noqa: E501 + raise ValueError(r"Invalid value for `input_file_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._input_file_bytes = input_file_bytes + + @property + def input_file_url(self): + """Gets the input_file_url of this GetDocxGetCommentsRequest. # noqa: E501 + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :return: The input_file_url of this GetDocxGetCommentsRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_url + + @input_file_url.setter + def input_file_url(self, input_file_url): + """Sets the input_file_url of this GetDocxGetCommentsRequest. + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :param input_file_url: The input_file_url of this GetDocxGetCommentsRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetDocxGetCommentsRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetDocxGetCommentsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_docx_pages_response.py b/cloudmersive_convert_api_client/models/get_docx_pages_response.py index 4410cf8..fbdfadb 100644 --- a/cloudmersive_convert_api_client/models/get_docx_pages_response.py +++ b/cloudmersive_convert_api_client/models/get_docx_pages_response.py @@ -63,6 +63,7 @@ def __init__(self, successful=None, pages=None, page_count=None): # noqa: E501 def successful(self): """Gets the successful of this GetDocxPagesResponse. # noqa: E501 + True if successful, false otherwise # noqa: E501 :return: The successful of this GetDocxPagesResponse. # noqa: E501 :rtype: bool @@ -73,6 +74,7 @@ def successful(self): def successful(self, successful): """Sets the successful of this GetDocxPagesResponse. + True if successful, false otherwise # noqa: E501 :param successful: The successful of this GetDocxPagesResponse. # noqa: E501 :type: bool @@ -84,6 +86,7 @@ def successful(self, successful): def pages(self): """Gets the pages of this GetDocxPagesResponse. # noqa: E501 + Pages in the document # noqa: E501 :return: The pages of this GetDocxPagesResponse. # noqa: E501 :rtype: list[DocxPage] @@ -94,6 +97,7 @@ def pages(self): def pages(self, pages): """Sets the pages of this GetDocxPagesResponse. + Pages in the document # noqa: E501 :param pages: The pages of this GetDocxPagesResponse. # noqa: E501 :type: list[DocxPage] @@ -105,6 +109,7 @@ def pages(self, pages): def page_count(self): """Gets the page_count of this GetDocxPagesResponse. # noqa: E501 + Count of pages # noqa: E501 :return: The page_count of this GetDocxPagesResponse. # noqa: E501 :rtype: int @@ -115,6 +120,7 @@ def page_count(self): def page_count(self, page_count): """Sets the page_count of this GetDocxPagesResponse. + Count of pages # noqa: E501 :param page_count: The page_count of this GetDocxPagesResponse. # noqa: E501 :type: int diff --git a/cloudmersive_convert_api_client/models/insert_docx_comment_on_paragraph_response.py b/cloudmersive_convert_api_client/models/insert_docx_comment_on_paragraph_response.py new file mode 100644 index 0000000..a70462c --- /dev/null +++ b/cloudmersive_convert_api_client/models/insert_docx_comment_on_paragraph_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InsertDocxCommentOnParagraphResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'successful': 'bool', + 'edited_document_url': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'edited_document_url': 'EditedDocumentURL' + } + + def __init__(self, successful=None, edited_document_url=None): # noqa: E501 + """InsertDocxCommentOnParagraphResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._edited_document_url = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if edited_document_url is not None: + self.edited_document_url = edited_document_url + + @property + def successful(self): + """Gets the successful of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this InsertDocxCommentOnParagraphResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def edited_document_url(self): + """Gets the edited_document_url of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + + URL to the edited DOCX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. # noqa: E501 + + :return: The edited_document_url of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + :rtype: str + """ + return self._edited_document_url + + @edited_document_url.setter + def edited_document_url(self, edited_document_url): + """Sets the edited_document_url of this InsertDocxCommentOnParagraphResponse. + + URL to the edited DOCX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. # noqa: E501 + + :param edited_document_url: The edited_document_url of this InsertDocxCommentOnParagraphResponse. # noqa: E501 + :type: str + """ + + self._edited_document_url = edited_document_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InsertDocxCommentOnParagraphResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InsertDocxCommentOnParagraphResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/docs/DocxComment.md b/docs/DocxComment.md new file mode 100644 index 0000000..67ad9ce --- /dev/null +++ b/docs/DocxComment.md @@ -0,0 +1,18 @@ +# DocxComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Path to the comment in the document | [optional] +**author** | **str** | Author name of the comment | [optional] +**author_initials** | **str** | Initials of the author of the comment | [optional] +**comment_text** | **str** | Text content of the comment | [optional] +**comment_date** | **datetime** | Date timestamp of the comment | [optional] +**is_top_level** | **bool** | True if the comment is at the top level, false if this comment is a child reply of another comment | [optional] +**is_reply** | **bool** | True if this comment is a reply to another comment, false otherwise | [optional] +**parent_comment_path** | **str** | Path to the parent of this comment, if this comment is a reply, otherwise this value will be null | [optional] +**done** | **bool** | True if this comment is marked as Done in Word, otherwise it is false | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DocxInsertCommentOnParagraphRequest.md b/docs/DocxInsertCommentOnParagraphRequest.md new file mode 100644 index 0000000..212f12a --- /dev/null +++ b/docs/DocxInsertCommentOnParagraphRequest.md @@ -0,0 +1,13 @@ +# DocxInsertCommentOnParagraphRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_file_bytes** | **str** | Optional: Bytes of the input file to operate on | [optional] +**input_file_url** | **str** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional] +**paragraph_path** | **str** | Path to the paragraph to attach the comment to. You can get the Path by retrieving all of the Paragraphs in document by calling Get Body and taking the Path property of the desired paragraph to add the comment to. | [optional] +**comment_to_insert** | [**DocxComment**](DocxComment.md) | Comment to insert | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DocxTopLevelComment.md b/docs/DocxTopLevelComment.md new file mode 100644 index 0000000..a93d613 --- /dev/null +++ b/docs/DocxTopLevelComment.md @@ -0,0 +1,16 @@ +# DocxTopLevelComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Path to the comment in the document | [optional] +**author** | **str** | Author name of the comment | [optional] +**author_initials** | **str** | Initials of the author of the comment | [optional] +**comment_text** | **str** | Text content of the comment | [optional] +**comment_date** | **datetime** | Date timestamp of the comment | [optional] +**reply_child_comments** | [**list[DocxComment]**](DocxComment.md) | Child comments, that are replies to this one | [optional] +**done** | **bool** | True if this comment is marked as Done in Word, otherwise it is false | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EditDocumentApi.md b/docs/EditDocumentApi.md index ee721e2..fd32892 100644 --- a/docs/EditDocumentApi.md +++ b/docs/EditDocumentApi.md @@ -10,6 +10,8 @@ Method | HTTP request | Description [**edit_document_docx_delete_pages**](EditDocumentApi.md#edit_document_docx_delete_pages) | **POST** /convert/edit/docx/delete-pages | Delete, remove pages from a Word DOCX document [**edit_document_docx_delete_table_row**](EditDocumentApi.md#edit_document_docx_delete_table_row) | **POST** /convert/edit/docx/delete-table-row | Deletes a table row in an existing table in a Word DOCX document [**edit_document_docx_delete_table_row_range**](EditDocumentApi.md#edit_document_docx_delete_table_row_range) | **POST** /convert/edit/docx/delete-table-row/range | Deletes a range of multiple table rows in an existing table in a Word DOCX document +[**edit_document_docx_get_comments**](EditDocumentApi.md#edit_document_docx_get_comments) | **POST** /convert/edit/docx/get-comments/flat-list | Get comments from a Word DOCX document as a flat list +[**edit_document_docx_get_comments_hierarchical**](EditDocumentApi.md#edit_document_docx_get_comments_hierarchical) | **POST** /convert/edit/docx/get-comments/hierarchical | Get comments from a Word DOCX document hierarchically [**edit_document_docx_get_headers_and_footers**](EditDocumentApi.md#edit_document_docx_get_headers_and_footers) | **POST** /convert/edit/docx/get-headers-and-footers | Get content of a footer from a Word DOCX document [**edit_document_docx_get_images**](EditDocumentApi.md#edit_document_docx_get_images) | **POST** /convert/edit/docx/get-images | Get images from a Word DOCX document [**edit_document_docx_get_sections**](EditDocumentApi.md#edit_document_docx_get_sections) | **POST** /convert/edit/docx/get-sections | Get sections from a Word DOCX document @@ -17,6 +19,7 @@ Method | HTTP request | Description [**edit_document_docx_get_table_by_index**](EditDocumentApi.md#edit_document_docx_get_table_by_index) | **POST** /convert/edit/docx/get-table/by-index | Get a specific table by index in a Word DOCX document [**edit_document_docx_get_table_row**](EditDocumentApi.md#edit_document_docx_get_table_row) | **POST** /convert/edit/docx/get-table-row | Gets the contents of an existing table row in an existing table in a Word DOCX document [**edit_document_docx_get_tables**](EditDocumentApi.md#edit_document_docx_get_tables) | **POST** /convert/edit/docx/get-tables | Get all tables in Word DOCX document +[**edit_document_docx_insert_comment_on_paragraph**](EditDocumentApi.md#edit_document_docx_insert_comment_on_paragraph) | **POST** /convert/edit/docx/insert-comment/on/paragraph | Insert a new comment into a Word DOCX document attached to a paragraph [**edit_document_docx_insert_image**](EditDocumentApi.md#edit_document_docx_insert_image) | **POST** /convert/edit/docx/insert-image | Insert image into a Word DOCX document [**edit_document_docx_insert_paragraph**](EditDocumentApi.md#edit_document_docx_insert_paragraph) | **POST** /convert/edit/docx/insert-paragraph | Insert a new paragraph into a Word DOCX document [**edit_document_docx_insert_table**](EditDocumentApi.md#edit_document_docx_insert_table) | **POST** /convert/edit/docx/insert-table | Insert a new table into a Word DOCX document @@ -373,6 +376,114 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **edit_document_docx_get_comments** +> GetDocxCommentsResponse edit_document_docx_get_comments(req_config) + +Get comments from a Word DOCX document as a flat list + +Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies). + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +req_config = cloudmersive_convert_api_client.GetDocxGetCommentsRequest() # GetDocxGetCommentsRequest | Document input request + +try: + # Get comments from a Word DOCX document as a flat list + api_response = api_instance.edit_document_docx_get_comments(req_config) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_docx_get_comments: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **req_config** | [**GetDocxGetCommentsRequest**](GetDocxGetCommentsRequest.md)| Document input request | + +### Return type + +[**GetDocxCommentsResponse**](GetDocxCommentsResponse.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **edit_document_docx_get_comments_hierarchical** +> GetDocxCommentsHierarchicalResponse edit_document_docx_get_comments_hierarchical(req_config) + +Get comments from a Word DOCX document hierarchically + +Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned. + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +req_config = cloudmersive_convert_api_client.GetDocxGetCommentsHierarchicalRequest() # GetDocxGetCommentsHierarchicalRequest | Document input request + +try: + # Get comments from a Word DOCX document hierarchically + api_response = api_instance.edit_document_docx_get_comments_hierarchical(req_config) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_docx_get_comments_hierarchical: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **req_config** | [**GetDocxGetCommentsHierarchicalRequest**](GetDocxGetCommentsHierarchicalRequest.md)| Document input request | + +### Return type + +[**GetDocxCommentsHierarchicalResponse**](GetDocxCommentsHierarchicalResponse.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **edit_document_docx_get_headers_and_footers** > GetDocxHeadersAndFootersResponse edit_document_docx_get_headers_and_footers(req_config) @@ -751,6 +862,60 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **edit_document_docx_insert_comment_on_paragraph** +> InsertDocxCommentOnParagraphResponse edit_document_docx_insert_comment_on_paragraph(req_config) + +Insert a new comment into a Word DOCX document attached to a paragraph + +Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation. + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +req_config = cloudmersive_convert_api_client.DocxInsertCommentOnParagraphRequest() # DocxInsertCommentOnParagraphRequest | Document input request + +try: + # Insert a new comment into a Word DOCX document attached to a paragraph + api_response = api_instance.edit_document_docx_insert_comment_on_paragraph(req_config) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_docx_insert_comment_on_paragraph: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **req_config** | [**DocxInsertCommentOnParagraphRequest**](DocxInsertCommentOnParagraphRequest.md)| Document input request | + +### Return type + +[**InsertDocxCommentOnParagraphResponse**](InsertDocxCommentOnParagraphResponse.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **edit_document_docx_insert_image** > DocxInsertImageResponse edit_document_docx_insert_image(req_config) diff --git a/docs/GetDocxCommentsHierarchicalResponse.md b/docs/GetDocxCommentsHierarchicalResponse.md new file mode 100644 index 0000000..0b53fcf --- /dev/null +++ b/docs/GetDocxCommentsHierarchicalResponse.md @@ -0,0 +1,12 @@ +# GetDocxCommentsHierarchicalResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**comments** | [**list[DocxTopLevelComment]**](DocxTopLevelComment.md) | Comments in the document | [optional] +**top_level_comment_count** | **int** | The number of comments in the document | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetDocxCommentsResponse.md b/docs/GetDocxCommentsResponse.md new file mode 100644 index 0000000..d79d794 --- /dev/null +++ b/docs/GetDocxCommentsResponse.md @@ -0,0 +1,12 @@ +# GetDocxCommentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**comments** | [**list[DocxComment]**](DocxComment.md) | Comments in the document | [optional] +**comment_count** | **int** | The number of comments in the document | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetDocxGetCommentsHierarchicalRequest.md b/docs/GetDocxGetCommentsHierarchicalRequest.md new file mode 100644 index 0000000..be26c3d --- /dev/null +++ b/docs/GetDocxGetCommentsHierarchicalRequest.md @@ -0,0 +1,11 @@ +# GetDocxGetCommentsHierarchicalRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_file_bytes** | **str** | Optional: Bytes of the input file to operate on | [optional] +**input_file_url** | **str** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetDocxGetCommentsRequest.md b/docs/GetDocxGetCommentsRequest.md new file mode 100644 index 0000000..a0e1888 --- /dev/null +++ b/docs/GetDocxGetCommentsRequest.md @@ -0,0 +1,11 @@ +# GetDocxGetCommentsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_file_bytes** | **str** | Optional: Bytes of the input file to operate on | [optional] +**input_file_url** | **str** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetDocxPagesResponse.md b/docs/GetDocxPagesResponse.md index e3c4676..947ccd9 100644 --- a/docs/GetDocxPagesResponse.md +++ b/docs/GetDocxPagesResponse.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**successful** | **bool** | | [optional] -**pages** | [**list[DocxPage]**](DocxPage.md) | | [optional] -**page_count** | **int** | | [optional] +**successful** | **bool** | True if successful, false otherwise | [optional] +**pages** | [**list[DocxPage]**](DocxPage.md) | Pages in the document | [optional] +**page_count** | **int** | Count of pages | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InsertDocxCommentOnParagraphResponse.md b/docs/InsertDocxCommentOnParagraphResponse.md new file mode 100644 index 0000000..cb57ff0 --- /dev/null +++ b/docs/InsertDocxCommentOnParagraphResponse.md @@ -0,0 +1,11 @@ +# InsertDocxCommentOnParagraphResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**edited_document_url** | **str** | URL to the edited DOCX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packageconfig.json b/packageconfig.json index 62b0870..f49f812 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.3.4", + "packageVersion": "2.3.5", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index d4bf6c0..b948205 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudmersive_convert_api_client" -VERSION = "2.3.4" +VERSION = "2.3.5" # To install the library, run the following # # python setup.py install diff --git a/test/test_docx_comment.py b/test/test_docx_comment.py new file mode 100644 index 0000000..64b2639 --- /dev/null +++ b/test/test_docx_comment.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.docx_comment import DocxComment # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestDocxComment(unittest.TestCase): + """DocxComment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDocxComment(self): + """Test DocxComment""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.docx_comment.DocxComment() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_docx_insert_comment_on_paragraph_request.py b/test/test_docx_insert_comment_on_paragraph_request.py new file mode 100644 index 0000000..fde76c9 --- /dev/null +++ b/test/test_docx_insert_comment_on_paragraph_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.docx_insert_comment_on_paragraph_request import DocxInsertCommentOnParagraphRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestDocxInsertCommentOnParagraphRequest(unittest.TestCase): + """DocxInsertCommentOnParagraphRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDocxInsertCommentOnParagraphRequest(self): + """Test DocxInsertCommentOnParagraphRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.docx_insert_comment_on_paragraph_request.DocxInsertCommentOnParagraphRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_docx_top_level_comment.py b/test/test_docx_top_level_comment.py new file mode 100644 index 0000000..1a3b798 --- /dev/null +++ b/test/test_docx_top_level_comment.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestDocxTopLevelComment(unittest.TestCase): + """DocxTopLevelComment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDocxTopLevelComment(self): + """Test DocxTopLevelComment""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.docx_top_level_comment.DocxTopLevelComment() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_docx_comments_hierarchical_response.py b/test/test_get_docx_comments_hierarchical_response.py new file mode 100644 index 0000000..537bdc9 --- /dev/null +++ b/test/test_get_docx_comments_hierarchical_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_docx_comments_hierarchical_response import GetDocxCommentsHierarchicalResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetDocxCommentsHierarchicalResponse(unittest.TestCase): + """GetDocxCommentsHierarchicalResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetDocxCommentsHierarchicalResponse(self): + """Test GetDocxCommentsHierarchicalResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_docx_comments_hierarchical_response.GetDocxCommentsHierarchicalResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_docx_comments_response.py b/test/test_get_docx_comments_response.py new file mode 100644 index 0000000..ad049ed --- /dev/null +++ b/test/test_get_docx_comments_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_docx_comments_response import GetDocxCommentsResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetDocxCommentsResponse(unittest.TestCase): + """GetDocxCommentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetDocxCommentsResponse(self): + """Test GetDocxCommentsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_docx_comments_response.GetDocxCommentsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_docx_get_comments_hierarchical_request.py b/test/test_get_docx_get_comments_hierarchical_request.py new file mode 100644 index 0000000..af52ee6 --- /dev/null +++ b/test/test_get_docx_get_comments_hierarchical_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_docx_get_comments_hierarchical_request import GetDocxGetCommentsHierarchicalRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetDocxGetCommentsHierarchicalRequest(unittest.TestCase): + """GetDocxGetCommentsHierarchicalRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetDocxGetCommentsHierarchicalRequest(self): + """Test GetDocxGetCommentsHierarchicalRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_docx_get_comments_hierarchical_request.GetDocxGetCommentsHierarchicalRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_docx_get_comments_request.py b/test/test_get_docx_get_comments_request.py new file mode 100644 index 0000000..edea340 --- /dev/null +++ b/test/test_get_docx_get_comments_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_docx_get_comments_request import GetDocxGetCommentsRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetDocxGetCommentsRequest(unittest.TestCase): + """GetDocxGetCommentsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetDocxGetCommentsRequest(self): + """Test GetDocxGetCommentsRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_docx_get_comments_request.GetDocxGetCommentsRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_insert_docx_comment_on_paragraph_response.py b/test/test_insert_docx_comment_on_paragraph_response.py new file mode 100644 index 0000000..6d3d031 --- /dev/null +++ b/test/test_insert_docx_comment_on_paragraph_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.insert_docx_comment_on_paragraph_response import InsertDocxCommentOnParagraphResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestInsertDocxCommentOnParagraphResponse(unittest.TestCase): + """InsertDocxCommentOnParagraphResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInsertDocxCommentOnParagraphResponse(self): + """Test InsertDocxCommentOnParagraphResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.insert_docx_comment_on_paragraph_response.InsertDocxCommentOnParagraphResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()