Skip to content

Commit c35c0ad

Browse files
committed
Aspose.Cells.Cloud SDK 19.6
1 parent 5877a8f commit c35c0ad

11 files changed

+247
-5
lines changed

Diff for: .pypirc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[distutils]
2+
index-servers=pypi
3+
4+
[pypi]
5+
repository=https://upload.pypi.org/legacy/
6+
username=asposecells
7+
password= AsposeCloud123$$

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Aspose.Cells Cloud SDK for Python allows you to use Aspose.Cells APIs in your Python applications
44

5-
- Package version: 19.2.1
5+
- Package version: 19.6
66
- Build package: io.swagger.codegen.languages.PythonClientCodegen
77

88
## Requirements.

Diff for: asposecellscloud/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
from .models.horizontal_page_break_response import HorizontalPageBreakResponse
139139
from .models.horizontal_page_breaks import HorizontalPageBreaks
140140
from .models.horizontal_page_breaks_response import HorizontalPageBreaksResponse
141+
from .models.html_save_options import HtmlSaveOptions
141142
from .models.hyperlink import Hyperlink
142143
from .models.hyperlink_response import HyperlinkResponse
143144
from .models.hyperlinks import Hyperlinks
@@ -157,6 +158,8 @@
157158
from .models.list_object_response import ListObjectResponse
158159
from .models.list_objects import ListObjects
159160
from .models.list_objects_response import ListObjectsResponse
161+
from .models.m_html_save_options import MHtmlSaveOptions
162+
from .models.markdown_save_options import MarkdownSaveOptions
160163
from .models.merged_cell import MergedCell
161164
from .models.merged_cell_response import MergedCellResponse
162165
from .models.merged_cells import MergedCells

Diff for: asposecellscloud/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
7373
self.host = host
7474
self.cookie = cookie
7575
# Set default User-Agent.
76-
self.user_agent = 'Swagger-Codegen/19.2.1/python'
76+
self.user_agent = 'Swagger-Codegen/19.6/python'
7777

7878
@property
7979
def user_agent(self):

Diff for: asposecellscloud/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ def to_debug_report(self):
245245
"OS: {env}\n"\
246246
"Python Version: {pyversion}\n"\
247247
"Version of the API: 1.0\n"\
248-
"SDK Package Version: 19.2.1".\
248+
"SDK Package Version: 19.6".\
249249
format(env=sys.platform, pyversion=sys.version)

Diff for: asposecellscloud/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
from .list_objects import ListObjects
160160
from .list_objects_response import ListObjectsResponse
161161
from .m_html_save_options import MHtmlSaveOptions
162+
from .markdown_save_options import MarkdownSaveOptions
162163
from .merged_cell import MergedCell
163164
from .merged_cell_response import MergedCellResponse
164165
from .merged_cells import MergedCells

Diff for: asposecellscloud/models/markdown_save_options.py

