diff --git a/README.md b/README.md index 7b35ea0..0d2e014 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.6 +- Package version: 2.3.7 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -132,11 +132,11 @@ Class | Method | HTTP request | Description *ConvertWebApi* | [**convert_web_html_to_docx**](docs/ConvertWebApi.md#convert_web_html_to_docx) | **POST** /convert/html/to/docx | Convert HTML to Word DOCX Document *ConvertWebApi* | [**convert_web_html_to_pdf**](docs/ConvertWebApi.md#convert_web_html_to_pdf) | **POST** /convert/web/html/to/pdf | Convert HTML string to PDF *ConvertWebApi* | [**convert_web_html_to_png**](docs/ConvertWebApi.md#convert_web_html_to_png) | **POST** /convert/web/html/to/png | Convert HTML string to PNG screenshot -*ConvertWebApi* | [**convert_web_html_to_txt**](docs/ConvertWebApi.md#convert_web_html_to_txt) | **POST** /convert/web/url/to/txt | Convert website URL page to text (txt) -*ConvertWebApi* | [**convert_web_html_to_txt_0**](docs/ConvertWebApi.md#convert_web_html_to_txt_0) | **POST** /convert/web/html/to/txt | Convert HTML string to text (txt) +*ConvertWebApi* | [**convert_web_html_to_txt**](docs/ConvertWebApi.md#convert_web_html_to_txt) | **POST** /convert/web/html/to/txt | Convert HTML string to text (txt) *ConvertWebApi* | [**convert_web_md_to_html**](docs/ConvertWebApi.md#convert_web_md_to_html) | **POST** /convert/web/md/to/html | Convert Markdown to HTML *ConvertWebApi* | [**convert_web_url_to_pdf**](docs/ConvertWebApi.md#convert_web_url_to_pdf) | **POST** /convert/web/url/to/pdf | Convert a URL to PDF *ConvertWebApi* | [**convert_web_url_to_screenshot**](docs/ConvertWebApi.md#convert_web_url_to_screenshot) | **POST** /convert/web/url/to/screenshot | Take screenshot of URL +*ConvertWebApi* | [**convert_web_url_to_txt**](docs/ConvertWebApi.md#convert_web_url_to_txt) | **POST** /convert/web/url/to/txt | Convert website URL page to text (txt) *EditDocumentApi* | [**edit_document_begin_editing**](docs/EditDocumentApi.md#edit_document_begin_editing) | **POST** /convert/edit/begin-editing | Begin editing a document *EditDocumentApi* | [**edit_document_docx_body**](docs/EditDocumentApi.md#edit_document_docx_body) | **POST** /convert/edit/docx/get-body | Get body from a Word DOCX document *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 @@ -206,8 +206,12 @@ Class | Method | HTTP request | Description *EditTextApi* | [**edit_text_base64_encode**](docs/EditTextApi.md#edit_text_base64_encode) | **POST** /convert/edit/text/encoding/base64/encode | Base 64 encode, convert binary or file data to a text string *EditTextApi* | [**edit_text_change_line_endings**](docs/EditTextApi.md#edit_text_change_line_endings) | **POST** /convert/edit/text/line-endings/change | Set, change line endings of a text file *EditTextApi* | [**edit_text_detect_line_endings**](docs/EditTextApi.md#edit_text_detect_line_endings) | **POST** /convert/edit/text/line-endings/detect | Detect line endings of a text file +*EditTextApi* | [**edit_text_find_regex**](docs/EditTextApi.md#edit_text_find_regex) | **POST** /convert/edit/text/find/regex | Find a regular expression regex in text input +*EditTextApi* | [**edit_text_find_simple**](docs/EditTextApi.md#edit_text_find_simple) | **POST** /convert/edit/text/find/string | Find a string in text input *EditTextApi* | [**edit_text_remove_all_whitespace**](docs/EditTextApi.md#edit_text_remove_all_whitespace) | **POST** /convert/edit/text/remove/whitespace/all | Remove whitespace from text string *EditTextApi* | [**edit_text_remove_html**](docs/EditTextApi.md#edit_text_remove_html) | **POST** /convert/edit/text/remove/html | Remove HTML from text string +*EditTextApi* | [**edit_text_replace_regex**](docs/EditTextApi.md#edit_text_replace_regex) | **POST** /convert/edit/text/replace/regex | Replace a string in text with a regex regular expression string +*EditTextApi* | [**edit_text_replace_simple**](docs/EditTextApi.md#edit_text_replace_simple) | **POST** /convert/edit/text/replace/string | Replace a string in text with another string value *EditTextApi* | [**edit_text_text_encoding_detect**](docs/EditTextApi.md#edit_text_text_encoding_detect) | **POST** /convert/edit/text/encoding/detect | Detect text encoding of file *EditTextApi* | [**edit_text_trim_whitespace**](docs/EditTextApi.md#edit_text_trim_whitespace) | **POST** /convert/edit/text/remove/whitespace/trim | Trim leading and trailing whitespace from text string *MergeDocumentApi* | [**merge_document_docx**](docs/MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together @@ -236,6 +240,9 @@ Class | Method | HTTP request | Description *ValidateDocumentApi* | [**validate_document_xlsx_validation**](docs/ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX) *ValidateDocumentApi* | [**validate_document_xml_validation**](docs/ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file *ViewerToolsApi* | [**viewer_tools_create_simple**](docs/ViewerToolsApi.md#viewer_tools_create_simple) | **POST** /convert/viewer/create/web/simple | Create a web-based viewer +*ZipArchiveApi* | [**zip_archive_zip_create**](docs/ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive +*ZipArchiveApi* | [**zip_archive_zip_create_advanced**](docs/ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options +*ZipArchiveApi* | [**zip_archive_zip_extract**](docs/ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive ## Documentation For Models @@ -261,6 +268,7 @@ Class | Method | HTTP request | Description - [CreateBlankSpreadsheetResponse](docs/CreateBlankSpreadsheetResponse.md) - [CreateSpreadsheetFromDataRequest](docs/CreateSpreadsheetFromDataRequest.md) - [CreateSpreadsheetFromDataResponse](docs/CreateSpreadsheetFromDataResponse.md) + - [CreateZipArchiveRequest](docs/CreateZipArchiveRequest.md) - [DeleteDocxTableRowRangeRequest](docs/DeleteDocxTableRowRangeRequest.md) - [DeleteDocxTableRowRangeResponse](docs/DeleteDocxTableRowRangeResponse.md) - [DeleteDocxTableRowRequest](docs/DeleteDocxTableRowRequest.md) @@ -297,6 +305,12 @@ Class | Method | HTTP request | Description - [DocxText](docs/DocxText.md) - [DocxTopLevelComment](docs/DocxTopLevelComment.md) - [ExifValue](docs/ExifValue.md) + - [FindRegexMatch](docs/FindRegexMatch.md) + - [FindStringMatch](docs/FindStringMatch.md) + - [FindStringRegexRequest](docs/FindStringRegexRequest.md) + - [FindStringRegexResponse](docs/FindStringRegexResponse.md) + - [FindStringSimpleRequest](docs/FindStringSimpleRequest.md) + - [FindStringSimpleResponse](docs/FindStringSimpleResponse.md) - [FinishEditingRequest](docs/FinishEditingRequest.md) - [GetDocxBodyRequest](docs/GetDocxBodyRequest.md) - [GetDocxBodyResponse](docs/GetDocxBodyResponse.md) @@ -374,7 +388,11 @@ Class | Method | HTTP request | Description - [RemoveWhitespaceFromTextRequest](docs/RemoveWhitespaceFromTextRequest.md) - [RemoveWhitespaceFromTextResponse](docs/RemoveWhitespaceFromTextResponse.md) - [RemoveXlsxWorksheetRequest](docs/RemoveXlsxWorksheetRequest.md) + - [ReplaceStringRegexRequest](docs/ReplaceStringRegexRequest.md) + - [ReplaceStringRegexResponse](docs/ReplaceStringRegexResponse.md) - [ReplaceStringRequest](docs/ReplaceStringRequest.md) + - [ReplaceStringSimpleRequest](docs/ReplaceStringSimpleRequest.md) + - [ReplaceStringSimpleResponse](docs/ReplaceStringSimpleResponse.md) - [ScreenshotRequest](docs/ScreenshotRequest.md) - [SetFormFieldValue](docs/SetFormFieldValue.md) - [SetPdfFormFieldsRequest](docs/SetPdfFormFieldsRequest.md) @@ -416,6 +434,9 @@ Class | Method | HTTP request | Description - [XmlRemoveWithXPathResult](docs/XmlRemoveWithXPathResult.md) - [XmlReplaceWithXPathResult](docs/XmlReplaceWithXPathResult.md) - [XmlSetValueWithXPathResult](docs/XmlSetValueWithXPathResult.md) + - [ZipDirectory](docs/ZipDirectory.md) + - [ZipExtractResponse](docs/ZipExtractResponse.md) + - [ZipFile](docs/ZipFile.md) ## Documentation For Authorization diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index e1ee235..64a1c54 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -29,6 +29,7 @@ from cloudmersive_convert_api_client.api.split_document_api import SplitDocumentApi from cloudmersive_convert_api_client.api.validate_document_api import ValidateDocumentApi from cloudmersive_convert_api_client.api.viewer_tools_api import ViewerToolsApi +from cloudmersive_convert_api_client.api.zip_archive_api import ZipArchiveApi # import ApiClient from cloudmersive_convert_api_client.api_client import ApiClient @@ -55,6 +56,7 @@ 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.create_zip_archive_request import CreateZipArchiveRequest 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 @@ -91,6 +93,12 @@ from cloudmersive_convert_api_client.models.docx_text import DocxText from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment from cloudmersive_convert_api_client.models.exif_value import ExifValue +from cloudmersive_convert_api_client.models.find_regex_match import FindRegexMatch +from cloudmersive_convert_api_client.models.find_string_match import FindStringMatch +from cloudmersive_convert_api_client.models.find_string_regex_request import FindStringRegexRequest +from cloudmersive_convert_api_client.models.find_string_regex_response import FindStringRegexResponse +from cloudmersive_convert_api_client.models.find_string_simple_request import FindStringSimpleRequest +from cloudmersive_convert_api_client.models.find_string_simple_response import FindStringSimpleResponse from cloudmersive_convert_api_client.models.finish_editing_request import FinishEditingRequest from cloudmersive_convert_api_client.models.get_docx_body_request import GetDocxBodyRequest from cloudmersive_convert_api_client.models.get_docx_body_response import GetDocxBodyResponse @@ -168,7 +176,11 @@ from cloudmersive_convert_api_client.models.remove_whitespace_from_text_request import RemoveWhitespaceFromTextRequest from cloudmersive_convert_api_client.models.remove_whitespace_from_text_response import RemoveWhitespaceFromTextResponse from cloudmersive_convert_api_client.models.remove_xlsx_worksheet_request import RemoveXlsxWorksheetRequest +from cloudmersive_convert_api_client.models.replace_string_regex_request import ReplaceStringRegexRequest +from cloudmersive_convert_api_client.models.replace_string_regex_response import ReplaceStringRegexResponse from cloudmersive_convert_api_client.models.replace_string_request import ReplaceStringRequest +from cloudmersive_convert_api_client.models.replace_string_simple_request import ReplaceStringSimpleRequest +from cloudmersive_convert_api_client.models.replace_string_simple_response import ReplaceStringSimpleResponse from cloudmersive_convert_api_client.models.screenshot_request import ScreenshotRequest 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 @@ -210,3 +222,6 @@ from cloudmersive_convert_api_client.models.xml_remove_with_x_path_result import XmlRemoveWithXPathResult from cloudmersive_convert_api_client.models.xml_replace_with_x_path_result import XmlReplaceWithXPathResult from cloudmersive_convert_api_client.models.xml_set_value_with_x_path_result import XmlSetValueWithXPathResult +from cloudmersive_convert_api_client.models.zip_directory import ZipDirectory +from cloudmersive_convert_api_client.models.zip_extract_response import ZipExtractResponse +from cloudmersive_convert_api_client.models.zip_file import ZipFile diff --git a/cloudmersive_convert_api_client/api/__init__.py b/cloudmersive_convert_api_client/api/__init__.py index ddfe0de..eb97368 100644 --- a/cloudmersive_convert_api_client/api/__init__.py +++ b/cloudmersive_convert_api_client/api/__init__.py @@ -16,3 +16,4 @@ from cloudmersive_convert_api_client.api.split_document_api import SplitDocumentApi from cloudmersive_convert_api_client.api.validate_document_api import ValidateDocumentApi from cloudmersive_convert_api_client.api.viewer_tools_api import ViewerToolsApi +from cloudmersive_convert_api_client.api.zip_archive_api import ZipArchiveApi diff --git a/cloudmersive_convert_api_client/api/convert_data_api.py b/cloudmersive_convert_api_client/api/convert_data_api.py index 86c3275..d08dd65 100644 --- a/cloudmersive_convert_api_client/api/convert_data_api.py +++ b/cloudmersive_convert_api_client/api/convert_data_api.py @@ -142,7 +142,7 @@ def convert_data_json_to_xml(self, json_object, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param object json_object: (required) + :param object json_object: Input JSON to convert to XML (required) :return: str If the method is called asynchronously, returns the request thread. @@ -164,7 +164,7 @@ def convert_data_json_to_xml_with_http_info(self, json_object, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param object json_object: (required) + :param object json_object: Input JSON to convert to XML (required) :return: str If the method is called asynchronously, returns the request thread. diff --git a/cloudmersive_convert_api_client/api/convert_web_api.py b/cloudmersive_convert_api_client/api/convert_web_api.py index ba9c1e9..28de3ab 100644 --- a/cloudmersive_convert_api_client/api/convert_web_api.py +++ b/cloudmersive_convert_api_client/api/convert_web_api.py @@ -331,17 +331,17 @@ def convert_web_html_to_png_with_http_info(self, input, **kwargs): # noqa: E501 collection_formats=collection_formats) def convert_web_html_to_txt(self, input, **kwargs): # noqa: E501 - """Convert website URL page to text (txt) # noqa: E501 + """Convert HTML string to text (txt) # noqa: E501 - Converts a website URL page into text (txt); extracts text from HTML # noqa: E501 + Converts an HTML string input into text (txt); extracts text from HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.convert_web_html_to_txt(input, async_req=True) >>> result = thread.get() :param async_req bool - :param UrlToTextRequest input: HTML to Text request parameters (required) - :return: UrlToTextResponse + :param HtmlToTextRequest input: HTML to Text request parameters (required) + :return: HtmlToTextResponse If the method is called asynchronously, returns the request thread. """ @@ -353,17 +353,17 @@ def convert_web_html_to_txt(self, input, **kwargs): # noqa: E501 return data def convert_web_html_to_txt_with_http_info(self, input, **kwargs): # noqa: E501 - """Convert website URL page to text (txt) # noqa: E501 + """Convert HTML string to text (txt) # noqa: E501 - Converts a website URL page into text (txt); extracts text from HTML # noqa: E501 + Converts an HTML string input into text (txt); extracts text from HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.convert_web_html_to_txt_with_http_info(input, async_req=True) >>> result = thread.get() :param async_req bool - :param UrlToTextRequest input: HTML to Text request parameters (required) - :return: UrlToTextResponse + :param HtmlToTextRequest input: HTML to Text request parameters (required) + :return: HtmlToTextResponse If the method is called asynchronously, returns the request thread. """ @@ -414,14 +414,14 @@ def convert_web_html_to_txt_with_http_info(self, input, **kwargs): # noqa: E501 auth_settings = ['Apikey'] # noqa: E501 return self.api_client.call_api( - '/convert/web/url/to/txt', 'POST', + '/convert/web/html/to/txt', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UrlToTextResponse', # noqa: E501 + response_type='HtmlToTextResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -429,45 +429,45 @@ def convert_web_html_to_txt_with_http_info(self, input, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def convert_web_html_to_txt_0(self, input, **kwargs): # noqa: E501 - """Convert HTML string to text (txt) # noqa: E501 + def convert_web_md_to_html(self, input_file, **kwargs): # noqa: E501 + """Convert Markdown to HTML # noqa: E501 - Converts an HTML string input into text (txt); extracts text from HTML # noqa: E501 + Convert a markdown file (.md) to HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_html_to_txt_0(input, async_req=True) + >>> thread = api.convert_web_md_to_html(input_file, async_req=True) >>> result = thread.get() :param async_req bool - :param HtmlToTextRequest input: HTML to Text request parameters (required) - :return: HtmlToTextResponse + :param file input_file: Input file to perform the operation on. (required) + :return: HtmlMdResult If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.convert_web_html_to_txt_0_with_http_info(input, **kwargs) # noqa: E501 + return self.convert_web_md_to_html_with_http_info(input_file, **kwargs) # noqa: E501 else: - (data) = self.convert_web_html_to_txt_0_with_http_info(input, **kwargs) # noqa: E501 + (data) = self.convert_web_md_to_html_with_http_info(input_file, **kwargs) # noqa: E501 return data - def convert_web_html_to_txt_0_with_http_info(self, input, **kwargs): # noqa: E501 - """Convert HTML string to text (txt) # noqa: E501 + def convert_web_md_to_html_with_http_info(self, input_file, **kwargs): # noqa: E501 + """Convert Markdown to HTML # noqa: E501 - Converts an HTML string input into text (txt); extracts text from HTML # noqa: E501 + Convert a markdown file (.md) to HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_html_to_txt_0_with_http_info(input, async_req=True) + >>> thread = api.convert_web_md_to_html_with_http_info(input_file, async_req=True) >>> result = thread.get() :param async_req bool - :param HtmlToTextRequest input: HTML to Text request parameters (required) - :return: HtmlToTextResponse + :param file input_file: Input file to perform the operation on. (required) + :return: HtmlMdResult If the method is called asynchronously, returns the request thread. """ - all_params = ['input'] # noqa: E501 + all_params = ['input_file'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -478,14 +478,14 @@ def convert_web_html_to_txt_0_with_http_info(self, input, **kwargs): # noqa: E5 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method convert_web_html_to_txt_0" % key + " to method convert_web_md_to_html" % 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 `convert_web_html_to_txt_0`") # noqa: E501 + # verify the required parameter 'input_file' is set + if ('input_file' not in params or + params['input_file'] is None): + raise ValueError("Missing the required parameter `input_file` when calling `convert_web_md_to_html`") # noqa: E501 collection_formats = {} @@ -497,30 +497,30 @@ def convert_web_html_to_txt_0_with_http_info(self, input, **kwargs): # noqa: E5 form_params = [] local_var_files = {} + if 'input_file' in params: + local_var_files['inputFile'] = params['input_file'] # noqa: E501 body_params = None - if 'input' in params: - body_params = params['input'] # 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 + ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = ['Apikey'] # noqa: E501 return self.api_client.call_api( - '/convert/web/html/to/txt', 'POST', + '/convert/web/md/to/html', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HtmlToTextResponse', # noqa: E501 + response_type='HtmlMdResult', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -528,45 +528,45 @@ def convert_web_html_to_txt_0_with_http_info(self, input, **kwargs): # noqa: E5 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def convert_web_md_to_html(self, input_file, **kwargs): # noqa: E501 - """Convert Markdown to HTML # noqa: E501 + def convert_web_url_to_pdf(self, input, **kwargs): # noqa: E501 + """Convert a URL to PDF # noqa: E501 - Convert a markdown file (.md) to HTML # noqa: E501 + Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_md_to_html(input_file, async_req=True) + >>> thread = api.convert_web_url_to_pdf(input, async_req=True) >>> result = thread.get() :param async_req bool - :param file input_file: Input file to perform the operation on. (required) - :return: HtmlMdResult + :param ScreenshotRequest input: URL to PDF request parameters (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.convert_web_md_to_html_with_http_info(input_file, **kwargs) # noqa: E501 + return self.convert_web_url_to_pdf_with_http_info(input, **kwargs) # noqa: E501 else: - (data) = self.convert_web_md_to_html_with_http_info(input_file, **kwargs) # noqa: E501 + (data) = self.convert_web_url_to_pdf_with_http_info(input, **kwargs) # noqa: E501 return data - def convert_web_md_to_html_with_http_info(self, input_file, **kwargs): # noqa: E501 - """Convert Markdown to HTML # noqa: E501 + def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501 + """Convert a URL to PDF # noqa: E501 - Convert a markdown file (.md) to HTML # noqa: E501 + Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_md_to_html_with_http_info(input_file, async_req=True) + >>> thread = api.convert_web_url_to_pdf_with_http_info(input, async_req=True) >>> result = thread.get() :param async_req bool - :param file input_file: Input file to perform the operation on. (required) - :return: HtmlMdResult + :param ScreenshotRequest input: URL to PDF request parameters (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['input_file'] # noqa: E501 + all_params = ['input'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -577,14 +577,14 @@ def convert_web_md_to_html_with_http_info(self, input_file, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method convert_web_md_to_html" % key + " to method convert_web_url_to_pdf" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'input_file' is set - if ('input_file' not in params or - params['input_file'] is None): - raise ValueError("Missing the required parameter `input_file` when calling `convert_web_md_to_html`") # noqa: E501 + # 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 `convert_web_url_to_pdf`") # noqa: E501 collection_formats = {} @@ -596,30 +596,30 @@ def convert_web_md_to_html_with_http_info(self, input_file, **kwargs): # noqa: form_params = [] local_var_files = {} - if 'input_file' in params: - local_var_files['inputFile'] = params['input_file'] # noqa: E501 body_params = None + if 'input' in params: + body_params = params['input'] # 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 - ['multipart/form-data']) # 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/web/md/to/html', 'POST', + '/convert/web/url/to/pdf', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HtmlMdResult', # noqa: E501 + 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'), @@ -627,39 +627,39 @@ def convert_web_md_to_html_with_http_info(self, input_file, **kwargs): # noqa: _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def convert_web_url_to_pdf(self, input, **kwargs): # noqa: E501 - """Convert a URL to PDF # noqa: E501 + def convert_web_url_to_screenshot(self, input, **kwargs): # noqa: E501 + """Take screenshot of URL # noqa: E501 - Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 + Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_url_to_pdf(input, async_req=True) + >>> thread = api.convert_web_url_to_screenshot(input, async_req=True) >>> result = thread.get() :param async_req bool - :param ScreenshotRequest input: URL to PDF request parameters (required) + :param ScreenshotRequest input: Screenshot request parameters (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.convert_web_url_to_pdf_with_http_info(input, **kwargs) # noqa: E501 + return self.convert_web_url_to_screenshot_with_http_info(input, **kwargs) # noqa: E501 else: - (data) = self.convert_web_url_to_pdf_with_http_info(input, **kwargs) # noqa: E501 + (data) = self.convert_web_url_to_screenshot_with_http_info(input, **kwargs) # noqa: E501 return data - def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501 - """Convert a URL to PDF # noqa: E501 + def convert_web_url_to_screenshot_with_http_info(self, input, **kwargs): # noqa: E501 + """Take screenshot of URL # noqa: E501 - Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 + Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_url_to_pdf_with_http_info(input, async_req=True) + >>> thread = api.convert_web_url_to_screenshot_with_http_info(input, async_req=True) >>> result = thread.get() :param async_req bool - :param ScreenshotRequest input: URL to PDF request parameters (required) + :param ScreenshotRequest input: Screenshot request parameters (required) :return: str If the method is called asynchronously, returns the request thread. @@ -676,14 +676,14 @@ def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method convert_web_url_to_pdf" % key + " to method convert_web_url_to_screenshot" % 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 `convert_web_url_to_pdf`") # noqa: E501 + raise ValueError("Missing the required parameter `input` when calling `convert_web_url_to_screenshot`") # noqa: E501 collection_formats = {} @@ -711,7 +711,7 @@ def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501 auth_settings = ['Apikey'] # noqa: E501 return self.api_client.call_api( - '/convert/web/url/to/pdf', 'POST', + '/convert/web/url/to/screenshot', 'POST', path_params, query_params, header_params, @@ -726,40 +726,40 @@ def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def convert_web_url_to_screenshot(self, input, **kwargs): # noqa: E501 - """Take screenshot of URL # noqa: E501 + def convert_web_url_to_txt(self, input, **kwargs): # noqa: E501 + """Convert website URL page to text (txt) # noqa: E501 - Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 + Converts a website URL page into text (txt); extracts text from HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_url_to_screenshot(input, async_req=True) + >>> thread = api.convert_web_url_to_txt(input, async_req=True) >>> result = thread.get() :param async_req bool - :param ScreenshotRequest input: Screenshot request parameters (required) - :return: str + :param UrlToTextRequest input: HTML to Text request parameters (required) + :return: UrlToTextResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.convert_web_url_to_screenshot_with_http_info(input, **kwargs) # noqa: E501 + return self.convert_web_url_to_txt_with_http_info(input, **kwargs) # noqa: E501 else: - (data) = self.convert_web_url_to_screenshot_with_http_info(input, **kwargs) # noqa: E501 + (data) = self.convert_web_url_to_txt_with_http_info(input, **kwargs) # noqa: E501 return data - def convert_web_url_to_screenshot_with_http_info(self, input, **kwargs): # noqa: E501 - """Take screenshot of URL # noqa: E501 + def convert_web_url_to_txt_with_http_info(self, input, **kwargs): # noqa: E501 + """Convert website URL page to text (txt) # noqa: E501 - Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. # noqa: E501 + Converts a website URL page into text (txt); extracts text from HTML # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.convert_web_url_to_screenshot_with_http_info(input, async_req=True) + >>> thread = api.convert_web_url_to_txt_with_http_info(input, async_req=True) >>> result = thread.get() :param async_req bool - :param ScreenshotRequest input: Screenshot request parameters (required) - :return: str + :param UrlToTextRequest input: HTML to Text request parameters (required) + :return: UrlToTextResponse If the method is called asynchronously, returns the request thread. """ @@ -775,14 +775,14 @@ def convert_web_url_to_screenshot_with_http_info(self, input, **kwargs): # noqa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method convert_web_url_to_screenshot" % key + " to method convert_web_url_to_txt" % 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 `convert_web_url_to_screenshot`") # noqa: E501 + raise ValueError("Missing the required parameter `input` when calling `convert_web_url_to_txt`") # noqa: E501 collection_formats = {} @@ -810,14 +810,14 @@ def convert_web_url_to_screenshot_with_http_info(self, input, **kwargs): # noqa auth_settings = ['Apikey'] # noqa: E501 return self.api_client.call_api( - '/convert/web/url/to/screenshot', 'POST', + '/convert/web/url/to/txt', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', # noqa: E501 + response_type='UrlToTextResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/cloudmersive_convert_api_client/api/edit_text_api.py b/cloudmersive_convert_api_client/api/edit_text_api.py index 75c6e1c..adb059d 100644 --- a/cloudmersive_convert_api_client/api/edit_text_api.py +++ b/cloudmersive_convert_api_client/api/edit_text_api.py @@ -43,7 +43,7 @@ def edit_text_base64_decode(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param Base64DecodeRequest request: (required) + :param Base64DecodeRequest request: Input request (required) :return: Base64DecodeResponse If the method is called asynchronously, returns the request thread. @@ -65,7 +65,7 @@ def edit_text_base64_decode_with_http_info(self, request, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param Base64DecodeRequest request: (required) + :param Base64DecodeRequest request: Input request (required) :return: Base64DecodeResponse If the method is called asynchronously, returns the request thread. @@ -142,7 +142,7 @@ def edit_text_base64_detect(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param Base64DetectRequest request: (required) + :param Base64DetectRequest request: Input request (required) :return: Base64DetectResponse If the method is called asynchronously, returns the request thread. @@ -164,7 +164,7 @@ def edit_text_base64_detect_with_http_info(self, request, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param Base64DetectRequest request: (required) + :param Base64DetectRequest request: Input request (required) :return: Base64DetectResponse If the method is called asynchronously, returns the request thread. @@ -241,7 +241,7 @@ def edit_text_base64_encode(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param Base64EncodeRequest request: (required) + :param Base64EncodeRequest request: Input request (required) :return: Base64EncodeResponse If the method is called asynchronously, returns the request thread. @@ -263,7 +263,7 @@ def edit_text_base64_encode_with_http_info(self, request, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param Base64EncodeRequest request: (required) + :param Base64EncodeRequest request: Input request (required) :return: Base64EncodeResponse If the method is called asynchronously, returns the request thread. @@ -536,6 +536,204 @@ def edit_text_detect_line_endings_with_http_info(self, input_file, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_text_find_regex(self, request, **kwargs): # noqa: E501 + """Find a regular expression regex in text input # noqa: E501 + + Find all occurrences of the input regular expression in the input content, and returns the matches # 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_text_find_regex(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FindStringRegexRequest request: Input request (required) + :return: FindStringRegexResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_text_find_regex_with_http_info(request, **kwargs) # noqa: E501 + else: + (data) = self.edit_text_find_regex_with_http_info(request, **kwargs) # noqa: E501 + return data + + def edit_text_find_regex_with_http_info(self, request, **kwargs): # noqa: E501 + """Find a regular expression regex in text input # noqa: E501 + + Find all occurrences of the input regular expression in the input content, and returns the matches # 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_text_find_regex_with_http_info(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FindStringRegexRequest request: Input request (required) + :return: FindStringRegexResponse + 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 edit_text_find_regex" % 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 `edit_text_find_regex`") # 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/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/text/find/regex', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FindStringRegexResponse', # 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_text_find_simple(self, request, **kwargs): # noqa: E501 + """Find a string in text input # noqa: E501 + + Finds all occurrences of the input string in the input content, and returns the matches # 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_text_find_simple(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FindStringSimpleRequest request: Input request (required) + :return: FindStringSimpleResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_text_find_simple_with_http_info(request, **kwargs) # noqa: E501 + else: + (data) = self.edit_text_find_simple_with_http_info(request, **kwargs) # noqa: E501 + return data + + def edit_text_find_simple_with_http_info(self, request, **kwargs): # noqa: E501 + """Find a string in text input # noqa: E501 + + Finds all occurrences of the input string in the input content, and returns the matches # 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_text_find_simple_with_http_info(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FindStringSimpleRequest request: Input request (required) + :return: FindStringSimpleResponse + 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 edit_text_find_simple" % 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 `edit_text_find_simple`") # 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/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/text/find/string', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FindStringSimpleResponse', # 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_text_remove_all_whitespace(self, request, **kwargs): # noqa: E501 """Remove whitespace from text string # noqa: E501 @@ -546,7 +744,7 @@ def edit_text_remove_all_whitespace(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RemoveWhitespaceFromTextRequest request: (required) + :param RemoveWhitespaceFromTextRequest request: Input request (required) :return: RemoveWhitespaceFromTextResponse If the method is called asynchronously, returns the request thread. @@ -568,7 +766,7 @@ def edit_text_remove_all_whitespace_with_http_info(self, request, **kwargs): # >>> result = thread.get() :param async_req bool - :param RemoveWhitespaceFromTextRequest request: (required) + :param RemoveWhitespaceFromTextRequest request: Input request (required) :return: RemoveWhitespaceFromTextResponse If the method is called asynchronously, returns the request thread. @@ -645,7 +843,7 @@ def edit_text_remove_html(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RemoveHtmlFromTextRequest request: (required) + :param RemoveHtmlFromTextRequest request: Input request (required) :return: RemoveHtmlFromTextResponse If the method is called asynchronously, returns the request thread. @@ -667,7 +865,7 @@ def edit_text_remove_html_with_http_info(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RemoveHtmlFromTextRequest request: (required) + :param RemoveHtmlFromTextRequest request: Input request (required) :return: RemoveHtmlFromTextResponse If the method is called asynchronously, returns the request thread. @@ -734,6 +932,204 @@ def edit_text_remove_html_with_http_info(self, request, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_text_replace_regex(self, request, **kwargs): # noqa: E501 + """Replace a string in text with a regex regular expression string # noqa: E501 + + Replaces all occurrences of the input regular expression regex string in the input content, 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_text_replace_regex(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplaceStringRegexRequest request: Input request (required) + :return: ReplaceStringRegexResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_text_replace_regex_with_http_info(request, **kwargs) # noqa: E501 + else: + (data) = self.edit_text_replace_regex_with_http_info(request, **kwargs) # noqa: E501 + return data + + def edit_text_replace_regex_with_http_info(self, request, **kwargs): # noqa: E501 + """Replace a string in text with a regex regular expression string # noqa: E501 + + Replaces all occurrences of the input regular expression regex string in the input content, 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_text_replace_regex_with_http_info(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplaceStringRegexRequest request: Input request (required) + :return: ReplaceStringRegexResponse + 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 edit_text_replace_regex" % 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 `edit_text_replace_regex`") # 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/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/text/replace/regex', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReplaceStringRegexResponse', # 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_text_replace_simple(self, request, **kwargs): # noqa: E501 + """Replace a string in text with another string value # noqa: E501 + + Replaces all occurrences of the input string in the input content, 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_text_replace_simple(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplaceStringSimpleRequest request: Input request (required) + :return: ReplaceStringSimpleResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_text_replace_simple_with_http_info(request, **kwargs) # noqa: E501 + else: + (data) = self.edit_text_replace_simple_with_http_info(request, **kwargs) # noqa: E501 + return data + + def edit_text_replace_simple_with_http_info(self, request, **kwargs): # noqa: E501 + """Replace a string in text with another string value # noqa: E501 + + Replaces all occurrences of the input string in the input content, 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_text_replace_simple_with_http_info(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplaceStringSimpleRequest request: Input request (required) + :return: ReplaceStringSimpleResponse + 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 edit_text_replace_simple" % 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 `edit_text_replace_simple`") # 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/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/text/replace/string', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReplaceStringSimpleResponse', # 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_text_text_encoding_detect(self, input_file, **kwargs): # noqa: E501 """Detect text encoding of file # noqa: E501 @@ -843,7 +1239,7 @@ def edit_text_trim_whitespace(self, request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RemoveWhitespaceFromTextRequest request: (required) + :param RemoveWhitespaceFromTextRequest request: Input request (required) :return: RemoveWhitespaceFromTextResponse If the method is called asynchronously, returns the request thread. @@ -865,7 +1261,7 @@ def edit_text_trim_whitespace_with_http_info(self, request, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param RemoveWhitespaceFromTextRequest request: (required) + :param RemoveWhitespaceFromTextRequest request: Input request (required) :return: RemoveWhitespaceFromTextResponse If the method is called asynchronously, returns the request thread. diff --git a/cloudmersive_convert_api_client/api/zip_archive_api.py b/cloudmersive_convert_api_client/api/zip_archive_api.py new file mode 100644 index 0000000..3836e5b --- /dev/null +++ b/cloudmersive_convert_api_client/api/zip_archive_api.py @@ -0,0 +1,319 @@ +# 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 re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudmersive_convert_api_client.api_client import ApiClient + + +class ZipArchiveApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def zip_archive_zip_create(self, **kwargs): # noqa: E501 + """Compress files to create a new zip archive # noqa: E501 + + Create a new zip archive by compressing input files. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_create(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.zip_archive_zip_create_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.zip_archive_zip_create_with_http_info(**kwargs) # noqa: E501 + return data + + def zip_archive_zip_create_with_http_info(self, **kwargs): # noqa: E501 + """Compress files to create a new zip archive # noqa: E501 + + Create a new zip archive by compressing input files. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_create_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # 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 zip_archive_zip_create" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/octet-stream']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/archive/zip/create', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # 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 zip_archive_zip_create_advanced(self, request, **kwargs): # noqa: E501 + """Compress files and folders to create a new zip archive with advanced options # noqa: E501 + + Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_create_advanced(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateZipArchiveRequest request: Input request (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.zip_archive_zip_create_advanced_with_http_info(request, **kwargs) # noqa: E501 + else: + (data) = self.zip_archive_zip_create_advanced_with_http_info(request, **kwargs) # noqa: E501 + return data + + def zip_archive_zip_create_advanced_with_http_info(self, request, **kwargs): # noqa: E501 + """Compress files and folders to create a new zip archive with advanced options # noqa: E501 + + Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_create_advanced_with_http_info(request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateZipArchiveRequest request: Input request (required) + :return: object + 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 zip_archive_zip_create_advanced" % 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 `zip_archive_zip_create_advanced`") # 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/archive/zip/create/advanced', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # 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 zip_archive_zip_extract(self, input_file, **kwargs): # noqa: E501 + """Extract, decompress files and folders from a zip archive # noqa: E501 + + Extracts a zip archive by decompressing files, and folders. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_extract(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: ZipExtractResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.zip_archive_zip_extract_with_http_info(input_file, **kwargs) # noqa: E501 + else: + (data) = self.zip_archive_zip_extract_with_http_info(input_file, **kwargs) # noqa: E501 + return data + + def zip_archive_zip_extract_with_http_info(self, input_file, **kwargs): # noqa: E501 + """Extract, decompress files and folders from a zip archive # noqa: E501 + + Extracts a zip archive by decompressing files, and folders. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.zip_archive_zip_extract_with_http_info(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: ZipExtractResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file'] # 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 zip_archive_zip_extract" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input_file' is set + if ('input_file' not in params or + params['input_file'] is None): + raise ValueError("Missing the required parameter `input_file` when calling `zip_archive_zip_extract`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'input_file' in params: + local_var_files['inputFile'] = params['input_file'] # noqa: E501 + + body_params = None + # 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 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/archive/zip/extract', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ZipExtractResponse', # 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) diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index aae1f86..eaeb96c 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.6/python' + self.user_agent = 'Swagger-Codegen/2.3.7/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 889751b..d4e9519 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.6".\ + "SDK Package Version: 2.3.7".\ 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 2f3e8cb..49ed4e8 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -36,6 +36,7 @@ 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.create_zip_archive_request import CreateZipArchiveRequest 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 @@ -72,6 +73,12 @@ from cloudmersive_convert_api_client.models.docx_text import DocxText from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment from cloudmersive_convert_api_client.models.exif_value import ExifValue +from cloudmersive_convert_api_client.models.find_regex_match import FindRegexMatch +from cloudmersive_convert_api_client.models.find_string_match import FindStringMatch +from cloudmersive_convert_api_client.models.find_string_regex_request import FindStringRegexRequest +from cloudmersive_convert_api_client.models.find_string_regex_response import FindStringRegexResponse +from cloudmersive_convert_api_client.models.find_string_simple_request import FindStringSimpleRequest +from cloudmersive_convert_api_client.models.find_string_simple_response import FindStringSimpleResponse from cloudmersive_convert_api_client.models.finish_editing_request import FinishEditingRequest from cloudmersive_convert_api_client.models.get_docx_body_request import GetDocxBodyRequest from cloudmersive_convert_api_client.models.get_docx_body_response import GetDocxBodyResponse @@ -149,7 +156,11 @@ from cloudmersive_convert_api_client.models.remove_whitespace_from_text_request import RemoveWhitespaceFromTextRequest from cloudmersive_convert_api_client.models.remove_whitespace_from_text_response import RemoveWhitespaceFromTextResponse from cloudmersive_convert_api_client.models.remove_xlsx_worksheet_request import RemoveXlsxWorksheetRequest +from cloudmersive_convert_api_client.models.replace_string_regex_request import ReplaceStringRegexRequest +from cloudmersive_convert_api_client.models.replace_string_regex_response import ReplaceStringRegexResponse from cloudmersive_convert_api_client.models.replace_string_request import ReplaceStringRequest +from cloudmersive_convert_api_client.models.replace_string_simple_request import ReplaceStringSimpleRequest +from cloudmersive_convert_api_client.models.replace_string_simple_response import ReplaceStringSimpleResponse from cloudmersive_convert_api_client.models.screenshot_request import ScreenshotRequest 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 @@ -191,3 +202,6 @@ from cloudmersive_convert_api_client.models.xml_remove_with_x_path_result import XmlRemoveWithXPathResult from cloudmersive_convert_api_client.models.xml_replace_with_x_path_result import XmlReplaceWithXPathResult from cloudmersive_convert_api_client.models.xml_set_value_with_x_path_result import XmlSetValueWithXPathResult +from cloudmersive_convert_api_client.models.zip_directory import ZipDirectory +from cloudmersive_convert_api_client.models.zip_extract_response import ZipExtractResponse +from cloudmersive_convert_api_client.models.zip_file import ZipFile diff --git a/cloudmersive_convert_api_client/models/create_zip_archive_request.py b/cloudmersive_convert_api_client/models/create_zip_archive_request.py new file mode 100644 index 0000000..783205b --- /dev/null +++ b/cloudmersive_convert_api_client/models/create_zip_archive_request.py @@ -0,0 +1,148 @@ +# 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.zip_directory import ZipDirectory # noqa: F401,E501 +from cloudmersive_convert_api_client.models.zip_file import ZipFile # noqa: F401,E501 + + +class CreateZipArchiveRequest(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 = { + 'files_in_zip': 'list[ZipFile]', + 'directories_in_zip': 'list[ZipDirectory]' + } + + attribute_map = { + 'files_in_zip': 'FilesInZip', + 'directories_in_zip': 'DirectoriesInZip' + } + + def __init__(self, files_in_zip=None, directories_in_zip=None): # noqa: E501 + """CreateZipArchiveRequest - a model defined in Swagger""" # noqa: E501 + + self._files_in_zip = None + self._directories_in_zip = None + self.discriminator = None + + if files_in_zip is not None: + self.files_in_zip = files_in_zip + if directories_in_zip is not None: + self.directories_in_zip = directories_in_zip + + @property + def files_in_zip(self): + """Gets the files_in_zip of this CreateZipArchiveRequest. # noqa: E501 + + Top-level files in the root directory fo the zip file # noqa: E501 + + :return: The files_in_zip of this CreateZipArchiveRequest. # noqa: E501 + :rtype: list[ZipFile] + """ + return self._files_in_zip + + @files_in_zip.setter + def files_in_zip(self, files_in_zip): + """Sets the files_in_zip of this CreateZipArchiveRequest. + + Top-level files in the root directory fo the zip file # noqa: E501 + + :param files_in_zip: The files_in_zip of this CreateZipArchiveRequest. # noqa: E501 + :type: list[ZipFile] + """ + + self._files_in_zip = files_in_zip + + @property + def directories_in_zip(self): + """Gets the directories_in_zip of this CreateZipArchiveRequest. # noqa: E501 + + Top-level directories in the root directory of the zip; directories can contain sub-directories and files # noqa: E501 + + :return: The directories_in_zip of this CreateZipArchiveRequest. # noqa: E501 + :rtype: list[ZipDirectory] + """ + return self._directories_in_zip + + @directories_in_zip.setter + def directories_in_zip(self, directories_in_zip): + """Sets the directories_in_zip of this CreateZipArchiveRequest. + + Top-level directories in the root directory of the zip; directories can contain sub-directories and files # noqa: E501 + + :param directories_in_zip: The directories_in_zip of this CreateZipArchiveRequest. # noqa: E501 + :type: list[ZipDirectory] + """ + + self._directories_in_zip = directories_in_zip + + 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(CreateZipArchiveRequest, 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, CreateZipArchiveRequest): + 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/find_regex_match.py b/cloudmersive_convert_api_client/models/find_regex_match.py new file mode 100644 index 0000000..e36b297 --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_regex_match.py @@ -0,0 +1,229 @@ +# 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 FindRegexMatch(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 = { + 'character_offset_start': 'int', + 'character_offset_end': 'int', + 'containing_line': 'str', + 'match_value': 'str', + 'match_groups': 'list[str]' + } + + attribute_map = { + 'character_offset_start': 'CharacterOffsetStart', + 'character_offset_end': 'CharacterOffsetEnd', + 'containing_line': 'ContainingLine', + 'match_value': 'MatchValue', + 'match_groups': 'MatchGroups' + } + + def __init__(self, character_offset_start=None, character_offset_end=None, containing_line=None, match_value=None, match_groups=None): # noqa: E501 + """FindRegexMatch - a model defined in Swagger""" # noqa: E501 + + self._character_offset_start = None + self._character_offset_end = None + self._containing_line = None + self._match_value = None + self._match_groups = None + self.discriminator = None + + if character_offset_start is not None: + self.character_offset_start = character_offset_start + if character_offset_end is not None: + self.character_offset_end = character_offset_end + if containing_line is not None: + self.containing_line = containing_line + if match_value is not None: + self.match_value = match_value + if match_groups is not None: + self.match_groups = match_groups + + @property + def character_offset_start(self): + """Gets the character_offset_start of this FindRegexMatch. # noqa: E501 + + 0-based index of the start of the match # noqa: E501 + + :return: The character_offset_start of this FindRegexMatch. # noqa: E501 + :rtype: int + """ + return self._character_offset_start + + @character_offset_start.setter + def character_offset_start(self, character_offset_start): + """Sets the character_offset_start of this FindRegexMatch. + + 0-based index of the start of the match # noqa: E501 + + :param character_offset_start: The character_offset_start of this FindRegexMatch. # noqa: E501 + :type: int + """ + + self._character_offset_start = character_offset_start + + @property + def character_offset_end(self): + """Gets the character_offset_end of this FindRegexMatch. # noqa: E501 + + 0-based index of the end of the match # noqa: E501 + + :return: The character_offset_end of this FindRegexMatch. # noqa: E501 + :rtype: int + """ + return self._character_offset_end + + @character_offset_end.setter + def character_offset_end(self, character_offset_end): + """Sets the character_offset_end of this FindRegexMatch. + + 0-based index of the end of the match # noqa: E501 + + :param character_offset_end: The character_offset_end of this FindRegexMatch. # noqa: E501 + :type: int + """ + + self._character_offset_end = character_offset_end + + @property + def containing_line(self): + """Gets the containing_line of this FindRegexMatch. # noqa: E501 + + Text content of the line containing the match # noqa: E501 + + :return: The containing_line of this FindRegexMatch. # noqa: E501 + :rtype: str + """ + return self._containing_line + + @containing_line.setter + def containing_line(self, containing_line): + """Sets the containing_line of this FindRegexMatch. + + Text content of the line containing the match # noqa: E501 + + :param containing_line: The containing_line of this FindRegexMatch. # noqa: E501 + :type: str + """ + + self._containing_line = containing_line + + @property + def match_value(self): + """Gets the match_value of this FindRegexMatch. # noqa: E501 + + The match value # noqa: E501 + + :return: The match_value of this FindRegexMatch. # noqa: E501 + :rtype: str + """ + return self._match_value + + @match_value.setter + def match_value(self, match_value): + """Sets the match_value of this FindRegexMatch. + + The match value # noqa: E501 + + :param match_value: The match_value of this FindRegexMatch. # noqa: E501 + :type: str + """ + + self._match_value = match_value + + @property + def match_groups(self): + """Gets the match_groups of this FindRegexMatch. # noqa: E501 + + Regular expression regex match groups; these correspond to the match values # noqa: E501 + + :return: The match_groups of this FindRegexMatch. # noqa: E501 + :rtype: list[str] + """ + return self._match_groups + + @match_groups.setter + def match_groups(self, match_groups): + """Sets the match_groups of this FindRegexMatch. + + Regular expression regex match groups; these correspond to the match values # noqa: E501 + + :param match_groups: The match_groups of this FindRegexMatch. # noqa: E501 + :type: list[str] + """ + + self._match_groups = match_groups + + 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(FindRegexMatch, 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, FindRegexMatch): + 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/find_string_match.py b/cloudmersive_convert_api_client/models/find_string_match.py new file mode 100644 index 0000000..9e25f80 --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_string_match.py @@ -0,0 +1,173 @@ +# 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 FindStringMatch(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 = { + 'character_offset_start': 'int', + 'character_offset_end': 'int', + 'containing_line': 'str' + } + + attribute_map = { + 'character_offset_start': 'CharacterOffsetStart', + 'character_offset_end': 'CharacterOffsetEnd', + 'containing_line': 'ContainingLine' + } + + def __init__(self, character_offset_start=None, character_offset_end=None, containing_line=None): # noqa: E501 + """FindStringMatch - a model defined in Swagger""" # noqa: E501 + + self._character_offset_start = None + self._character_offset_end = None + self._containing_line = None + self.discriminator = None + + if character_offset_start is not None: + self.character_offset_start = character_offset_start + if character_offset_end is not None: + self.character_offset_end = character_offset_end + if containing_line is not None: + self.containing_line = containing_line + + @property + def character_offset_start(self): + """Gets the character_offset_start of this FindStringMatch. # noqa: E501 + + 0-based index of the start of the match # noqa: E501 + + :return: The character_offset_start of this FindStringMatch. # noqa: E501 + :rtype: int + """ + return self._character_offset_start + + @character_offset_start.setter + def character_offset_start(self, character_offset_start): + """Sets the character_offset_start of this FindStringMatch. + + 0-based index of the start of the match # noqa: E501 + + :param character_offset_start: The character_offset_start of this FindStringMatch. # noqa: E501 + :type: int + """ + + self._character_offset_start = character_offset_start + + @property + def character_offset_end(self): + """Gets the character_offset_end of this FindStringMatch. # noqa: E501 + + 0-based index of the end of the match # noqa: E501 + + :return: The character_offset_end of this FindStringMatch. # noqa: E501 + :rtype: int + """ + return self._character_offset_end + + @character_offset_end.setter + def character_offset_end(self, character_offset_end): + """Sets the character_offset_end of this FindStringMatch. + + 0-based index of the end of the match # noqa: E501 + + :param character_offset_end: The character_offset_end of this FindStringMatch. # noqa: E501 + :type: int + """ + + self._character_offset_end = character_offset_end + + @property + def containing_line(self): + """Gets the containing_line of this FindStringMatch. # noqa: E501 + + Text content of the line containing the match # noqa: E501 + + :return: The containing_line of this FindStringMatch. # noqa: E501 + :rtype: str + """ + return self._containing_line + + @containing_line.setter + def containing_line(self, containing_line): + """Sets the containing_line of this FindStringMatch. + + Text content of the line containing the match # noqa: E501 + + :param containing_line: The containing_line of this FindStringMatch. # noqa: E501 + :type: str + """ + + self._containing_line = containing_line + + 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(FindStringMatch, 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, FindStringMatch): + 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/find_string_regex_request.py b/cloudmersive_convert_api_client/models/find_string_regex_request.py new file mode 100644 index 0000000..d489160 --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_string_regex_request.py @@ -0,0 +1,173 @@ +# 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 FindStringRegexRequest(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 = { + 'text_content': 'str', + 'target_regex': 'str', + 'match_case': 'bool' + } + + attribute_map = { + 'text_content': 'TextContent', + 'target_regex': 'TargetRegex', + 'match_case': 'MatchCase' + } + + def __init__(self, text_content=None, target_regex=None, match_case=None): # noqa: E501 + """FindStringRegexRequest - a model defined in Swagger""" # noqa: E501 + + self._text_content = None + self._target_regex = None + self._match_case = None + self.discriminator = None + + if text_content is not None: + self.text_content = text_content + if target_regex is not None: + self.target_regex = target_regex + if match_case is not None: + self.match_case = match_case + + @property + def text_content(self): + """Gets the text_content of this FindStringRegexRequest. # noqa: E501 + + Input text content # noqa: E501 + + :return: The text_content of this FindStringRegexRequest. # noqa: E501 + :rtype: str + """ + return self._text_content + + @text_content.setter + def text_content(self, text_content): + """Sets the text_content of this FindStringRegexRequest. + + Input text content # noqa: E501 + + :param text_content: The text_content of this FindStringRegexRequest. # noqa: E501 + :type: str + """ + + self._text_content = text_content + + @property + def target_regex(self): + """Gets the target_regex of this FindStringRegexRequest. # noqa: E501 + + Target input regular expression (regex) to find # noqa: E501 + + :return: The target_regex of this FindStringRegexRequest. # noqa: E501 + :rtype: str + """ + return self._target_regex + + @target_regex.setter + def target_regex(self, target_regex): + """Sets the target_regex of this FindStringRegexRequest. + + Target input regular expression (regex) to find # noqa: E501 + + :param target_regex: The target_regex of this FindStringRegexRequest. # noqa: E501 + :type: str + """ + + self._target_regex = target_regex + + @property + def match_case(self): + """Gets the match_case of this FindStringRegexRequest. # noqa: E501 + + Set to True to match case, False to ignore case # noqa: E501 + + :return: The match_case of this FindStringRegexRequest. # noqa: E501 + :rtype: bool + """ + return self._match_case + + @match_case.setter + def match_case(self, match_case): + """Sets the match_case of this FindStringRegexRequest. + + Set to True to match case, False to ignore case # noqa: E501 + + :param match_case: The match_case of this FindStringRegexRequest. # noqa: E501 + :type: bool + """ + + self._match_case = match_case + + 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(FindStringRegexRequest, 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, FindStringRegexRequest): + 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/find_string_regex_response.py b/cloudmersive_convert_api_client/models/find_string_regex_response.py new file mode 100644 index 0000000..039c852 --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_string_regex_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.find_regex_match import FindRegexMatch # noqa: F401,E501 + + +class FindStringRegexResponse(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', + 'matches': 'list[FindRegexMatch]', + 'match_count': 'int' + } + + attribute_map = { + 'successful': 'Successful', + 'matches': 'Matches', + 'match_count': 'MatchCount' + } + + def __init__(self, successful=None, matches=None, match_count=None): # noqa: E501 + """FindStringRegexResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._matches = None + self._match_count = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if matches is not None: + self.matches = matches + if match_count is not None: + self.match_count = match_count + + @property + def successful(self): + """Gets the successful of this FindStringRegexResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this FindStringRegexResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this FindStringRegexResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this FindStringRegexResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def matches(self): + """Gets the matches of this FindStringRegexResponse. # noqa: E501 + + Regular expression matches # noqa: E501 + + :return: The matches of this FindStringRegexResponse. # noqa: E501 + :rtype: list[FindRegexMatch] + """ + return self._matches + + @matches.setter + def matches(self, matches): + """Sets the matches of this FindStringRegexResponse. + + Regular expression matches # noqa: E501 + + :param matches: The matches of this FindStringRegexResponse. # noqa: E501 + :type: list[FindRegexMatch] + """ + + self._matches = matches + + @property + def match_count(self): + """Gets the match_count of this FindStringRegexResponse. # noqa: E501 + + The number of matches # noqa: E501 + + :return: The match_count of this FindStringRegexResponse. # noqa: E501 + :rtype: int + """ + return self._match_count + + @match_count.setter + def match_count(self, match_count): + """Sets the match_count of this FindStringRegexResponse. + + The number of matches # noqa: E501 + + :param match_count: The match_count of this FindStringRegexResponse. # noqa: E501 + :type: int + """ + + self._match_count = match_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FindStringRegexResponse, 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, FindStringRegexResponse): + 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/find_string_simple_request.py b/cloudmersive_convert_api_client/models/find_string_simple_request.py new file mode 100644 index 0000000..7b5d60b --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_string_simple_request.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 FindStringSimpleRequest(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 = { + 'text_content': 'str', + 'target_string': 'str' + } + + attribute_map = { + 'text_content': 'TextContent', + 'target_string': 'TargetString' + } + + def __init__(self, text_content=None, target_string=None): # noqa: E501 + """FindStringSimpleRequest - a model defined in Swagger""" # noqa: E501 + + self._text_content = None + self._target_string = None + self.discriminator = None + + if text_content is not None: + self.text_content = text_content + if target_string is not None: + self.target_string = target_string + + @property + def text_content(self): + """Gets the text_content of this FindStringSimpleRequest. # noqa: E501 + + Input text content # noqa: E501 + + :return: The text_content of this FindStringSimpleRequest. # noqa: E501 + :rtype: str + """ + return self._text_content + + @text_content.setter + def text_content(self, text_content): + """Sets the text_content of this FindStringSimpleRequest. + + Input text content # noqa: E501 + + :param text_content: The text_content of this FindStringSimpleRequest. # noqa: E501 + :type: str + """ + + self._text_content = text_content + + @property + def target_string(self): + """Gets the target_string of this FindStringSimpleRequest. # noqa: E501 + + Target input string to find # noqa: E501 + + :return: The target_string of this FindStringSimpleRequest. # noqa: E501 + :rtype: str + """ + return self._target_string + + @target_string.setter + def target_string(self, target_string): + """Sets the target_string of this FindStringSimpleRequest. + + Target input string to find # noqa: E501 + + :param target_string: The target_string of this FindStringSimpleRequest. # noqa: E501 + :type: str + """ + + self._target_string = target_string + + 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(FindStringSimpleRequest, 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, FindStringSimpleRequest): + 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/find_string_simple_response.py b/cloudmersive_convert_api_client/models/find_string_simple_response.py new file mode 100644 index 0000000..0daf1d2 --- /dev/null +++ b/cloudmersive_convert_api_client/models/find_string_simple_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.find_string_match import FindStringMatch # noqa: F401,E501 + + +class FindStringSimpleResponse(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', + 'matches': 'list[FindStringMatch]', + 'match_count': 'int' + } + + attribute_map = { + 'successful': 'Successful', + 'matches': 'Matches', + 'match_count': 'MatchCount' + } + + def __init__(self, successful=None, matches=None, match_count=None): # noqa: E501 + """FindStringSimpleResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._matches = None + self._match_count = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if matches is not None: + self.matches = matches + if match_count is not None: + self.match_count = match_count + + @property + def successful(self): + """Gets the successful of this FindStringSimpleResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this FindStringSimpleResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this FindStringSimpleResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this FindStringSimpleResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def matches(self): + """Gets the matches of this FindStringSimpleResponse. # noqa: E501 + + Found matches # noqa: E501 + + :return: The matches of this FindStringSimpleResponse. # noqa: E501 + :rtype: list[FindStringMatch] + """ + return self._matches + + @matches.setter + def matches(self, matches): + """Sets the matches of this FindStringSimpleResponse. + + Found matches # noqa: E501 + + :param matches: The matches of this FindStringSimpleResponse. # noqa: E501 + :type: list[FindStringMatch] + """ + + self._matches = matches + + @property + def match_count(self): + """Gets the match_count of this FindStringSimpleResponse. # noqa: E501 + + The number of matches # noqa: E501 + + :return: The match_count of this FindStringSimpleResponse. # noqa: E501 + :rtype: int + """ + return self._match_count + + @match_count.setter + def match_count(self, match_count): + """Sets the match_count of this FindStringSimpleResponse. + + The number of matches # noqa: E501 + + :param match_count: The match_count of this FindStringSimpleResponse. # noqa: E501 + :type: int + """ + + self._match_count = match_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FindStringSimpleResponse, 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, FindStringSimpleResponse): + 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/replace_string_regex_request.py b/cloudmersive_convert_api_client/models/replace_string_regex_request.py new file mode 100644 index 0000000..ff0dbff --- /dev/null +++ b/cloudmersive_convert_api_client/models/replace_string_regex_request.py @@ -0,0 +1,173 @@ +# 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 ReplaceStringRegexRequest(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 = { + 'text_content': 'str', + 'regular_expression_string': 'str', + 'replace_with_string': 'str' + } + + attribute_map = { + 'text_content': 'TextContent', + 'regular_expression_string': 'RegularExpressionString', + 'replace_with_string': 'ReplaceWithString' + } + + def __init__(self, text_content=None, regular_expression_string=None, replace_with_string=None): # noqa: E501 + """ReplaceStringRegexRequest - a model defined in Swagger""" # noqa: E501 + + self._text_content = None + self._regular_expression_string = None + self._replace_with_string = None + self.discriminator = None + + if text_content is not None: + self.text_content = text_content + if regular_expression_string is not None: + self.regular_expression_string = regular_expression_string + if replace_with_string is not None: + self.replace_with_string = replace_with_string + + @property + def text_content(self): + """Gets the text_content of this ReplaceStringRegexRequest. # noqa: E501 + + Input text content # noqa: E501 + + :return: The text_content of this ReplaceStringRegexRequest. # noqa: E501 + :rtype: str + """ + return self._text_content + + @text_content.setter + def text_content(self, text_content): + """Sets the text_content of this ReplaceStringRegexRequest. + + Input text content # noqa: E501 + + :param text_content: The text_content of this ReplaceStringRegexRequest. # noqa: E501 + :type: str + """ + + self._text_content = text_content + + @property + def regular_expression_string(self): + """Gets the regular_expression_string of this ReplaceStringRegexRequest. # noqa: E501 + + Target input regular expression (regex) string to match and be replaced; supports all regular expression values # noqa: E501 + + :return: The regular_expression_string of this ReplaceStringRegexRequest. # noqa: E501 + :rtype: str + """ + return self._regular_expression_string + + @regular_expression_string.setter + def regular_expression_string(self, regular_expression_string): + """Sets the regular_expression_string of this ReplaceStringRegexRequest. + + Target input regular expression (regex) string to match and be replaced; supports all regular expression values # noqa: E501 + + :param regular_expression_string: The regular_expression_string of this ReplaceStringRegexRequest. # noqa: E501 + :type: str + """ + + self._regular_expression_string = regular_expression_string + + @property + def replace_with_string(self): + """Gets the replace_with_string of this ReplaceStringRegexRequest. # noqa: E501 + + Replacement for target string; supports referencing indexed regex matched values from RegularExpressionString, such as $1, $2, and so on # noqa: E501 + + :return: The replace_with_string of this ReplaceStringRegexRequest. # noqa: E501 + :rtype: str + """ + return self._replace_with_string + + @replace_with_string.setter + def replace_with_string(self, replace_with_string): + """Sets the replace_with_string of this ReplaceStringRegexRequest. + + Replacement for target string; supports referencing indexed regex matched values from RegularExpressionString, such as $1, $2, and so on # noqa: E501 + + :param replace_with_string: The replace_with_string of this ReplaceStringRegexRequest. # noqa: E501 + :type: str + """ + + self._replace_with_string = replace_with_string + + 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(ReplaceStringRegexRequest, 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, ReplaceStringRegexRequest): + 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/replace_string_regex_response.py b/cloudmersive_convert_api_client/models/replace_string_regex_response.py new file mode 100644 index 0000000..e5c9d68 --- /dev/null +++ b/cloudmersive_convert_api_client/models/replace_string_regex_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 ReplaceStringRegexResponse(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', + 'text_content_result': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'text_content_result': 'TextContentResult' + } + + def __init__(self, successful=None, text_content_result=None): # noqa: E501 + """ReplaceStringRegexResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._text_content_result = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if text_content_result is not None: + self.text_content_result = text_content_result + + @property + def successful(self): + """Gets the successful of this ReplaceStringRegexResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this ReplaceStringRegexResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this ReplaceStringRegexResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this ReplaceStringRegexResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def text_content_result(self): + """Gets the text_content_result of this ReplaceStringRegexResponse. # noqa: E501 + + Result of performing a base 64 decode operation, binary file content # noqa: E501 + + :return: The text_content_result of this ReplaceStringRegexResponse. # noqa: E501 + :rtype: str + """ + return self._text_content_result + + @text_content_result.setter + def text_content_result(self, text_content_result): + """Sets the text_content_result of this ReplaceStringRegexResponse. + + Result of performing a base 64 decode operation, binary file content # noqa: E501 + + :param text_content_result: The text_content_result of this ReplaceStringRegexResponse. # noqa: E501 + :type: str + """ + + self._text_content_result = text_content_result + + 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(ReplaceStringRegexResponse, 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, ReplaceStringRegexResponse): + 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/replace_string_simple_request.py b/cloudmersive_convert_api_client/models/replace_string_simple_request.py new file mode 100644 index 0000000..d528b68 --- /dev/null +++ b/cloudmersive_convert_api_client/models/replace_string_simple_request.py @@ -0,0 +1,173 @@ +# 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 ReplaceStringSimpleRequest(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 = { + 'text_content': 'str', + 'target_string': 'str', + 'replace_with_string': 'str' + } + + attribute_map = { + 'text_content': 'TextContent', + 'target_string': 'TargetString', + 'replace_with_string': 'ReplaceWithString' + } + + def __init__(self, text_content=None, target_string=None, replace_with_string=None): # noqa: E501 + """ReplaceStringSimpleRequest - a model defined in Swagger""" # noqa: E501 + + self._text_content = None + self._target_string = None + self._replace_with_string = None + self.discriminator = None + + if text_content is not None: + self.text_content = text_content + if target_string is not None: + self.target_string = target_string + if replace_with_string is not None: + self.replace_with_string = replace_with_string + + @property + def text_content(self): + """Gets the text_content of this ReplaceStringSimpleRequest. # noqa: E501 + + Input text content # noqa: E501 + + :return: The text_content of this ReplaceStringSimpleRequest. # noqa: E501 + :rtype: str + """ + return self._text_content + + @text_content.setter + def text_content(self, text_content): + """Sets the text_content of this ReplaceStringSimpleRequest. + + Input text content # noqa: E501 + + :param text_content: The text_content of this ReplaceStringSimpleRequest. # noqa: E501 + :type: str + """ + + self._text_content = text_content + + @property + def target_string(self): + """Gets the target_string of this ReplaceStringSimpleRequest. # noqa: E501 + + Target input string to match and be replaced # noqa: E501 + + :return: The target_string of this ReplaceStringSimpleRequest. # noqa: E501 + :rtype: str + """ + return self._target_string + + @target_string.setter + def target_string(self, target_string): + """Sets the target_string of this ReplaceStringSimpleRequest. + + Target input string to match and be replaced # noqa: E501 + + :param target_string: The target_string of this ReplaceStringSimpleRequest. # noqa: E501 + :type: str + """ + + self._target_string = target_string + + @property + def replace_with_string(self): + """Gets the replace_with_string of this ReplaceStringSimpleRequest. # noqa: E501 + + Replacement for target string # noqa: E501 + + :return: The replace_with_string of this ReplaceStringSimpleRequest. # noqa: E501 + :rtype: str + """ + return self._replace_with_string + + @replace_with_string.setter + def replace_with_string(self, replace_with_string): + """Sets the replace_with_string of this ReplaceStringSimpleRequest. + + Replacement for target string # noqa: E501 + + :param replace_with_string: The replace_with_string of this ReplaceStringSimpleRequest. # noqa: E501 + :type: str + """ + + self._replace_with_string = replace_with_string + + 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(ReplaceStringSimpleRequest, 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, ReplaceStringSimpleRequest): + 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/replace_string_simple_response.py b/cloudmersive_convert_api_client/models/replace_string_simple_response.py new file mode 100644 index 0000000..183bf7d --- /dev/null +++ b/cloudmersive_convert_api_client/models/replace_string_simple_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 ReplaceStringSimpleResponse(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', + 'text_content_result': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'text_content_result': 'TextContentResult' + } + + def __init__(self, successful=None, text_content_result=None): # noqa: E501 + """ReplaceStringSimpleResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._text_content_result = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if text_content_result is not None: + self.text_content_result = text_content_result + + @property + def successful(self): + """Gets the successful of this ReplaceStringSimpleResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this ReplaceStringSimpleResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this ReplaceStringSimpleResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this ReplaceStringSimpleResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def text_content_result(self): + """Gets the text_content_result of this ReplaceStringSimpleResponse. # noqa: E501 + + Result of performing a replace string operation # noqa: E501 + + :return: The text_content_result of this ReplaceStringSimpleResponse. # noqa: E501 + :rtype: str + """ + return self._text_content_result + + @text_content_result.setter + def text_content_result(self, text_content_result): + """Sets the text_content_result of this ReplaceStringSimpleResponse. + + Result of performing a replace string operation # noqa: E501 + + :param text_content_result: The text_content_result of this ReplaceStringSimpleResponse. # noqa: E501 + :type: str + """ + + self._text_content_result = text_content_result + + 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(ReplaceStringSimpleResponse, 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, ReplaceStringSimpleResponse): + 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/zip_directory.py b/cloudmersive_convert_api_client/models/zip_directory.py new file mode 100644 index 0000000..83c6a9c --- /dev/null +++ b/cloudmersive_convert_api_client/models/zip_directory.py @@ -0,0 +1,176 @@ +# 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.zip_directory import ZipDirectory # noqa: F401,E501 +from cloudmersive_convert_api_client.models.zip_file import ZipFile # noqa: F401,E501 + + +class ZipDirectory(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 = { + 'directory_name': 'str', + 'directories_in_directory': 'list[ZipDirectory]', + 'files_in_directory': 'list[ZipFile]' + } + + attribute_map = { + 'directory_name': 'DirectoryName', + 'directories_in_directory': 'DirectoriesInDirectory', + 'files_in_directory': 'FilesInDirectory' + } + + def __init__(self, directory_name=None, directories_in_directory=None, files_in_directory=None): # noqa: E501 + """ZipDirectory - a model defined in Swagger""" # noqa: E501 + + self._directory_name = None + self._directories_in_directory = None + self._files_in_directory = None + self.discriminator = None + + if directory_name is not None: + self.directory_name = directory_name + if directories_in_directory is not None: + self.directories_in_directory = directories_in_directory + if files_in_directory is not None: + self.files_in_directory = files_in_directory + + @property + def directory_name(self): + """Gets the directory_name of this ZipDirectory. # noqa: E501 + + Name of this directory # noqa: E501 + + :return: The directory_name of this ZipDirectory. # noqa: E501 + :rtype: str + """ + return self._directory_name + + @directory_name.setter + def directory_name(self, directory_name): + """Sets the directory_name of this ZipDirectory. + + Name of this directory # noqa: E501 + + :param directory_name: The directory_name of this ZipDirectory. # noqa: E501 + :type: str + """ + + self._directory_name = directory_name + + @property + def directories_in_directory(self): + """Gets the directories_in_directory of this ZipDirectory. # noqa: E501 + + Child directories contained directly in this directory # noqa: E501 + + :return: The directories_in_directory of this ZipDirectory. # noqa: E501 + :rtype: list[ZipDirectory] + """ + return self._directories_in_directory + + @directories_in_directory.setter + def directories_in_directory(self, directories_in_directory): + """Sets the directories_in_directory of this ZipDirectory. + + Child directories contained directly in this directory # noqa: E501 + + :param directories_in_directory: The directories_in_directory of this ZipDirectory. # noqa: E501 + :type: list[ZipDirectory] + """ + + self._directories_in_directory = directories_in_directory + + @property + def files_in_directory(self): + """Gets the files_in_directory of this ZipDirectory. # noqa: E501 + + Child files contained directly in this directory # noqa: E501 + + :return: The files_in_directory of this ZipDirectory. # noqa: E501 + :rtype: list[ZipFile] + """ + return self._files_in_directory + + @files_in_directory.setter + def files_in_directory(self, files_in_directory): + """Sets the files_in_directory of this ZipDirectory. + + Child files contained directly in this directory # noqa: E501 + + :param files_in_directory: The files_in_directory of this ZipDirectory. # noqa: E501 + :type: list[ZipFile] + """ + + self._files_in_directory = files_in_directory + + 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(ZipDirectory, 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, ZipDirectory): + 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/zip_extract_response.py b/cloudmersive_convert_api_client/models/zip_extract_response.py new file mode 100644 index 0000000..2d2cbd1 --- /dev/null +++ b/cloudmersive_convert_api_client/models/zip_extract_response.py @@ -0,0 +1,176 @@ +# 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.zip_directory import ZipDirectory # noqa: F401,E501 +from cloudmersive_convert_api_client.models.zip_file import ZipFile # noqa: F401,E501 + + +class ZipExtractResponse(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', + 'files_in_zip': 'list[ZipFile]', + 'directories_in_zip': 'list[ZipDirectory]' + } + + attribute_map = { + 'successful': 'Successful', + 'files_in_zip': 'FilesInZip', + 'directories_in_zip': 'DirectoriesInZip' + } + + def __init__(self, successful=None, files_in_zip=None, directories_in_zip=None): # noqa: E501 + """ZipExtractResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._files_in_zip = None + self._directories_in_zip = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if files_in_zip is not None: + self.files_in_zip = files_in_zip + if directories_in_zip is not None: + self.directories_in_zip = directories_in_zip + + @property + def successful(self): + """Gets the successful of this ZipExtractResponse. # noqa: E501 + + True if the operation was successful, false otherwise # noqa: E501 + + :return: The successful of this ZipExtractResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this ZipExtractResponse. + + True if the operation was successful, false otherwise # noqa: E501 + + :param successful: The successful of this ZipExtractResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def files_in_zip(self): + """Gets the files_in_zip of this ZipExtractResponse. # noqa: E501 + + Top-level files in the root directory fo the zip file # noqa: E501 + + :return: The files_in_zip of this ZipExtractResponse. # noqa: E501 + :rtype: list[ZipFile] + """ + return self._files_in_zip + + @files_in_zip.setter + def files_in_zip(self, files_in_zip): + """Sets the files_in_zip of this ZipExtractResponse. + + Top-level files in the root directory fo the zip file # noqa: E501 + + :param files_in_zip: The files_in_zip of this ZipExtractResponse. # noqa: E501 + :type: list[ZipFile] + """ + + self._files_in_zip = files_in_zip + + @property + def directories_in_zip(self): + """Gets the directories_in_zip of this ZipExtractResponse. # noqa: E501 + + Top-level directories in the root directory of the zip; directories can contain sub-directories and files # noqa: E501 + + :return: The directories_in_zip of this ZipExtractResponse. # noqa: E501 + :rtype: list[ZipDirectory] + """ + return self._directories_in_zip + + @directories_in_zip.setter + def directories_in_zip(self, directories_in_zip): + """Sets the directories_in_zip of this ZipExtractResponse. + + Top-level directories in the root directory of the zip; directories can contain sub-directories and files # noqa: E501 + + :param directories_in_zip: The directories_in_zip of this ZipExtractResponse. # noqa: E501 + :type: list[ZipDirectory] + """ + + self._directories_in_zip = directories_in_zip + + 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(ZipExtractResponse, 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, ZipExtractResponse): + 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/zip_file.py b/cloudmersive_convert_api_client/models/zip_file.py new file mode 100644 index 0000000..c88d86f --- /dev/null +++ b/cloudmersive_convert_api_client/models/zip_file.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ZipFile(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 = { + 'file_name': 'str', + 'file_contents': 'str' + } + + attribute_map = { + 'file_name': 'FileName', + 'file_contents': 'FileContents' + } + + def __init__(self, file_name=None, file_contents=None): # noqa: E501 + """ZipFile - a model defined in Swagger""" # noqa: E501 + + self._file_name = None + self._file_contents = None + self.discriminator = None + + if file_name is not None: + self.file_name = file_name + if file_contents is not None: + self.file_contents = file_contents + + @property + def file_name(self): + """Gets the file_name of this ZipFile. # noqa: E501 + + Name of this file # noqa: E501 + + :return: The file_name of this ZipFile. # noqa: E501 + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this ZipFile. + + Name of this file # noqa: E501 + + :param file_name: The file_name of this ZipFile. # noqa: E501 + :type: str + """ + + self._file_name = file_name + + @property + def file_contents(self): + """Gets the file_contents of this ZipFile. # noqa: E501 + + Contents of this file # noqa: E501 + + :return: The file_contents of this ZipFile. # noqa: E501 + :rtype: str + """ + return self._file_contents + + @file_contents.setter + def file_contents(self, file_contents): + """Sets the file_contents of this ZipFile. + + Contents of this file # noqa: E501 + + :param file_contents: The file_contents of this ZipFile. # noqa: E501 + :type: str + """ + if file_contents is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', file_contents): # noqa: E501 + raise ValueError(r"Invalid value for `file_contents`, 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._file_contents = file_contents + + 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(ZipFile, 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, ZipFile): + 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/ConvertDataApi.md b/docs/ConvertDataApi.md index ca9bc48..8e87e60 100644 --- a/docs/ConvertDataApi.md +++ b/docs/ConvertDataApi.md @@ -98,7 +98,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertDataApi(cloudmersive_convert_api_client.ApiClient(configuration)) -json_object = NULL # object | +json_object = NULL # object | Input JSON to convert to XML try: # Convert JSON to XML conversion @@ -112,7 +112,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **json_object** | **object**| | + **json_object** | **object**| Input JSON to convert to XML | ### Return type diff --git a/docs/ConvertWebApi.md b/docs/ConvertWebApi.md index 86e389f..4b80a05 100644 --- a/docs/ConvertWebApi.md +++ b/docs/ConvertWebApi.md @@ -7,11 +7,11 @@ Method | HTTP request | Description [**convert_web_html_to_docx**](ConvertWebApi.md#convert_web_html_to_docx) | **POST** /convert/html/to/docx | Convert HTML to Word DOCX Document [**convert_web_html_to_pdf**](ConvertWebApi.md#convert_web_html_to_pdf) | **POST** /convert/web/html/to/pdf | Convert HTML string to PDF [**convert_web_html_to_png**](ConvertWebApi.md#convert_web_html_to_png) | **POST** /convert/web/html/to/png | Convert HTML string to PNG screenshot -[**convert_web_html_to_txt**](ConvertWebApi.md#convert_web_html_to_txt) | **POST** /convert/web/url/to/txt | Convert website URL page to text (txt) -[**convert_web_html_to_txt_0**](ConvertWebApi.md#convert_web_html_to_txt_0) | **POST** /convert/web/html/to/txt | Convert HTML string to text (txt) +[**convert_web_html_to_txt**](ConvertWebApi.md#convert_web_html_to_txt) | **POST** /convert/web/html/to/txt | Convert HTML string to text (txt) [**convert_web_md_to_html**](ConvertWebApi.md#convert_web_md_to_html) | **POST** /convert/web/md/to/html | Convert Markdown to HTML [**convert_web_url_to_pdf**](ConvertWebApi.md#convert_web_url_to_pdf) | **POST** /convert/web/url/to/pdf | Convert a URL to PDF [**convert_web_url_to_screenshot**](ConvertWebApi.md#convert_web_url_to_screenshot) | **POST** /convert/web/url/to/screenshot | Take screenshot of URL +[**convert_web_url_to_txt**](ConvertWebApi.md#convert_web_url_to_txt) | **POST** /convert/web/url/to/txt | Convert website URL page to text (txt) # **convert_web_html_to_docx** @@ -177,11 +177,11 @@ 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) # **convert_web_html_to_txt** -> UrlToTextResponse convert_web_html_to_txt(input) +> HtmlToTextResponse convert_web_html_to_txt(input) -Convert website URL page to text (txt) +Convert HTML string to text (txt) -Converts a website URL page into text (txt); extracts text from HTML +Converts an HTML string input into text (txt); extracts text from HTML ### Example ```python @@ -199,10 +199,10 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertWebApi(cloudmersive_convert_api_client.ApiClient(configuration)) -input = cloudmersive_convert_api_client.UrlToTextRequest() # UrlToTextRequest | HTML to Text request parameters +input = cloudmersive_convert_api_client.HtmlToTextRequest() # HtmlToTextRequest | HTML to Text request parameters try: - # Convert website URL page to text (txt) + # Convert HTML string to text (txt) api_response = api_instance.convert_web_html_to_txt(input) pprint(api_response) except ApiException as e: @@ -213,11 +213,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **input** | [**UrlToTextRequest**](UrlToTextRequest.md)| HTML to Text request parameters | + **input** | [**HtmlToTextRequest**](HtmlToTextRequest.md)| HTML to Text request parameters | ### Return type -[**UrlToTextResponse**](UrlToTextResponse.md) +[**HtmlToTextResponse**](HtmlToTextResponse.md) ### Authorization @@ -230,12 +230,12 @@ 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) -# **convert_web_html_to_txt_0** -> HtmlToTextResponse convert_web_html_to_txt_0(input) +# **convert_web_md_to_html** +> HtmlMdResult convert_web_md_to_html(input_file) -Convert HTML string to text (txt) +Convert Markdown to HTML -Converts an HTML string input into text (txt); extracts text from HTML +Convert a markdown file (.md) to HTML ### Example ```python @@ -253,25 +253,25 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertWebApi(cloudmersive_convert_api_client.ApiClient(configuration)) -input = cloudmersive_convert_api_client.HtmlToTextRequest() # HtmlToTextRequest | HTML to Text request parameters +input_file = '/path/to/file.txt' # file | Input file to perform the operation on. try: - # Convert HTML string to text (txt) - api_response = api_instance.convert_web_html_to_txt_0(input) + # Convert Markdown to HTML + api_response = api_instance.convert_web_md_to_html(input_file) pprint(api_response) except ApiException as e: - print("Exception when calling ConvertWebApi->convert_web_html_to_txt_0: %s\n" % e) + print("Exception when calling ConvertWebApi->convert_web_md_to_html: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **input** | [**HtmlToTextRequest**](HtmlToTextRequest.md)| HTML to Text request parameters | + **input_file** | **file**| Input file to perform the operation on. | ### Return type -[**HtmlToTextResponse**](HtmlToTextResponse.md) +[**HtmlMdResult**](HtmlMdResult.md) ### Authorization @@ -279,17 +279,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Content-Type**: multipart/form-data - **Accept**: application/octet-stream [[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) -# **convert_web_md_to_html** -> HtmlMdResult convert_web_md_to_html(input_file) +# **convert_web_url_to_pdf** +> str convert_web_url_to_pdf(input) -Convert Markdown to HTML +Convert a URL to PDF -Convert a markdown file (.md) to HTML +Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. ### Example ```python @@ -307,25 +307,25 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertWebApi(cloudmersive_convert_api_client.ApiClient(configuration)) -input_file = '/path/to/file.txt' # file | Input file to perform the operation on. +input = cloudmersive_convert_api_client.ScreenshotRequest() # ScreenshotRequest | URL to PDF request parameters try: - # Convert Markdown to HTML - api_response = api_instance.convert_web_md_to_html(input_file) + # Convert a URL to PDF + api_response = api_instance.convert_web_url_to_pdf(input) pprint(api_response) except ApiException as e: - print("Exception when calling ConvertWebApi->convert_web_md_to_html: %s\n" % e) + print("Exception when calling ConvertWebApi->convert_web_url_to_pdf: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **input_file** | **file**| Input file to perform the operation on. | + **input** | [**ScreenshotRequest**](ScreenshotRequest.md)| URL to PDF request parameters | ### Return type -[**HtmlMdResult**](HtmlMdResult.md) +**str** ### Authorization @@ -333,17 +333,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/octet-stream [[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) -# **convert_web_url_to_pdf** -> str convert_web_url_to_pdf(input) +# **convert_web_url_to_screenshot** +> str convert_web_url_to_screenshot(input) -Convert a URL to PDF +Take screenshot of URL -Fully renders a website and returns a PDF of the full page. Javascript, HTML5, CSS and other advanced features are all supported. +Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. ### Example ```python @@ -361,21 +361,21 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertWebApi(cloudmersive_convert_api_client.ApiClient(configuration)) -input = cloudmersive_convert_api_client.ScreenshotRequest() # ScreenshotRequest | URL to PDF request parameters +input = cloudmersive_convert_api_client.ScreenshotRequest() # ScreenshotRequest | Screenshot request parameters try: - # Convert a URL to PDF - api_response = api_instance.convert_web_url_to_pdf(input) + # Take screenshot of URL + api_response = api_instance.convert_web_url_to_screenshot(input) pprint(api_response) except ApiException as e: - print("Exception when calling ConvertWebApi->convert_web_url_to_pdf: %s\n" % e) + print("Exception when calling ConvertWebApi->convert_web_url_to_screenshot: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **input** | [**ScreenshotRequest**](ScreenshotRequest.md)| URL to PDF request parameters | + **input** | [**ScreenshotRequest**](ScreenshotRequest.md)| Screenshot request parameters | ### Return type @@ -392,12 +392,12 @@ 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) -# **convert_web_url_to_screenshot** -> str convert_web_url_to_screenshot(input) +# **convert_web_url_to_txt** +> UrlToTextResponse convert_web_url_to_txt(input) -Take screenshot of URL +Convert website URL page to text (txt) -Fully renders a website and returns a PNG screenshot of the full page image. Javascript, HTML5, CSS and other advanced features are all supported. +Converts a website URL page into text (txt); extracts text from HTML ### Example ```python @@ -415,25 +415,25 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.ConvertWebApi(cloudmersive_convert_api_client.ApiClient(configuration)) -input = cloudmersive_convert_api_client.ScreenshotRequest() # ScreenshotRequest | Screenshot request parameters +input = cloudmersive_convert_api_client.UrlToTextRequest() # UrlToTextRequest | HTML to Text request parameters try: - # Take screenshot of URL - api_response = api_instance.convert_web_url_to_screenshot(input) + # Convert website URL page to text (txt) + api_response = api_instance.convert_web_url_to_txt(input) pprint(api_response) except ApiException as e: - print("Exception when calling ConvertWebApi->convert_web_url_to_screenshot: %s\n" % e) + print("Exception when calling ConvertWebApi->convert_web_url_to_txt: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **input** | [**ScreenshotRequest**](ScreenshotRequest.md)| Screenshot request parameters | + **input** | [**UrlToTextRequest**](UrlToTextRequest.md)| HTML to Text request parameters | ### Return type -**str** +[**UrlToTextResponse**](UrlToTextResponse.md) ### Authorization diff --git a/docs/CreateZipArchiveRequest.md b/docs/CreateZipArchiveRequest.md new file mode 100644 index 0000000..ae27d2e --- /dev/null +++ b/docs/CreateZipArchiveRequest.md @@ -0,0 +1,11 @@ +# CreateZipArchiveRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files_in_zip** | [**list[ZipFile]**](ZipFile.md) | Top-level files in the root directory fo the zip file | [optional] +**directories_in_zip** | [**list[ZipDirectory]**](ZipDirectory.md) | Top-level directories in the root directory of the zip; directories can contain sub-directories and files | [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/EditTextApi.md b/docs/EditTextApi.md index 9027868..d00446e 100644 --- a/docs/EditTextApi.md +++ b/docs/EditTextApi.md @@ -9,8 +9,12 @@ Method | HTTP request | Description [**edit_text_base64_encode**](EditTextApi.md#edit_text_base64_encode) | **POST** /convert/edit/text/encoding/base64/encode | Base 64 encode, convert binary or file data to a text string [**edit_text_change_line_endings**](EditTextApi.md#edit_text_change_line_endings) | **POST** /convert/edit/text/line-endings/change | Set, change line endings of a text file [**edit_text_detect_line_endings**](EditTextApi.md#edit_text_detect_line_endings) | **POST** /convert/edit/text/line-endings/detect | Detect line endings of a text file +[**edit_text_find_regex**](EditTextApi.md#edit_text_find_regex) | **POST** /convert/edit/text/find/regex | Find a regular expression regex in text input +[**edit_text_find_simple**](EditTextApi.md#edit_text_find_simple) | **POST** /convert/edit/text/find/string | Find a string in text input [**edit_text_remove_all_whitespace**](EditTextApi.md#edit_text_remove_all_whitespace) | **POST** /convert/edit/text/remove/whitespace/all | Remove whitespace from text string [**edit_text_remove_html**](EditTextApi.md#edit_text_remove_html) | **POST** /convert/edit/text/remove/html | Remove HTML from text string +[**edit_text_replace_regex**](EditTextApi.md#edit_text_replace_regex) | **POST** /convert/edit/text/replace/regex | Replace a string in text with a regex regular expression string +[**edit_text_replace_simple**](EditTextApi.md#edit_text_replace_simple) | **POST** /convert/edit/text/replace/string | Replace a string in text with another string value [**edit_text_text_encoding_detect**](EditTextApi.md#edit_text_text_encoding_detect) | **POST** /convert/edit/text/encoding/detect | Detect text encoding of file [**edit_text_trim_whitespace**](EditTextApi.md#edit_text_trim_whitespace) | **POST** /convert/edit/text/remove/whitespace/trim | Trim leading and trailing whitespace from text string @@ -38,7 +42,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.Base64DecodeRequest() # Base64DecodeRequest | +request = cloudmersive_convert_api_client.Base64DecodeRequest() # Base64DecodeRequest | Input request try: # Base 64 decode, convert base 64 string to binary content @@ -52,7 +56,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**Base64DecodeRequest**](Base64DecodeRequest.md)| | + **request** | [**Base64DecodeRequest**](Base64DecodeRequest.md)| Input request | ### Return type @@ -92,7 +96,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.Base64DetectRequest() # Base64DetectRequest | +request = cloudmersive_convert_api_client.Base64DetectRequest() # Base64DetectRequest | Input request try: # Detect, check if text string is base 64 encoded @@ -106,7 +110,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**Base64DetectRequest**](Base64DetectRequest.md)| | + **request** | [**Base64DetectRequest**](Base64DetectRequest.md)| Input request | ### Return type @@ -146,7 +150,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.Base64EncodeRequest() # Base64EncodeRequest | +request = cloudmersive_convert_api_client.Base64EncodeRequest() # Base64EncodeRequest | Input request try: # Base 64 encode, convert binary or file data to a text string @@ -160,7 +164,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**Base64EncodeRequest**](Base64EncodeRequest.md)| | + **request** | [**Base64EncodeRequest**](Base64EncodeRequest.md)| Input request | ### Return type @@ -287,6 +291,114 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **edit_text_find_regex** +> FindStringRegexResponse edit_text_find_regex(request) + +Find a regular expression regex in text input + +Find all occurrences of the input regular expression in the input content, and returns the matches + +### 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.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) +request = cloudmersive_convert_api_client.FindStringRegexRequest() # FindStringRegexRequest | Input request + +try: + # Find a regular expression regex in text input + api_response = api_instance.edit_text_find_regex(request) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditTextApi->edit_text_find_regex: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**FindStringRegexRequest**](FindStringRegexRequest.md)| Input request | + +### Return type + +[**FindStringRegexResponse**](FindStringRegexResponse.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_text_find_simple** +> FindStringSimpleResponse edit_text_find_simple(request) + +Find a string in text input + +Finds all occurrences of the input string in the input content, and returns the matches + +### 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.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) +request = cloudmersive_convert_api_client.FindStringSimpleRequest() # FindStringSimpleRequest | Input request + +try: + # Find a string in text input + api_response = api_instance.edit_text_find_simple(request) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditTextApi->edit_text_find_simple: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**FindStringSimpleRequest**](FindStringSimpleRequest.md)| Input request | + +### Return type + +[**FindStringSimpleResponse**](FindStringSimpleResponse.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_text_remove_all_whitespace** > RemoveWhitespaceFromTextResponse edit_text_remove_all_whitespace(request) @@ -310,7 +422,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.RemoveWhitespaceFromTextRequest() # RemoveWhitespaceFromTextRequest | +request = cloudmersive_convert_api_client.RemoveWhitespaceFromTextRequest() # RemoveWhitespaceFromTextRequest | Input request try: # Remove whitespace from text string @@ -324,7 +436,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**RemoveWhitespaceFromTextRequest**](RemoveWhitespaceFromTextRequest.md)| | + **request** | [**RemoveWhitespaceFromTextRequest**](RemoveWhitespaceFromTextRequest.md)| Input request | ### Return type @@ -364,7 +476,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.RemoveHtmlFromTextRequest() # RemoveHtmlFromTextRequest | +request = cloudmersive_convert_api_client.RemoveHtmlFromTextRequest() # RemoveHtmlFromTextRequest | Input request try: # Remove HTML from text string @@ -378,7 +490,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**RemoveHtmlFromTextRequest**](RemoveHtmlFromTextRequest.md)| | + **request** | [**RemoveHtmlFromTextRequest**](RemoveHtmlFromTextRequest.md)| Input request | ### Return type @@ -395,6 +507,114 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **edit_text_replace_regex** +> ReplaceStringRegexResponse edit_text_replace_regex(request) + +Replace a string in text with a regex regular expression string + +Replaces all occurrences of the input regular expression regex string in the input content, 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.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) +request = cloudmersive_convert_api_client.ReplaceStringRegexRequest() # ReplaceStringRegexRequest | Input request + +try: + # Replace a string in text with a regex regular expression string + api_response = api_instance.edit_text_replace_regex(request) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditTextApi->edit_text_replace_regex: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ReplaceStringRegexRequest**](ReplaceStringRegexRequest.md)| Input request | + +### Return type + +[**ReplaceStringRegexResponse**](ReplaceStringRegexResponse.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_text_replace_simple** +> ReplaceStringSimpleResponse edit_text_replace_simple(request) + +Replace a string in text with another string value + +Replaces all occurrences of the input string in the input content, 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.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) +request = cloudmersive_convert_api_client.ReplaceStringSimpleRequest() # ReplaceStringSimpleRequest | Input request + +try: + # Replace a string in text with another string value + api_response = api_instance.edit_text_replace_simple(request) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditTextApi->edit_text_replace_simple: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ReplaceStringSimpleRequest**](ReplaceStringSimpleRequest.md)| Input request | + +### Return type + +[**ReplaceStringSimpleResponse**](ReplaceStringSimpleResponse.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_text_text_encoding_detect** > TextEncodingDetectResponse edit_text_text_encoding_detect(input_file) @@ -472,7 +692,7 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditTextApi(cloudmersive_convert_api_client.ApiClient(configuration)) -request = cloudmersive_convert_api_client.RemoveWhitespaceFromTextRequest() # RemoveWhitespaceFromTextRequest | +request = cloudmersive_convert_api_client.RemoveWhitespaceFromTextRequest() # RemoveWhitespaceFromTextRequest | Input request try: # Trim leading and trailing whitespace from text string @@ -486,7 +706,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**RemoveWhitespaceFromTextRequest**](RemoveWhitespaceFromTextRequest.md)| | + **request** | [**RemoveWhitespaceFromTextRequest**](RemoveWhitespaceFromTextRequest.md)| Input request | ### Return type diff --git a/docs/FindRegexMatch.md b/docs/FindRegexMatch.md new file mode 100644 index 0000000..b19bb10 --- /dev/null +++ b/docs/FindRegexMatch.md @@ -0,0 +1,14 @@ +# FindRegexMatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**character_offset_start** | **int** | 0-based index of the start of the match | [optional] +**character_offset_end** | **int** | 0-based index of the end of the match | [optional] +**containing_line** | **str** | Text content of the line containing the match | [optional] +**match_value** | **str** | The match value | [optional] +**match_groups** | **list[str]** | Regular expression regex match groups; these correspond to the match values | [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/FindStringMatch.md b/docs/FindStringMatch.md new file mode 100644 index 0000000..5d011b7 --- /dev/null +++ b/docs/FindStringMatch.md @@ -0,0 +1,12 @@ +# FindStringMatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**character_offset_start** | **int** | 0-based index of the start of the match | [optional] +**character_offset_end** | **int** | 0-based index of the end of the match | [optional] +**containing_line** | **str** | Text content of the line containing the match | [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/FindStringRegexRequest.md b/docs/FindStringRegexRequest.md new file mode 100644 index 0000000..a8c7308 --- /dev/null +++ b/docs/FindStringRegexRequest.md @@ -0,0 +1,12 @@ +# FindStringRegexRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text_content** | **str** | Input text content | [optional] +**target_regex** | **str** | Target input regular expression (regex) to find | [optional] +**match_case** | **bool** | Set to True to match case, False to ignore case | [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/FindStringRegexResponse.md b/docs/FindStringRegexResponse.md new file mode 100644 index 0000000..cd41815 --- /dev/null +++ b/docs/FindStringRegexResponse.md @@ -0,0 +1,12 @@ +# FindStringRegexResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**matches** | [**list[FindRegexMatch]**](FindRegexMatch.md) | Regular expression matches | [optional] +**match_count** | **int** | The number of matches | [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/FindStringSimpleRequest.md b/docs/FindStringSimpleRequest.md new file mode 100644 index 0000000..63eaa29 --- /dev/null +++ b/docs/FindStringSimpleRequest.md @@ -0,0 +1,11 @@ +# FindStringSimpleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text_content** | **str** | Input text content | [optional] +**target_string** | **str** | Target input string to find | [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/FindStringSimpleResponse.md b/docs/FindStringSimpleResponse.md new file mode 100644 index 0000000..024d1bf --- /dev/null +++ b/docs/FindStringSimpleResponse.md @@ -0,0 +1,12 @@ +# FindStringSimpleResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**matches** | [**list[FindStringMatch]**](FindStringMatch.md) | Found matches | [optional] +**match_count** | **int** | The number of matches | [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/ReplaceStringRegexRequest.md b/docs/ReplaceStringRegexRequest.md new file mode 100644 index 0000000..a3d9d0b --- /dev/null +++ b/docs/ReplaceStringRegexRequest.md @@ -0,0 +1,12 @@ +# ReplaceStringRegexRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text_content** | **str** | Input text content | [optional] +**regular_expression_string** | **str** | Target input regular expression (regex) string to match and be replaced; supports all regular expression values | [optional] +**replace_with_string** | **str** | Replacement for target string; supports referencing indexed regex matched values from RegularExpressionString, such as $1, $2, and so on | [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/ReplaceStringRegexResponse.md b/docs/ReplaceStringRegexResponse.md new file mode 100644 index 0000000..62fe5cd --- /dev/null +++ b/docs/ReplaceStringRegexResponse.md @@ -0,0 +1,11 @@ +# ReplaceStringRegexResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**text_content_result** | **str** | Result of performing a base 64 decode operation, binary file content | [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/ReplaceStringSimpleRequest.md b/docs/ReplaceStringSimpleRequest.md new file mode 100644 index 0000000..783d971 --- /dev/null +++ b/docs/ReplaceStringSimpleRequest.md @@ -0,0 +1,12 @@ +# ReplaceStringSimpleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text_content** | **str** | Input text content | [optional] +**target_string** | **str** | Target input string to match and be replaced | [optional] +**replace_with_string** | **str** | Replacement for target string | [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/ReplaceStringSimpleResponse.md b/docs/ReplaceStringSimpleResponse.md new file mode 100644 index 0000000..90b3305 --- /dev/null +++ b/docs/ReplaceStringSimpleResponse.md @@ -0,0 +1,11 @@ +# ReplaceStringSimpleResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**text_content_result** | **str** | Result of performing a replace string operation | [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/ZipArchiveApi.md b/docs/ZipArchiveApi.md new file mode 100644 index 0000000..066b513 --- /dev/null +++ b/docs/ZipArchiveApi.md @@ -0,0 +1,169 @@ +# cloudmersive_convert_api_client.ZipArchiveApi + +All URIs are relative to *https://api.cloudmersive.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**zip_archive_zip_create**](ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive +[**zip_archive_zip_create_advanced**](ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options +[**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive + + +# **zip_archive_zip_create** +> object zip_archive_zip_create() + +Compress files to create a new zip archive + +Create a new zip archive by compressing input files. + +### 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.ZipArchiveApi(cloudmersive_convert_api_client.ApiClient(configuration)) + +try: + # Compress files to create a new zip archive + api_response = api_instance.zip_archive_zip_create() + pprint(api_response) +except ApiException as e: + print("Exception when calling ZipArchiveApi->zip_archive_zip_create: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream + +[[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) + +# **zip_archive_zip_create_advanced** +> object zip_archive_zip_create_advanced(request) + +Compress files and folders to create a new zip archive with advanced options + +Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive. + +### 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.ZipArchiveApi(cloudmersive_convert_api_client.ApiClient(configuration)) +request = cloudmersive_convert_api_client.CreateZipArchiveRequest() # CreateZipArchiveRequest | Input request + +try: + # Compress files and folders to create a new zip archive with advanced options + api_response = api_instance.zip_archive_zip_create_advanced(request) + pprint(api_response) +except ApiException as e: + print("Exception when calling ZipArchiveApi->zip_archive_zip_create_advanced: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**CreateZipArchiveRequest**](CreateZipArchiveRequest.md)| Input request | + +### Return type + +**object** + +### 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/octet-stream + +[[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) + +# **zip_archive_zip_extract** +> ZipExtractResponse zip_archive_zip_extract(input_file) + +Extract, decompress files and folders from a zip archive + +Extracts a zip archive by decompressing files, and folders. + +### 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.ZipArchiveApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Input file to perform the operation on. + +try: + # Extract, decompress files and folders from a zip archive + api_response = api_instance.zip_archive_zip_extract(input_file) + pprint(api_response) +except ApiException as e: + print("Exception when calling ZipArchiveApi->zip_archive_zip_extract: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Input file to perform the operation on. | + +### Return type + +[**ZipExtractResponse**](ZipExtractResponse.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **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) + diff --git a/docs/ZipDirectory.md b/docs/ZipDirectory.md new file mode 100644 index 0000000..a883059 --- /dev/null +++ b/docs/ZipDirectory.md @@ -0,0 +1,12 @@ +# ZipDirectory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**directory_name** | **str** | Name of this directory | [optional] +**directories_in_directory** | [**list[ZipDirectory]**](ZipDirectory.md) | Child directories contained directly in this directory | [optional] +**files_in_directory** | [**list[ZipFile]**](ZipFile.md) | Child files contained directly in this directory | [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/ZipExtractResponse.md b/docs/ZipExtractResponse.md new file mode 100644 index 0000000..ec36d20 --- /dev/null +++ b/docs/ZipExtractResponse.md @@ -0,0 +1,12 @@ +# ZipExtractResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if the operation was successful, false otherwise | [optional] +**files_in_zip** | [**list[ZipFile]**](ZipFile.md) | Top-level files in the root directory fo the zip file | [optional] +**directories_in_zip** | [**list[ZipDirectory]**](ZipDirectory.md) | Top-level directories in the root directory of the zip; directories can contain sub-directories and files | [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/ZipFile.md b/docs/ZipFile.md new file mode 100644 index 0000000..d58ec73 --- /dev/null +++ b/docs/ZipFile.md @@ -0,0 +1,11 @@ +# ZipFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_name** | **str** | Name of this file | [optional] +**file_contents** | **str** | Contents of this file | [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 b73eee9..1fae812 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.3.6", + "packageVersion": "2.3.7", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index c205ad6..14e39f6 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.6" +VERSION = "2.3.7" # To install the library, run the following # # python setup.py install diff --git a/test/test_create_zip_archive_request.py b/test/test_create_zip_archive_request.py new file mode 100644 index 0000000..2deda6d --- /dev/null +++ b/test/test_create_zip_archive_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.create_zip_archive_request import CreateZipArchiveRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestCreateZipArchiveRequest(unittest.TestCase): + """CreateZipArchiveRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateZipArchiveRequest(self): + """Test CreateZipArchiveRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.create_zip_archive_request.CreateZipArchiveRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_regex_match.py b/test/test_find_regex_match.py new file mode 100644 index 0000000..d40535b --- /dev/null +++ b/test/test_find_regex_match.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.find_regex_match import FindRegexMatch # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindRegexMatch(unittest.TestCase): + """FindRegexMatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindRegexMatch(self): + """Test FindRegexMatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_regex_match.FindRegexMatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_string_match.py b/test/test_find_string_match.py new file mode 100644 index 0000000..ee0ac48 --- /dev/null +++ b/test/test_find_string_match.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.find_string_match import FindStringMatch # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindStringMatch(unittest.TestCase): + """FindStringMatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindStringMatch(self): + """Test FindStringMatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_string_match.FindStringMatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_string_regex_request.py b/test/test_find_string_regex_request.py new file mode 100644 index 0000000..8aba005 --- /dev/null +++ b/test/test_find_string_regex_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.find_string_regex_request import FindStringRegexRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindStringRegexRequest(unittest.TestCase): + """FindStringRegexRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindStringRegexRequest(self): + """Test FindStringRegexRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_string_regex_request.FindStringRegexRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_string_regex_response.py b/test/test_find_string_regex_response.py new file mode 100644 index 0000000..676b7cd --- /dev/null +++ b/test/test_find_string_regex_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.find_string_regex_response import FindStringRegexResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindStringRegexResponse(unittest.TestCase): + """FindStringRegexResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindStringRegexResponse(self): + """Test FindStringRegexResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_string_regex_response.FindStringRegexResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_string_simple_request.py b/test/test_find_string_simple_request.py new file mode 100644 index 0000000..bd27358 --- /dev/null +++ b/test/test_find_string_simple_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.find_string_simple_request import FindStringSimpleRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindStringSimpleRequest(unittest.TestCase): + """FindStringSimpleRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindStringSimpleRequest(self): + """Test FindStringSimpleRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_string_simple_request.FindStringSimpleRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_find_string_simple_response.py b/test/test_find_string_simple_response.py new file mode 100644 index 0000000..65c87f1 --- /dev/null +++ b/test/test_find_string_simple_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.find_string_simple_response import FindStringSimpleResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestFindStringSimpleResponse(unittest.TestCase): + """FindStringSimpleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFindStringSimpleResponse(self): + """Test FindStringSimpleResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.find_string_simple_response.FindStringSimpleResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_replace_string_regex_request.py b/test/test_replace_string_regex_request.py new file mode 100644 index 0000000..a975084 --- /dev/null +++ b/test/test_replace_string_regex_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.replace_string_regex_request import ReplaceStringRegexRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestReplaceStringRegexRequest(unittest.TestCase): + """ReplaceStringRegexRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReplaceStringRegexRequest(self): + """Test ReplaceStringRegexRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.replace_string_regex_request.ReplaceStringRegexRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_replace_string_regex_response.py b/test/test_replace_string_regex_response.py new file mode 100644 index 0000000..98c48c3 --- /dev/null +++ b/test/test_replace_string_regex_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.replace_string_regex_response import ReplaceStringRegexResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestReplaceStringRegexResponse(unittest.TestCase): + """ReplaceStringRegexResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReplaceStringRegexResponse(self): + """Test ReplaceStringRegexResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.replace_string_regex_response.ReplaceStringRegexResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_replace_string_simple_request.py b/test/test_replace_string_simple_request.py new file mode 100644 index 0000000..2113b65 --- /dev/null +++ b/test/test_replace_string_simple_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.replace_string_simple_request import ReplaceStringSimpleRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestReplaceStringSimpleRequest(unittest.TestCase): + """ReplaceStringSimpleRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReplaceStringSimpleRequest(self): + """Test ReplaceStringSimpleRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.replace_string_simple_request.ReplaceStringSimpleRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_replace_string_simple_response.py b/test/test_replace_string_simple_response.py new file mode 100644 index 0000000..7df7885 --- /dev/null +++ b/test/test_replace_string_simple_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.replace_string_simple_response import ReplaceStringSimpleResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestReplaceStringSimpleResponse(unittest.TestCase): + """ReplaceStringSimpleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReplaceStringSimpleResponse(self): + """Test ReplaceStringSimpleResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.replace_string_simple_response.ReplaceStringSimpleResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_zip_archive_api.py b/test/test_zip_archive_api.py new file mode 100644 index 0000000..7e71caf --- /dev/null +++ b/test/test_zip_archive_api.py @@ -0,0 +1,55 @@ +# 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.api.zip_archive_api import ZipArchiveApi # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestZipArchiveApi(unittest.TestCase): + """ZipArchiveApi unit test stubs""" + + def setUp(self): + self.api = cloudmersive_convert_api_client.api.zip_archive_api.ZipArchiveApi() # noqa: E501 + + def tearDown(self): + pass + + def test_zip_archive_zip_create(self): + """Test case for zip_archive_zip_create + + Compress files to create a new zip archive # noqa: E501 + """ + pass + + def test_zip_archive_zip_create_advanced(self): + """Test case for zip_archive_zip_create_advanced + + Compress files and folders to create a new zip archive with advanced options # noqa: E501 + """ + pass + + def test_zip_archive_zip_extract(self): + """Test case for zip_archive_zip_extract + + Extract, decompress files and folders from a zip archive # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_zip_directory.py b/test/test_zip_directory.py new file mode 100644 index 0000000..fbdd820 --- /dev/null +++ b/test/test_zip_directory.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.zip_directory import ZipDirectory # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestZipDirectory(unittest.TestCase): + """ZipDirectory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZipDirectory(self): + """Test ZipDirectory""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.zip_directory.ZipDirectory() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_zip_extract_response.py b/test/test_zip_extract_response.py new file mode 100644 index 0000000..f568648 --- /dev/null +++ b/test/test_zip_extract_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.zip_extract_response import ZipExtractResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestZipExtractResponse(unittest.TestCase): + """ZipExtractResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZipExtractResponse(self): + """Test ZipExtractResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.zip_extract_response.ZipExtractResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_zip_file.py b/test/test_zip_file.py new file mode 100644 index 0000000..44f55c8 --- /dev/null +++ b/test/test_zip_file.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.zip_file import ZipFile # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestZipFile(unittest.TestCase): + """ZipFile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZipFile(self): + """Test ZipFile""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.zip_file.ZipFile() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()