diff --git a/README.md b/README.md index c33bdf2..7bf4630 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: 3.1.5 +- Package version: 3.1.6 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -252,12 +252,19 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_xlsx_rename_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_rename_worksheet) | **POST** /convert/edit/xlsx/rename-worksheet | Rename a specific worksheet in a Excel XLSX spreadsheet *EditDocumentApi* | [**edit_document_xlsx_set_cell_by_identifier**](docs/EditDocumentApi.md#edit_document_xlsx_set_cell_by_identifier) | **POST** /convert/edit/xlsx/set-cell/by-identifier | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by cell identifier *EditDocumentApi* | [**edit_document_xlsx_set_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_set_cell_by_index) | **POST** /convert/edit/xlsx/set-cell/by-index | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by index +*EditHtmlApi* | [**edit_html_html_append_header_tag**](docs/EditHtmlApi.md#edit_html_html_append_header_tag) | **POST** /convert/edit/html/head/append/tag | Append an HTML tag to the HEAD section of an HTML Document *EditHtmlApi* | [**edit_html_html_append_heading**](docs/EditHtmlApi.md#edit_html_html_append_heading) | **POST** /convert/edit/html/append/heading | Append a Heading to an HTML Document *EditHtmlApi* | [**edit_html_html_append_image_from_url**](docs/EditHtmlApi.md#edit_html_html_append_image_from_url) | **POST** /convert/edit/html/append/image/from-url | Append an Image to an HTML Document from a URL *EditHtmlApi* | [**edit_html_html_append_image_inline**](docs/EditHtmlApi.md#edit_html_html_append_image_inline) | **POST** /convert/edit/html/append/image/inline | Append a Base64 Inline Image to an HTML Document *EditHtmlApi* | [**edit_html_html_append_paragraph**](docs/EditHtmlApi.md#edit_html_html_append_paragraph) | **POST** /convert/edit/html/append/paragraph | Append a Paragraph to an HTML Document *EditHtmlApi* | [**edit_html_html_create_blank_document**](docs/EditHtmlApi.md#edit_html_html_create_blank_document) | **POST** /convert/edit/html/create/blank | Create a Blank HTML Document +*EditHtmlApi* | [**edit_html_html_get_language**](docs/EditHtmlApi.md#edit_html_html_get_language) | **POST** /convert/edit/html/head/get/language | Gets the language for the HTML document *EditHtmlApi* | [**edit_html_html_get_links**](docs/EditHtmlApi.md#edit_html_html_get_links) | **POST** /convert/edit/html/extract/links | Extract resolved link URLs from HTML File +*EditHtmlApi* | [**edit_html_html_get_rel_canonical**](docs/EditHtmlApi.md#edit_html_html_get_rel_canonical) | **POST** /convert/edit/html/head/get/rel-canonical-url | Gets the rel canonical URL for the HTML document +*EditHtmlApi* | [**edit_html_html_get_sitemap**](docs/EditHtmlApi.md#edit_html_html_get_sitemap) | **POST** /convert/edit/html/head/get/sitemap-url | Gets the sitemap URL for the HTML document +*EditHtmlApi* | [**edit_html_html_set_language**](docs/EditHtmlApi.md#edit_html_html_set_language) | **POST** /convert/edit/html/head/set/language | Sets the language for the HTML document +*EditHtmlApi* | [**edit_html_html_set_rel_canonical**](docs/EditHtmlApi.md#edit_html_html_set_rel_canonical) | **POST** /convert/edit/html/head/set/rel-canonical-url | Sets the rel canonical URL for the HTML document +*EditHtmlApi* | [**edit_html_html_set_sitemap_url**](docs/EditHtmlApi.md#edit_html_html_set_sitemap_url) | **POST** /convert/edit/html/head/set/sitemap-url | Sets the sitemap URL for the HTML document *EditPdfApi* | [**edit_pdf_add_annotations**](docs/EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document *EditPdfApi* | [**edit_pdf_convert_to_pdf_a**](docs/EditPdfApi.md#edit_pdf_convert_to_pdf_a) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A *EditPdfApi* | [**edit_pdf_decrypt**](docs/EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF @@ -480,7 +487,10 @@ Class | Method | HTTP request | Description - [GetXlsxStylesResponse](docs/GetXlsxStylesResponse.md) - [GetXlsxWorksheetsRequest](docs/GetXlsxWorksheetsRequest.md) - [GetXlsxWorksheetsResponse](docs/GetXlsxWorksheetsResponse.md) + - [HtmlGetLanguageResult](docs/HtmlGetLanguageResult.md) - [HtmlGetLinksResponse](docs/HtmlGetLinksResponse.md) + - [HtmlGetRelCanonicalUrlResult](docs/HtmlGetRelCanonicalUrlResult.md) + - [HtmlGetSitemapUrlResult](docs/HtmlGetSitemapUrlResult.md) - [HtmlHyperlink](docs/HtmlHyperlink.md) - [HtmlMdResult](docs/HtmlMdResult.md) - [HtmlSsrfThreatCheckResult](docs/HtmlSsrfThreatCheckResult.md) diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index 86fd170..4045a14 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -168,7 +168,10 @@ from cloudmersive_convert_api_client.models.get_xlsx_styles_response import GetXlsxStylesResponse from cloudmersive_convert_api_client.models.get_xlsx_worksheets_request import GetXlsxWorksheetsRequest from cloudmersive_convert_api_client.models.get_xlsx_worksheets_response import GetXlsxWorksheetsResponse +from cloudmersive_convert_api_client.models.html_get_language_result import HtmlGetLanguageResult from cloudmersive_convert_api_client.models.html_get_links_response import HtmlGetLinksResponse +from cloudmersive_convert_api_client.models.html_get_rel_canonical_url_result import HtmlGetRelCanonicalUrlResult +from cloudmersive_convert_api_client.models.html_get_sitemap_url_result import HtmlGetSitemapUrlResult from cloudmersive_convert_api_client.models.html_hyperlink import HtmlHyperlink from cloudmersive_convert_api_client.models.html_md_result import HtmlMdResult from cloudmersive_convert_api_client.models.html_ssrf_threat_check_result import HtmlSsrfThreatCheckResult diff --git a/cloudmersive_convert_api_client/api/edit_html_api.py b/cloudmersive_convert_api_client/api/edit_html_api.py index c257efa..72529c2 100644 --- a/cloudmersive_convert_api_client/api/edit_html_api.py +++ b/cloudmersive_convert_api_client/api/edit_html_api.py @@ -33,6 +33,109 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def edit_html_html_append_header_tag(self, html_tag, **kwargs): # noqa: E501 + """Append an HTML tag to the HEAD section of an HTML Document # noqa: E501 + + Appends an HTML tag to the HEAD section of an HTML document. # 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_html_html_append_header_tag(html_tag, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str html_tag: The HTML tag to append. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :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.edit_html_html_append_header_tag_with_http_info(html_tag, **kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_append_header_tag_with_http_info(html_tag, **kwargs) # noqa: E501 + return data + + def edit_html_html_append_header_tag_with_http_info(self, html_tag, **kwargs): # noqa: E501 + """Append an HTML tag to the HEAD section of an HTML Document # noqa: E501 + + Appends an HTML tag to the HEAD section of an HTML document. # 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_html_html_append_header_tag_with_http_info(html_tag, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str html_tag: The HTML tag to append. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['html_tag', 'input_file', 'input_file_url'] # 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_html_html_append_header_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'html_tag' is set + if ('html_tag' not in params or + params['html_tag'] is None): + raise ValueError("Missing the required parameter `html_tag` when calling `edit_html_html_append_header_tag`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + if 'html_tag' in params: + header_params['htmlTag'] = params['html_tag'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/append/tag', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def edit_html_html_append_heading(self, heading_text, **kwargs): # noqa: E501 """Append a Heading to an HTML Document # noqa: E501 @@ -580,6 +683,101 @@ def edit_html_html_create_blank_document_with_http_info(self, **kwargs): # noqa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_html_html_get_language(self, **kwargs): # noqa: E501 + """Gets the language for the HTML document # noqa: E501 + + Retrieves the language code (e.g. \"en\" or \"de\") of an HTML document. # 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_html_html_get_language(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetLanguageResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_html_html_get_language_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_get_language_with_http_info(**kwargs) # noqa: E501 + return data + + def edit_html_html_get_language_with_http_info(self, **kwargs): # noqa: E501 + """Gets the language for the HTML document # noqa: E501 + + Retrieves the language code (e.g. \"en\" or \"de\") of an HTML document. # 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_html_html_get_language_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetLanguageResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file', 'input_file_url'] # 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_html_html_get_language" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/get/language', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HtmlGetLanguageResult', # 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_html_html_get_links(self, **kwargs): # noqa: E501 """Extract resolved link URLs from HTML File # noqa: E501 @@ -678,3 +876,502 @@ def edit_html_html_get_links_with_http_info(self, **kwargs): # noqa: E501 _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def edit_html_html_get_rel_canonical(self, **kwargs): # noqa: E501 + """Gets the rel canonical URL for the HTML document # noqa: E501 + + Gets the rel canonical URL of an HTML document. # 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_html_html_get_rel_canonical(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetRelCanonicalUrlResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_html_html_get_rel_canonical_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_get_rel_canonical_with_http_info(**kwargs) # noqa: E501 + return data + + def edit_html_html_get_rel_canonical_with_http_info(self, **kwargs): # noqa: E501 + """Gets the rel canonical URL for the HTML document # noqa: E501 + + Gets the rel canonical URL of an HTML document. # 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_html_html_get_rel_canonical_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetRelCanonicalUrlResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file', 'input_file_url'] # 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_html_html_get_rel_canonical" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/get/rel-canonical-url', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HtmlGetRelCanonicalUrlResult', # 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_html_html_get_sitemap(self, **kwargs): # noqa: E501 + """Gets the sitemap URL for the HTML document # noqa: E501 + + Gets the sitemap link URL of an HTML document. # 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_html_html_get_sitemap(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetSitemapUrlResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_html_html_get_sitemap_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_get_sitemap_with_http_info(**kwargs) # noqa: E501 + return data + + def edit_html_html_get_sitemap_with_http_info(self, **kwargs): # noqa: E501 + """Gets the sitemap URL for the HTML document # noqa: E501 + + Gets the sitemap link URL of an HTML document. # 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_html_html_get_sitemap_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: HtmlGetSitemapUrlResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file', 'input_file_url'] # 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_html_html_get_sitemap" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/get/sitemap-url', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HtmlGetSitemapUrlResult', # 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_html_html_set_language(self, language_code, **kwargs): # noqa: E501 + """Sets the language for the HTML document # noqa: E501 + + Sets the language code of an HTML document. # 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_html_html_set_language(language_code, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str language_code: The HTML langauge code to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :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.edit_html_html_set_language_with_http_info(language_code, **kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_set_language_with_http_info(language_code, **kwargs) # noqa: E501 + return data + + def edit_html_html_set_language_with_http_info(self, language_code, **kwargs): # noqa: E501 + """Sets the language for the HTML document # noqa: E501 + + Sets the language code of an HTML document. # 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_html_html_set_language_with_http_info(language_code, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str language_code: The HTML langauge code to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['language_code', 'input_file', 'input_file_url'] # 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_html_html_set_language" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'language_code' is set + if ('language_code' not in params or + params['language_code'] is None): + raise ValueError("Missing the required parameter `language_code` when calling `edit_html_html_set_language`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + if 'language_code' in params: + header_params['languageCode'] = params['language_code'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/set/language', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def edit_html_html_set_rel_canonical(self, canonical_url, **kwargs): # noqa: E501 + """Sets the rel canonical URL for the HTML document # noqa: E501 + + Sets the rel canonical URL of an HTML document. This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL. # 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_html_html_set_rel_canonical(canonical_url, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str canonical_url: The HTML canonical URL to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :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.edit_html_html_set_rel_canonical_with_http_info(canonical_url, **kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_set_rel_canonical_with_http_info(canonical_url, **kwargs) # noqa: E501 + return data + + def edit_html_html_set_rel_canonical_with_http_info(self, canonical_url, **kwargs): # noqa: E501 + """Sets the rel canonical URL for the HTML document # noqa: E501 + + Sets the rel canonical URL of an HTML document. This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL. # 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_html_html_set_rel_canonical_with_http_info(canonical_url, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str canonical_url: The HTML canonical URL to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['canonical_url', 'input_file', 'input_file_url'] # 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_html_html_set_rel_canonical" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'canonical_url' is set + if ('canonical_url' not in params or + params['canonical_url'] is None): + raise ValueError("Missing the required parameter `canonical_url` when calling `edit_html_html_set_rel_canonical`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + if 'canonical_url' in params: + header_params['canonicalUrl'] = params['canonical_url'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/set/rel-canonical-url', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def edit_html_html_set_sitemap_url(self, sitemap_url, **kwargs): # noqa: E501 + """Sets the sitemap URL for the HTML document # noqa: E501 + + Sets the sitemap URL of an HTML document. # 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_html_html_set_sitemap_url(sitemap_url, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str sitemap_url: The HTML sitemap URL to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :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.edit_html_html_set_sitemap_url_with_http_info(sitemap_url, **kwargs) # noqa: E501 + else: + (data) = self.edit_html_html_set_sitemap_url_with_http_info(sitemap_url, **kwargs) # noqa: E501 + return data + + def edit_html_html_set_sitemap_url_with_http_info(self, sitemap_url, **kwargs): # noqa: E501 + """Sets the sitemap URL for the HTML document # noqa: E501 + + Sets the sitemap URL of an HTML document. # 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_html_html_set_sitemap_url_with_http_info(sitemap_url, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str sitemap_url: The HTML sitemap URL to set. (required) + :param file input_file: Optional: Input file to perform the operation on. + :param str input_file_url: Optional: URL of a file to operate on as input. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['sitemap_url', 'input_file', 'input_file_url'] # 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_html_html_set_sitemap_url" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'sitemap_url' is set + if ('sitemap_url' not in params or + params['sitemap_url'] is None): + raise ValueError("Missing the required parameter `sitemap_url` when calling `edit_html_html_set_sitemap_url`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'input_file_url' in params: + header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501 + if 'sitemap_url' in params: + header_params['sitemapUrl'] = params['sitemap_url'] # noqa: E501 + + 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 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/html/head/set/sitemap-url', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudmersive_convert_api_client/api/edit_pdf_api.py b/cloudmersive_convert_api_client/api/edit_pdf_api.py index 44e7455..c53e70e 100644 --- a/cloudmersive_convert_api_client/api/edit_pdf_api.py +++ b/cloudmersive_convert_api_client/api/edit_pdf_api.py @@ -1308,6 +1308,7 @@ def edit_pdf_reduce_file_size(self, input_file, **kwargs): # noqa: E501 :param async_req bool :param file input_file: Input file to perform the operation on. (required) + :param float quality: Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3 :return: str If the method is called asynchronously, returns the request thread. @@ -1330,12 +1331,13 @@ def edit_pdf_reduce_file_size_with_http_info(self, input_file, **kwargs): # noq :param async_req bool :param file input_file: Input file to perform the operation on. (required) + :param float quality: Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3 :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['input_file'] # noqa: E501 + all_params = ['input_file', 'quality'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1362,6 +1364,8 @@ def edit_pdf_reduce_file_size_with_http_info(self, input_file, **kwargs): # noq query_params = [] header_params = {} + if 'quality' in params: + header_params['quality'] = params['quality'] # noqa: E501 form_params = [] local_var_files = {} diff --git a/cloudmersive_convert_api_client/api/merge_document_api.py b/cloudmersive_convert_api_client/api/merge_document_api.py index 6f81249..0aa0480 100644 --- a/cloudmersive_convert_api_client/api/merge_document_api.py +++ b/cloudmersive_convert_api_client/api/merge_document_api.py @@ -291,7 +291,7 @@ def merge_document_html(self, input_file1, input_file2, **kwargs): # noqa: E501 :param async_req bool :param file input_file1: First input file to perform the operation on. (required) :param file input_file2: Second input file to perform the operation on (more than 2 can be supplied). (required) - :return: object + :return: str If the method is called asynchronously, returns the request thread. """ @@ -314,7 +314,7 @@ def merge_document_html_with_http_info(self, input_file1, input_file2, **kwargs) :param async_req bool :param file input_file1: First input file to perform the operation on. (required) :param file input_file2: Second input file to perform the operation on (more than 2 can be supplied). (required) - :return: object + :return: str If the method is called asynchronously, returns the request thread. """ @@ -378,7 +378,7 @@ def merge_document_html_with_http_info(self, input_file1, input_file2, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index e154aff..b2975a6 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/3.1.5/python' + self.user_agent = 'Swagger-Codegen/3.1.6/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 2e522cc..f5b2ae6 100644 --- a/cloudmersive_convert_api_client/configuration.py +++ b/cloudmersive_convert_api_client/configuration.py @@ -248,5 +248,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 3.1.5".\ + "SDK Package Version: 3.1.6".\ 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 17c56d1..9301bd1 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -146,7 +146,10 @@ from cloudmersive_convert_api_client.models.get_xlsx_styles_response import GetXlsxStylesResponse from cloudmersive_convert_api_client.models.get_xlsx_worksheets_request import GetXlsxWorksheetsRequest from cloudmersive_convert_api_client.models.get_xlsx_worksheets_response import GetXlsxWorksheetsResponse +from cloudmersive_convert_api_client.models.html_get_language_result import HtmlGetLanguageResult from cloudmersive_convert_api_client.models.html_get_links_response import HtmlGetLinksResponse +from cloudmersive_convert_api_client.models.html_get_rel_canonical_url_result import HtmlGetRelCanonicalUrlResult +from cloudmersive_convert_api_client.models.html_get_sitemap_url_result import HtmlGetSitemapUrlResult from cloudmersive_convert_api_client.models.html_hyperlink import HtmlHyperlink from cloudmersive_convert_api_client.models.html_md_result import HtmlMdResult from cloudmersive_convert_api_client.models.html_ssrf_threat_check_result import HtmlSsrfThreatCheckResult diff --git a/cloudmersive_convert_api_client/models/html_get_language_result.py b/cloudmersive_convert_api_client/models/html_get_language_result.py new file mode 100644 index 0000000..f38a9a0 --- /dev/null +++ b/cloudmersive_convert_api_client/models/html_get_language_result.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 HtmlGetLanguageResult(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', + 'language_code': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'language_code': 'LanguageCode' + } + + def __init__(self, successful=None, language_code=None): # noqa: E501 + """HtmlGetLanguageResult - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._language_code = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if language_code is not None: + self.language_code = language_code + + @property + def successful(self): + """Gets the successful of this HtmlGetLanguageResult. # noqa: E501 + + True if the operation was successful, false otherwise # noqa: E501 + + :return: The successful of this HtmlGetLanguageResult. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this HtmlGetLanguageResult. + + True if the operation was successful, false otherwise # noqa: E501 + + :param successful: The successful of this HtmlGetLanguageResult. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def language_code(self): + """Gets the language_code of this HtmlGetLanguageResult. # noqa: E501 + + HTML language code of the HTML document, e.g. \"en\" or \"de\" # noqa: E501 + + :return: The language_code of this HtmlGetLanguageResult. # noqa: E501 + :rtype: str + """ + return self._language_code + + @language_code.setter + def language_code(self, language_code): + """Sets the language_code of this HtmlGetLanguageResult. + + HTML language code of the HTML document, e.g. \"en\" or \"de\" # noqa: E501 + + :param language_code: The language_code of this HtmlGetLanguageResult. # noqa: E501 + :type: str + """ + + self._language_code = language_code + + 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(HtmlGetLanguageResult, 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, HtmlGetLanguageResult): + 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/html_get_rel_canonical_url_result.py b/cloudmersive_convert_api_client/models/html_get_rel_canonical_url_result.py new file mode 100644 index 0000000..fa9f7d3 --- /dev/null +++ b/cloudmersive_convert_api_client/models/html_get_rel_canonical_url_result.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 HtmlGetRelCanonicalUrlResult(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', + 'canonical_url': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'canonical_url': 'CanonicalUrl' + } + + def __init__(self, successful=None, canonical_url=None): # noqa: E501 + """HtmlGetRelCanonicalUrlResult - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._canonical_url = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if canonical_url is not None: + self.canonical_url = canonical_url + + @property + def successful(self): + """Gets the successful of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + + True if the operation was successful, false otherwise # noqa: E501 + + :return: The successful of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this HtmlGetRelCanonicalUrlResult. + + True if the operation was successful, false otherwise # noqa: E501 + + :param successful: The successful of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def canonical_url(self): + """Gets the canonical_url of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + + HTML canonical URL if present # noqa: E501 + + :return: The canonical_url of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + :rtype: str + """ + return self._canonical_url + + @canonical_url.setter + def canonical_url(self, canonical_url): + """Sets the canonical_url of this HtmlGetRelCanonicalUrlResult. + + HTML canonical URL if present # noqa: E501 + + :param canonical_url: The canonical_url of this HtmlGetRelCanonicalUrlResult. # noqa: E501 + :type: str + """ + + self._canonical_url = canonical_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(HtmlGetRelCanonicalUrlResult, 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, HtmlGetRelCanonicalUrlResult): + 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/html_get_sitemap_url_result.py b/cloudmersive_convert_api_client/models/html_get_sitemap_url_result.py new file mode 100644 index 0000000..d1006d2 --- /dev/null +++ b/cloudmersive_convert_api_client/models/html_get_sitemap_url_result.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 HtmlGetSitemapUrlResult(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', + 'canonical_url': 'str' + } + + attribute_map = { + 'successful': 'Successful', + 'canonical_url': 'CanonicalUrl' + } + + def __init__(self, successful=None, canonical_url=None): # noqa: E501 + """HtmlGetSitemapUrlResult - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._canonical_url = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if canonical_url is not None: + self.canonical_url = canonical_url + + @property + def successful(self): + """Gets the successful of this HtmlGetSitemapUrlResult. # noqa: E501 + + True if the operation was successful, false otherwise # noqa: E501 + + :return: The successful of this HtmlGetSitemapUrlResult. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this HtmlGetSitemapUrlResult. + + True if the operation was successful, false otherwise # noqa: E501 + + :param successful: The successful of this HtmlGetSitemapUrlResult. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def canonical_url(self): + """Gets the canonical_url of this HtmlGetSitemapUrlResult. # noqa: E501 + + HTML sitemap URL if present # noqa: E501 + + :return: The canonical_url of this HtmlGetSitemapUrlResult. # noqa: E501 + :rtype: str + """ + return self._canonical_url + + @canonical_url.setter + def canonical_url(self, canonical_url): + """Sets the canonical_url of this HtmlGetSitemapUrlResult. + + HTML sitemap URL if present # noqa: E501 + + :param canonical_url: The canonical_url of this HtmlGetSitemapUrlResult. # noqa: E501 + :type: str + """ + + self._canonical_url = canonical_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(HtmlGetSitemapUrlResult, 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, HtmlGetSitemapUrlResult): + 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/EditHtmlApi.md b/docs/EditHtmlApi.md index 2881106..9dfbbd0 100644 --- a/docs/EditHtmlApi.md +++ b/docs/EditHtmlApi.md @@ -4,14 +4,79 @@ All URIs are relative to *https://api.cloudmersive.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**edit_html_html_append_header_tag**](EditHtmlApi.md#edit_html_html_append_header_tag) | **POST** /convert/edit/html/head/append/tag | Append an HTML tag to the HEAD section of an HTML Document [**edit_html_html_append_heading**](EditHtmlApi.md#edit_html_html_append_heading) | **POST** /convert/edit/html/append/heading | Append a Heading to an HTML Document [**edit_html_html_append_image_from_url**](EditHtmlApi.md#edit_html_html_append_image_from_url) | **POST** /convert/edit/html/append/image/from-url | Append an Image to an HTML Document from a URL [**edit_html_html_append_image_inline**](EditHtmlApi.md#edit_html_html_append_image_inline) | **POST** /convert/edit/html/append/image/inline | Append a Base64 Inline Image to an HTML Document [**edit_html_html_append_paragraph**](EditHtmlApi.md#edit_html_html_append_paragraph) | **POST** /convert/edit/html/append/paragraph | Append a Paragraph to an HTML Document [**edit_html_html_create_blank_document**](EditHtmlApi.md#edit_html_html_create_blank_document) | **POST** /convert/edit/html/create/blank | Create a Blank HTML Document +[**edit_html_html_get_language**](EditHtmlApi.md#edit_html_html_get_language) | **POST** /convert/edit/html/head/get/language | Gets the language for the HTML document [**edit_html_html_get_links**](EditHtmlApi.md#edit_html_html_get_links) | **POST** /convert/edit/html/extract/links | Extract resolved link URLs from HTML File +[**edit_html_html_get_rel_canonical**](EditHtmlApi.md#edit_html_html_get_rel_canonical) | **POST** /convert/edit/html/head/get/rel-canonical-url | Gets the rel canonical URL for the HTML document +[**edit_html_html_get_sitemap**](EditHtmlApi.md#edit_html_html_get_sitemap) | **POST** /convert/edit/html/head/get/sitemap-url | Gets the sitemap URL for the HTML document +[**edit_html_html_set_language**](EditHtmlApi.md#edit_html_html_set_language) | **POST** /convert/edit/html/head/set/language | Sets the language for the HTML document +[**edit_html_html_set_rel_canonical**](EditHtmlApi.md#edit_html_html_set_rel_canonical) | **POST** /convert/edit/html/head/set/rel-canonical-url | Sets the rel canonical URL for the HTML document +[**edit_html_html_set_sitemap_url**](EditHtmlApi.md#edit_html_html_set_sitemap_url) | **POST** /convert/edit/html/head/set/sitemap-url | Sets the sitemap URL for the HTML document +# **edit_html_html_append_header_tag** +> str edit_html_html_append_header_tag(html_tag, input_file=input_file, input_file_url=input_file_url) + +Append an HTML tag to the HEAD section of an HTML Document + +Appends an HTML tag to the HEAD section of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +html_tag = 'html_tag_example' # str | The HTML tag to append. +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Append an HTML tag to the HEAD section of an HTML Document + api_response = api_instance.edit_html_html_append_header_tag(html_tag, input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_append_header_tag: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **html_tag** | **str**| The HTML tag to append. | + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +**str** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_append_heading** > str edit_html_html_append_heading(heading_text, input_file=input_file, input_file_url=input_file_url, heading_size=heading_size, css_style=css_style) @@ -320,6 +385,62 @@ 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_html_html_get_language** +> HtmlGetLanguageResult edit_html_html_get_language(input_file=input_file, input_file_url=input_file_url) + +Gets the language for the HTML document + +Retrieves the language code (e.g. \"en\" or \"de\") of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Gets the language for the HTML document + api_response = api_instance.edit_html_html_get_language(input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_get_language: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +[**HtmlGetLanguageResult**](HtmlGetLanguageResult.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_get_links** > HtmlGetLinksResponse edit_html_html_get_links(input_file=input_file, input_file_url=input_file_url, base_url=base_url) @@ -378,3 +499,289 @@ 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_html_html_get_rel_canonical** +> HtmlGetRelCanonicalUrlResult edit_html_html_get_rel_canonical(input_file=input_file, input_file_url=input_file_url) + +Gets the rel canonical URL for the HTML document + +Gets the rel canonical URL of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Gets the rel canonical URL for the HTML document + api_response = api_instance.edit_html_html_get_rel_canonical(input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_get_rel_canonical: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +[**HtmlGetRelCanonicalUrlResult**](HtmlGetRelCanonicalUrlResult.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_get_sitemap** +> HtmlGetSitemapUrlResult edit_html_html_get_sitemap(input_file=input_file, input_file_url=input_file_url) + +Gets the sitemap URL for the HTML document + +Gets the sitemap link URL of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Gets the sitemap URL for the HTML document + api_response = api_instance.edit_html_html_get_sitemap(input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_get_sitemap: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +[**HtmlGetSitemapUrlResult**](HtmlGetSitemapUrlResult.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_set_language** +> str edit_html_html_set_language(language_code, input_file=input_file, input_file_url=input_file_url) + +Sets the language for the HTML document + +Sets the language code of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +language_code = 'language_code_example' # str | The HTML langauge code to set. +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Sets the language for the HTML document + api_response = api_instance.edit_html_html_set_language(language_code, input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_set_language: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **language_code** | **str**| The HTML langauge code to set. | + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +**str** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_set_rel_canonical** +> str edit_html_html_set_rel_canonical(canonical_url, input_file=input_file, input_file_url=input_file_url) + +Sets the rel canonical URL for the HTML document + +Sets the rel canonical URL of an HTML document. This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +canonical_url = 'canonical_url_example' # str | The HTML canonical URL to set. +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Sets the rel canonical URL for the HTML document + api_response = api_instance.edit_html_html_set_rel_canonical(canonical_url, input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_set_rel_canonical: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **canonical_url** | **str**| The HTML canonical URL to set. | + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +**str** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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_html_html_set_sitemap_url** +> str edit_html_html_set_sitemap_url(sitemap_url, input_file=input_file, input_file_url=input_file_url) + +Sets the sitemap URL for the HTML document + +Sets the sitemap URL of an HTML document. + +### 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.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration)) +sitemap_url = 'sitemap_url_example' # str | The HTML sitemap URL to set. +input_file = '/path/to/file.txt' # file | Optional: Input file to perform the operation on. (optional) +input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional) + +try: + # Sets the sitemap URL for the HTML document + api_response = api_instance.edit_html_html_set_sitemap_url(sitemap_url, input_file=input_file, input_file_url=input_file_url) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditHtmlApi->edit_html_html_set_sitemap_url: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sitemap_url** | **str**| The HTML sitemap URL to set. | + **input_file** | **file**| Optional: Input file to perform the operation on. | [optional] + **input_file_url** | **str**| Optional: URL of a file to operate on as input. | [optional] + +### Return type + +**str** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **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/EditPdfApi.md b/docs/EditPdfApi.md index decbb08..2edba7d 100644 --- a/docs/EditPdfApi.md +++ b/docs/EditPdfApi.md @@ -701,7 +701,7 @@ 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_pdf_reduce_file_size** -> str edit_pdf_reduce_file_size(input_file) +> str edit_pdf_reduce_file_size(input_file, quality=quality) Reduce the file size and optimize a PDF @@ -724,10 +724,11 @@ configuration.api_key['Apikey'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = cloudmersive_convert_api_client.EditPdfApi(cloudmersive_convert_api_client.ApiClient(configuration)) input_file = '/path/to/file.txt' # file | Input file to perform the operation on. +quality = 8.14 # float | Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3 (optional) try: # Reduce the file size and optimize a PDF - api_response = api_instance.edit_pdf_reduce_file_size(input_file) + api_response = api_instance.edit_pdf_reduce_file_size(input_file, quality=quality) pprint(api_response) except ApiException as e: print("Exception when calling EditPdfApi->edit_pdf_reduce_file_size: %s\n" % e) @@ -738,6 +739,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file** | **file**| Input file to perform the operation on. | + **quality** | **float**| Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3 | [optional] ### Return type diff --git a/docs/HtmlGetLanguageResult.md b/docs/HtmlGetLanguageResult.md new file mode 100644 index 0000000..8edf0ee --- /dev/null +++ b/docs/HtmlGetLanguageResult.md @@ -0,0 +1,11 @@ +# HtmlGetLanguageResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if the operation was successful, false otherwise | [optional] +**language_code** | **str** | HTML language code of the HTML document, e.g. \"en\" or \"de\" | [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/HtmlGetRelCanonicalUrlResult.md b/docs/HtmlGetRelCanonicalUrlResult.md new file mode 100644 index 0000000..609572f --- /dev/null +++ b/docs/HtmlGetRelCanonicalUrlResult.md @@ -0,0 +1,11 @@ +# HtmlGetRelCanonicalUrlResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if the operation was successful, false otherwise | [optional] +**canonical_url** | **str** | HTML canonical URL if present | [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/HtmlGetSitemapUrlResult.md b/docs/HtmlGetSitemapUrlResult.md new file mode 100644 index 0000000..92460ad --- /dev/null +++ b/docs/HtmlGetSitemapUrlResult.md @@ -0,0 +1,11 @@ +# HtmlGetSitemapUrlResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if the operation was successful, false otherwise | [optional] +**canonical_url** | **str** | HTML sitemap URL if present | [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/MergeDocumentApi.md b/docs/MergeDocumentApi.md index 29d6dd7..0b4f48e 100644 --- a/docs/MergeDocumentApi.md +++ b/docs/MergeDocumentApi.md @@ -149,7 +149,7 @@ 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) # **merge_document_html** -> object merge_document_html(input_file1, input_file2) +> str merge_document_html(input_file1, input_file2) Merge Two HTML (HTM) Files Together @@ -191,7 +191,7 @@ Name | Type | Description | Notes ### Return type -**object** +**str** ### Authorization diff --git a/packageconfig.json b/packageconfig.json index fdf7ffc..0b9f979 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName": "cloudmersive_convert_api_client", "packageName": "cloudmersive_convert_api_client", - "packageVersion": "3.1.5", + "packageVersion": "3.1.6", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index 1fbc4cf..d1ff684 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 = "3.1.5" +VERSION = "3.1.6" # To install the library, run the following # # python setup.py install diff --git a/test/test_html_get_language_result.py b/test/test_html_get_language_result.py new file mode 100644 index 0000000..e81b1c8 --- /dev/null +++ b/test/test_html_get_language_result.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.html_get_language_result import HtmlGetLanguageResult # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestHtmlGetLanguageResult(unittest.TestCase): + """HtmlGetLanguageResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHtmlGetLanguageResult(self): + """Test HtmlGetLanguageResult""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.html_get_language_result.HtmlGetLanguageResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_html_get_rel_canonical_url_result.py b/test/test_html_get_rel_canonical_url_result.py new file mode 100644 index 0000000..664193f --- /dev/null +++ b/test/test_html_get_rel_canonical_url_result.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.html_get_rel_canonical_url_result import HtmlGetRelCanonicalUrlResult # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestHtmlGetRelCanonicalUrlResult(unittest.TestCase): + """HtmlGetRelCanonicalUrlResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHtmlGetRelCanonicalUrlResult(self): + """Test HtmlGetRelCanonicalUrlResult""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.html_get_rel_canonical_url_result.HtmlGetRelCanonicalUrlResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_html_get_sitemap_url_result.py b/test/test_html_get_sitemap_url_result.py new file mode 100644 index 0000000..c29a77f --- /dev/null +++ b/test/test_html_get_sitemap_url_result.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.html_get_sitemap_url_result import HtmlGetSitemapUrlResult # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestHtmlGetSitemapUrlResult(unittest.TestCase): + """HtmlGetSitemapUrlResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHtmlGetSitemapUrlResult(self): + """Test HtmlGetSitemapUrlResult""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.html_get_sitemap_url_result.HtmlGetSitemapUrlResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()