groupdocs-conversion-cloud 24.4__py3-none-any.whl → 24.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- groupdocs_conversion_cloud/__init__.py +3 -0
- groupdocs_conversion_cloud/api_client.py +2 -2
- groupdocs_conversion_cloud/apis/__init__.py +1 -0
- groupdocs_conversion_cloud/apis/async_api.py +633 -0
- groupdocs_conversion_cloud/configuration.py +2 -2
- groupdocs_conversion_cloud/models/__init__.py +1 -0
- groupdocs_conversion_cloud/models/email_load_options.py +1 -32
- groupdocs_conversion_cloud/models/operation_result.py +389 -0
- {groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/METADATA +1 -1
- {groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/RECORD +13 -11
- {groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/WHEEL +1 -1
- {groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/LICENSE +0 -0
- {groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/top_level.txt +0 -0
@@ -5,6 +5,7 @@
|
|
5
5
|
from __future__ import absolute_import
|
6
6
|
|
7
7
|
# import apis
|
8
|
+
from groupdocs_conversion_cloud.apis.async_api import AsyncApi
|
8
9
|
from groupdocs_conversion_cloud.apis.convert_api import ConvertApi
|
9
10
|
from groupdocs_conversion_cloud.apis.file_api import FileApi
|
10
11
|
from groupdocs_conversion_cloud.apis.folder_api import FolderApi
|
@@ -18,6 +19,7 @@ from groupdocs_conversion_cloud.apis.storage_api import GetDiscUsageRequest, Get
|
|
18
19
|
from groupdocs_conversion_cloud.apis.folder_api import CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest
|
19
20
|
from groupdocs_conversion_cloud.apis.convert_api import ConvertDocumentRequest, ConvertDocumentDirectRequest
|
20
21
|
from groupdocs_conversion_cloud.apis.info_api import GetSupportedConversionTypesRequest, GetDocumentMetadataRequest
|
22
|
+
from groupdocs_conversion_cloud.apis.async_api import GetOperationResultRequest, GetOperationStatusRequest, StartConvertRequest, StartConvertAndSaveRequest
|
21
23
|
|
22
24
|
# import related types
|
23
25
|
from groupdocs_conversion_cloud.auth import Auth
|
@@ -42,6 +44,7 @@ from groupdocs_conversion_cloud.models.files_upload_result import FilesUploadRes
|
|
42
44
|
from groupdocs_conversion_cloud.models.license_info import LicenseInfo
|
43
45
|
from groupdocs_conversion_cloud.models.load_options import LoadOptions
|
44
46
|
from groupdocs_conversion_cloud.models.object_exist import ObjectExist
|
47
|
+
from groupdocs_conversion_cloud.models.operation_result import OperationResult
|
45
48
|
from groupdocs_conversion_cloud.models.storage_exist import StorageExist
|
46
49
|
from groupdocs_conversion_cloud.models.storage_file import StorageFile
|
47
50
|
from groupdocs_conversion_cloud.models.stored_converted_result import StoredConvertedResult
|
@@ -74,12 +74,12 @@ class ApiClient(object):
|
|
74
74
|
self.configuration = configuration
|
75
75
|
self.pool = None
|
76
76
|
self.rest_client = rest.RESTClientObject(configuration)
|
77
|
-
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '24.
|
77
|
+
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '24.8'}
|
78
78
|
if header_name is not None:
|
79
79
|
self.default_headers[header_name] = header_value
|
80
80
|
self.cookie = cookie
|
81
81
|
# Set default User-Agent.
|
82
|
-
self.user_agent = 'python sdk 24.
|
82
|
+
self.user_agent = 'python sdk 24.8'
|
83
83
|
|
84
84
|
def __del__(self):
|
85
85
|
if self.pool is not None:
|
@@ -3,6 +3,7 @@ from __future__ import absolute_import
|
|
3
3
|
# flake8: noqa
|
4
4
|
|
5
5
|
# import apis
|
6
|
+
from groupdocs_conversion_cloud.apis.async_api import AsyncApi
|
6
7
|
from groupdocs_conversion_cloud.apis.convert_api import ConvertApi
|
7
8
|
from groupdocs_conversion_cloud.apis.file_api import FileApi
|
8
9
|
from groupdocs_conversion_cloud.apis.folder_api import FolderApi
|
@@ -0,0 +1,633 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# -----------------------------------------------------------------------------------
|
4
|
+
# <copyright company="Aspose Pty Ltd">
|
5
|
+
# Copyright (c) 2003-2024 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
|
+
from __future__ import absolute_import
|
29
|
+
|
30
|
+
import re # noqa: F401
|
31
|
+
|
32
|
+
# python 2 and python 3 compatibility library
|
33
|
+
import six
|
34
|
+
import json
|
35
|
+
|
36
|
+
from groupdocs_conversion_cloud.auth import Auth
|
37
|
+
from groupdocs_conversion_cloud.api_client import ApiClient
|
38
|
+
from groupdocs_conversion_cloud.api_exception import ApiException
|
39
|
+
from groupdocs_conversion_cloud.configuration import Configuration
|
40
|
+
|
41
|
+
class AsyncApi(object):
|
42
|
+
"""
|
43
|
+
GroupDocs.Conversion Cloud API
|
44
|
+
|
45
|
+
:param configuration: API configuration
|
46
|
+
"""
|
47
|
+
|
48
|
+
def __init__(self, configuration):
|
49
|
+
api_client = ApiClient(configuration)
|
50
|
+
|
51
|
+
self.auth = Auth(configuration, api_client)
|
52
|
+
self.api_client = api_client
|
53
|
+
self.configuration = configuration
|
54
|
+
|
55
|
+
def close(self): # noqa: E501
|
56
|
+
"""
|
57
|
+
Closes thread pool. This method should be called when
|
58
|
+
methods are executed asynchronously (is_async=True is passed as parameter)
|
59
|
+
and this instance of AsyncApi is not going to be used any more.
|
60
|
+
"""
|
61
|
+
if self.api_client is not None:
|
62
|
+
if(self.api_client.pool is not None):
|
63
|
+
self.api_client.pool.close()
|
64
|
+
self.api_client.pool.join()
|
65
|
+
self.api_client.pool = None
|
66
|
+
|
67
|
+
@classmethod
|
68
|
+
def from_keys(cls, app_sid, app_key):
|
69
|
+
"""
|
70
|
+
Initializes new instance of AsyncApi with API keys
|
71
|
+
|
72
|
+
:param app_sid Application identifier (App SID)
|
73
|
+
:param app_key Application private key (App Key)
|
74
|
+
"""
|
75
|
+
configuration = Configuration(app_sid, app_key)
|
76
|
+
return AsyncApi(configuration)
|
77
|
+
|
78
|
+
@classmethod
|
79
|
+
def from_config(cls, configuration):
|
80
|
+
"""
|
81
|
+
Initializes new instance of AsyncApi with configuration options
|
82
|
+
|
83
|
+
:param configuration API configuration
|
84
|
+
"""
|
85
|
+
return AsyncApi(configuration)
|
86
|
+
|
87
|
+
def get_operation_result(self, request,**kwargs): # noqa: E501
|
88
|
+
"""Get async operation result # noqa: E501
|
89
|
+
|
90
|
+
This method makes a synchronous HTTP request by default. To make an
|
91
|
+
asynchronous HTTP request, please pass is_async=True
|
92
|
+
|
93
|
+
:param is_async bool
|
94
|
+
:param str id: (required)
|
95
|
+
:return: file
|
96
|
+
If the method is called asynchronously,
|
97
|
+
returns the request thread.
|
98
|
+
"""
|
99
|
+
kwargs['_return_http_data_only'] = True
|
100
|
+
|
101
|
+
if kwargs.get('is_async'):
|
102
|
+
return self._get_operation_result_with_http_info(request, **kwargs) # noqa: E501
|
103
|
+
|
104
|
+
(data) = self._get_operation_result_with_http_info(request, **kwargs) # noqa: E501
|
105
|
+
return data
|
106
|
+
|
107
|
+
def _get_operation_result_with_http_info(self, request, **kwargs): # noqa: E501
|
108
|
+
"""Get async operation result # noqa: E501
|
109
|
+
|
110
|
+
This method makes a synchronous HTTP request by default. To make an
|
111
|
+
asynchronous HTTP request, please pass is_async=True
|
112
|
+
|
113
|
+
:param is_async bool
|
114
|
+
:param GetOperationResultRequest request object with parameters
|
115
|
+
:return: file
|
116
|
+
If the method is called asynchronously,
|
117
|
+
returns the request thread.
|
118
|
+
"""
|
119
|
+
params = locals()
|
120
|
+
params['is_async'] = ''
|
121
|
+
params['_return_http_data_only'] = False
|
122
|
+
params['_preload_content'] = True
|
123
|
+
params['_request_timeout'] = ''
|
124
|
+
for key, val in six.iteritems(params['kwargs']):
|
125
|
+
if key not in params:
|
126
|
+
raise TypeError(
|
127
|
+
"Got an unexpected keyword argument '%s'"
|
128
|
+
" to method get_operation_result" % key
|
129
|
+
)
|
130
|
+
params[key] = val
|
131
|
+
del params['kwargs']
|
132
|
+
# verify the required parameter 'id' is set
|
133
|
+
if request.id is None:
|
134
|
+
raise ValueError("Missing the required parameter `id` when calling `get_operation_result`") # noqa: E501
|
135
|
+
|
136
|
+
collection_formats = {}
|
137
|
+
path = '/conversion/async/result'
|
138
|
+
path_params = {}
|
139
|
+
|
140
|
+
query_params = []
|
141
|
+
if self.__downcase_first_letter('id') in path:
|
142
|
+
path = path.replace('{' + self.__downcase_first_letter('id' + '}'), request.id if request.id is not None else '')
|
143
|
+
else:
|
144
|
+
if request.id is not None:
|
145
|
+
query_params.append((self.__downcase_first_letter('id'), request.id)) # noqa: E501
|
146
|
+
|
147
|
+
header_params = {}
|
148
|
+
|
149
|
+
form_params = []
|
150
|
+
local_var_files = []
|
151
|
+
|
152
|
+
body_params = None
|
153
|
+
# HTTP header `Accept`
|
154
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
155
|
+
['application/json']) # noqa: E501
|
156
|
+
|
157
|
+
# HTTP header `Content-Type`
|
158
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
159
|
+
['application/json']) # noqa: E501
|
160
|
+
|
161
|
+
call_kwargs = {
|
162
|
+
'resource_path':path,
|
163
|
+
'method':'GET',
|
164
|
+
'path_params':path_params,
|
165
|
+
'query_params':query_params,
|
166
|
+
'header_params':header_params,
|
167
|
+
'body':body_params,
|
168
|
+
'post_params':form_params,
|
169
|
+
'files':local_var_files,
|
170
|
+
'response_type':'file', # noqa: E501
|
171
|
+
'auth_settings':self.auth.get_auth_settings(),
|
172
|
+
'is_async':params.get('is_async'),
|
173
|
+
'_return_http_data_only':params.get('_return_http_data_only'),
|
174
|
+
'_preload_content':params.get('_preload_content', True),
|
175
|
+
'_request_timeout':params.get('_request_timeout'),
|
176
|
+
'collection_formats':collection_formats
|
177
|
+
}
|
178
|
+
|
179
|
+
return self.api_client.call_api(**call_kwargs) # noqa: E501
|
180
|
+
|
181
|
+
def get_operation_status(self, request,**kwargs): # noqa: E501
|
182
|
+
"""Get async operation status # noqa: E501
|
183
|
+
|
184
|
+
This method makes a synchronous HTTP request by default. To make an
|
185
|
+
asynchronous HTTP request, please pass is_async=True
|
186
|
+
|
187
|
+
:param is_async bool
|
188
|
+
:param str id: (required)
|
189
|
+
:return: OperationResult
|
190
|
+
If the method is called asynchronously,
|
191
|
+
returns the request thread.
|
192
|
+
"""
|
193
|
+
kwargs['_return_http_data_only'] = True
|
194
|
+
|
195
|
+
if kwargs.get('is_async'):
|
196
|
+
return self._get_operation_status_with_http_info(request, **kwargs) # noqa: E501
|
197
|
+
|
198
|
+
(data) = self._get_operation_status_with_http_info(request, **kwargs) # noqa: E501
|
199
|
+
return data
|
200
|
+
|
201
|
+
def _get_operation_status_with_http_info(self, request, **kwargs): # noqa: E501
|
202
|
+
"""Get async operation status # noqa: E501
|
203
|
+
|
204
|
+
This method makes a synchronous HTTP request by default. To make an
|
205
|
+
asynchronous HTTP request, please pass is_async=True
|
206
|
+
|
207
|
+
:param is_async bool
|
208
|
+
:param GetOperationStatusRequest request object with parameters
|
209
|
+
:return: OperationResult
|
210
|
+
If the method is called asynchronously,
|
211
|
+
returns the request thread.
|
212
|
+
"""
|
213
|
+
params = locals()
|
214
|
+
params['is_async'] = ''
|
215
|
+
params['_return_http_data_only'] = False
|
216
|
+
params['_preload_content'] = True
|
217
|
+
params['_request_timeout'] = ''
|
218
|
+
for key, val in six.iteritems(params['kwargs']):
|
219
|
+
if key not in params:
|
220
|
+
raise TypeError(
|
221
|
+
"Got an unexpected keyword argument '%s'"
|
222
|
+
" to method get_operation_status" % key
|
223
|
+
)
|
224
|
+
params[key] = val
|
225
|
+
del params['kwargs']
|
226
|
+
# verify the required parameter 'id' is set
|
227
|
+
if request.id is None:
|
228
|
+
raise ValueError("Missing the required parameter `id` when calling `get_operation_status`") # noqa: E501
|
229
|
+
|
230
|
+
collection_formats = {}
|
231
|
+
path = '/conversion/async'
|
232
|
+
path_params = {}
|
233
|
+
|
234
|
+
query_params = []
|
235
|
+
if self.__downcase_first_letter('id') in path:
|
236
|
+
path = path.replace('{' + self.__downcase_first_letter('id' + '}'), request.id if request.id is not None else '')
|
237
|
+
else:
|
238
|
+
if request.id is not None:
|
239
|
+
query_params.append((self.__downcase_first_letter('id'), request.id)) # noqa: E501
|
240
|
+
|
241
|
+
header_params = {}
|
242
|
+
|
243
|
+
form_params = []
|
244
|
+
local_var_files = []
|
245
|
+
|
246
|
+
body_params = None
|
247
|
+
# HTTP header `Accept`
|
248
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
249
|
+
['application/json']) # noqa: E501
|
250
|
+
|
251
|
+
# HTTP header `Content-Type`
|
252
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
253
|
+
['application/json']) # noqa: E501
|
254
|
+
|
255
|
+
call_kwargs = {
|
256
|
+
'resource_path':path,
|
257
|
+
'method':'GET',
|
258
|
+
'path_params':path_params,
|
259
|
+
'query_params':query_params,
|
260
|
+
'header_params':header_params,
|
261
|
+
'body':body_params,
|
262
|
+
'post_params':form_params,
|
263
|
+
'files':local_var_files,
|
264
|
+
'response_type':'OperationResult', # noqa: E501
|
265
|
+
'auth_settings':self.auth.get_auth_settings(),
|
266
|
+
'is_async':params.get('is_async'),
|
267
|
+
'_return_http_data_only':params.get('_return_http_data_only'),
|
268
|
+
'_preload_content':params.get('_preload_content', True),
|
269
|
+
'_request_timeout':params.get('_request_timeout'),
|
270
|
+
'collection_formats':collection_formats
|
271
|
+
}
|
272
|
+
|
273
|
+
return self.api_client.call_api(**call_kwargs) # noqa: E501
|
274
|
+
|
275
|
+
def start_convert(self, request,**kwargs): # noqa: E501
|
276
|
+
"""Starts async conversion specified input document, from request body, to format specified # noqa: E501
|
277
|
+
|
278
|
+
This method makes a synchronous HTTP request by default. To make an
|
279
|
+
asynchronous HTTP request, please pass is_async=True
|
280
|
+
|
281
|
+
:param is_async bool
|
282
|
+
:param str format: Requested conversion format (required)
|
283
|
+
:param file file: Input file to convert (required)
|
284
|
+
:param int from_page: Page start conversion from
|
285
|
+
:param int pages_count: Number of pages to convert
|
286
|
+
:return: str
|
287
|
+
If the method is called asynchronously,
|
288
|
+
returns the request thread.
|
289
|
+
"""
|
290
|
+
kwargs['_return_http_data_only'] = True
|
291
|
+
|
292
|
+
if kwargs.get('is_async'):
|
293
|
+
return self._start_convert_with_http_info(request, **kwargs) # noqa: E501
|
294
|
+
|
295
|
+
(data) = self._start_convert_with_http_info(request, **kwargs) # noqa: E501
|
296
|
+
return data
|
297
|
+
|
298
|
+
def _start_convert_with_http_info(self, request, **kwargs): # noqa: E501
|
299
|
+
"""Starts async conversion specified input document, from request body, to format specified # noqa: E501
|
300
|
+
|
301
|
+
This method makes a synchronous HTTP request by default. To make an
|
302
|
+
asynchronous HTTP request, please pass is_async=True
|
303
|
+
|
304
|
+
:param is_async bool
|
305
|
+
:param StartConvertRequest request object with parameters
|
306
|
+
:return: str
|
307
|
+
If the method is called asynchronously,
|
308
|
+
returns the request thread.
|
309
|
+
"""
|
310
|
+
params = locals()
|
311
|
+
params['is_async'] = ''
|
312
|
+
params['_return_http_data_only'] = False
|
313
|
+
params['_preload_content'] = True
|
314
|
+
params['_request_timeout'] = ''
|
315
|
+
for key, val in six.iteritems(params['kwargs']):
|
316
|
+
if key not in params:
|
317
|
+
raise TypeError(
|
318
|
+
"Got an unexpected keyword argument '%s'"
|
319
|
+
" to method start_convert" % key
|
320
|
+
)
|
321
|
+
params[key] = val
|
322
|
+
del params['kwargs']
|
323
|
+
# verify the required parameter 'format' is set
|
324
|
+
if request.format is None:
|
325
|
+
raise ValueError("Missing the required parameter `format` when calling `start_convert`") # noqa: E501
|
326
|
+
# verify the required parameter 'file' is set
|
327
|
+
if request.file is None:
|
328
|
+
raise ValueError("Missing the required parameter `file` when calling `start_convert`") # noqa: E501
|
329
|
+
|
330
|
+
collection_formats = {}
|
331
|
+
path = '/conversion/async'
|
332
|
+
path_params = {}
|
333
|
+
|
334
|
+
query_params = []
|
335
|
+
if self.__downcase_first_letter('format') in path:
|
336
|
+
path = path.replace('{' + self.__downcase_first_letter('format' + '}'), request.format if request.format is not None else '')
|
337
|
+
else:
|
338
|
+
if request.format is not None:
|
339
|
+
query_params.append((self.__downcase_first_letter('format'), request.format)) # noqa: E501
|
340
|
+
if self.__downcase_first_letter('fromPage') in path:
|
341
|
+
path = path.replace('{' + self.__downcase_first_letter('fromPage' + '}'), request.from_page if request.from_page is not None else '')
|
342
|
+
else:
|
343
|
+
if request.from_page is not None:
|
344
|
+
query_params.append((self.__downcase_first_letter('fromPage'), request.from_page)) # noqa: E501
|
345
|
+
if self.__downcase_first_letter('pagesCount') in path:
|
346
|
+
path = path.replace('{' + self.__downcase_first_letter('pagesCount' + '}'), request.pages_count if request.pages_count is not None else '')
|
347
|
+
else:
|
348
|
+
if request.pages_count is not None:
|
349
|
+
query_params.append((self.__downcase_first_letter('pagesCount'), request.pages_count)) # noqa: E501
|
350
|
+
|
351
|
+
header_params = {}
|
352
|
+
|
353
|
+
form_params = []
|
354
|
+
local_var_files = []
|
355
|
+
if request.file is not None:
|
356
|
+
local_var_files.append((self.__downcase_first_letter('File'), request.file)) # noqa: E501
|
357
|
+
|
358
|
+
body_params = None
|
359
|
+
# HTTP header `Accept`
|
360
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
361
|
+
['application/json']) # noqa: E501
|
362
|
+
|
363
|
+
# HTTP header `Content-Type`
|
364
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
365
|
+
['multipart/form-data']) # noqa: E501
|
366
|
+
|
367
|
+
call_kwargs = {
|
368
|
+
'resource_path':path,
|
369
|
+
'method':'PUT',
|
370
|
+
'path_params':path_params,
|
371
|
+
'query_params':query_params,
|
372
|
+
'header_params':header_params,
|
373
|
+
'body':body_params,
|
374
|
+
'post_params':form_params,
|
375
|
+
'files':local_var_files,
|
376
|
+
'response_type':'str', # noqa: E501
|
377
|
+
'auth_settings':self.auth.get_auth_settings(),
|
378
|
+
'is_async':params.get('is_async'),
|
379
|
+
'_return_http_data_only':params.get('_return_http_data_only'),
|
380
|
+
'_preload_content':params.get('_preload_content', True),
|
381
|
+
'_request_timeout':params.get('_request_timeout'),
|
382
|
+
'collection_formats':collection_formats
|
383
|
+
}
|
384
|
+
|
385
|
+
return self.api_client.call_api(**call_kwargs) # noqa: E501
|
386
|
+
|
387
|
+
def start_convert_and_save(self, request,**kwargs): # noqa: E501
|
388
|
+
"""Starts async conversion specified input document to format specified in the convertSettings with specified options # noqa: E501
|
389
|
+
|
390
|
+
This method makes a synchronous HTTP request by default. To make an
|
391
|
+
asynchronous HTTP request, please pass is_async=True
|
392
|
+
|
393
|
+
:param is_async bool
|
394
|
+
:param ConvertSettings convert_settings: Conversion settings (required)
|
395
|
+
:return: str
|
396
|
+
If the method is called asynchronously,
|
397
|
+
returns the request thread.
|
398
|
+
"""
|
399
|
+
kwargs['_return_http_data_only'] = True
|
400
|
+
|
401
|
+
if kwargs.get('is_async'):
|
402
|
+
return self._start_convert_and_save_with_http_info(request, **kwargs) # noqa: E501
|
403
|
+
|
404
|
+
(data) = self._start_convert_and_save_with_http_info(request, **kwargs) # noqa: E501
|
405
|
+
return data
|
406
|
+
|
407
|
+
def _start_convert_and_save_with_http_info(self, request, **kwargs): # noqa: E501
|
408
|
+
"""Starts async conversion specified input document to format specified in the convertSettings with specified options # noqa: E501
|
409
|
+
|
410
|
+
This method makes a synchronous HTTP request by default. To make an
|
411
|
+
asynchronous HTTP request, please pass is_async=True
|
412
|
+
|
413
|
+
:param is_async bool
|
414
|
+
:param StartConvertAndSaveRequest request object with parameters
|
415
|
+
:return: str
|
416
|
+
If the method is called asynchronously,
|
417
|
+
returns the request thread.
|
418
|
+
"""
|
419
|
+
params = locals()
|
420
|
+
params['is_async'] = ''
|
421
|
+
params['_return_http_data_only'] = False
|
422
|
+
params['_preload_content'] = True
|
423
|
+
params['_request_timeout'] = ''
|
424
|
+
for key, val in six.iteritems(params['kwargs']):
|
425
|
+
if key not in params:
|
426
|
+
raise TypeError(
|
427
|
+
"Got an unexpected keyword argument '%s'"
|
428
|
+
" to method start_convert_and_save" % key
|
429
|
+
)
|
430
|
+
params[key] = val
|
431
|
+
del params['kwargs']
|
432
|
+
# verify the required parameter 'convert_settings' is set
|
433
|
+
if request.convert_settings is None:
|
434
|
+
raise ValueError("Missing the required parameter `convert_settings` when calling `start_convert_and_save`") # noqa: E501
|
435
|
+
|
436
|
+
collection_formats = {}
|
437
|
+
path = '/conversion/async'
|
438
|
+
path_params = {}
|
439
|
+
|
440
|
+
query_params = []
|
441
|
+
|
442
|
+
header_params = {}
|
443
|
+
|
444
|
+
form_params = []
|
445
|
+
local_var_files = []
|
446
|
+
|
447
|
+
body_params = None
|
448
|
+
if request.convert_settings is not None:
|
449
|
+
body_params = request.convert_settings
|
450
|
+
# HTTP header `Accept`
|
451
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
452
|
+
['application/json']) # noqa: E501
|
453
|
+
|
454
|
+
# HTTP header `Content-Type`
|
455
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
456
|
+
['application/json']) # noqa: E501
|
457
|
+
|
458
|
+
call_kwargs = {
|
459
|
+
'resource_path':path,
|
460
|
+
'method':'POST',
|
461
|
+
'path_params':path_params,
|
462
|
+
'query_params':query_params,
|
463
|
+
'header_params':header_params,
|
464
|
+
'body':body_params,
|
465
|
+
'post_params':form_params,
|
466
|
+
'files':local_var_files,
|
467
|
+
'response_type':'str', # noqa: E501
|
468
|
+
'auth_settings':self.auth.get_auth_settings(),
|
469
|
+
'is_async':params.get('is_async'),
|
470
|
+
'_return_http_data_only':params.get('_return_http_data_only'),
|
471
|
+
'_preload_content':params.get('_preload_content', True),
|
472
|
+
'_request_timeout':params.get('_request_timeout'),
|
473
|
+
'collection_formats':collection_formats
|
474
|
+
}
|
475
|
+
|
476
|
+
return self.api_client.call_api(**call_kwargs) # noqa: E501
|
477
|
+
|
478
|
+
def __downcase_first_letter(self, s):
|
479
|
+
if len(s) == 0:
|
480
|
+
return str
|
481
|
+
else:
|
482
|
+
return s[0].lower() + s[1:]
|
483
|
+
|
484
|
+
# coding: utf-8
|
485
|
+
|
486
|
+
# --------------------------------------------------------------------------------
|
487
|
+
# <copyright company="Aspose Pty Ltd" file="get_operation_result_request.py">
|
488
|
+
# Copyright (c) 2003-2024 Aspose Pty Ltd
|
489
|
+
# </copyright>
|
490
|
+
# <summary>
|
491
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
492
|
+
# of this software and associated documentation files (the "Software"), to deal
|
493
|
+
# in the Software without restriction, including without limitation the rights
|
494
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
495
|
+
# copies of the Software, and to permit persons to whom the Software is
|
496
|
+
# furnished to do so, subject to the following conditions:
|
497
|
+
#
|
498
|
+
# The above copyright notice and this permission notice shall be included in all
|
499
|
+
# copies or substantial portions of the Software.
|
500
|
+
#
|
501
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
502
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
503
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
504
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
505
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
506
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
507
|
+
# SOFTWARE.
|
508
|
+
# </summary>
|
509
|
+
# --------------------------------------------------------------------------------
|
510
|
+
|
511
|
+
class GetOperationResultRequest(object):
|
512
|
+
"""
|
513
|
+
Request model for get_operation_result operation.
|
514
|
+
:param id
|
515
|
+
"""
|
516
|
+
|
517
|
+
def __init__(self, id):
|
518
|
+
"""Initializes new instance of GetOperationResultRequest.""" # noqa: E501
|
519
|
+
self.id = id
|
520
|
+
# coding: utf-8
|
521
|
+
|
522
|
+
# --------------------------------------------------------------------------------
|
523
|
+
# <copyright company="Aspose Pty Ltd" file="get_operation_status_request.py">
|
524
|
+
# Copyright (c) 2003-2024 Aspose Pty Ltd
|
525
|
+
# </copyright>
|
526
|
+
# <summary>
|
527
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
528
|
+
# of this software and associated documentation files (the "Software"), to deal
|
529
|
+
# in the Software without restriction, including without limitation the rights
|
530
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
531
|
+
# copies of the Software, and to permit persons to whom the Software is
|
532
|
+
# furnished to do so, subject to the following conditions:
|
533
|
+
#
|
534
|
+
# The above copyright notice and this permission notice shall be included in all
|
535
|
+
# copies or substantial portions of the Software.
|
536
|
+
#
|
537
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
538
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
539
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
540
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
541
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
542
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
543
|
+
# SOFTWARE.
|
544
|
+
# </summary>
|
545
|
+
# --------------------------------------------------------------------------------
|
546
|
+
|
547
|
+
class GetOperationStatusRequest(object):
|
548
|
+
"""
|
549
|
+
Request model for get_operation_status operation.
|
550
|
+
:param id
|
551
|
+
"""
|
552
|
+
|
553
|
+
def __init__(self, id):
|
554
|
+
"""Initializes new instance of GetOperationStatusRequest.""" # noqa: E501
|
555
|
+
self.id = id
|
556
|
+
# coding: utf-8
|
557
|
+
|
558
|
+
# --------------------------------------------------------------------------------
|
559
|
+
# <copyright company="Aspose Pty Ltd" file="start_convert_request.py">
|
560
|
+
# Copyright (c) 2003-2024 Aspose Pty Ltd
|
561
|
+
# </copyright>
|
562
|
+
# <summary>
|
563
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
564
|
+
# of this software and associated documentation files (the "Software"), to deal
|
565
|
+
# in the Software without restriction, including without limitation the rights
|
566
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
567
|
+
# copies of the Software, and to permit persons to whom the Software is
|
568
|
+
# furnished to do so, subject to the following conditions:
|
569
|
+
#
|
570
|
+
# The above copyright notice and this permission notice shall be included in all
|
571
|
+
# copies or substantial portions of the Software.
|
572
|
+
#
|
573
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
574
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
575
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
576
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
577
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
578
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
579
|
+
# SOFTWARE.
|
580
|
+
# </summary>
|
581
|
+
# --------------------------------------------------------------------------------
|
582
|
+
|
583
|
+
class StartConvertRequest(object):
|
584
|
+
"""
|
585
|
+
Request model for start_convert operation.
|
586
|
+
:param format Requested conversion format
|
587
|
+
:param file Input file to convert
|
588
|
+
:param from_page Page start conversion from
|
589
|
+
:param pages_count Number of pages to convert
|
590
|
+
"""
|
591
|
+
|
592
|
+
def __init__(self, format, file, from_page=None, pages_count=None):
|
593
|
+
"""Initializes new instance of StartConvertRequest.""" # noqa: E501
|
594
|
+
self.format = format
|
595
|
+
self.file = file
|
596
|
+
self.from_page = from_page
|
597
|
+
self.pages_count = pages_count
|
598
|
+
# coding: utf-8
|
599
|
+
|
600
|
+
# --------------------------------------------------------------------------------
|
601
|
+
# <copyright company="Aspose Pty Ltd" file="start_convert_and_save_request.py">
|
602
|
+
# Copyright (c) 2003-2024 Aspose Pty Ltd
|
603
|
+
# </copyright>
|
604
|
+
# <summary>
|
605
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
606
|
+
# of this software and associated documentation files (the "Software"), to deal
|
607
|
+
# in the Software without restriction, including without limitation the rights
|
608
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
609
|
+
# copies of the Software, and to permit persons to whom the Software is
|
610
|
+
# furnished to do so, subject to the following conditions:
|
611
|
+
#
|
612
|
+
# The above copyright notice and this permission notice shall be included in all
|
613
|
+
# copies or substantial portions of the Software.
|
614
|
+
#
|
615
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
616
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
617
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
618
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
619
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
620
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
621
|
+
# SOFTWARE.
|
622
|
+
# </summary>
|
623
|
+
# --------------------------------------------------------------------------------
|
624
|
+
|
625
|
+
class StartConvertAndSaveRequest(object):
|
626
|
+
"""
|
627
|
+
Request model for start_convert_and_save operation.
|
628
|
+
:param convert_settings Conversion settings
|
629
|
+
"""
|
630
|
+
|
631
|
+
def __init__(self, convert_settings):
|
632
|
+
"""Initializes new instance of StartConvertAndSaveRequest.""" # noqa: E501
|
633
|
+
self.convert_settings = convert_settings
|
@@ -202,6 +202,6 @@ class Configuration(object):
|
|
202
202
|
return "Python SDK Debug Report:\n"\
|
203
203
|
"OS: {env}\n"\
|
204
204
|
"Python Version: {pyversion}\n"\
|
205
|
-
"Version of the API: 24.
|
206
|
-
"SDK Package Version: 24.
|
205
|
+
"Version of the API: 24.8\n"\
|
206
|
+
"SDK Package Version: 24.8".\
|
207
207
|
format(env=sys.platform, pyversion=sys.version)
|
@@ -20,6 +20,7 @@ from groupdocs_conversion_cloud.models.files_upload_result import FilesUploadRes
|
|
20
20
|
from groupdocs_conversion_cloud.models.license_info import LicenseInfo
|
21
21
|
from groupdocs_conversion_cloud.models.load_options import LoadOptions
|
22
22
|
from groupdocs_conversion_cloud.models.object_exist import ObjectExist
|
23
|
+
from groupdocs_conversion_cloud.models.operation_result import OperationResult
|
23
24
|
from groupdocs_conversion_cloud.models.storage_exist import StorageExist
|
24
25
|
from groupdocs_conversion_cloud.models.storage_file import StorageFile
|
25
26
|
from groupdocs_conversion_cloud.models.stored_converted_result import StoredConvertedResult
|
@@ -47,7 +47,6 @@ class EmailLoadOptions(LoadOptions):
|
|
47
47
|
swagger_types = {
|
48
48
|
'display_header': 'bool',
|
49
49
|
'display_from_email_address': 'bool',
|
50
|
-
'display_email_address': 'bool',
|
51
50
|
'display_to_email_address': 'bool',
|
52
51
|
'display_cc_email_address': 'bool',
|
53
52
|
'display_bcc_email_address': 'bool',
|
@@ -60,7 +59,6 @@ class EmailLoadOptions(LoadOptions):
|
|
60
59
|
attribute_map = {
|
61
60
|
'display_header': 'DisplayHeader',
|
62
61
|
'display_from_email_address': 'DisplayFromEmailAddress',
|
63
|
-
'display_email_address': 'DisplayEmailAddress',
|
64
62
|
'display_to_email_address': 'DisplayToEmailAddress',
|
65
63
|
'display_cc_email_address': 'DisplayCcEmailAddress',
|
66
64
|
'display_bcc_email_address': 'DisplayBccEmailAddress',
|
@@ -70,12 +68,11 @@ class EmailLoadOptions(LoadOptions):
|
|
70
68
|
'preserve_original_date': 'PreserveOriginalDate'
|
71
69
|
}
|
72
70
|
|
73
|
-
def __init__(self, display_header=None, display_from_email_address=None,
|
71
|
+
def __init__(self, display_header=None, display_from_email_address=None, display_to_email_address=None, display_cc_email_address=None, display_bcc_email_address=None, time_zone_offset=None, convert_attachments=None, field_labels=None, preserve_original_date=None, **kwargs): # noqa: E501
|
74
72
|
"""Initializes new instance of EmailLoadOptions""" # noqa: E501
|
75
73
|
|
76
74
|
self._display_header = None
|
77
75
|
self._display_from_email_address = None
|
78
|
-
self._display_email_address = None
|
79
76
|
self._display_to_email_address = None
|
80
77
|
self._display_cc_email_address = None
|
81
78
|
self._display_bcc_email_address = None
|
@@ -88,8 +85,6 @@ class EmailLoadOptions(LoadOptions):
|
|
88
85
|
self.display_header = display_header
|
89
86
|
if display_from_email_address is not None:
|
90
87
|
self.display_from_email_address = display_from_email_address
|
91
|
-
if display_email_address is not None:
|
92
|
-
self.display_email_address = display_email_address
|
93
88
|
if display_to_email_address is not None:
|
94
89
|
self.display_to_email_address = display_to_email_address
|
95
90
|
if display_cc_email_address is not None:
|
@@ -163,32 +158,6 @@ class EmailLoadOptions(LoadOptions):
|
|
163
158
|
raise ValueError("Invalid value for `display_from_email_address`, must not be `None`") # noqa: E501
|
164
159
|
self._display_from_email_address = display_from_email_address
|
165
160
|
|
166
|
-
@property
|
167
|
-
def display_email_address(self):
|
168
|
-
"""
|
169
|
-
Gets the display_email_address. # noqa: E501
|
170
|
-
|
171
|
-
Option to display or hide email address. Default: true # noqa: E501
|
172
|
-
|
173
|
-
:return: The display_email_address. # noqa: E501
|
174
|
-
:rtype: bool
|
175
|
-
"""
|
176
|
-
return self._display_email_address
|
177
|
-
|
178
|
-
@display_email_address.setter
|
179
|
-
def display_email_address(self, display_email_address):
|
180
|
-
"""
|
181
|
-
Sets the display_email_address.
|
182
|
-
|
183
|
-
Option to display or hide email address. Default: true # noqa: E501
|
184
|
-
|
185
|
-
:param display_email_address: The display_email_address. # noqa: E501
|
186
|
-
:type: bool
|
187
|
-
"""
|
188
|
-
if display_email_address is None:
|
189
|
-
raise ValueError("Invalid value for `display_email_address`, must not be `None`") # noqa: E501
|
190
|
-
self._display_email_address = display_email_address
|
191
|
-
|
192
161
|
@property
|
193
162
|
def display_to_email_address(self):
|
194
163
|
"""
|
@@ -0,0 +1,389 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# -----------------------------------------------------------------------------------
|
4
|
+
# <copyright company="Aspose Pty Ltd" file="OperationResult.py">
|
5
|
+
# Copyright (c) 2003-2024 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 OperationResult(object):
|
34
|
+
"""
|
35
|
+
Operation status result
|
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
|
+
'id': 'str',
|
47
|
+
'method': 'str',
|
48
|
+
'status': 'str',
|
49
|
+
'created': 'datetime',
|
50
|
+
'started': 'datetime',
|
51
|
+
'failed': 'datetime',
|
52
|
+
'canceled': 'datetime',
|
53
|
+
'finished': 'datetime',
|
54
|
+
'result': 'list[StoredConvertedResult]',
|
55
|
+
'error': 'str'
|
56
|
+
}
|
57
|
+
|
58
|
+
attribute_map = {
|
59
|
+
'id': 'Id',
|
60
|
+
'method': 'Method',
|
61
|
+
'status': 'Status',
|
62
|
+
'created': 'Created',
|
63
|
+
'started': 'Started',
|
64
|
+
'failed': 'Failed',
|
65
|
+
'canceled': 'Canceled',
|
66
|
+
'finished': 'Finished',
|
67
|
+
'result': 'Result',
|
68
|
+
'error': 'Error'
|
69
|
+
}
|
70
|
+
|
71
|
+
def __init__(self, id=None, method=None, status=None, created=None, started=None, failed=None, canceled=None, finished=None, result=None, error=None, **kwargs): # noqa: E501
|
72
|
+
"""Initializes new instance of OperationResult""" # noqa: E501
|
73
|
+
|
74
|
+
self._id = None
|
75
|
+
self._method = None
|
76
|
+
self._status = None
|
77
|
+
self._created = None
|
78
|
+
self._started = None
|
79
|
+
self._failed = None
|
80
|
+
self._canceled = None
|
81
|
+
self._finished = None
|
82
|
+
self._result = None
|
83
|
+
self._error = None
|
84
|
+
|
85
|
+
if id is not None:
|
86
|
+
self.id = id
|
87
|
+
if method is not None:
|
88
|
+
self.method = method
|
89
|
+
if status is not None:
|
90
|
+
self.status = status
|
91
|
+
if created is not None:
|
92
|
+
self.created = created
|
93
|
+
if started is not None:
|
94
|
+
self.started = started
|
95
|
+
if failed is not None:
|
96
|
+
self.failed = failed
|
97
|
+
if canceled is not None:
|
98
|
+
self.canceled = canceled
|
99
|
+
if finished is not None:
|
100
|
+
self.finished = finished
|
101
|
+
if result is not None:
|
102
|
+
self.result = result
|
103
|
+
if error is not None:
|
104
|
+
self.error = error
|
105
|
+
|
106
|
+
@property
|
107
|
+
def id(self):
|
108
|
+
"""
|
109
|
+
Gets the id. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The id. # noqa: E501
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._id
|
116
|
+
|
117
|
+
@id.setter
|
118
|
+
def id(self, id):
|
119
|
+
"""
|
120
|
+
Sets the id.
|
121
|
+
|
122
|
+
|
123
|
+
:param id: The id. # noqa: E501
|
124
|
+
:type: str
|
125
|
+
"""
|
126
|
+
if id is None:
|
127
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
128
|
+
self._id = id
|
129
|
+
|
130
|
+
@property
|
131
|
+
def method(self):
|
132
|
+
"""
|
133
|
+
Gets the method. # noqa: E501
|
134
|
+
|
135
|
+
|
136
|
+
:return: The method. # noqa: E501
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._method
|
140
|
+
|
141
|
+
@method.setter
|
142
|
+
def method(self, method):
|
143
|
+
"""
|
144
|
+
Sets the method.
|
145
|
+
|
146
|
+
|
147
|
+
:param method: The method. # noqa: E501
|
148
|
+
:type: str
|
149
|
+
"""
|
150
|
+
if method is None:
|
151
|
+
raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501
|
152
|
+
allowed_values = ["Convert", "ConvertAndSave"] # noqa: E501
|
153
|
+
if not method.isdigit():
|
154
|
+
if method not in allowed_values:
|
155
|
+
raise ValueError(
|
156
|
+
"Invalid value for `method` ({0}), must be one of {1}" # noqa: E501
|
157
|
+
.format(method, allowed_values))
|
158
|
+
self._method = method
|
159
|
+
else:
|
160
|
+
self._method = allowed_values[int(method) if six.PY3 else long(method)]
|
161
|
+
|
162
|
+
@property
|
163
|
+
def status(self):
|
164
|
+
"""
|
165
|
+
Gets the status. # noqa: E501
|
166
|
+
|
167
|
+
|
168
|
+
:return: The status. # noqa: E501
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._status
|
172
|
+
|
173
|
+
@status.setter
|
174
|
+
def status(self, status):
|
175
|
+
"""
|
176
|
+
Sets the status.
|
177
|
+
|
178
|
+
|
179
|
+
:param status: The status. # noqa: E501
|
180
|
+
:type: str
|
181
|
+
"""
|
182
|
+
if status is None:
|
183
|
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
184
|
+
allowed_values = ["Created", "Started", "Failed", "Canceled", "Finished"] # noqa: E501
|
185
|
+
if not status.isdigit():
|
186
|
+
if status not in allowed_values:
|
187
|
+
raise ValueError(
|
188
|
+
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
189
|
+
.format(status, allowed_values))
|
190
|
+
self._status = status
|
191
|
+
else:
|
192
|
+
self._status = allowed_values[int(status) if six.PY3 else long(status)]
|
193
|
+
|
194
|
+
@property
|
195
|
+
def created(self):
|
196
|
+
"""
|
197
|
+
Gets the created. # noqa: E501
|
198
|
+
|
199
|
+
|
200
|
+
:return: The created. # noqa: E501
|
201
|
+
:rtype: datetime
|
202
|
+
"""
|
203
|
+
return self._created
|
204
|
+
|
205
|
+
@created.setter
|
206
|
+
def created(self, created):
|
207
|
+
"""
|
208
|
+
Sets the created.
|
209
|
+
|
210
|
+
|
211
|
+
:param created: The created. # noqa: E501
|
212
|
+
:type: datetime
|
213
|
+
"""
|
214
|
+
self._created = created
|
215
|
+
|
216
|
+
@property
|
217
|
+
def started(self):
|
218
|
+
"""
|
219
|
+
Gets the started. # noqa: E501
|
220
|
+
|
221
|
+
|
222
|
+
:return: The started. # noqa: E501
|
223
|
+
:rtype: datetime
|
224
|
+
"""
|
225
|
+
return self._started
|
226
|
+
|
227
|
+
@started.setter
|
228
|
+
def started(self, started):
|
229
|
+
"""
|
230
|
+
Sets the started.
|
231
|
+
|
232
|
+
|
233
|
+
:param started: The started. # noqa: E501
|
234
|
+
:type: datetime
|
235
|
+
"""
|
236
|
+
self._started = started
|
237
|
+
|
238
|
+
@property
|
239
|
+
def failed(self):
|
240
|
+
"""
|
241
|
+
Gets the failed. # noqa: E501
|
242
|
+
|
243
|
+
|
244
|
+
:return: The failed. # noqa: E501
|
245
|
+
:rtype: datetime
|
246
|
+
"""
|
247
|
+
return self._failed
|
248
|
+
|
249
|
+
@failed.setter
|
250
|
+
def failed(self, failed):
|
251
|
+
"""
|
252
|
+
Sets the failed.
|
253
|
+
|
254
|
+
|
255
|
+
:param failed: The failed. # noqa: E501
|
256
|
+
:type: datetime
|
257
|
+
"""
|
258
|
+
self._failed = failed
|
259
|
+
|
260
|
+
@property
|
261
|
+
def canceled(self):
|
262
|
+
"""
|
263
|
+
Gets the canceled. # noqa: E501
|
264
|
+
|
265
|
+
|
266
|
+
:return: The canceled. # noqa: E501
|
267
|
+
:rtype: datetime
|
268
|
+
"""
|
269
|
+
return self._canceled
|
270
|
+
|
271
|
+
@canceled.setter
|
272
|
+
def canceled(self, canceled):
|
273
|
+
"""
|
274
|
+
Sets the canceled.
|
275
|
+
|
276
|
+
|
277
|
+
:param canceled: The canceled. # noqa: E501
|
278
|
+
:type: datetime
|
279
|
+
"""
|
280
|
+
self._canceled = canceled
|
281
|
+
|
282
|
+
@property
|
283
|
+
def finished(self):
|
284
|
+
"""
|
285
|
+
Gets the finished. # noqa: E501
|
286
|
+
|
287
|
+
|
288
|
+
:return: The finished. # noqa: E501
|
289
|
+
:rtype: datetime
|
290
|
+
"""
|
291
|
+
return self._finished
|
292
|
+
|
293
|
+
@finished.setter
|
294
|
+
def finished(self, finished):
|
295
|
+
"""
|
296
|
+
Sets the finished.
|
297
|
+
|
298
|
+
|
299
|
+
:param finished: The finished. # noqa: E501
|
300
|
+
:type: datetime
|
301
|
+
"""
|
302
|
+
self._finished = finished
|
303
|
+
|
304
|
+
@property
|
305
|
+
def result(self):
|
306
|
+
"""
|
307
|
+
Gets the result. # noqa: E501
|
308
|
+
|
309
|
+
|
310
|
+
:return: The result. # noqa: E501
|
311
|
+
:rtype: list[StoredConvertedResult]
|
312
|
+
"""
|
313
|
+
return self._result
|
314
|
+
|
315
|
+
@result.setter
|
316
|
+
def result(self, result):
|
317
|
+
"""
|
318
|
+
Sets the result.
|
319
|
+
|
320
|
+
|
321
|
+
:param result: The result. # noqa: E501
|
322
|
+
:type: list[StoredConvertedResult]
|
323
|
+
"""
|
324
|
+
self._result = result
|
325
|
+
|
326
|
+
@property
|
327
|
+
def error(self):
|
328
|
+
"""
|
329
|
+
Gets the error. # noqa: E501
|
330
|
+
|
331
|
+
|
332
|
+
:return: The error. # noqa: E501
|
333
|
+
:rtype: str
|
334
|
+
"""
|
335
|
+
return self._error
|
336
|
+
|
337
|
+
@error.setter
|
338
|
+
def error(self, error):
|
339
|
+
"""
|
340
|
+
Sets the error.
|
341
|
+
|
342
|
+
|
343
|
+
:param error: The error. # noqa: E501
|
344
|
+
:type: str
|
345
|
+
"""
|
346
|
+
self._error = error
|
347
|
+
|
348
|
+
def to_dict(self):
|
349
|
+
"""Returns the model properties as a dict"""
|
350
|
+
result = {}
|
351
|
+
|
352
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
353
|
+
value = getattr(self, attr)
|
354
|
+
if isinstance(value, list):
|
355
|
+
result[attr] = list(map(
|
356
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
357
|
+
value
|
358
|
+
))
|
359
|
+
elif hasattr(value, "to_dict"):
|
360
|
+
result[attr] = value.to_dict()
|
361
|
+
elif isinstance(value, dict):
|
362
|
+
result[attr] = dict(map(
|
363
|
+
lambda item: (item[0], item[1].to_dict())
|
364
|
+
if hasattr(item[1], "to_dict") else item,
|
365
|
+
value.items()
|
366
|
+
))
|
367
|
+
else:
|
368
|
+
result[attr] = value
|
369
|
+
|
370
|
+
return result
|
371
|
+
|
372
|
+
def to_str(self):
|
373
|
+
"""Returns the string representation of the model"""
|
374
|
+
return pprint.pformat(self.to_dict())
|
375
|
+
|
376
|
+
def __repr__(self):
|
377
|
+
"""For `print` and `pprint`"""
|
378
|
+
return self.to_str()
|
379
|
+
|
380
|
+
def __eq__(self, other):
|
381
|
+
"""Returns true if both objects are equal"""
|
382
|
+
if not isinstance(other, OperationResult):
|
383
|
+
return False
|
384
|
+
|
385
|
+
return self.__dict__ == other.__dict__
|
386
|
+
|
387
|
+
def __ne__(self, other):
|
388
|
+
"""Returns true if both objects are not equal"""
|
389
|
+
return not self == other
|
{groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/RECORD
RENAMED
@@ -1,17 +1,18 @@
|
|
1
|
-
groupdocs_conversion_cloud/__init__.py,sha256=
|
2
|
-
groupdocs_conversion_cloud/api_client.py,sha256=
|
1
|
+
groupdocs_conversion_cloud/__init__.py,sha256=bgS8QYCgFOSsoxaZd2rbEuIXsHUcWxk4e8IfpOoKlig,16232
|
2
|
+
groupdocs_conversion_cloud/api_client.py,sha256=7dNvqdZ7Qk9DtcUadS6Xn7y3OHVZuEs3joIkcJ6er10,26255
|
3
3
|
groupdocs_conversion_cloud/api_exception.py,sha256=T6GNNC35Vtagbu5LdD37pRZbMzCrEgb0_lqhdAmT7yE,2674
|
4
4
|
groupdocs_conversion_cloud/auth.py,sha256=aQszQ0RPOx3-8Osx5XGZU5PkQYiL5snZHDyyfF_EiGs,3307
|
5
|
-
groupdocs_conversion_cloud/configuration.py,sha256=
|
5
|
+
groupdocs_conversion_cloud/configuration.py,sha256=WVHWu2IuCVo4-mqMYaQngcwuptiIWp5xmVJRQD4rIa4,7681
|
6
6
|
groupdocs_conversion_cloud/rest.py,sha256=EVIuZpi0F2-ZYF3O1omyJr5-B4bNKh_Jx9I49VvN4GQ,13739
|
7
|
-
groupdocs_conversion_cloud/apis/__init__.py,sha256=
|
7
|
+
groupdocs_conversion_cloud/apis/__init__.py,sha256=3Ym0gZeACRN-srnslZn5DTM0zfp0EiAgA_FwWIgFteU,533
|
8
|
+
groupdocs_conversion_cloud/apis/async_api.py,sha256=7rE_66UJzTaQd3m79741uJNhRqo53JATGiOWloBLEag,27368
|
8
9
|
groupdocs_conversion_cloud/apis/convert_api.py,sha256=8tZijRMgwkb8yU_hXBkOFIfT9CKXhzP55ukGq2z0_B8,20840
|
9
10
|
groupdocs_conversion_cloud/apis/file_api.py,sha256=KyRV7gocnsCopSMzFXwWjVaPr3aoQsI8A92GSrAfFto,38676
|
10
11
|
groupdocs_conversion_cloud/apis/folder_api.py,sha256=VI6MpUzVYQmzaue_1immR_9nfJ8AkwjnWtvgbr-hiys,36286
|
11
12
|
groupdocs_conversion_cloud/apis/info_api.py,sha256=l1P7-lIK7Z_hcT0vrvhSUlpoytYAccE9u3Zf-Ar2Xh8,16416
|
12
13
|
groupdocs_conversion_cloud/apis/license_api.py,sha256=4aUxqtU1x1unHoCT-MkjC2Ghi9aqe5R3NhqGf8kvNFs,9724
|
13
14
|
groupdocs_conversion_cloud/apis/storage_api.py,sha256=8ROD_WUpePNfneRINCuo8dWfkgvA9ssOHAUdw7x9WvU,26598
|
14
|
-
groupdocs_conversion_cloud/models/__init__.py,sha256=
|
15
|
+
groupdocs_conversion_cloud/models/__init__.py,sha256=ieERDVsv3fOcbREntl1C2_w9W5dy5x12hkzl45lomRc,14632
|
15
16
|
groupdocs_conversion_cloud/models/api_error.py,sha256=Z3uetF8zEht1JeMaIxQHiXieqjcO2RUubfBODhaxezA,6579
|
16
17
|
groupdocs_conversion_cloud/models/api_error_response.py,sha256=TXrGA9LmkulW_7mOAJlJsMDFp3gJW7ahFsKKt_Y0nvg,4674
|
17
18
|
groupdocs_conversion_cloud/models/bmp_convert_options.py,sha256=8ckZtSU_ngDsBZOApyRiyvF7nWUprCurNMWQjBKd6pU,3735
|
@@ -49,7 +50,7 @@ groupdocs_conversion_cloud/models/dwg_load_options.py,sha256=tTuMQQnlHaJ8bA6OnQF
|
|
49
50
|
groupdocs_conversion_cloud/models/dwt_load_options.py,sha256=ipDUXvqT4uRiCF2FbfKwpjcwaoBOIjKmYKKzFN4kJEk,3707
|
50
51
|
groupdocs_conversion_cloud/models/dxf_load_options.py,sha256=33AA8Rj8lB7qPMgI1HWr44VZcU1aF0AgROmPe6K4o9o,3707
|
51
52
|
groupdocs_conversion_cloud/models/e_book_convert_options.py,sha256=MMOQvml5EnfPRpe3dMqGz4fKfHN69guzIks6yjLaWu0,6730
|
52
|
-
groupdocs_conversion_cloud/models/email_load_options.py,sha256=
|
53
|
+
groupdocs_conversion_cloud/models/email_load_options.py,sha256=miSORHLRGzDwL_7kcg2ttSPN1U_ewdVpu42vuX5-o6Q,14506
|
53
54
|
groupdocs_conversion_cloud/models/emf_convert_options.py,sha256=Sp3Qyy7adp6IjDefM7mVjDRJZnYQKDx-UF4Six93Iuw,3735
|
54
55
|
groupdocs_conversion_cloud/models/emf_load_options.py,sha256=9qsMe9omJF6gd7kqSQkO2w666DPrLRpd4gSi0qYfrMg,3711
|
55
56
|
groupdocs_conversion_cloud/models/eml_load_options.py,sha256=eDAmbvdH0lRIRxo_umE7szGNggdWqmSoWYvWcIAE1Bk,3711
|
@@ -100,6 +101,7 @@ groupdocs_conversion_cloud/models/ods_load_options.py,sha256=C_OLmFito3scEuL_Wzd
|
|
100
101
|
groupdocs_conversion_cloud/models/odt_convert_options.py,sha256=VZgVAIZrTj331lWKF_oFhsGwk_tgDuVigcTySSIInFc,3753
|
101
102
|
groupdocs_conversion_cloud/models/odt_load_options.py,sha256=G0xeIiC9xubhVtfwcyaiKgUL_lgTsGP-n8Pe3PdZdfc,3729
|
102
103
|
groupdocs_conversion_cloud/models/one_load_options.py,sha256=WEYmRNUj5EZ46FZHAjBvsDcHJyy5D3ScpaqClwhMml0,6360
|
104
|
+
groupdocs_conversion_cloud/models/operation_result.py,sha256=UdJOFyM9WSyJBCWHQrcpu_ZuzWesdUU_kkZsmZU8Z2Q,10687
|
103
105
|
groupdocs_conversion_cloud/models/ost_load_options.py,sha256=swuufu9oUvursN_sTe8XwyQPlxVeZ0txuH5jjF7LC8E,3711
|
104
106
|
groupdocs_conversion_cloud/models/otp_convert_options.py,sha256=gBCEFi8h3Sn1L9KBA9AkhVg3H4njcSWqjzFJa09qTZE,3749
|
105
107
|
groupdocs_conversion_cloud/models/otp_load_options.py,sha256=MCZVqSCK0KbjJW4QJa_o8mPou1jvtpSleoKgATTrMtk,3725
|
@@ -199,8 +201,8 @@ test/apis/test_file_api.py,sha256=r_dk6swFFsNL1gUXmDQP4bN7NzpjdvAke4lvuhiF8qQ,38
|
|
199
201
|
test/apis/test_folder_api.py,sha256=MBFNyHFZGPD6e316JGe8zaFT5ArZQvrc95SW1z3OIB0,3150
|
200
202
|
test/apis/test_info_api.py,sha256=LpdHt7IpXngfeKzQW4SFJIT_JVV19svwwiibKQgq7XE,2972
|
201
203
|
test/apis/test_storage_api.py,sha256=GpKoJIpv_Sq7j8jPPSXr2DnCJzxPwU8m4PlUkrKrJdo,2735
|
202
|
-
groupdocs_conversion_cloud-24.
|
203
|
-
groupdocs_conversion_cloud-24.
|
204
|
-
groupdocs_conversion_cloud-24.
|
205
|
-
groupdocs_conversion_cloud-24.
|
206
|
-
groupdocs_conversion_cloud-24.
|
204
|
+
groupdocs_conversion_cloud-24.8.dist-info/LICENSE,sha256=Q7-vrpo6A1xjL5SlSuhiE88PxHSP9tF_RA9s5IlfznE,1105
|
205
|
+
groupdocs_conversion_cloud-24.8.dist-info/METADATA,sha256=z03pwFQE1OUig80gh6Cq8tvBX9TVJPrSESHvejtvEvI,3149
|
206
|
+
groupdocs_conversion_cloud-24.8.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
207
|
+
groupdocs_conversion_cloud-24.8.dist-info/top_level.txt,sha256=QSw6h5GXn7SFkzZ5fIiGyHwma3Buwqb32LfNpDAu1rI,32
|
208
|
+
groupdocs_conversion_cloud-24.8.dist-info/RECORD,,
|
{groupdocs_conversion_cloud-24.4.dist-info → groupdocs_conversion_cloud-24.8.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|