Skip to content

Commit

Permalink
3.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Jul 26, 2021
1 parent dcd10fe commit ed45b2f
Show file tree
Hide file tree
Showing 18 changed files with 817 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: 3.1.7
- Package version: 3.1.8
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -321,6 +321,7 @@ Class | Method | HTTP request | Description
*SplitDocumentApi* | [**split_document_txt_by_string**](docs/SplitDocumentApi.md#split_document_txt_by_string) | **POST** /convert/split/txt/by-string | Split a single Text file (txt) by a string delimiter
*SplitDocumentApi* | [**split_document_xlsx**](docs/SplitDocumentApi.md#split_document_xlsx) | **POST** /convert/split/xlsx | Split a single Excel XLSX into Separate Worksheets
*TransformDocumentApi* | [**transform_document_docx_replace**](docs/TransformDocumentApi.md#transform_document_docx_replace) | **POST** /convert/transform/docx/replace-all | Replace string in Word DOCX document
*TransformDocumentApi* | [**transform_document_docx_table_fill_in**](docs/TransformDocumentApi.md#transform_document_docx_table_fill_in) | **POST** /convert/transform/docx/table/fill/data | Fill in data in a table in a Word DOCX document
*TransformDocumentApi* | [**transform_document_pptx_replace**](docs/TransformDocumentApi.md#transform_document_pptx_replace) | **POST** /convert/transform/pptx/replace-all | Replace string in PowerPoint PPTX presentation
*ValidateDocumentApi* | [**validate_document_autodetect_validation**](docs/ValidateDocumentApi.md#validate_document_autodetect_validation) | **POST** /convert/validate/autodetect | Autodetect content type and validate
*ValidateDocumentApi* | [**validate_document_csv_validation**](docs/ValidateDocumentApi.md#validate_document_csv_validation) | **POST** /convert/validate/csv | Validate a CSV file document (CSV)
Expand Down Expand Up @@ -422,6 +423,9 @@ Class | Method | HTTP request | Description
- [DocxTable](docs/DocxTable.md)
- [DocxTableCell](docs/DocxTableCell.md)
- [DocxTableRow](docs/DocxTableRow.md)
- [DocxTableTableFillRequest](docs/DocxTableTableFillRequest.md)
- [DocxTableTableFillTableCell](docs/DocxTableTableFillTableCell.md)
- [DocxTableTableFillTableRow](docs/DocxTableTableFillTableRow.md)
- [DocxTemplateApplicationRequest](docs/DocxTemplateApplicationRequest.md)
- [DocxTemplateOperation](docs/DocxTemplateOperation.md)
- [DocxText](docs/DocxText.md)
Expand Down
3 changes: 3 additions & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
from cloudmersive_convert_api_client.models.docx_table import DocxTable
from cloudmersive_convert_api_client.models.docx_table_cell import DocxTableCell
from cloudmersive_convert_api_client.models.docx_table_row import DocxTableRow
from cloudmersive_convert_api_client.models.docx_table_table_fill_request import DocxTableTableFillRequest
from cloudmersive_convert_api_client.models.docx_table_table_fill_table_cell import DocxTableTableFillTableCell
from cloudmersive_convert_api_client.models.docx_table_table_fill_table_row import DocxTableTableFillTableRow
from cloudmersive_convert_api_client.models.docx_template_application_request import DocxTemplateApplicationRequest
from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation
from cloudmersive_convert_api_client.models.docx_text import DocxText
Expand Down
99 changes: 99 additions & 0 deletions cloudmersive_convert_api_client/api/transform_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,105 @@ def transform_document_docx_replace_with_http_info(self, match_string, replace_s
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def transform_document_docx_table_fill_in(self, request, **kwargs): # noqa: E501
"""Fill in data in a table in a Word DOCX document # noqa: E501
Replace placeholder rows ina table in an Office Word Document (docx) using one or more templates # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.transform_document_docx_table_fill_in(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DocxTableTableFillRequest request: (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.transform_document_docx_table_fill_in_with_http_info(request, **kwargs) # noqa: E501
else:
(data) = self.transform_document_docx_table_fill_in_with_http_info(request, **kwargs) # noqa: E501
return data

def transform_document_docx_table_fill_in_with_http_info(self, request, **kwargs): # noqa: E501
"""Fill in data in a table in a Word DOCX document # noqa: E501
Replace placeholder rows ina table in an Office Word Document (docx) using one or more templates # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.transform_document_docx_table_fill_in_with_http_info(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DocxTableTableFillRequest request: (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['request'] # 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 transform_document_docx_table_fill_in" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'request' is set
if ('request' not in params or
params['request'] is None):
raise ValueError("Missing the required parameter `request` when calling `transform_document_docx_table_fill_in`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}

body_params = None
if 'request' in params:
body_params = params['request']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/octet-stream']) # 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/transform/docx/table/fill/data', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # 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 transform_document_pptx_replace(self, match_string, replace_string, **kwargs): # noqa: E501
"""Replace string in PowerPoint PPTX presentation # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/3.1.7/python'
self.user_agent = 'Swagger-Codegen/3.1.8/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 3.1.7".\
"SDK Package Version: 3.1.8".\
format(env=sys.platform, pyversion=sys.version)
3 changes: 3 additions & 0 deletions cloudmersive_convert_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
from cloudmersive_convert_api_client.models.docx_table import DocxTable
from cloudmersive_convert_api_client.models.docx_table_cell import DocxTableCell
from cloudmersive_convert_api_client.models.docx_table_row import DocxTableRow
from cloudmersive_convert_api_client.models.docx_table_table_fill_request import DocxTableTableFillRequest
from cloudmersive_convert_api_client.models.docx_table_table_fill_table_cell import DocxTableTableFillTableCell
from cloudmersive_convert_api_client.models.docx_table_table_fill_table_row import DocxTableTableFillTableRow
from cloudmersive_convert_api_client.models.docx_template_application_request import DocxTemplateApplicationRequest
from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation
from cloudmersive_convert_api_client.models.docx_text import DocxText
Expand Down
Loading

0 comments on commit ed45b2f

Please sign in to comment.