groupdocs-conversion-cloud 24.4__py3-none-any.whl → 24.11__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.
@@ -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.4\n"\
206
- "SDK Package Version: 24.4".\
205
+ "Version of the API: 24.11\n"\
206
+ "SDK Package Version: 24.11".\
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, display_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
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
@@ -45,20 +45,35 @@ class WebLoadOptions(LoadOptions):
45
45
  and the value is json key in definition.
46
46
  """
47
47
  swagger_types = {
48
- 'page_numbering': 'bool'
48
+ 'page_numbering': 'bool',
49
+ 'encoding': 'str',
50
+ 'use_pdf': 'bool',
51
+ 'rendering_mode': 'str'
49
52
  }
50
53
 
51
54
  attribute_map = {
52
- 'page_numbering': 'PageNumbering'
55
+ 'page_numbering': 'PageNumbering',
56
+ 'encoding': 'Encoding',
57
+ 'use_pdf': 'UsePdf',
58
+ 'rendering_mode': 'RenderingMode'
53
59
  }
54
60
 
55
- def __init__(self, page_numbering=None, **kwargs): # noqa: E501
61
+ def __init__(self, page_numbering=None, encoding=None, use_pdf=None, rendering_mode=None, **kwargs): # noqa: E501
56
62
  """Initializes new instance of WebLoadOptions""" # noqa: E501
57
63
 
58
64
  self._page_numbering = None
65
+ self._encoding = None
66
+ self._use_pdf = None
67
+ self._rendering_mode = None
59
68
 
60
69
  if page_numbering is not None:
61
70
  self.page_numbering = page_numbering
71
+ if encoding is not None:
72
+ self.encoding = encoding
73
+ if use_pdf is not None:
74
+ self.use_pdf = use_pdf
75
+ if rendering_mode is not None:
76
+ self.rendering_mode = rendering_mode
62
77
 
63
78
  base = super(WebLoadOptions, self)
64
79
  base.__init__(**kwargs)
@@ -91,6 +106,90 @@ class WebLoadOptions(LoadOptions):
91
106
  if page_numbering is None:
92
107
  raise ValueError("Invalid value for `page_numbering`, must not be `None`") # noqa: E501
93
108
  self._page_numbering = page_numbering
109
+
110
+ @property
111
+ def encoding(self):
112
+ """
113
+ Gets the encoding. # noqa: E501
114
+
115
+ Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute # noqa: E501
116
+
117
+ :return: The encoding. # noqa: E501
118
+ :rtype: str
119
+ """
120
+ return self._encoding
121
+
122
+ @encoding.setter
123
+ def encoding(self, encoding):
124
+ """
125
+ Sets the encoding.
126
+
127
+ Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute # noqa: E501
128
+
129
+ :param encoding: The encoding. # noqa: E501
130
+ :type: str
131
+ """
132
+ self._encoding = encoding
133
+
134
+ @property
135
+ def use_pdf(self):
136
+ """
137
+ Gets the use_pdf. # noqa: E501
138
+
139
+ Use pdf for the conversion. Default: false # noqa: E501
140
+
141
+ :return: The use_pdf. # noqa: E501
142
+ :rtype: bool
143
+ """
144
+ return self._use_pdf
145
+
146
+ @use_pdf.setter
147
+ def use_pdf(self, use_pdf):
148
+ """
149
+ Sets the use_pdf.
150
+
151
+ Use pdf for the conversion. Default: false # noqa: E501
152
+
153
+ :param use_pdf: The use_pdf. # noqa: E501
154
+ :type: bool
155
+ """
156
+ if use_pdf is None:
157
+ raise ValueError("Invalid value for `use_pdf`, must not be `None`") # noqa: E501
158
+ self._use_pdf = use_pdf
159
+
160
+ @property
161
+ def rendering_mode(self):
162
+ """
163
+ Gets the rendering_mode. # noqa: E501
164
+
165
+ Controls how HTML content is rendered. Default: AbsolutePositioning # noqa: E501
166
+
167
+ :return: The rendering_mode. # noqa: E501
168
+ :rtype: str
169
+ """
170
+ return self._rendering_mode
171
+
172
+ @rendering_mode.setter
173
+ def rendering_mode(self, rendering_mode):
174
+ """
175
+ Sets the rendering_mode.
176
+
177
+ Controls how HTML content is rendered. Default: AbsolutePositioning # noqa: E501
178
+
179
+ :param rendering_mode: The rendering_mode. # noqa: E501
180
+ :type: str
181
+ """
182
+ if rendering_mode is None:
183
+ raise ValueError("Invalid value for `rendering_mode`, must not be `None`") # noqa: E501
184
+ allowed_values = ["Flow", "AbsolutePositioning"] # noqa: E501
185
+ if not rendering_mode.isdigit():
186
+ if rendering_mode not in allowed_values:
187
+ raise ValueError(
188
+ "Invalid value for `rendering_mode` ({0}), must be one of {1}" # noqa: E501
189
+ .format(rendering_mode, allowed_values))
190
+ self._rendering_mode = rendering_mode
191
+ else:
192
+ self._rendering_mode = allowed_values[int(rendering_mode) if six.PY3 else long(rendering_mode)]
94
193
 
95
194
  def to_dict(self):
96
195
  """Returns the model properties as a dict"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groupdocs-conversion-cloud
3
- Version: 24.4
3
+ Version: 24.11
4
4
  Summary: GroupDocs.Conversion Cloud Python SDK
5
5
  Home-page: http://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
6
6
  Author: GroupDocs
@@ -17,8 +17,8 @@ Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: urllib3 >=1.15
21
- Requires-Dist: six >=1.10
20
+ Requires-Dist: urllib3>=1.15
21
+ Requires-Dist: six>=1.10
22
22
  Requires-Dist: certifi
23
23
  Requires-Dist: python-dateutil
24
24