Skip to content

Commit

Permalink
2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Feb 23, 2020
1 parent d0f1107 commit fdde1f8
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types.
This Python package provides a native API client for [Cloudmersive Document Conversion](https://www.cloudmersive.com/convert-api)

- API version: v1
- Package version: 2.4.0
- Package version: 2.4.1
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/2.4.0/python'
self.user_agent = 'Swagger-Codegen/2.4.1/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
34 changes: 31 additions & 3 deletions cloudmersive_convert_api_client/models/url_to_pdf_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {}
Expand Down
1 change: 1 addition & 0 deletions docs/UrlToPdfRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion packageconfig.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdde1f8

Please sign in to comment.