Skip to content

Commit

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

## Requirements.
Expand Down Expand Up @@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
*EditDocumentApi* | [**edit_document_xlsx_create_blank_spreadsheet**](docs/EditDocumentApi.md#edit_document_xlsx_create_blank_spreadsheet) | **POST** /convert/edit/xlsx/create/blank | Create a blank Excel XLSX spreadsheet
*EditDocumentApi* | [**edit_document_xlsx_create_spreadsheet_from_data**](docs/EditDocumentApi.md#edit_document_xlsx_create_spreadsheet_from_data) | **POST** /convert/edit/xlsx/create/from/data | Create a new Excel XLSX spreadsheet from column and row data
*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_enable_shared_workbook**](docs/EditDocumentApi.md#edit_document_xlsx_enable_shared_workbook) | **POST** /convert/edit/xlsx/configuration/enable-shared-workbook | Enable Shared Workbook (legacy) in Excel XLSX spreadsheet
*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 columns from a Excel XLSX spreadsheet, worksheet
Expand Down Expand Up @@ -304,6 +305,8 @@ Class | Method | HTTP request | Description
- [DocxTemplateOperation](docs/DocxTemplateOperation.md)
- [DocxText](docs/DocxText.md)
- [DocxTopLevelComment](docs/DocxTopLevelComment.md)
- [EnableSharedWorkbookRequest](docs/EnableSharedWorkbookRequest.md)
- [EnableSharedWorkbookResponse](docs/EnableSharedWorkbookResponse.md)
- [ExifValue](docs/ExifValue.md)
- [FindRegexMatch](docs/FindRegexMatch.md)
- [FindStringMatch](docs/FindStringMatch.md)
Expand Down
2 changes: 2 additions & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation
from cloudmersive_convert_api_client.models.docx_text import DocxText
from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment
from cloudmersive_convert_api_client.models.enable_shared_workbook_request import EnableSharedWorkbookRequest
from cloudmersive_convert_api_client.models.enable_shared_workbook_response import EnableSharedWorkbookResponse
from cloudmersive_convert_api_client.models.exif_value import ExifValue
from cloudmersive_convert_api_client.models.find_regex_match import FindRegexMatch
from cloudmersive_convert_api_client.models.find_string_match import FindStringMatch
Expand Down
99 changes: 99 additions & 0 deletions cloudmersive_convert_api_client/api/edit_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3597,6 +3597,105 @@ def edit_document_xlsx_delete_worksheet_with_http_info(self, req_config, **kwarg
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def edit_document_xlsx_enable_shared_workbook(self, input, **kwargs): # noqa: E501
"""Enable Shared Workbook (legacy) in Excel XLSX spreadsheet # noqa: E501
Enables the Shared Workbook (legacy) mode in an Excel XLSX spreadsheet # 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_enable_shared_workbook(input, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EnableSharedWorkbookRequest input: Document input request (required)
:return: EnableSharedWorkbookResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.edit_document_xlsx_enable_shared_workbook_with_http_info(input, **kwargs) # noqa: E501
else:
(data) = self.edit_document_xlsx_enable_shared_workbook_with_http_info(input, **kwargs) # noqa: E501
return data

def edit_document_xlsx_enable_shared_workbook_with_http_info(self, input, **kwargs): # noqa: E501
"""Enable Shared Workbook (legacy) in Excel XLSX spreadsheet # noqa: E501
Enables the Shared Workbook (legacy) mode in an Excel XLSX spreadsheet # 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_enable_shared_workbook_with_http_info(input, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EnableSharedWorkbookRequest input: Document input request (required)
:return: EnableSharedWorkbookResponse
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['input'] # 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_document_xlsx_enable_shared_workbook" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'input' is set
if ('input' not in params or
params['input'] is None):
raise ValueError("Missing the required parameter `input` when calling `edit_document_xlsx_enable_shared_workbook`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}

body_params = None
if 'input' in params:
body_params = params['input']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501

# Authentication setting
auth_settings = ['Apikey'] # noqa: E501

return self.api_client.call_api(
'/convert/edit/xlsx/configuration/enable-shared-workbook', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnableSharedWorkbookResponse', # 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_document_xlsx_get_cell_by_identifier(self, input, **kwargs): # noqa: E501
"""Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier # noqa: E501
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.8/python'
self.user_agent = 'Swagger-Codegen/2.3.9/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.8".\
"SDK Package Version: 2.3.9".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 2 additions & 0 deletions cloudmersive_convert_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
from cloudmersive_convert_api_client.models.docx_template_operation import DocxTemplateOperation
from cloudmersive_convert_api_client.models.docx_text import DocxText
from cloudmersive_convert_api_client.models.docx_top_level_comment import DocxTopLevelComment
from cloudmersive_convert_api_client.models.enable_shared_workbook_request import EnableSharedWorkbookRequest
from cloudmersive_convert_api_client.models.enable_shared_workbook_response import EnableSharedWorkbookResponse
from cloudmersive_convert_api_client.models.exif_value import ExifValue
from cloudmersive_convert_api_client.models.find_regex_match import FindRegexMatch
from cloudmersive_convert_api_client.models.find_string_match import FindStringMatch
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# coding: utf-8

"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

import six


class EnableSharedWorkbookRequest(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 = {
'input_file_bytes': 'str',
'input_file_url': 'str'
}

attribute_map = {
'input_file_bytes': 'InputFileBytes',
'input_file_url': 'InputFileUrl'
}

def __init__(self, input_file_bytes=None, input_file_url=None): # noqa: E501
"""EnableSharedWorkbookRequest - a model defined in Swagger""" # noqa: E501

self._input_file_bytes = None
self._input_file_url = None
self.discriminator = None

if input_file_bytes is not None:
self.input_file_bytes = input_file_bytes
if input_file_url is not None:
self.input_file_url = input_file_url

@property
def input_file_bytes(self):
"""Gets the input_file_bytes of this EnableSharedWorkbookRequest. # noqa: E501
Optional: Bytes of the input file to operate on # noqa: E501
:return: The input_file_bytes of this EnableSharedWorkbookRequest. # noqa: E501
:rtype: str
"""
return self._input_file_bytes

@input_file_bytes.setter
def input_file_bytes(self, input_file_bytes):
"""Sets the input_file_bytes of this EnableSharedWorkbookRequest.
Optional: Bytes of the input file to operate on # noqa: E501
:param input_file_bytes: The input_file_bytes of this EnableSharedWorkbookRequest. # noqa: E501
:type: str
"""
if input_file_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', input_file_bytes): # noqa: E501
raise ValueError(r"Invalid value for `input_file_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501

self._input_file_bytes = input_file_bytes

@property
def input_file_url(self):
"""Gets the input_file_url of this EnableSharedWorkbookRequest. # noqa: E501
Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501
:return: The input_file_url of this EnableSharedWorkbookRequest. # noqa: E501
:rtype: str
"""
return self._input_file_url

@input_file_url.setter
def input_file_url(self, input_file_url):
"""Sets the input_file_url of this EnableSharedWorkbookRequest.
Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501
:param input_file_url: The input_file_url of this EnableSharedWorkbookRequest. # noqa: E501
:type: str
"""

self._input_file_url = input_file_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(EnableSharedWorkbookRequest, 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, EnableSharedWorkbookRequest):
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 2284b78

Please sign in to comment.