Skip to content

Commit 428cfa6

Browse files
committed
Release Aspose.Cells Cloud SDK 20.8
1 parent adf3232 commit 428cfa6

16 files changed

+2428
-2252
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
1616
- Convert worksheets to PDF, XPS & SVG formats.
1717
- Inter-convert files to popular Excel formats.
1818

19-
## Feature & Enhancements in Version 20.7
19+
## Feature & Enhancements in Version 20.8
2020

21-
- Enhancement for CellsApi constructor.
21+
- Aspose.Cells Cloud API calls are not working with explicit storage name but only default storage.
22+
- Get output file size without downloading during conversion.
23+
- Enhancement for CellsShapesPutWorksheetShape API.
2224

2325
## Read & Write Spreadsheet Formats
2426

asposecellscloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from .models.calculation_options import CalculationOptions
3333
from .models.cell_area import CellArea
3434
from .models.cell_value import CellValue
35+
from .models.cells_cloud_file_info import CellsCloudFileInfo
3536
from .models.cells_cloud_response import CellsCloudResponse
3637
from .models.cells_color import CellsColor
3738
from .models.color import Color

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8383
self.host = host
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = 'Swagger-Codegen/20.7/python'
86+
self.user_agent = 'Swagger-Codegen/20.8/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 1189 additions & 1206 deletions
Large diffs are not rendered by default.

asposecellscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@ def to_debug_report(self):
254254
return "Python SDK Debug Report:\n"\
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257-
"Version of the API: 20.6\n"\
258-
"SDK Package Version: 20.7".\
257+
"Version of the API: 20.8\n"\
258+
"SDK Package Version: 20.8".\
259259
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from .calculation_options import CalculationOptions
3333
from .cell_area import CellArea
3434
from .cell_value import CellValue
35+
from .cells_cloud_file_info import CellsCloudFileInfo
3536
from .cells_cloud_response import CellsCloudResponse
3637
from .cells_color import CellsColor
3738
from .color import Color
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# coding: utf-8
2+
3+
"""
4+
Copyright (c) 2020 Aspose.Cells Cloud
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
"""
22+
23+
24+
from pprint import pformat
25+
from six import iteritems
26+
import re
27+
28+
29+
class CellsCloudFileInfo(object):
30+
"""
31+
NOTE: This class is auto generated by the swagger code generator program.
32+
Do not edit the class manually.
33+
"""
34+
35+
36+
"""
37+
Attributes:
38+
swagger_types (dict): The key is attribute name
39+
and the value is attribute type.
40+
attribute_map (dict): The key is attribute name
41+
and the value is json key in definition.
42+
"""
43+
swagger_types = {
44+
'name': 'str',
45+
'size': 'int',
46+
'folder': 'str',
47+
'storage': 'str'
48+
}
49+
50+
attribute_map = {
51+
'name': 'Name',
52+
'size': 'Size',
53+
'folder': 'Folder',
54+
'storage': 'Storage'
55+
}
56+
57+
@staticmethod
58+
def get_swagger_types():
59+
return CellsCloudFileInfo.swagger_types
60+
61+
@staticmethod
62+
def get_attribute_map():
63+
return CellsCloudFileInfo.attribute_map
64+
65+
def get_from_container(self, attr):
66+
if attr in self.container:
67+
return self.container[attr]
68+
return None
69+
70+
def __init__(self, name=None, size=None, folder=None, storage=None, **kw):
71+
"""
72+
Associative dict for storing property values
73+
"""
74+
self.container = {}
75+
76+
"""
77+
CellsCloudFileInfo - a model defined in Swagger
78+
"""
79+
80+
self.container['name'] = None
81+
self.container['size'] = None
82+
self.container['folder'] = None
83+
self.container['storage'] = None
84+
85+
if name is not None:
86+
self.name = name
87+
self.size = size
88+
if folder is not None:
89+
self.folder = folder
90+
if storage is not None:
91+
self.storage = storage
92+
93+
@property
94+
def name(self):
95+
"""
96+
Gets the name of this CellsCloudFileInfo.
97+
98+
:return: The name of this CellsCloudFileInfo.
99+
:rtype: str
100+
"""
101+
return self.container['name']
102+
103+
@name.setter
104+
def name(self, name):
105+
"""
106+
Sets the name of this CellsCloudFileInfo.
107+
108+
:param name: The name of this CellsCloudFileInfo.
109+
:type: str
110+
"""
111+
112+
self.container['name'] = name
113+
114+
@property
115+
def size(self):
116+
"""
117+
Gets the size of this CellsCloudFileInfo.
118+
119+
:return: The size of this CellsCloudFileInfo.
120+
:rtype: int
121+
"""
122+
return self.container['size']
123+
124+
@size.setter
125+
def size(self, size):
126+
"""
127+
Sets the size of this CellsCloudFileInfo.
128+
129+
:param size: The size of this CellsCloudFileInfo.
130+
:type: int
131+
"""
132+
"""
133+
if size is None:
134+
raise ValueError("Invalid value for `size`, must not be `None`")
135+
"""
136+
137+
self.container['size'] = size
138+
139+
@property
140+
def folder(self):
141+
"""
142+
Gets the folder of this CellsCloudFileInfo.
143+
144+
:return: The folder of this CellsCloudFileInfo.
145+
:rtype: str
146+
"""
147+
return self.container['folder']
148+
149+
@folder.setter
150+
def folder(self, folder):
151+
"""
152+
Sets the folder of this CellsCloudFileInfo.
153+
154+
:param folder: The folder of this CellsCloudFileInfo.
155+
:type: str
156+
"""
157+
158+
self.container['folder'] = folder
159+
160+
@property
161+
def storage(self):
162+
"""
163+
Gets the storage of this CellsCloudFileInfo.
164+
165+
:return: The storage of this CellsCloudFileInfo.
166+
:rtype: str
167+
"""
168+
return self.container['storage']
169+
170+
@storage.setter
171+
def storage(self, storage):
172+
"""
173+
Sets the storage of this CellsCloudFileInfo.
174+
175+
:param storage: The storage of this CellsCloudFileInfo.
176+
:type: str
177+
"""
178+
179+
self.container['storage'] = storage
180+
181+
def to_dict(self):
182+
"""
183+
Returns the model properties as a dict
184+
"""
185+
result = {}
186+
187+
for attr, _ in iteritems(self.get_swagger_types()):
188+
value = self.get_from_container(attr)
189+
if isinstance(value, list):
190+
result[attr] = list(map(
191+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192+
value
193+
))
194+
elif hasattr(value, "to_dict"):
195+
result[attr] = value.to_dict()
196+
elif isinstance(value, dict):
197+
result[attr] = dict(map(
198+
lambda item: (item[0], item[1].to_dict())
199+
if hasattr(item[1], "to_dict") else item,
200+
value.items()
201+
))
202+
else:
203+
result[attr] = value
204+
205+
return result
206+
207+
def to_str(self):
208+
"""
209+
Returns the string representation of the model
210+
"""
211+
return pformat(self.to_dict())
212+
213+
def __repr__(self):
214+
"""
215+
For `print` and `pprint`
216+
"""
217+
return self.to_str()
218+
219+
def __eq__(self, other):
220+
"""
221+
Returns true if both objects are equal
222+
"""
223+
if not isinstance(other, CellsCloudFileInfo):
224+
return False
225+
226+
return self.__dict__ == other.__dict__
227+
228+
def __ne__(self, other):
229+
"""
230+
Returns true if both objects are not equal
231+
"""
232+
return not self == other

0 commit comments

Comments
 (0)