Skip to content

Commit

Permalink
2.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Feb 4, 2020
1 parent 1fa340f commit 3bb7c2b
Show file tree
Hide file tree
Showing 18 changed files with 261 additions and 33 deletions.
9 changes: 5 additions & 4 deletions 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.3.7
- Package version: 2.3.8
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -175,7 +175,7 @@ Class | Method | HTTP request | Description
*EditDocumentApi* | [**edit_document_xlsx_delete_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_delete_worksheet) | **POST** /convert/edit/xlsx/delete-worksheet | Delete, remove worksheet from an Excel XLSX spreadsheet document
*EditDocumentApi* | [**edit_document_xlsx_get_cell_by_identifier**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_identifier) | **POST** /convert/edit/xlsx/get-cell/by-identifier | Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier
*EditDocumentApi* | [**edit_document_xlsx_get_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index
*EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet
*EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get columns from a Excel XLSX spreadsheet, worksheet
*EditDocumentApi* | [**edit_document_xlsx_get_images**](docs/EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet
*EditDocumentApi* | [**edit_document_xlsx_get_rows_and_cells**](docs/EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Excel XLSX spreadsheet, worksheet
*EditDocumentApi* | [**edit_document_xlsx_get_styles**](docs/EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet
Expand All @@ -185,13 +185,13 @@ Class | Method | HTTP request | Description
*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
*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_decrypt**](docs/EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
*EditPdfApi* | [**edit_pdf_delete_pages**](docs/EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove / delete pages from a PDF document
*EditPdfApi* | [**edit_pdf_delete_pages**](docs/EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document
*EditPdfApi* | [**edit_pdf_encrypt**](docs/EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
*EditPdfApi* | [**edit_pdf_get_annotations**](docs/EditPdfApi.md#edit_pdf_get_annotations) | **POST** /convert/edit/pdf/annotations/list | Get PDF annotations, including comments in the document
*EditPdfApi* | [**edit_pdf_get_form_fields**](docs/EditPdfApi.md#edit_pdf_get_form_fields) | **POST** /convert/edit/pdf/form/get-fields | Gets PDF Form fields and values
*EditPdfApi* | [**edit_pdf_get_metadata**](docs/EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
*EditPdfApi* | [**edit_pdf_get_pdf_text_by_pages**](docs/EditPdfApi.md#edit_pdf_get_pdf_text_by_pages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page
*EditPdfApi* | [**edit_pdf_insert_pages**](docs/EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert / copy pages from one PDF document into another
*EditPdfApi* | [**edit_pdf_insert_pages**](docs/EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert, copy pages from one PDF document into another
*EditPdfApi* | [**edit_pdf_rasterize**](docs/EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
*EditPdfApi* | [**edit_pdf_remove_all_annotations**](docs/EditPdfApi.md#edit_pdf_remove_all_annotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document
*EditPdfApi* | [**edit_pdf_remove_annotation_item**](docs/EditPdfApi.md#edit_pdf_remove_annotation_item) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document
Expand Down Expand Up @@ -416,6 +416,7 @@ Class | Method | HTTP request | Description
- [UpdateDocxTableCellResponse](docs/UpdateDocxTableCellResponse.md)
- [UpdateDocxTableRowRequest](docs/UpdateDocxTableRowRequest.md)
- [UpdateDocxTableRowResponse](docs/UpdateDocxTableRowResponse.md)
- [UrlToPdfRequest](docs/UrlToPdfRequest.md)
- [UrlToTextRequest](docs/UrlToTextRequest.md)
- [UrlToTextResponse](docs/UrlToTextResponse.md)
- [ViewerResponse](docs/ViewerResponse.md)
Expand Down
1 change: 1 addition & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
from cloudmersive_convert_api_client.models.update_docx_table_cell_response import UpdateDocxTableCellResponse
from cloudmersive_convert_api_client.models.update_docx_table_row_request import UpdateDocxTableRowRequest
from cloudmersive_convert_api_client.models.update_docx_table_row_response import UpdateDocxTableRowResponse
from cloudmersive_convert_api_client.models.url_to_pdf_request import UrlToPdfRequest
from cloudmersive_convert_api_client.models.url_to_text_request import UrlToTextRequest
from cloudmersive_convert_api_client.models.url_to_text_response import UrlToTextResponse
from cloudmersive_convert_api_client.models.viewer_response import ViewerResponse
Expand Down
4 changes: 2 additions & 2 deletions cloudmersive_convert_api_client/api/convert_web_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def convert_web_url_to_pdf(self, input, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param ScreenshotRequest input: URL to PDF request parameters (required)
:param UrlToPdfRequest input: URL to PDF request parameters (required)
:return: str
If the method is called asynchronously,
returns the request thread.
Expand All @@ -560,7 +560,7 @@ def convert_web_url_to_pdf_with_http_info(self, input, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param ScreenshotRequest input: URL to PDF request parameters (required)
:param UrlToPdfRequest input: URL to PDF request parameters (required)
:return: str
If the method is called asynchronously,
returns the request thread.
Expand Down
8 changes: 4 additions & 4 deletions cloudmersive_convert_api_client/api/edit_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3796,9 +3796,9 @@ def edit_document_xlsx_get_cell_by_index_with_http_info(self, input, **kwargs):
collection_formats=collection_formats)

def edit_document_xlsx_get_columns(self, input, **kwargs): # noqa: E501
"""Get rows and cells from a Excel XLSX spreadsheet, worksheet # noqa: E501
"""Get columns from a Excel XLSX spreadsheet, worksheet # noqa: E501
Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501
Returns the columns defined in the Excel Spreadsheet worksheet # 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_document_xlsx_get_columns(input, async_req=True)
Expand All @@ -3818,9 +3818,9 @@ def edit_document_xlsx_get_columns(self, input, **kwargs): # noqa: E501
return data

def edit_document_xlsx_get_columns_with_http_info(self, input, **kwargs): # noqa: E501
"""Get rows and cells from a Excel XLSX spreadsheet, worksheet # noqa: E501
"""Get columns from a Excel XLSX spreadsheet, worksheet # noqa: E501
Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501
Returns the columns defined in the Excel Spreadsheet worksheet # 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_document_xlsx_get_columns_with_http_info(input, async_req=True)
Expand Down
8 changes: 4 additions & 4 deletions cloudmersive_convert_api_client/api/edit_pdf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def edit_pdf_decrypt_with_http_info(self, password, input_file, **kwargs): # no
collection_formats=collection_formats)

def edit_pdf_delete_pages(self, input_file, page_start, page_end, **kwargs): # noqa: E501
"""Remove / delete pages from a PDF document # noqa: E501
"""Remove, delete pages from a PDF document # noqa: E501
Remove one or more pages from a PDF document # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand All @@ -264,7 +264,7 @@ def edit_pdf_delete_pages(self, input_file, page_start, page_end, **kwargs): #
return data

def edit_pdf_delete_pages_with_http_info(self, input_file, page_start, page_end, **kwargs): # noqa: E501
"""Remove / delete pages from a PDF document # noqa: E501
"""Remove, delete pages from a PDF document # noqa: E501
Remove one or more pages from a PDF document # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -862,7 +862,7 @@ def edit_pdf_get_pdf_text_by_pages_with_http_info(self, input_file, **kwargs):
collection_formats=collection_formats)

def edit_pdf_insert_pages(self, source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation, **kwargs): # noqa: E501
"""Insert / copy pages from one PDF document into another # noqa: E501
"""Insert, copy pages from one PDF document into another # noqa: E501
Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand All @@ -888,7 +888,7 @@ def edit_pdf_insert_pages(self, source_file, destination_file, page_start_source
return data

def edit_pdf_insert_pages_with_http_info(self, source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation, **kwargs): # noqa: E501
"""Insert / copy pages from one PDF document into another # noqa: E501
"""Insert, copy pages from one PDF document into another # noqa: E501
Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
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.3.7/python'
self.user_agent = 'Swagger-Codegen/2.3.8/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_convert_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.7".\
"SDK Package Version: 2.3.8".\
format(env=sys.platform, pyversion=sys.version)
1 change: 1 addition & 0 deletions cloudmersive_convert_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
from cloudmersive_convert_api_client.models.update_docx_table_cell_response import UpdateDocxTableCellResponse
from cloudmersive_convert_api_client.models.update_docx_table_row_request import UpdateDocxTableRowRequest
from cloudmersive_convert_api_client.models.update_docx_table_row_response import UpdateDocxTableRowResponse
from cloudmersive_convert_api_client.models.url_to_pdf_request import UrlToPdfRequest
from cloudmersive_convert_api_client.models.url_to_text_request import UrlToTextRequest
from cloudmersive_convert_api_client.models.url_to_text_response import UrlToTextResponse
from cloudmersive_convert_api_client.models.viewer_response import ViewerResponse
Expand Down
4 changes: 2 additions & 2 deletions cloudmersive_convert_api_client/models/screenshot_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def extra_loading_wait(self, extra_loading_wait):
def screenshot_width(self):
"""Gets the screenshot_width of this ScreenshotRequest. # noqa: E501
Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024, supply -1 to measure the full screen height of the page and attempt to take a screen-height screenshot # noqa: E501
Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024 # noqa: E501
:return: The screenshot_width of this ScreenshotRequest. # noqa: E501
:rtype: int
Expand All @@ -123,7 +123,7 @@ def screenshot_width(self):
def screenshot_width(self, screenshot_width):
"""Sets the screenshot_width of this ScreenshotRequest.
Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024, supply -1 to measure the full screen height of the page and attempt to take a screen-height screenshot # noqa: E501
Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024 # noqa: E501
:param screenshot_width: The screenshot_width of this ScreenshotRequest. # noqa: E501
:type: int
Expand Down
173 changes: 173 additions & 0 deletions cloudmersive_convert_api_client/models/url_to_pdf_request.py
Original file line number Diff line number Diff line change
@@ -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 UrlToPdfRequest(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 = {
'url': 'str',
'extra_loading_wait': 'int',
'include_background_graphics': 'bool'
}

attribute_map = {
'url': 'Url',
'extra_loading_wait': 'ExtraLoadingWait',
'include_background_graphics': 'IncludeBackgroundGraphics'
}

def __init__(self, url=None, extra_loading_wait=None, include_background_graphics=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.discriminator = None

if url is not None:
self.url = url
if extra_loading_wait is not None:
self.extra_loading_wait = extra_loading_wait
if include_background_graphics is not None:
self.include_background_graphics = include_background_graphics

@property
def url(self):
"""Gets the url of this UrlToPdfRequest. # noqa: E501
URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. # noqa: E501
:return: The url of this UrlToPdfRequest. # noqa: E501
:rtype: str
"""
return self._url

@url.setter
def url(self, url):
"""Sets the url of this UrlToPdfRequest.
URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. # noqa: E501
:param url: The url of this UrlToPdfRequest. # noqa: E501
:type: str
"""

self._url = url

@property
def extra_loading_wait(self):
"""Gets the extra_loading_wait of this UrlToPdfRequest. # noqa: E501
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) # noqa: E501
:return: The extra_loading_wait of this UrlToPdfRequest. # noqa: E501
:rtype: int
"""
return self._extra_loading_wait

@extra_loading_wait.setter
def extra_loading_wait(self, extra_loading_wait):
"""Sets the extra_loading_wait of this UrlToPdfRequest.
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) # noqa: E501
:param extra_loading_wait: The extra_loading_wait of this UrlToPdfRequest. # noqa: E501
:type: int
"""

self._extra_loading_wait = extra_loading_wait

@property
def include_background_graphics(self):
"""Gets the include_background_graphics of this UrlToPdfRequest. # noqa: E501
Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. # noqa: E501
:return: The include_background_graphics of this UrlToPdfRequest. # noqa: E501
:rtype: bool
"""
return self._include_background_graphics

@include_background_graphics.setter
def include_background_graphics(self, include_background_graphics):
"""Sets the include_background_graphics of this UrlToPdfRequest.
Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. # noqa: E501
:param include_background_graphics: The include_background_graphics of this UrlToPdfRequest. # noqa: E501
:type: bool
"""

self._include_background_graphics = include_background_graphics

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(UrlToPdfRequest, 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, UrlToPdfRequest):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
Loading

0 comments on commit 3bb7c2b

Please sign in to comment.