+190
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# coding: utf-8
2+
3+
"""
4+
Web API Swagger specification
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: 1.0
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from pprint import pformat
15+
from six import iteritems
16+
import re
17+
from . import SaveOptions
18+
19+
class MarkdownSaveOptions(SaveOptions):
20+
"""
21+
NOTE: This class is auto generated by the swagger code generator program.
22+
Do not edit the class manually.
23+
"""
24+
25+
26+
"""
27+
Attributes:
28+
swagger_types (dict): The key is attribute name
29+
and the value is attribute type.
30+
attribute_map (dict): The key is attribute name
31+
and the value is json key in definition.
32+
"""
33+
swagger_types = {
34+
'encoding': 'str',
35+
'format_strategy': 'str',
36+
'line_separator': 'str'
37+
}
38+
39+
attribute_map = {
40+
'encoding': 'Encoding',
41+
'format_strategy': 'FormatStrategy',
42+
'line_separator': 'LineSeparator'
43+
}
44+
45+
@staticmethod
46+
def get_swagger_types():
47+
return dict(MarkdownSaveOptions.swagger_types, **SaveOptions.get_swagger_types())
48+
49+
@staticmethod
50+
def get_attribute_map():
51+
return dict(MarkdownSaveOptions.attribute_map, **SaveOptions.get_attribute_map())
52+
53+
def get_from_container(self, attr):
54+
if attr in self.container:
55+
return self.container[attr]
56+
return None
57+
58+
def __init__(self, encoding=None, format_strategy=None, line_separator=None, **kw):
59+
super(MarkdownSaveOptions, self).__init__(**kw)
60+
61+
"""
62+
MarkdownSaveOptions - a model defined in Swagger
63+
"""
64+
65+
self.container['encoding'] = None
66+
self.container['format_strategy'] = None
67+
self.container['line_separator'] = None
68+
69+
if encoding is not None:
70+
self.encoding = encoding
71+
if format_strategy is not None:
72+
self.format_strategy = format_strategy
73+
if line_separator is not None:
74+
self.line_separator = line_separator
75+
76+
@property
77+
def encoding(self):
78+
"""
79+
Gets the encoding of this MarkdownSaveOptions.
80+
81+
:return: The encoding of this MarkdownSaveOptions.
82+
:rtype: str
83+
"""
84+
return self.container['encoding']
85+
86+
@encoding.setter
87+
def encoding(self, encoding):
88+
"""
89+
Sets the encoding of this MarkdownSaveOptions.
90+
91+
:param encoding: The encoding of this MarkdownSaveOptions.
92+
:type: str
93+
"""
94+
95+
self.container['encoding'] = encoding
96+
97+
@property
98+
def format_strategy(self):
99+
"""
100+
Gets the format_strategy of this MarkdownSaveOptions.
101+
102+
:return: The format_strategy of this MarkdownSaveOptions.
103+
:rtype: str
104+
"""
105+
return self.container['format_strategy']
106+
107+
@format_strategy.setter
108+
def format_strategy(self, format_strategy):
109+
"""
110+
Sets the format_strategy of this MarkdownSaveOptions.
111+
112+
:param format_strategy: The format_strategy of this MarkdownSaveOptions.
113+
:type: str
114+
"""
115+
116+
self.container['format_strategy'] = format_strategy
117+
118+
@property
119+
def line_separator(self):
120+
"""
121+
Gets the line_separator of this MarkdownSaveOptions.
122+
123+
:return: The line_separator of this MarkdownSaveOptions.
124+
:rtype: str
125+
"""
126+
return self.container['line_separator']
127+
128+
@line_separator.setter
129+
def line_separator(self, line_separator):
130+
"""
131+
Sets the line_separator of this MarkdownSaveOptions.
132+
133+
:param line_separator: The line_separator of this MarkdownSaveOptions.
134+
:type: str
135+
"""
136+
137+
self.container['line_separator'] = line_separator
138+
139+
def to_dict(self):
140+
"""
141+
Returns the model properties as a dict
142+
"""
143+
result = {}
144+
145+
for attr, _ in iteritems(self.get_swagger_types()):
146+
value = self.get_from_container(attr)
147+
if isinstance(value, list):
148+
result[attr] = list(map(
149+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
150+
value
151+
))
152+
elif hasattr(value, "to_dict"):
153+
result[attr] = value.to_dict()
154+
elif isinstance(value, dict):
155+
result[attr] = dict(map(
156+
lambda item: (item[0], item[1].to_dict())
157+
if hasattr(item[1], "to_dict") else item,
158+
value.items()
159+
))
160+
else:
161+
result[attr] = value
162+
163+
return result
164+
165+
def to_str(self):
166+
"""
167+
Returns the string representation of the model
168+
"""
169+
return pformat(self.to_dict())
170+
171+
def __repr__(self):
172+
"""
173+
For `print` and `pprint`
174+
"""
175+
return self.to_str()
176+
177+
def __eq__(self, other):
178+
"""
179+
Returns true if both objects are equal
180+
"""
181+
if not isinstance(other, MarkdownSaveOptions):
182+
return False
183+
184+
return self.__dict__ == other.__dict__
185+
186+
def __ne__(self, other):
187+
"""
188+
Returns true if both objects are not equal
189+
"""
190+
return not self == other

Diff for: docs/MarkdownSaveOptions.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# MarkdownSaveOptions
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**encoding** | **str** | | [optional]
7+
**format_strategy** | **str** | | [optional]
8+
**line_separator** | **str** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages
1616

1717
NAME = "asposecellscloud"
18-
VERSION = "19.2.1"
18+
VERSION = "19.6"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

Diff for: test/test_cells_save_as_api.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,22 @@ def test_cells_save_as_post_document_save_as(self):
5353
AuthUtil.Ready(name, folder)
5454
result = self.api.cells_save_as_post_document_save_as(name, save_options=saveOptions, newfilename=newfilename,is_auto_fit_rows=isAutoFitRows, is_auto_fit_columns=isAutoFitColumns,folder=folder)
5555
pass
56-
56+
def test_cells_save_as_post_document_save_as_md(self):
57+
"""
58+
Test case for cells_save_as_post_document_save_as
59+
60+
Convert document and save result to storage.
61+
"""
62+
name ='Book1.xlsx'
63+
saveOptions = None
64+
newfilename = "newbook.md"
65+
isAutoFitRows= True
66+
isAutoFitColumns= True
67+
folder = "Temp"
68+
AuthUtil.Ready(name, folder)
69+
result = self.api.cells_save_as_post_document_save_as(name, save_options=saveOptions, newfilename=newfilename,is_auto_fit_rows=isAutoFitRows, is_auto_fit_columns=isAutoFitColumns,folder=folder)
70+
pass
71+
5772
def test_cells_save_as_post_document_save_as_pdf(self):
5873
"""
5974
Test case for cells_save_as_post_document_save_as

Diff for: test/test_cells_workbook_api.py

+14
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ def test_cells_workbook_get_workbook_format(self):
139139
result = self.api.cells_workbook_get_workbook(name,password=password,format="xlsx", is_auto_fit=isAutoFit, folder=folder)
140140
pass
141141

142+
def test_cells_workbook_get_workbook_format_md(self):
143+
"""
144+
Test case for cells_workbook_get_workbook with format
145+
146+
Read workbook info or export.
147+
"""
148+
name ='Book1.xlsx'
149+
folder = "Temp"
150+
password = None
151+
isAutoFit = True
152+
AuthUtil.Ready(name, folder)
153+
result = self.api.cells_workbook_get_workbook(name,password=password,format="md", is_auto_fit=isAutoFit, folder=folder)
154+
pass
155+
142156
def test_cells_workbook_get_workbook_default_style(self):
143157
"""
144158
Test case for cells_workbook_get_workbook_default_style

0 commit comments

Comments
 (0)