Skip to content

Commit 9a8660f

Browse files
Merge branch 'master' into release
2 parents e12d479 + a10e710 commit 9a8660f

File tree

374 files changed

+4312
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+4312
-279
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ Python Cloud SDK wraps Aspose.Words Cloud API so you could seamlessly integrate
1616
- [Convert a document to desired file format](https://docs.aspose.cloud/display/wordscloud/Convert+Document+to+Destination+Format+with+Detailed+Settings+and+Save+Result+to+Storage) along with detailed settings.
1717
- Convert an encrypted PDF document into Word document format.
1818

19+
## Enhancements in Version 23.11
20+
21+
- Support of required properties in models.
22+
- Property StyleName marked as required for InsertStyle operation.
23+
- Property StyleName marked as required for CopyStyle operation.
24+
- Property StyleName marked as required for ApplyStyleToDocumentElement operation.
25+
- Properties SdtType and Level marked as required for InsertStructuredDocumentTag operation.
26+
- Property Text marked as required for InsertParagraphoperation.
27+
- Property Value marked as required for CreateOrUpdateDocumentProperty operation.
28+
- Property NewValue marked as required for ReplaceText operation.
29+
- Property Text marked as required for ReplaceWithText operation.
30+
31+
1932
## Enhancements in Version 23.9
2033

2134
- Support for class inheritance in responses from the server.

asposewordscloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
342342

343343
self.pool = None
344344
self.rest_client = rest.RESTClientObject(configuration)
345-
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '23.10'}
345+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '23.11'}
346346
if header_name is not None:
347347
self.default_headers[header_name] = header_value
348348
self.cookie = cookie
349349
# Set default User-Agent.
350-
self.user_agent = 'python sdk 23.10'
350+
self.user_agent = 'python sdk 23.11'
351351

352352
def __del__(self):
353353
if not self.pool is None:

asposewordscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ def to_debug_report(self):
262262
return "Python SDK Debug Report:\n"\
263263
"OS: {env}\n"\
264264
"Python Version: {pyversion}\n"\
265-
"Version of the API: 23.10\n"\
266-
"SDK Package Version: 23.10".\
265+
"Version of the API: 23.11\n"\
266+
"SDK Package Version: 23.11".\
267267
format(env=sys.platform, pyversion=sys.version)

asposewordscloud/models/api_error.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ def message(self, message):
193193
def extract_files_content(self, filesContentResult):
194194
"""Append the file content result list"""
195195

196+
def validate(self):
197+
"""Validate all required properties in model"""
198+
199+
if self._inner_error is not None:
200+
self._inner_error.validate()
201+
202+
203+
196204
def to_dict(self):
197205
"""Returns the model properties as a dict"""
198206
result = {}

asposewordscloud/models/available_fonts_response.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,29 @@ def system_fonts(self, system_fonts):
166166
def extract_files_content(self, filesContentResult):
167167
"""Append the file content result list"""
168168

169+
def validate(self):
170+
"""Validate all required properties in model"""
171+
172+
if self._additional_fonts is not None:
173+
for elementAdditionalFonts in self._additional_fonts:
174+
if elementAdditionalFonts is not None:
175+
elementAdditionalFonts.validate()
176+
177+
178+
179+
if self._custom_fonts is not None:
180+
for elementCustomFonts in self._custom_fonts:
181+
if elementCustomFonts is not None:
182+
elementCustomFonts.validate()
183+
184+
185+
186+
if self._system_fonts is not None:
187+
for elementSystemFonts in self._system_fonts:
188+
if elementSystemFonts is not None:
189+
elementSystemFonts.validate()
190+
191+
169192
def to_dict(self):
170193
"""Returns the model properties as a dict"""
171194
result = {}

asposewordscloud/models/bmp_save_options_data.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,51 @@ def save_format(self):
10271027

10281028
def extract_files_content(self, filesContentResult):
10291029
"""Append the file content result list"""
1030+
1031+
def validate(self):
1032+
"""Validate all required properties in model"""
1033+
if self._file_name is None:
1034+
raise ValueError("Property FileName in BmpSaveOptionsData is required.") # noqa: E501
1035+
1036+
if self._custom_time_zone_info_data is not None:
1037+
self._custom_time_zone_info_data.validate()
1038+
1039+
1040+
1041+
1042+
1043+
1044+
1045+
1046+
1047+
1048+
1049+
1050+
1051+
1052+
1053+
if self._metafile_rendering_options is not None:
1054+
self._metafile_rendering_options.validate()
1055+
1056+
1057+
1058+
1059+
1060+
1061+
1062+
1063+
1064+
1065+
1066+
1067+
1068+
1069+
1070+
1071+
1072+
1073+
1074+
10301075

10311076
def to_dict(self):
10321077
"""Returns the model properties as a dict"""

asposewordscloud/models/bookmark.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ def text(self, text):
139139
def extract_files_content(self, filesContentResult):
140140
"""Append the file content result list"""
141141

142+
def validate(self):
143+
"""Validate all required properties in model"""
144+
145+
if self._link is not None:
146+
self._link.validate()
147+
148+
149+
150+
142151
def to_dict(self):
143152
"""Returns the model properties as a dict"""
144153
result = {}

asposewordscloud/models/bookmark_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def text(self, text):
112112
def extract_files_content(self, filesContentResult):
113113
"""Append the file content result list"""
114114

115+
def validate(self):
116+
"""Validate all required properties in model"""
117+
115118
def to_dict(self):
116119
"""Returns the model properties as a dict"""
117120
result = {}

asposewordscloud/models/bookmark_insert.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,18 @@ def end_range(self, end_range):
166166
def extract_files_content(self, filesContentResult):
167167
"""Append the file content result list"""
168168

169+
def validate(self):
170+
"""Validate all required properties in model"""
171+
172+
if self._start_range is not None:
173+
self._start_range.validate()
174+
175+
176+
177+
if self._end_range is not None:
178+
self._end_range.validate()
179+
180+
169181
def to_dict(self):
170182
"""Returns the model properties as a dict"""
171183
result = {}

asposewordscloud/models/bookmark_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ def bookmark(self, bookmark):
112112
def extract_files_content(self, filesContentResult):
113113
"""Append the file content result list"""
114114

115+
def validate(self):
116+
"""Validate all required properties in model"""
117+
118+
if self._bookmark is not None:
119+
self._bookmark.validate()
120+
121+
115122
def to_dict(self):
116123
"""Returns the model properties as a dict"""
117124
result = {}

0 commit comments

Comments
 (0)