Skip to content

Commit 49491ca

Browse files
committed
Updated sources
1 parent 4b001c4 commit 49491ca

File tree

7 files changed

+221
-5
lines changed

7 files changed

+221
-5
lines changed

groupdocs_conversion_cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from groupdocs_conversion_cloud.models.file_versions import FileVersions
4040
from groupdocs_conversion_cloud.models.files_list import FilesList
4141
from groupdocs_conversion_cloud.models.files_upload_result import FilesUploadResult
42+
from groupdocs_conversion_cloud.models.license_info import LicenseInfo
4243
from groupdocs_conversion_cloud.models.load_options import LoadOptions
4344
from groupdocs_conversion_cloud.models.object_exist import ObjectExist
4445
from groupdocs_conversion_cloud.models.storage_exist import StorageExist
@@ -200,3 +201,4 @@
200201
from groupdocs_conversion_cloud.models.tif_convert_options import TifConvertOptions
201202

202203

204+

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': '23.9'}
77+
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '23.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 23.9'
82+
self.user_agent = 'python sdk 23.10'
8383

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

groupdocs_conversion_cloud/apis/license_api.py

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,91 @@ def _get_consumption_credit_with_http_info(self, **kwargs): # noqa: E501
169169

170170
return self.api_client.call_api(**call_kwargs) # noqa: E501
171171

