Skip to content

Commit 80eb4f8

Browse files
committed
Updated sources
1 parent 3849bea commit 80eb4f8

File tree

6 files changed

+173
-5
lines changed

6 files changed

+173
-5
lines changed

groupdocs_conversion_cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
from groupdocs_conversion_cloud.models.one_load_options import OneLoadOptions
5757
from groupdocs_conversion_cloud.models.pdf_convert_options import PdfConvertOptions
5858
from groupdocs_conversion_cloud.models.pdf_load_options import PdfLoadOptions
59+
from groupdocs_conversion_cloud.models.personal_storage_load_options import PersonalStorageLoadOptions
5960
from groupdocs_conversion_cloud.models.presentation_convert_options import PresentationConvertOptions
6061
from groupdocs_conversion_cloud.models.presentation_load_options import PresentationLoadOptions
6162
from groupdocs_conversion_cloud.models.spreadsheet_convert_options import SpreadsheetConvertOptions
@@ -197,3 +198,4 @@
197198
from groupdocs_conversion_cloud.models.jpm_convert_options import JpmConvertOptions
198199
from groupdocs_conversion_cloud.models.jpx_convert_options import JpxConvertOptions
199200
from groupdocs_conversion_cloud.models.tif_convert_options import TifConvertOptions
201+

groupdocs_conversion_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def __init__(self, configuration, header_name=None, header_value=None,
7474
self.configuration = configuration
7575
self.pool = None
7676
self.rest_client = rest.RESTClientObject(configuration)
77-
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '22.3'}
77+
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '22.10'}
7878
if header_name is not None:
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'python sdk 22.3'
82+
self.user_agent = 'python sdk 22.10'
8383

8484
def __del__(self):
8585
if self.pool is not None:

groupdocs_conversion_cloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ def to_debug_report(self):
202202
return "Python SDK Debug Report:\n"\
203203
"OS: {env}\n"\
204204
"Python Version: {pyversion}\n"\
205-
"Version of the API: 22.3\n"\
206-
"SDK Package Version: 22.3".\
205+
"Version of the API: 22.10\n"\
206+
"SDK Package Version: 22.10".\
207207
format(env=sys.platform, pyversion=sys.version)

