diff --git a/README.md b/README.md index b18bbf5..17c5fe7 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.2 +- Package version: 2.3.3 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -141,6 +141,7 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_docx_create_blank_document**](docs/EditDocumentApi.md#edit_document_docx_create_blank_document) | **POST** /convert/edit/docx/create/blank | Create a blank Word DOCX document *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_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 @@ -168,6 +169,7 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_xlsx_create_blank_spreadsheet**](docs/EditDocumentApi.md#edit_document_xlsx_create_blank_spreadsheet) | **POST** /convert/edit/xlsx/create/blank | Create a blank Excel XLSX spreadsheet *EditDocumentApi* | [**edit_document_xlsx_create_spreadsheet_from_data**](docs/EditDocumentApi.md#edit_document_xlsx_create_spreadsheet_from_data) | **POST** /convert/edit/xlsx/create/from/data | Create a new Excel XLSX spreadsheet from column and row data *EditDocumentApi* | [**edit_document_xlsx_delete_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_delete_worksheet) | **POST** /convert/edit/xlsx/delete-worksheet | Delete, remove worksheet from an Excel XLSX spreadsheet document +*EditDocumentApi* | [**edit_document_xlsx_get_cell_by_identifier**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_identifier) | **POST** /convert/edit/xlsx/get-cell/by-identifier | Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier *EditDocumentApi* | [**edit_document_xlsx_get_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index *EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**edit_document_xlsx_get_images**](docs/EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet @@ -175,6 +177,7 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_xlsx_get_styles**](docs/EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**edit_document_xlsx_get_worksheets**](docs/EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a Excel XLSX spreadsheet *EditDocumentApi* | [**edit_document_xlsx_insert_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_insert_worksheet) | **POST** /convert/edit/xlsx/insert-worksheet | Insert a new worksheet into an Excel XLSX spreadsheet +*EditDocumentApi* | [**edit_document_xlsx_set_cell_by_identifier**](docs/EditDocumentApi.md#edit_document_xlsx_set_cell_by_identifier) | **POST** /convert/edit/xlsx/set-cell/by-identifier | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier *EditDocumentApi* | [**edit_document_xlsx_set_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_set_cell_by_index) | **POST** /convert/edit/xlsx/set-cell/by-index | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by index *EditPdfApi* | [**edit_pdf_add_annotations**](docs/EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document *EditPdfApi* | [**edit_pdf_decrypt**](docs/EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF @@ -234,6 +237,8 @@ Class | Method | HTTP request | Description - [CreateBlankSpreadsheetResponse](docs/CreateBlankSpreadsheetResponse.md) - [CreateSpreadsheetFromDataRequest](docs/CreateSpreadsheetFromDataRequest.md) - [CreateSpreadsheetFromDataResponse](docs/CreateSpreadsheetFromDataResponse.md) + - [DeleteDocxTableRowRangeRequest](docs/DeleteDocxTableRowRangeRequest.md) + - [DeleteDocxTableRowRangeResponse](docs/DeleteDocxTableRowRangeResponse.md) - [DeleteDocxTableRowRequest](docs/DeleteDocxTableRowRequest.md) - [DeleteDocxTableRowResponse](docs/DeleteDocxTableRowResponse.md) - [DocumentValidationError](docs/DocumentValidationError.md) @@ -285,6 +290,8 @@ Class | Method | HTTP request | Description - [GetDocxTablesResponse](docs/GetDocxTablesResponse.md) - [GetImageInfoResult](docs/GetImageInfoResult.md) - [GetPdfAnnotationsResult](docs/GetPdfAnnotationsResult.md) + - [GetXlsxCellByIdentifierRequest](docs/GetXlsxCellByIdentifierRequest.md) + - [GetXlsxCellByIdentifierResponse](docs/GetXlsxCellByIdentifierResponse.md) - [GetXlsxCellRequest](docs/GetXlsxCellRequest.md) - [GetXlsxCellResponse](docs/GetXlsxCellResponse.md) - [GetXlsxColumnsRequest](docs/GetXlsxColumnsRequest.md) @@ -335,6 +342,8 @@ Class | Method | HTTP request | Description - [SetFormFieldValue](docs/SetFormFieldValue.md) - [SetPdfFormFieldsRequest](docs/SetPdfFormFieldsRequest.md) - [SetPdfMetadataRequest](docs/SetPdfMetadataRequest.md) + - [SetXlsxCellByIdentifierRequest](docs/SetXlsxCellByIdentifierRequest.md) + - [SetXlsxCellByIdentifierResponse](docs/SetXlsxCellByIdentifierResponse.md) - [SetXlsxCellRequest](docs/SetXlsxCellRequest.md) - [SetXlsxCellResponse](docs/SetXlsxCellResponse.md) - [SplitDocumentResult](docs/SplitDocumentResult.md) diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index 75e5e61..b0109cc 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -47,6 +47,8 @@ from cloudmersive_convert_api_client.models.create_blank_spreadsheet_response import CreateBlankSpreadsheetResponse from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_request import CreateSpreadsheetFromDataRequest from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_response import CreateSpreadsheetFromDataResponse +from cloudmersive_convert_api_client.models.delete_docx_table_row_range_request import DeleteDocxTableRowRangeRequest +from cloudmersive_convert_api_client.models.delete_docx_table_row_range_response import DeleteDocxTableRowRangeResponse from cloudmersive_convert_api_client.models.delete_docx_table_row_request import DeleteDocxTableRowRequest from cloudmersive_convert_api_client.models.delete_docx_table_row_response import DeleteDocxTableRowResponse from cloudmersive_convert_api_client.models.document_validation_error import DocumentValidationError @@ -98,6 +100,8 @@ from cloudmersive_convert_api_client.models.get_docx_tables_response import GetDocxTablesResponse from cloudmersive_convert_api_client.models.get_image_info_result import GetImageInfoResult from cloudmersive_convert_api_client.models.get_pdf_annotations_result import GetPdfAnnotationsResult +from cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_request import GetXlsxCellByIdentifierRequest +from cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_response import GetXlsxCellByIdentifierResponse from cloudmersive_convert_api_client.models.get_xlsx_cell_request import GetXlsxCellRequest from cloudmersive_convert_api_client.models.get_xlsx_cell_response import GetXlsxCellResponse from cloudmersive_convert_api_client.models.get_xlsx_columns_request import GetXlsxColumnsRequest @@ -148,6 +152,8 @@ from cloudmersive_convert_api_client.models.set_form_field_value import SetFormFieldValue from cloudmersive_convert_api_client.models.set_pdf_form_fields_request import SetPdfFormFieldsRequest from cloudmersive_convert_api_client.models.set_pdf_metadata_request import SetPdfMetadataRequest +from cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_request import SetXlsxCellByIdentifierRequest +from cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_response import SetXlsxCellByIdentifierResponse from cloudmersive_convert_api_client.models.set_xlsx_cell_request import SetXlsxCellRequest from cloudmersive_convert_api_client.models.set_xlsx_cell_response import SetXlsxCellResponse from cloudmersive_convert_api_client.models.split_document_result import SplitDocumentResult diff --git a/cloudmersive_convert_api_client/api/edit_document_api.py b/cloudmersive_convert_api_client/api/edit_document_api.py index 3b08893..4604a15 100644 --- a/cloudmersive_convert_api_client/api/edit_document_api.py +++ b/cloudmersive_convert_api_client/api/edit_document_api.py @@ -528,6 +528,105 @@ def edit_document_docx_delete_table_row_with_http_info(self, req_config, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_docx_delete_table_row_range(self, req_config, **kwargs): # noqa: E501 + """Deletes a range of multiple table rows in an existing table in a Word DOCX document # noqa: E501 + + Deletes a range of 1 or more existing table rows in a Word DOCX Document and returns the result. # 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_delete_table_row_range(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param DeleteDocxTableRowRangeRequest req_config: Document input request (required) + :return: DeleteDocxTableRowRangeResponse + 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_delete_table_row_range_with_http_info(req_config, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_docx_delete_table_row_range_with_http_info(req_config, **kwargs) # noqa: E501 + return data + + def edit_document_docx_delete_table_row_range_with_http_info(self, req_config, **kwargs): # noqa: E501 + """Deletes a range of multiple table rows in an existing table in a Word DOCX document # noqa: E501 + + Deletes a range of 1 or more existing table rows in a Word DOCX Document and returns the result. # 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_delete_table_row_range_with_http_info(req_config, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param DeleteDocxTableRowRangeRequest req_config: Document input request (required) + :return: DeleteDocxTableRowRangeResponse + 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_delete_table_row_range" % 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_delete_table_row_range`") # 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/delete-table-row/range', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DeleteDocxTableRowRangeResponse', # 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 @@ -3201,10 +3300,109 @@ def edit_document_xlsx_delete_worksheet_with_http_info(self, req_config, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_xlsx_get_cell_by_identifier(self, input, **kwargs): # noqa: E501 + """Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier # noqa: E501 + + Returns the value of a specific cell based on its identifier (e.g. A1, B22, C33, etc.) in the Excel Spreadsheet worksheet # 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_xlsx_get_cell_by_identifier(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetXlsxCellByIdentifierRequest input: Document input request (required) + :return: GetXlsxCellByIdentifierResponse + 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_xlsx_get_cell_by_identifier_with_http_info(input, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_xlsx_get_cell_by_identifier_with_http_info(input, **kwargs) # noqa: E501 + return data + + def edit_document_xlsx_get_cell_by_identifier_with_http_info(self, input, **kwargs): # noqa: E501 + """Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier # noqa: E501 + + Returns the value of a specific cell based on its identifier (e.g. A1, B22, C33, etc.) in the Excel Spreadsheet worksheet # 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_xlsx_get_cell_by_identifier_with_http_info(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetXlsxCellByIdentifierRequest input: Document input request (required) + :return: GetXlsxCellByIdentifierResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input'] # 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_xlsx_get_cell_by_identifier" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input' is set + if ('input' not in params or + params['input'] is None): + raise ValueError("Missing the required parameter `input` when calling `edit_document_xlsx_get_cell_by_identifier`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'input' in params: + body_params = params['input'] + # 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/xlsx/get-cell/by-identifier', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetXlsxCellByIdentifierResponse', # 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_xlsx_get_cell_by_index(self, input, **kwargs): # noqa: E501 """Get cell from an Excel XLSX spreadsheet, worksheet by index # noqa: E501 - Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 + Returns the value and definition of a specific cell in a specific row in the Excel Spreadsheet worksheet # 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_xlsx_get_cell_by_index(input, async_req=True) @@ -3226,7 +3424,7 @@ def edit_document_xlsx_get_cell_by_index(self, input, **kwargs): # noqa: E501 def edit_document_xlsx_get_cell_by_index_with_http_info(self, input, **kwargs): # noqa: E501 """Get cell from an Excel XLSX spreadsheet, worksheet by index # noqa: E501 - Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 + Returns the value and definition of a specific cell in a specific row in the Excel Spreadsheet worksheet # 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_xlsx_get_cell_by_index_with_http_info(input, async_req=True) @@ -3894,6 +4092,105 @@ def edit_document_xlsx_insert_worksheet_with_http_info(self, input, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_xlsx_set_cell_by_identifier(self, input, **kwargs): # noqa: E501 + """Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier # noqa: E501 + + Sets, updates the contents of a specific cell in an Excel XLSX spreadsheet, worksheet using its cell identifier (e.g. A1, B22, C33) in the worksheet # 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_xlsx_set_cell_by_identifier(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SetXlsxCellByIdentifierRequest input: Document input request (required) + :return: SetXlsxCellByIdentifierResponse + 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_xlsx_set_cell_by_identifier_with_http_info(input, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_xlsx_set_cell_by_identifier_with_http_info(input, **kwargs) # noqa: E501 + return data + + def edit_document_xlsx_set_cell_by_identifier_with_http_info(self, input, **kwargs): # noqa: E501 + """Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier # noqa: E501 + + Sets, updates the contents of a specific cell in an Excel XLSX spreadsheet, worksheet using its cell identifier (e.g. A1, B22, C33) in the worksheet # 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_xlsx_set_cell_by_identifier_with_http_info(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SetXlsxCellByIdentifierRequest input: Document input request (required) + :return: SetXlsxCellByIdentifierResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input'] # 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_xlsx_set_cell_by_identifier" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input' is set + if ('input' not in params or + params['input'] is None): + raise ValueError("Missing the required parameter `input` when calling `edit_document_xlsx_set_cell_by_identifier`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'input' in params: + body_params = params['input'] + # 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/xlsx/set-cell/by-identifier', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SetXlsxCellByIdentifierResponse', # 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_xlsx_set_cell_by_index(self, input, **kwargs): # noqa: E501 """Set, update cell contents in an Excel XLSX spreadsheet, worksheet by index # noqa: E501 diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index c1df08b..1f2c8e0 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.2/python' + self.user_agent = 'Swagger-Codegen/2.3.3/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 f6c345b..5dde6c6 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.2".\ + "SDK Package Version: 2.3.3".\ 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 51e2b20..b1095c1 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -29,6 +29,8 @@ from cloudmersive_convert_api_client.models.create_blank_spreadsheet_response import CreateBlankSpreadsheetResponse from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_request import CreateSpreadsheetFromDataRequest from cloudmersive_convert_api_client.models.create_spreadsheet_from_data_response import CreateSpreadsheetFromDataResponse +from cloudmersive_convert_api_client.models.delete_docx_table_row_range_request import DeleteDocxTableRowRangeRequest +from cloudmersive_convert_api_client.models.delete_docx_table_row_range_response import DeleteDocxTableRowRangeResponse from cloudmersive_convert_api_client.models.delete_docx_table_row_request import DeleteDocxTableRowRequest from cloudmersive_convert_api_client.models.delete_docx_table_row_response import DeleteDocxTableRowResponse from cloudmersive_convert_api_client.models.document_validation_error import DocumentValidationError @@ -80,6 +82,8 @@ from cloudmersive_convert_api_client.models.get_docx_tables_response import GetDocxTablesResponse from cloudmersive_convert_api_client.models.get_image_info_result import GetImageInfoResult from cloudmersive_convert_api_client.models.get_pdf_annotations_result import GetPdfAnnotationsResult +from cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_request import GetXlsxCellByIdentifierRequest +from cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_response import GetXlsxCellByIdentifierResponse from cloudmersive_convert_api_client.models.get_xlsx_cell_request import GetXlsxCellRequest from cloudmersive_convert_api_client.models.get_xlsx_cell_response import GetXlsxCellResponse from cloudmersive_convert_api_client.models.get_xlsx_columns_request import GetXlsxColumnsRequest @@ -130,6 +134,8 @@ from cloudmersive_convert_api_client.models.set_form_field_value import SetFormFieldValue from cloudmersive_convert_api_client.models.set_pdf_form_fields_request import SetPdfFormFieldsRequest from cloudmersive_convert_api_client.models.set_pdf_metadata_request import SetPdfMetadataRequest +from cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_request import SetXlsxCellByIdentifierRequest +from cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_response import SetXlsxCellByIdentifierResponse from cloudmersive_convert_api_client.models.set_xlsx_cell_request import SetXlsxCellRequest from cloudmersive_convert_api_client.models.set_xlsx_cell_response import SetXlsxCellResponse from cloudmersive_convert_api_client.models.split_document_result import SplitDocumentResult diff --git a/cloudmersive_convert_api_client/models/delete_docx_table_row_range_request.py b/cloudmersive_convert_api_client/models/delete_docx_table_row_range_request.py new file mode 100644 index 0000000..1c0a4a2 --- /dev/null +++ b/cloudmersive_convert_api_client/models/delete_docx_table_row_range_request.py @@ -0,0 +1,231 @@ +# 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 DeleteDocxTableRowRangeRequest(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', + 'table_path': 'str', + 'table_row_row_index_start': 'int', + 'table_row_row_index_end': 'int' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl', + 'table_path': 'TablePath', + 'table_row_row_index_start': 'TableRowRowIndexStart', + 'table_row_row_index_end': 'TableRowRowIndexEnd' + } + + def __init__(self, input_file_bytes=None, input_file_url=None, table_path=None, table_row_row_index_start=None, table_row_row_index_end=None): # noqa: E501 + """DeleteDocxTableRowRangeRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self._table_path = None + self._table_row_row_index_start = None + self._table_row_row_index_end = 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 table_path is not None: + self.table_path = table_path + if table_row_row_index_start is not None: + self.table_row_row_index_start = table_row_row_index_start + if table_row_row_index_end is not None: + self.table_row_row_index_end = table_row_row_index_end + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this DeleteDocxTableRowRangeRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this DeleteDocxTableRowRangeRequest. # 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 DeleteDocxTableRowRangeRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this DeleteDocxTableRowRangeRequest. # 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 DeleteDocxTableRowRangeRequest. # 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 DeleteDocxTableRowRangeRequest. # 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 DeleteDocxTableRowRangeRequest. + + 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 DeleteDocxTableRowRangeRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + @property + def table_path(self): + """Gets the table_path of this DeleteDocxTableRowRangeRequest. # noqa: E501 + + Path to the table to delete the row from # noqa: E501 + + :return: The table_path of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :rtype: str + """ + return self._table_path + + @table_path.setter + def table_path(self, table_path): + """Sets the table_path of this DeleteDocxTableRowRangeRequest. + + Path to the table to delete the row from # noqa: E501 + + :param table_path: The table_path of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :type: str + """ + + self._table_path = table_path + + @property + def table_row_row_index_start(self): + """Gets the table_row_row_index_start of this DeleteDocxTableRowRangeRequest. # noqa: E501 + + 0-based index of the row to begin deleting rows (e.g. 0, 1, 2, ...) in the table # noqa: E501 + + :return: The table_row_row_index_start of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :rtype: int + """ + return self._table_row_row_index_start + + @table_row_row_index_start.setter + def table_row_row_index_start(self, table_row_row_index_start): + """Sets the table_row_row_index_start of this DeleteDocxTableRowRangeRequest. + + 0-based index of the row to begin deleting rows (e.g. 0, 1, 2, ...) in the table # noqa: E501 + + :param table_row_row_index_start: The table_row_row_index_start of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :type: int + """ + + self._table_row_row_index_start = table_row_row_index_start + + @property + def table_row_row_index_end(self): + """Gets the table_row_row_index_end of this DeleteDocxTableRowRangeRequest. # noqa: E501 + + 0-based index of the row to stop deleting rows (e.g. 0, 1, 2, ...) in the table # noqa: E501 + + :return: The table_row_row_index_end of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :rtype: int + """ + return self._table_row_row_index_end + + @table_row_row_index_end.setter + def table_row_row_index_end(self, table_row_row_index_end): + """Sets the table_row_row_index_end of this DeleteDocxTableRowRangeRequest. + + 0-based index of the row to stop deleting rows (e.g. 0, 1, 2, ...) in the table # noqa: E501 + + :param table_row_row_index_end: The table_row_row_index_end of this DeleteDocxTableRowRangeRequest. # noqa: E501 + :type: int + """ + + self._table_row_row_index_end = table_row_row_index_end + + 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(DeleteDocxTableRowRangeRequest, 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, DeleteDocxTableRowRangeRequest): + 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/delete_docx_table_row_range_response.py b/cloudmersive_convert_api_client/models/delete_docx_table_row_range_response.py new file mode 100644 index 0000000..bbd5b8d --- /dev/null +++ b/cloudmersive_convert_api_client/models/delete_docx_table_row_range_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 DeleteDocxTableRowRangeResponse(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 + """DeleteDocxTableRowRangeResponse - 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 DeleteDocxTableRowRangeResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this DeleteDocxTableRowRangeResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this DeleteDocxTableRowRangeResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this DeleteDocxTableRowRangeResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def edited_document_url(self): + """Gets the edited_document_url of this DeleteDocxTableRowRangeResponse. # 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 DeleteDocxTableRowRangeResponse. # 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 DeleteDocxTableRowRangeResponse. + + 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 DeleteDocxTableRowRangeResponse. # 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(DeleteDocxTableRowRangeResponse, 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, DeleteDocxTableRowRangeResponse): + 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_table.py b/cloudmersive_convert_api_client/models/docx_table.py index 2cc8f79..123d094 100644 --- a/cloudmersive_convert_api_client/models/docx_table.py +++ b/cloudmersive_convert_api_client/models/docx_table.py @@ -266,7 +266,7 @@ def table_id(self, table_id): def path(self): """Gets the path of this DocxTable. # noqa: E501 - The Path of the location of this object; leave blank for new tables # noqa: E501 + The Path of the location of this table object; leave blank for new tables # noqa: E501 :return: The path of this DocxTable. # noqa: E501 :rtype: str @@ -277,7 +277,7 @@ def path(self): def path(self, path): """Sets the path of this DocxTable. - The Path of the location of this object; leave blank for new tables # noqa: E501 + The Path of the location of this table object; leave blank for new tables # noqa: E501 :param path: The path of this DocxTable. # noqa: E501 :type: str diff --git a/cloudmersive_convert_api_client/models/docx_table_row.py b/cloudmersive_convert_api_client/models/docx_table_row.py index 163f680..88b643c 100644 --- a/cloudmersive_convert_api_client/models/docx_table_row.py +++ b/cloudmersive_convert_api_client/models/docx_table_row.py @@ -86,7 +86,7 @@ def row_index(self, row_index): def path(self): """Gets the path of this DocxTableRow. # noqa: E501 - The Path of the location of this object; leave blank for new tables # noqa: E501 + The Path of the location of this table row object; leave blank for new tables # noqa: E501 :return: The path of this DocxTableRow. # noqa: E501 :rtype: str @@ -97,7 +97,7 @@ def path(self): def path(self, path): """Sets the path of this DocxTableRow. - The Path of the location of this object; leave blank for new tables # noqa: E501 + The Path of the location of this table row object; leave blank for new tables # noqa: E501 :param path: The path of this DocxTableRow. # noqa: E501 :type: str diff --git a/cloudmersive_convert_api_client/models/get_xlsx_cell_by_identifier_request.py b/cloudmersive_convert_api_client/models/get_xlsx_cell_by_identifier_request.py new file mode 100644 index 0000000..b53e703 --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_xlsx_cell_by_identifier_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.xlsx_worksheet import XlsxWorksheet # noqa: F401,E501 + + +class GetXlsxCellByIdentifierRequest(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', + 'worksheet_to_query': 'XlsxWorksheet', + 'cell_identifier': 'str' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl', + 'worksheet_to_query': 'WorksheetToQuery', + 'cell_identifier': 'CellIdentifier' + } + + def __init__(self, input_file_bytes=None, input_file_url=None, worksheet_to_query=None, cell_identifier=None): # noqa: E501 + """GetXlsxCellByIdentifierRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self._worksheet_to_query = None + self._cell_identifier = 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 worksheet_to_query is not None: + self.worksheet_to_query = worksheet_to_query + if cell_identifier is not None: + self.cell_identifier = cell_identifier + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this GetXlsxCellByIdentifierRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this GetXlsxCellByIdentifierRequest. # 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 GetXlsxCellByIdentifierRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this GetXlsxCellByIdentifierRequest. # 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 GetXlsxCellByIdentifierRequest. # 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 GetXlsxCellByIdentifierRequest. # 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 GetXlsxCellByIdentifierRequest. + + 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 GetXlsxCellByIdentifierRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + @property + def worksheet_to_query(self): + """Gets the worksheet_to_query of this GetXlsxCellByIdentifierRequest. # noqa: E501 + + Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet # noqa: E501 + + :return: The worksheet_to_query of this GetXlsxCellByIdentifierRequest. # noqa: E501 + :rtype: XlsxWorksheet + """ + return self._worksheet_to_query + + @worksheet_to_query.setter + def worksheet_to_query(self, worksheet_to_query): + """Sets the worksheet_to_query of this GetXlsxCellByIdentifierRequest. + + Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet # noqa: E501 + + :param worksheet_to_query: The worksheet_to_query of this GetXlsxCellByIdentifierRequest. # noqa: E501 + :type: XlsxWorksheet + """ + + self._worksheet_to_query = worksheet_to_query + + @property + def cell_identifier(self): + """Gets the cell_identifier of this GetXlsxCellByIdentifierRequest. # noqa: E501 + + Required; Excel cell identifier, e.g. A1, B22, C33, etc. # noqa: E501 + + :return: The cell_identifier of this GetXlsxCellByIdentifierRequest. # noqa: E501 + :rtype: str + """ + return self._cell_identifier + + @cell_identifier.setter + def cell_identifier(self, cell_identifier): + """Sets the cell_identifier of this GetXlsxCellByIdentifierRequest. + + Required; Excel cell identifier, e.g. A1, B22, C33, etc. # noqa: E501 + + :param cell_identifier: The cell_identifier of this GetXlsxCellByIdentifierRequest. # noqa: E501 + :type: str + """ + + self._cell_identifier = cell_identifier + + 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(GetXlsxCellByIdentifierRequest, 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, GetXlsxCellByIdentifierRequest): + 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_xlsx_cell_by_identifier_response.py b/cloudmersive_convert_api_client/models/get_xlsx_cell_by_identifier_response.py new file mode 100644 index 0000000..bc9c32c --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_xlsx_cell_by_identifier_response.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 + +from cloudmersive_convert_api_client.models.xlsx_spreadsheet_cell import XlsxSpreadsheetCell # noqa: F401,E501 + + +class GetXlsxCellByIdentifierResponse(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', + 'cell': 'XlsxSpreadsheetCell' + } + + attribute_map = { + 'successful': 'Successful', + 'cell': 'Cell' + } + + def __init__(self, successful=None, cell=None): # noqa: E501 + """GetXlsxCellByIdentifierResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._cell = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if cell is not None: + self.cell = cell + + @property + def successful(self): + """Gets the successful of this GetXlsxCellByIdentifierResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this GetXlsxCellByIdentifierResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this GetXlsxCellByIdentifierResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this GetXlsxCellByIdentifierResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def cell(self): + """Gets the cell of this GetXlsxCellByIdentifierResponse. # noqa: E501 + + Requested Cell in the Excel XLSX document # noqa: E501 + + :return: The cell of this GetXlsxCellByIdentifierResponse. # noqa: E501 + :rtype: XlsxSpreadsheetCell + """ + return self._cell + + @cell.setter + def cell(self, cell): + """Sets the cell of this GetXlsxCellByIdentifierResponse. + + Requested Cell in the Excel XLSX document # noqa: E501 + + :param cell: The cell of this GetXlsxCellByIdentifierResponse. # noqa: E501 + :type: XlsxSpreadsheetCell + """ + + self._cell = cell + + 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(GetXlsxCellByIdentifierResponse, 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, GetXlsxCellByIdentifierResponse): + 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/set_xlsx_cell_by_identifier_request.py b/cloudmersive_convert_api_client/models/set_xlsx_cell_by_identifier_request.py new file mode 100644 index 0000000..c35311c --- /dev/null +++ b/cloudmersive_convert_api_client/models/set_xlsx_cell_by_identifier_request.py @@ -0,0 +1,234 @@ +# 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.xlsx_spreadsheet_cell import XlsxSpreadsheetCell # noqa: F401,E501 +from cloudmersive_convert_api_client.models.xlsx_worksheet import XlsxWorksheet # noqa: F401,E501 + + +class SetXlsxCellByIdentifierRequest(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', + 'worksheet_to_update': 'XlsxWorksheet', + 'cell_identifier': 'str', + 'cell_value': 'XlsxSpreadsheetCell' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl', + 'worksheet_to_update': 'WorksheetToUpdate', + 'cell_identifier': 'CellIdentifier', + 'cell_value': 'CellValue' + } + + def __init__(self, input_file_bytes=None, input_file_url=None, worksheet_to_update=None, cell_identifier=None, cell_value=None): # noqa: E501 + """SetXlsxCellByIdentifierRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self._worksheet_to_update = None + self._cell_identifier = None + self._cell_value = 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 worksheet_to_update is not None: + self.worksheet_to_update = worksheet_to_update + if cell_identifier is not None: + self.cell_identifier = cell_identifier + if cell_value is not None: + self.cell_value = cell_value + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this SetXlsxCellByIdentifierRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this SetXlsxCellByIdentifierRequest. # 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 SetXlsxCellByIdentifierRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this SetXlsxCellByIdentifierRequest. # 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 SetXlsxCellByIdentifierRequest. # 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 SetXlsxCellByIdentifierRequest. # 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 SetXlsxCellByIdentifierRequest. + + 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 SetXlsxCellByIdentifierRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + @property + def worksheet_to_update(self): + """Gets the worksheet_to_update of this SetXlsxCellByIdentifierRequest. # noqa: E501 + + Optional; Worksheet (tab) within the spreadsheet to update; leave blank to default to the first worksheet # noqa: E501 + + :return: The worksheet_to_update of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :rtype: XlsxWorksheet + """ + return self._worksheet_to_update + + @worksheet_to_update.setter + def worksheet_to_update(self, worksheet_to_update): + """Sets the worksheet_to_update of this SetXlsxCellByIdentifierRequest. + + Optional; Worksheet (tab) within the spreadsheet to update; leave blank to default to the first worksheet # noqa: E501 + + :param worksheet_to_update: The worksheet_to_update of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :type: XlsxWorksheet + """ + + self._worksheet_to_update = worksheet_to_update + + @property + def cell_identifier(self): + """Gets the cell_identifier of this SetXlsxCellByIdentifierRequest. # noqa: E501 + + The Excel cell identifier (e.g. A1, B2, C33, etc.) of the cell to update # noqa: E501 + + :return: The cell_identifier of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :rtype: str + """ + return self._cell_identifier + + @cell_identifier.setter + def cell_identifier(self, cell_identifier): + """Sets the cell_identifier of this SetXlsxCellByIdentifierRequest. + + The Excel cell identifier (e.g. A1, B2, C33, etc.) of the cell to update # noqa: E501 + + :param cell_identifier: The cell_identifier of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :type: str + """ + + self._cell_identifier = cell_identifier + + @property + def cell_value(self): + """Gets the cell_value of this SetXlsxCellByIdentifierRequest. # noqa: E501 + + New Cell value to update/overwrite into the Excel XLSX spreadsheet # noqa: E501 + + :return: The cell_value of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :rtype: XlsxSpreadsheetCell + """ + return self._cell_value + + @cell_value.setter + def cell_value(self, cell_value): + """Sets the cell_value of this SetXlsxCellByIdentifierRequest. + + New Cell value to update/overwrite into the Excel XLSX spreadsheet # noqa: E501 + + :param cell_value: The cell_value of this SetXlsxCellByIdentifierRequest. # noqa: E501 + :type: XlsxSpreadsheetCell + """ + + self._cell_value = cell_value + + 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(SetXlsxCellByIdentifierRequest, 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, SetXlsxCellByIdentifierRequest): + 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/set_xlsx_cell_by_identifier_response.py b/cloudmersive_convert_api_client/models/set_xlsx_cell_by_identifier_response.py new file mode 100644 index 0000000..3054c58 --- /dev/null +++ b/cloudmersive_convert_api_client/models/set_xlsx_cell_by_identifier_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 SetXlsxCellByIdentifierResponse(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 + """SetXlsxCellByIdentifierResponse - 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 SetXlsxCellByIdentifierResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this SetXlsxCellByIdentifierResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this SetXlsxCellByIdentifierResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this SetXlsxCellByIdentifierResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def edited_document_url(self): + """Gets the edited_document_url of this SetXlsxCellByIdentifierResponse. # noqa: E501 + + URL to the edited XLSX 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 SetXlsxCellByIdentifierResponse. # 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 SetXlsxCellByIdentifierResponse. + + URL to the edited XLSX 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 SetXlsxCellByIdentifierResponse. # 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(SetXlsxCellByIdentifierResponse, 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, SetXlsxCellByIdentifierResponse): + 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/DeleteDocxTableRowRangeRequest.md b/docs/DeleteDocxTableRowRangeRequest.md new file mode 100644 index 0000000..bc85cff --- /dev/null +++ b/docs/DeleteDocxTableRowRangeRequest.md @@ -0,0 +1,14 @@ +# DeleteDocxTableRowRangeRequest + +## 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] +**table_path** | **str** | Path to the table to delete the row from | [optional] +**table_row_row_index_start** | **int** | 0-based index of the row to begin deleting rows (e.g. 0, 1, 2, ...) in the table | [optional] +**table_row_row_index_end** | **int** | 0-based index of the row to stop deleting rows (e.g. 0, 1, 2, ...) in the table | [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/DeleteDocxTableRowRangeResponse.md b/docs/DeleteDocxTableRowRangeResponse.md new file mode 100644 index 0000000..fba7288 --- /dev/null +++ b/docs/DeleteDocxTableRowRangeResponse.md @@ -0,0 +1,11 @@ +# DeleteDocxTableRowRangeResponse + +## 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/docs/DocxTable.md b/docs/DocxTable.md index 323ee40..664c501 100644 --- a/docs/DocxTable.md +++ b/docs/DocxTable.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **table_id** | **str** | The ID of the table; leave blank for new tables | [optional] -**path** | **str** | The Path of the location of this object; leave blank for new tables | [optional] +**path** | **str** | The Path of the location of this table object; leave blank for new tables | [optional] **width** | **str** | The Width of the table, or 0 if not specified | [optional] **width_type** | **str** | The Width configuration type of the table | [optional] **table_rows** | [**list[DocxTableRow]**](DocxTableRow.md) | Rows in the table; this is where the contents is located | [optional] diff --git a/docs/DocxTableRow.md b/docs/DocxTableRow.md index 665db77..758cb39 100644 --- a/docs/DocxTableRow.md +++ b/docs/DocxTableRow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **row_index** | **int** | Index of the row, 0-based | [optional] -**path** | **str** | The Path of the location of this object; leave blank for new tables | [optional] +**path** | **str** | The Path of the location of this table row object; leave blank for new tables | [optional] **row_cells** | [**list[DocxTableCell]**](DocxTableCell.md) | Cells in the row; this is where the contents of the row is stored | [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 b227f79..ee721e2 100644 --- a/docs/EditDocumentApi.md +++ b/docs/EditDocumentApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**edit_document_docx_create_blank_document**](EditDocumentApi.md#edit_document_docx_create_blank_document) | **POST** /convert/edit/docx/create/blank | Create a blank Word DOCX document [**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_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 @@ -36,6 +37,7 @@ Method | HTTP request | Description [**edit_document_xlsx_create_blank_spreadsheet**](EditDocumentApi.md#edit_document_xlsx_create_blank_spreadsheet) | **POST** /convert/edit/xlsx/create/blank | Create a blank Excel XLSX spreadsheet [**edit_document_xlsx_create_spreadsheet_from_data**](EditDocumentApi.md#edit_document_xlsx_create_spreadsheet_from_data) | **POST** /convert/edit/xlsx/create/from/data | Create a new Excel XLSX spreadsheet from column and row data [**edit_document_xlsx_delete_worksheet**](EditDocumentApi.md#edit_document_xlsx_delete_worksheet) | **POST** /convert/edit/xlsx/delete-worksheet | Delete, remove worksheet from an Excel XLSX spreadsheet document +[**edit_document_xlsx_get_cell_by_identifier**](EditDocumentApi.md#edit_document_xlsx_get_cell_by_identifier) | **POST** /convert/edit/xlsx/get-cell/by-identifier | Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier [**edit_document_xlsx_get_cell_by_index**](EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index [**edit_document_xlsx_get_columns**](EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet [**edit_document_xlsx_get_images**](EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet @@ -43,6 +45,7 @@ Method | HTTP request | Description [**edit_document_xlsx_get_styles**](EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet [**edit_document_xlsx_get_worksheets**](EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a Excel XLSX spreadsheet [**edit_document_xlsx_insert_worksheet**](EditDocumentApi.md#edit_document_xlsx_insert_worksheet) | **POST** /convert/edit/xlsx/insert-worksheet | Insert a new worksheet into an Excel XLSX spreadsheet +[**edit_document_xlsx_set_cell_by_identifier**](EditDocumentApi.md#edit_document_xlsx_set_cell_by_identifier) | **POST** /convert/edit/xlsx/set-cell/by-identifier | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier [**edit_document_xlsx_set_cell_by_index**](EditDocumentApi.md#edit_document_xlsx_set_cell_by_index) | **POST** /convert/edit/xlsx/set-cell/by-index | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by index @@ -316,6 +319,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_delete_table_row_range** +> DeleteDocxTableRowRangeResponse edit_document_docx_delete_table_row_range(req_config) + +Deletes a range of multiple table rows in an existing table in a Word DOCX document + +Deletes a range of 1 or more existing table rows in a Word DOCX Document and returns the result. + +### 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.DeleteDocxTableRowRangeRequest() # DeleteDocxTableRowRangeRequest | Document input request + +try: + # Deletes a range of multiple table rows in an existing table in a Word DOCX document + api_response = api_instance.edit_document_docx_delete_table_row_range(req_config) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_docx_delete_table_row_range: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **req_config** | [**DeleteDocxTableRowRangeRequest**](DeleteDocxTableRowRangeRequest.md)| Document input request | + +### Return type + +[**DeleteDocxTableRowRangeResponse**](DeleteDocxTableRowRangeResponse.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) @@ -1774,12 +1831,66 @@ 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_xlsx_get_cell_by_identifier** +> GetXlsxCellByIdentifierResponse edit_document_xlsx_get_cell_by_identifier(input) + +Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier + +Returns the value of a specific cell based on its identifier (e.g. A1, B22, C33, etc.) in the Excel Spreadsheet worksheet + +### 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)) +input = cloudmersive_convert_api_client.GetXlsxCellByIdentifierRequest() # GetXlsxCellByIdentifierRequest | Document input request + +try: + # Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier + api_response = api_instance.edit_document_xlsx_get_cell_by_identifier(input) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_xlsx_get_cell_by_identifier: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**GetXlsxCellByIdentifierRequest**](GetXlsxCellByIdentifierRequest.md)| Document input request | + +### Return type + +[**GetXlsxCellByIdentifierResponse**](GetXlsxCellByIdentifierResponse.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_xlsx_get_cell_by_index** > GetXlsxCellResponse edit_document_xlsx_get_cell_by_index(input) Get cell from an Excel XLSX spreadsheet, worksheet by index -Returns the rows and cells defined in the Excel Spreadsheet worksheet +Returns the value and definition of a specific cell in a specific row in the Excel Spreadsheet worksheet ### Example ```python @@ -2152,6 +2263,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_xlsx_set_cell_by_identifier** +> SetXlsxCellByIdentifierResponse edit_document_xlsx_set_cell_by_identifier(input) + +Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier + +Sets, updates the contents of a specific cell in an Excel XLSX spreadsheet, worksheet using its cell identifier (e.g. A1, B22, C33) in the worksheet + +### 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)) +input = cloudmersive_convert_api_client.SetXlsxCellByIdentifierRequest() # SetXlsxCellByIdentifierRequest | Document input request + +try: + # Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier + api_response = api_instance.edit_document_xlsx_set_cell_by_identifier(input) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_xlsx_set_cell_by_identifier: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**SetXlsxCellByIdentifierRequest**](SetXlsxCellByIdentifierRequest.md)| Document input request | + +### Return type + +[**SetXlsxCellByIdentifierResponse**](SetXlsxCellByIdentifierResponse.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_xlsx_set_cell_by_index** > SetXlsxCellResponse edit_document_xlsx_set_cell_by_index(input) diff --git a/docs/GetXlsxCellByIdentifierRequest.md b/docs/GetXlsxCellByIdentifierRequest.md new file mode 100644 index 0000000..f3c4d5b --- /dev/null +++ b/docs/GetXlsxCellByIdentifierRequest.md @@ -0,0 +1,13 @@ +# GetXlsxCellByIdentifierRequest + +## 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] +**worksheet_to_query** | [**XlsxWorksheet**](XlsxWorksheet.md) | Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet | [optional] +**cell_identifier** | **str** | Required; Excel cell identifier, e.g. A1, B22, C33, etc. | [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/GetXlsxCellByIdentifierResponse.md b/docs/GetXlsxCellByIdentifierResponse.md new file mode 100644 index 0000000..1b1b973 --- /dev/null +++ b/docs/GetXlsxCellByIdentifierResponse.md @@ -0,0 +1,11 @@ +# GetXlsxCellByIdentifierResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**cell** | [**XlsxSpreadsheetCell**](XlsxSpreadsheetCell.md) | Requested Cell in the Excel XLSX 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/SetXlsxCellByIdentifierRequest.md b/docs/SetXlsxCellByIdentifierRequest.md new file mode 100644 index 0000000..873d84d --- /dev/null +++ b/docs/SetXlsxCellByIdentifierRequest.md @@ -0,0 +1,14 @@ +# SetXlsxCellByIdentifierRequest + +## 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] +**worksheet_to_update** | [**XlsxWorksheet**](XlsxWorksheet.md) | Optional; Worksheet (tab) within the spreadsheet to update; leave blank to default to the first worksheet | [optional] +**cell_identifier** | **str** | The Excel cell identifier (e.g. A1, B2, C33, etc.) of the cell to update | [optional] +**cell_value** | [**XlsxSpreadsheetCell**](XlsxSpreadsheetCell.md) | New Cell value to update/overwrite into the Excel XLSX spreadsheet | [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/SetXlsxCellByIdentifierResponse.md b/docs/SetXlsxCellByIdentifierResponse.md new file mode 100644 index 0000000..94bf7f6 --- /dev/null +++ b/docs/SetXlsxCellByIdentifierResponse.md @@ -0,0 +1,11 @@ +# SetXlsxCellByIdentifierResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**edited_document_url** | **str** | URL to the edited XLSX 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 31d7b55..5f07ac6 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.3.2", + "packageVersion": "2.3.3", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index 705e63f..4dab212 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.2" +VERSION = "2.3.3" # To install the library, run the following # # python setup.py install diff --git a/test/test_delete_docx_table_row_range_request.py b/test/test_delete_docx_table_row_range_request.py new file mode 100644 index 0000000..e57b681 --- /dev/null +++ b/test/test_delete_docx_table_row_range_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.delete_docx_table_row_range_request import DeleteDocxTableRowRangeRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestDeleteDocxTableRowRangeRequest(unittest.TestCase): + """DeleteDocxTableRowRangeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeleteDocxTableRowRangeRequest(self): + """Test DeleteDocxTableRowRangeRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.delete_docx_table_row_range_request.DeleteDocxTableRowRangeRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_docx_table_row_range_response.py b/test/test_delete_docx_table_row_range_response.py new file mode 100644 index 0000000..61fbbe8 --- /dev/null +++ b/test/test_delete_docx_table_row_range_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.delete_docx_table_row_range_response import DeleteDocxTableRowRangeResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestDeleteDocxTableRowRangeResponse(unittest.TestCase): + """DeleteDocxTableRowRangeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeleteDocxTableRowRangeResponse(self): + """Test DeleteDocxTableRowRangeResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.delete_docx_table_row_range_response.DeleteDocxTableRowRangeResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_xlsx_cell_by_identifier_request.py b/test/test_get_xlsx_cell_by_identifier_request.py new file mode 100644 index 0000000..f8eb476 --- /dev/null +++ b/test/test_get_xlsx_cell_by_identifier_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_xlsx_cell_by_identifier_request import GetXlsxCellByIdentifierRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetXlsxCellByIdentifierRequest(unittest.TestCase): + """GetXlsxCellByIdentifierRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetXlsxCellByIdentifierRequest(self): + """Test GetXlsxCellByIdentifierRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_request.GetXlsxCellByIdentifierRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_xlsx_cell_by_identifier_response.py b/test/test_get_xlsx_cell_by_identifier_response.py new file mode 100644 index 0000000..d03e1ce --- /dev/null +++ b/test/test_get_xlsx_cell_by_identifier_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_xlsx_cell_by_identifier_response import GetXlsxCellByIdentifierResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetXlsxCellByIdentifierResponse(unittest.TestCase): + """GetXlsxCellByIdentifierResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetXlsxCellByIdentifierResponse(self): + """Test GetXlsxCellByIdentifierResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_xlsx_cell_by_identifier_response.GetXlsxCellByIdentifierResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_set_xlsx_cell_by_identifier_request.py b/test/test_set_xlsx_cell_by_identifier_request.py new file mode 100644 index 0000000..e811a4e --- /dev/null +++ b/test/test_set_xlsx_cell_by_identifier_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.set_xlsx_cell_by_identifier_request import SetXlsxCellByIdentifierRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestSetXlsxCellByIdentifierRequest(unittest.TestCase): + """SetXlsxCellByIdentifierRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSetXlsxCellByIdentifierRequest(self): + """Test SetXlsxCellByIdentifierRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_request.SetXlsxCellByIdentifierRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_set_xlsx_cell_by_identifier_response.py b/test/test_set_xlsx_cell_by_identifier_response.py new file mode 100644 index 0000000..709c6ef --- /dev/null +++ b/test/test_set_xlsx_cell_by_identifier_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.set_xlsx_cell_by_identifier_response import SetXlsxCellByIdentifierResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestSetXlsxCellByIdentifierResponse(unittest.TestCase): + """SetXlsxCellByIdentifierResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSetXlsxCellByIdentifierResponse(self): + """Test SetXlsxCellByIdentifierResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.set_xlsx_cell_by_identifier_response.SetXlsxCellByIdentifierResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()