172+
def get_license_info(self, **kwargs): # noqa: E501
173+
"""Get license information # noqa: E501
174+
175+
This method makes a synchronous HTTP request by default. To make an
176+
asynchronous HTTP request, please pass is_async=True
177+
178+
:param is_async bool
179+
:return: LicenseInfo
180+
If the method is called asynchronously,
181+
returns the request thread.
182+
"""
183+
kwargs['_return_http_data_only'] = True
184+
185+
if kwargs.get('is_async'):
186+
return self._get_license_info_with_http_info(**kwargs) # noqa: E501
187+
188+
(data) = self._get_license_info_with_http_info(**kwargs) # noqa: E501
189+
return data
190+
191+
def _get_license_info_with_http_info(self, **kwargs): # noqa: E501
192+
"""Get license information # noqa: E501
193+
194+
This method makes a synchronous HTTP request by default. To make an
195+
asynchronous HTTP request, please pass is_async=True
196+
197+
:param is_async bool
198+
199+
:return: LicenseInfo
200+
If the method is called asynchronously,
201+
returns the request thread.
202+
"""
203+
params = locals()
204+
params['is_async'] = ''
205+
params['_return_http_data_only'] = False
206+
params['_preload_content'] = True
207+
params['_request_timeout'] = ''
208+
for key, val in six.iteritems(params['kwargs']):
209+
if key not in params:
210+
raise TypeError(
211+
"Got an unexpected keyword argument '%s'"
212+
" to method get_license_info" % key
213+
)
214+
params[key] = val
215+
del params['kwargs']
216+
217+
collection_formats = {}
218+
path = '/conversion/license'
219+
path_params = {}
220+
221+
query_params = []
222+
223+
header_params = {}
224+
225+
form_params = []
226+
local_var_files = []
227+
228+
body_params = None
229+
# HTTP header `Accept`
230+
header_params['Accept'] = self.api_client.select_header_accept(
231+
['application/json']) # noqa: E501
232+
233+
# HTTP header `Content-Type`
234+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
235+
['application/json']) # noqa: E501
236+
237+
call_kwargs = {
238+
'resource_path':path,
239+
'method':'GET',
240+
'path_params':path_params,
241+
'query_params':query_params,
242+
'header_params':header_params,
243+
'body':body_params,
244+
'post_params':form_params,
245+
'files':local_var_files,
246+
'response_type':'LicenseInfo', # noqa: E501
247+
'auth_settings':self.auth.get_auth_settings(),
248+
'is_async':params.get('is_async'),
249+
'_return_http_data_only':params.get('_return_http_data_only'),
250+
'_preload_content':params.get('_preload_content', True),
251+
'_request_timeout':params.get('_request_timeout'),
252+
'collection_formats':collection_formats
253+
}
254+
255+
return self.api_client.call_api(**call_kwargs) # noqa: E501
256+
172257
def __downcase_first_letter(self, s):
173258
if len(s) == 0:
174259
return str

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: 23.9\n"\
206-
"SDK Package Version: 23.9".\
205+
"Version of the API: 23.10\n"\
206+
"SDK Package Version: 23.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
@@ -17,6 +17,7 @@
1717
from groupdocs_conversion_cloud.models.file_versions import FileVersions
1818
from groupdocs_conversion_cloud.models.files_list import FilesList
1919
from groupdocs_conversion_cloud.models.files_upload_result import FilesUploadResult
20+
from groupdocs_conversion_cloud.models.license_info import LicenseInfo
2021
from groupdocs_conversion_cloud.models.load_options import LoadOptions
2122
from groupdocs_conversion_cloud.models.object_exist import ObjectExist
2223
from groupdocs_conversion_cloud.models.storage_exist import StorageExist
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# coding: utf-8
2+
3+
# -----------------------------------------------------------------------------------
4+
# <copyright company="Aspose Pty Ltd" file="LicenseInfo.py">
5+
# Copyright (c) 2003-2023 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+
class LicenseInfo(object):
34+
"""
35+
Current license information
36+
"""
37+
38+
"""
39+
Attributes:
40+
swagger_types (dict): The key is attribute name
41+
and the value is attribute type.
42+
attribute_map (dict): The key is attribute name
43+
and the value is json key in definition.
44+
"""
45+
swagger_types = {
46+
'is_licensed': 'bool'
47+
}
48+
49+
attribute_map = {
50+
'is_licensed': 'IsLicensed'
51+
}
52+
53+
def __init__(self, is_licensed=None, **kwargs): # noqa: E501
54+
"""Initializes new instance of LicenseInfo""" # noqa: E501
55+
56+
self._is_licensed = None
57+
58+
if is_licensed is not None:
59+
self.is_licensed = is_licensed
60+
61+
@property
62+
def is_licensed(self):
63+
"""
64+
Gets the is_licensed. # noqa: E501
65+
66+
True, if license was applied and valid, otherwise False # noqa: E501
67+
68+
:return: The is_licensed. # noqa: E501
69+
:rtype: bool
70+
"""
71+
return self._is_licensed
72+
73+
@is_licensed.setter
74+
def is_licensed(self, is_licensed):
75+
"""
76+
Sets the is_licensed.
77+
78+
True, if license was applied and valid, otherwise False # noqa: E501
79+
80+
:param is_licensed: The is_licensed. # noqa: E501
81+
:type: bool
82+
"""
83+
if is_licensed is None:
84+
raise ValueError("Invalid value for `is_licensed`, must not be `None`") # noqa: E501
85+
self._is_licensed = is_licensed
86+
87+
def to_dict(self):
88+
"""Returns the model properties as a dict"""
89+
result = {}
90+
91+
for attr, _ in six.iteritems(self.swagger_types):
92+
value = getattr(self, attr)
93+
if isinstance(value, list):
94+
result[attr] = list(map(
95+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
96+
value
97+
))
98+
elif hasattr(value, "to_dict"):
99+
result[attr] = value.to_dict()
100+
elif isinstance(value, dict):
101+
result[attr] = dict(map(
102+
lambda item: (item[0], item[1].to_dict())
103+
if hasattr(item[1], "to_dict") else item,
104+
value.items()
105+
))
106+
else:
107+
result[attr] = value
108+
109+
return result
110+
111+
def to_str(self):
112+
"""Returns the string representation of the model"""
113+
return pprint.pformat(self.to_dict())
114+
115+
def __repr__(self):
116+
"""For `print` and `pprint`"""
117+
return self.to_str()
118+
119+
def __eq__(self, other):
120+
"""Returns true if both objects are equal"""
121+
if not isinstance(other, LicenseInfo):
122+
return False
123+
124+
return self.__dict__ == other.__dict__
125+
126+
def __ne__(self, other):
127+
"""Returns true if both objects are not equal"""
128+
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 = "23.9"
9+
VERSION = "23.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)