groupdocs_conversion_cloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from groupdocs_conversion_cloud.models.one_load_options import OneLoadOptions
3535
from groupdocs_conversion_cloud.models.pdf_convert_options import PdfConvertOptions
3636
from groupdocs_conversion_cloud.models.pdf_load_options import PdfLoadOptions
37+
from groupdocs_conversion_cloud.models.personal_storage_load_options import PersonalStorageLoadOptions
3738
from groupdocs_conversion_cloud.models.presentation_convert_options import PresentationConvertOptions
3839
from groupdocs_conversion_cloud.models.presentation_load_options import PresentationLoadOptions
3940
from groupdocs_conversion_cloud.models.spreadsheet_convert_options import SpreadsheetConvertOptions
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# coding: utf-8
2+
3+
# -----------------------------------------------------------------------------------
4+
# <copyright company="Aspose Pty Ltd" file="PersonalStorageLoadOptions.py">
5+
# Copyright (c) 2003-2022 Aspose Pty Ltd
6+
# </copyright>
7+
# <summary>
8+
# Permission is hereby granted, free of charge, to any person obtaining a copy
9+
# of this software and associated documentation files (the "Software"), to deal
10+
# in the Software without restriction, including without limitation the rights
11+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the Software is
13+
# furnished to do so, subject to the following conditions:
14+
#
15+
# The above copyright notice and this permission notice shall be included in all
16+
# copies or substantial portions of the Software.
17+
#
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
# SOFTWARE.
25+
# </summary>
26+
# -----------------------------------------------------------------------------------
27+
28+
import pprint
29+
import re # noqa: F401
30+
31+
import six
32+
33+
from groupdocs_conversion_cloud.models import LoadOptions
34+
35+
class PersonalStorageLoadOptions(LoadOptions):
36+
"""
37+
Options for loading personal storage documents.
38+
"""
39+
40+
"""
41+
Attributes:
42+
swagger_types (dict): The key is attribute name
43+
and the value is attribute type.
44+
attribute_map (dict): The key is attribute name
45+
and the value is json key in definition.
46+
"""
47+
swagger_types = {
48+
'folder': 'str',
49+
'depth': 'int'
50+
}
51+
52+
attribute_map = {
53+
'folder': 'Folder',
54+
'depth': 'Depth'
55+
}
56+
57+
def __init__(self, folder=None, depth=None, **kwargs): # noqa: E501
58+
"""Initializes new instance of PersonalStorageLoadOptions""" # noqa: E501
59+
60+
self._folder = None
61+
self._depth = None
62+
63+
if folder is not None:
64+
self.folder = folder
65+
if depth is not None:
66+
self.depth = depth
67+
68+
base = super(PersonalStorageLoadOptions, self)
69+
base.__init__(**kwargs)
70+
71+
self.swagger_types.update(base.swagger_types)
72+
self.attribute_map.update(base.attribute_map)
73+
74+
@property
75+
def folder(self):
76+
"""
77+
Gets the folder. # noqa: E501
78+
79+
Folder which to be processed Default is Inbox # noqa: E501
80+
81+
:return: The folder. # noqa: E501
82+
:rtype: str
83+
"""
84+
return self._folder
85+
86+
@folder.setter
87+
def folder(self, folder):
88+
"""
89+
Sets the folder.
90+
91+
Folder which to be processed Default is Inbox # noqa: E501
92+
93+
:param folder: The folder. # noqa: E501
94+
:type: str
95+
"""
96+
self._folder = folder
97+
98+
@property
99+
def depth(self):
100+
"""
101+
Gets the depth. # noqa: E501
102+
103+
Controls how many levels in depth to perform conversion # noqa: E501
104+
105+
:return: The depth. # noqa: E501
106+
:rtype: int
107+
"""
108+
return self._depth
109+
110+
@depth.setter
111+
def depth(self, depth):
112+
"""
113+
Sets the depth.
114+
115+
Controls how many levels in depth to perform conversion # noqa: E501
116+
117+
:param depth: The depth. # noqa: E501
118+
:type: int
119+
"""
120+
if depth is None:
121+
raise ValueError("Invalid value for `depth`, must not be `None`") # noqa: E501
122+
self._depth = depth
123+
124+
def to_dict(self):
125+
"""Returns the model properties as a dict"""
126+
result = {}
127+
128+
for attr, _ in six.iteritems(self.swagger_types):
129+
value = getattr(self, attr)
130+
if isinstance(value, list):
131+
result[attr] = list(map(
132+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133+
value
134+
))
135+
elif hasattr(value, "to_dict"):
136+
result[attr] = value.to_dict()
137+
elif isinstance(value, dict):
138+
result[attr] = dict(map(
139+
lambda item: (item[0], item[1].to_dict())
140+
if hasattr(item[1], "to_dict") else item,
141+
value.items()
142+
))
143+
else:
144+
result[attr] = value
145+
146+
return result
147+
148+
def to_str(self):
149+
"""Returns the string representation of the model"""
150+
return pprint.pformat(self.to_dict())
151+
152+
def __repr__(self):
153+
"""For `print` and `pprint`"""
154+
return self.to_str()
155+
156+
def __eq__(self, other):
157+
"""Returns true if both objects are equal"""
158+
if not isinstance(other, PersonalStorageLoadOptions):
159+
return False
160+
161+
return self.__dict__ == other.__dict__
162+
163+
def __ne__(self, other):
164+
"""Returns true if both objects are not equal"""
165+
return not self == other

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages # noqa: H301
77

88
NAME = "groupdocs-conversion-cloud"
9-
VERSION = "22.3"
9+
VERSION = "22.10"
1010

1111
# Append current time to the version when publishing to test environment
1212
if "--test" in sys.argv:

0 commit comments

Comments
 (0)