From fdde1f864a0b06c73c1bd72cb6b2d2fd59edf3ab Mon Sep 17 00:00:00 2001 From: Cloudmersive <35204726+Cloudmersive@users.noreply.github.com> Date: Sat, 22 Feb 2020 22:30:44 -0800 Subject: [PATCH] 2.4.1 --- README.md | 2 +- cloudmersive_convert_api_client/api_client.py | 2 +- .../configuration.py | 2 +- .../models/url_to_pdf_request.py | 34 +++++++++++++++++-- docs/UrlToPdfRequest.md | 1 + packageconfig.json | 2 +- setup.py | 2 +- 7 files changed, 37 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fad7455..a3c9a93 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.4.0 +- Package version: 2.4.1 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index e3789c7..de76ca2 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.4.0/python' + self.user_agent = 'Swagger-Codegen/2.4.1/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 c463b36..85558ca 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.4.0".\ + "SDK Package Version: 2.4.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudmersive_convert_api_client/models/url_to_pdf_request.py b/cloudmersive_convert_api_client/models/url_to_pdf_request.py index bab2208..9e17f3f 100644 --- a/cloudmersive_convert_api_client/models/url_to_pdf_request.py +++ b/cloudmersive_convert_api_client/models/url_to_pdf_request.py @@ -33,21 +33,24 @@ class UrlToPdfRequest(object): swagger_types = { 'url': 'str', 'extra_loading_wait': 'int', - 'include_background_graphics': 'bool' + 'include_background_graphics': 'bool', + 'scale_factor': 'int' } attribute_map = { 'url': 'Url', 'extra_loading_wait': 'ExtraLoadingWait', - 'include_background_graphics': 'IncludeBackgroundGraphics' + 'include_background_graphics': 'IncludeBackgroundGraphics', + 'scale_factor': 'ScaleFactor' } - def __init__(self, url=None, extra_loading_wait=None, include_background_graphics=None): # noqa: E501 + def __init__(self, url=None, extra_loading_wait=None, include_background_graphics=None, scale_factor=None): # noqa: E501 """UrlToPdfRequest - a model defined in Swagger""" # noqa: E501 self._url = None self._extra_loading_wait = None self._include_background_graphics = None + self._scale_factor = None self.discriminator = None if url is not None: @@ -56,6 +59,8 @@ def __init__(self, url=None, extra_loading_wait=None, include_background_graphic self.extra_loading_wait = extra_loading_wait if include_background_graphics is not None: self.include_background_graphics = include_background_graphics + if scale_factor is not None: + self.scale_factor = scale_factor @property def url(self): @@ -126,6 +131,29 @@ def include_background_graphics(self, include_background_graphics): self._include_background_graphics = include_background_graphics + @property + def scale_factor(self): + """Gets the scale_factor of this UrlToPdfRequest. # noqa: E501 + + Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% # noqa: E501 + + :return: The scale_factor of this UrlToPdfRequest. # noqa: E501 + :rtype: int + """ + return self._scale_factor + + @scale_factor.setter + def scale_factor(self, scale_factor): + """Sets the scale_factor of this UrlToPdfRequest. + + Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% # noqa: E501 + + :param scale_factor: The scale_factor of this UrlToPdfRequest. # noqa: E501 + :type: int + """ + + self._scale_factor = scale_factor + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docs/UrlToPdfRequest.md b/docs/UrlToPdfRequest.md index eb9eb37..7f23ef7 100644 --- a/docs/UrlToPdfRequest.md +++ b/docs/UrlToPdfRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **url** | **str** | URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. | [optional] **extra_loading_wait** | **int** | Optional: Additional number of milliseconds to wait once the web page has finished loading before taking the screenshot. Can be helpful for highly asynchronous websites. Provide a value of 0 for the default of 5000 milliseconds (5 seconds) | [optional] **include_background_graphics** | **bool** | Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. | [optional] +**scale_factor** | **int** | Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% | [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 9037eaf..e5fe93d 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.4.0", + "packageVersion": "2.4.1", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index 80115f7..4fca9a1 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.4.0" +VERSION = "2.4.1" # To install the library, run the following # # python setup.py install