Skip to content

Commit 15c7e97

Browse files
SDK regenerated by CI server [ci skip]
1 parent a9f588b commit 15c7e97

File tree

182 files changed

+1150
-1720
lines changed

Some content is hidden

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

182 files changed

+1150
-1720
lines changed

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class ObjectSerializer {
131131
"FlatOpcTemplateMacroSaveOptionsData, _": FlatOpcTemplateMacroSaveOptionsData.self,
132132
"FlatOpcTemplateSaveOptionsData, _": FlatOpcTemplateSaveOptionsData.self,
133133
"Font, _": Font.self,
134-
"FontDto, _": FontDto.self,
135134
"FontInfo, _": FontInfo.self,
136135
"FontResponse, _": FontResponse.self,
137136
"Footnote, _": Footnote.self,
@@ -222,10 +221,8 @@ class ObjectSerializer {
222221
"PsSaveOptionsData, _": PsSaveOptionsData.self,
223222
"PublicKeyResponse, _": PublicKeyResponse.self,
224223
"RangeDocument, _": RangeDocument.self,
225-
"RangeDocumentDto, _": RangeDocumentDto.self,
226224
"RangeTextResponse, _": RangeTextResponse.self,
227225
"ReplaceRange, _": ReplaceRange.self,
228-
"ReplaceRangeDto, _": ReplaceRangeDto.self,
229226
"ReplaceTextParameters, _": ReplaceTextParameters.self,
230227
"ReplaceTextResponse, _": ReplaceTextResponse.self,
231228
"ReportBuildOptions, _": nil,
@@ -274,26 +271,20 @@ class ObjectSerializer {
274271
"Table, _": Table.self,
275272
"TableCell, _": TableCell.self,
276273
"TableCellFormat, _": TableCellFormat.self,
277-
"TableCellFormatDto, _": TableCellFormatDto.self,
278274
"TableCellFormatResponse, _": TableCellFormatResponse.self,
279275
"TableCellInsert, _": TableCellInsert.self,
280-
"TableCellInsertDto, _": TableCellInsertDto.self,
281276
"TableCellResponse, _": TableCellResponse.self,
282277
"TableInsert, _": TableInsert.self,
283-
"TableInsertDto, _": TableInsertDto.self,
284278
"TableLink, _": TableLink.self,
285279
"TableLinkCollection, _": TableLinkCollection.self,
286280
"TableLinkCollectionResponse, _": TableLinkCollectionResponse.self,
287281
"TableProperties, _": TableProperties.self,
288-
"TablePropertiesDto, _": TablePropertiesDto.self,
289282
"TablePropertiesResponse, _": TablePropertiesResponse.self,
290283
"TableResponse, _": TableResponse.self,
291284
"TableRow, _": TableRow.self,
292285
"TableRowFormat, _": TableRowFormat.self,
293-
"TableRowFormatDto, _": TableRowFormatDto.self,
294286
"TableRowFormatResponse, _": TableRowFormatResponse.self,
295287
"TableRowInsert, _": TableRowInsert.self,
296-
"TableRowInsertDto, _": TableRowInsertDto.self,
297288
"TableRowResponse, _": TableRowResponse.self,
298289
"TabStop, _": TabStop.self,
299290
"TabStopInsert, _": TabStopInsert.self,

Sources/AsposeWordsCloud/Api/WordsAPI.swift

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ public class WordsAPI : Encryptor {
759759
}
760760

761761
// Async representation of compressDocument method
762+
// Compress and resize images inside the document.
762763
// The default settings allows to reduce the size of the document without any visible degradation of images quality.
763764
public func compressDocument(request : CompressDocumentRequest, callback : @escaping (_ response : CompressResponse?, _ error : Error?) -> ()) {
764765
do {
@@ -793,6 +794,7 @@ public class WordsAPI : Encryptor {
793794
}
794795

795796
// Sync representation of compressDocument method
797+
// Compress and resize images inside the document.
796798
// The default settings allows to reduce the size of the document without any visible degradation of images quality.
797799
public func compressDocument(request : CompressDocumentRequest) throws -> CompressResponse {
798800
let semaphore = DispatchSemaphore(value: 0);
@@ -814,6 +816,7 @@ public class WordsAPI : Encryptor {
814816

815817
// Async representation of compressDocumentOnline method
816818
// Compress and resize images inside the document.
819+
// The default settings allows to reduce the size of the document without any visible degradation of images quality.
817820
public func compressDocumentOnline(request : CompressDocumentOnlineRequest, callback : @escaping (_ response : CompressDocumentOnlineResponse?, _ error : Error?) -> ()) {
818821
do {
819822
if (self.apiInvoker == nil) {
@@ -848,6 +851,7 @@ public class WordsAPI : Encryptor {
848851

849852
// Sync representation of compressDocumentOnline method
850853
// Compress and resize images inside the document.
854+
// The default settings allows to reduce the size of the document without any visible degradation of images quality.
851855
public func compressDocumentOnline(request : CompressDocumentOnlineRequest) throws -> CompressDocumentOnlineResponse {
852856
let semaphore = DispatchSemaphore(value: 0);
853857
var responseObject : CompressDocumentOnlineResponse? = nil;
@@ -1165,6 +1169,7 @@ public class WordsAPI : Encryptor {
11651169
}
11661170

11671171
// Async representation of createDocument method
1172+
// Creates a new document in cloud storage in the format, determined by the file extension.
11681173
// Supported all save format extensions.
11691174
public func createDocument(request : CreateDocumentRequest, callback : @escaping (_ response : DocumentResponse?, _ error : Error?) -> ()) {
11701175
do {
@@ -1199,6 +1204,7 @@ public class WordsAPI : Encryptor {
11991204
}
12001205

12011206
// Sync representation of createDocument method
1207+
// Creates a new document in cloud storage in the format, determined by the file extension.
12021208
// Supported all save format extensions.
12031209
public func createDocument(request : CreateDocumentRequest) throws -> DocumentResponse {
12041210
let semaphore = DispatchSemaphore(value: 0);
@@ -1666,6 +1672,7 @@ public class WordsAPI : Encryptor {
16661672
}
16671673

16681674
// Async representation of deleteBorder method
1675+
// Removes a border from the document node.
16691676
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
16701677
public func deleteBorder(request : DeleteBorderRequest, callback : @escaping (_ response : BorderResponse?, _ error : Error?) -> ()) {
16711678
do {
@@ -1700,6 +1707,7 @@ public class WordsAPI : Encryptor {
17001707
}
17011708

17021709
// Sync representation of deleteBorder method
1710+
// Removes a border from the document node.
17031711
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
17041712
public func deleteBorder(request : DeleteBorderRequest) throws -> BorderResponse {
17051713
let semaphore = DispatchSemaphore(value: 0);
@@ -1721,6 +1729,7 @@ public class WordsAPI : Encryptor {
17211729

17221730
// Async representation of deleteBorderOnline method
17231731
// Removes a border from the document node.
1732+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
17241733
public func deleteBorderOnline(request : DeleteBorderOnlineRequest, callback : @escaping (_ response : DeleteBorderOnlineResponse?, _ error : Error?) -> ()) {
17251734
do {
17261735
if (self.apiInvoker == nil) {
@@ -1755,6 +1764,7 @@ public class WordsAPI : Encryptor {
17551764

17561765
// Sync representation of deleteBorderOnline method
17571766
// Removes a border from the document node.
1767+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
17581768
public func deleteBorderOnline(request : DeleteBorderOnlineRequest) throws -> DeleteBorderOnlineResponse {
17591769
let semaphore = DispatchSemaphore(value: 0);
17601770
var responseObject : DeleteBorderOnlineResponse? = nil;
@@ -1774,6 +1784,7 @@ public class WordsAPI : Encryptor {
17741784
}
17751785

17761786
// Async representation of deleteBorders method
1787+
// Removes borders from the document node.
17771788
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
17781789
public func deleteBorders(request : DeleteBordersRequest, callback : @escaping (_ response : BordersResponse?, _ error : Error?) -> ()) {
17791790
do {
@@ -1808,6 +1819,7 @@ public class WordsAPI : Encryptor {
18081819
}
18091820

18101821
// Sync representation of deleteBorders method
1822+
// Removes borders from the document node.
18111823
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
18121824
public func deleteBorders(request : DeleteBordersRequest) throws -> BordersResponse {
18131825
let semaphore = DispatchSemaphore(value: 0);
@@ -1829,6 +1841,7 @@ public class WordsAPI : Encryptor {
18291841

18301842
// Async representation of deleteBordersOnline method
18311843
// Removes borders from the document node.
1844+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
18321845
public func deleteBordersOnline(request : DeleteBordersOnlineRequest, callback : @escaping (_ response : DeleteBordersOnlineResponse?, _ error : Error?) -> ()) {
18331846
do {
18341847
if (self.apiInvoker == nil) {
@@ -1863,6 +1876,7 @@ public class WordsAPI : Encryptor {
18631876

18641877
// Sync representation of deleteBordersOnline method
18651878
// Removes borders from the document node.
1879+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
18661880
public func deleteBordersOnline(request : DeleteBordersOnlineRequest) throws -> DeleteBordersOnlineResponse {
18671881
let semaphore = DispatchSemaphore(value: 0);
18681882
var responseObject : DeleteBordersOnlineResponse? = nil;
@@ -4715,6 +4729,7 @@ public class WordsAPI : Encryptor {
47154729
}
47164730

47174731
// Async representation of getBorder method
4732+
// Reads a border from the document node.
47184733
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
47194734
public func getBorder(request : GetBorderRequest, callback : @escaping (_ response : BorderResponse?, _ error : Error?) -> ()) {
47204735
do {
@@ -4749,6 +4764,7 @@ public class WordsAPI : Encryptor {
47494764
}
47504765

47514766
// Sync representation of getBorder method
4767+
// Reads a border from the document node.
47524768
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
47534769
public func getBorder(request : GetBorderRequest) throws -> BorderResponse {
47544770
let semaphore = DispatchSemaphore(value: 0);
@@ -4770,6 +4786,7 @@ public class WordsAPI : Encryptor {
47704786

47714787
// Async representation of getBorderOnline method
47724788
// Reads a border from the document node.
4789+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
47734790
public func getBorderOnline(request : GetBorderOnlineRequest, callback : @escaping (_ response : BorderResponse?, _ error : Error?) -> ()) {
47744791
do {
47754792
if (self.apiInvoker == nil) {
@@ -4804,6 +4821,7 @@ public class WordsAPI : Encryptor {
48044821

48054822
// Sync representation of getBorderOnline method
48064823
// Reads a border from the document node.
4824+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
48074825
public func getBorderOnline(request : GetBorderOnlineRequest) throws -> BorderResponse {
48084826
let semaphore = DispatchSemaphore(value: 0);
48094827
var responseObject : BorderResponse? = nil;
@@ -14519,7 +14537,7 @@ public class WordsAPI : Encryptor {
1451914537
}
1452014538

1452114539
// Async representation of saveAsOnline method
14522-
// Converts a document to the specified format.
14540+
// Converts a document in cloud storage to the specified format.
1452314541
public func saveAsOnline(request : SaveAsOnlineRequest, callback : @escaping (_ response : SaveAsOnlineResponse?, _ error : Error?) -> ()) {
1452414542
do {
1452514543
if (self.apiInvoker == nil) {
@@ -14553,7 +14571,7 @@ public class WordsAPI : Encryptor {
1455314571
}
1455414572

1455514573
// Sync representation of saveAsOnline method
14556-
// Converts a document to the specified format.
14574+
// Converts a document in cloud storage to the specified format.
1455714575
public func saveAsOnline(request : SaveAsOnlineRequest) throws -> SaveAsOnlineResponse {
1455814576
let semaphore = DispatchSemaphore(value: 0);
1455914577
var responseObject : SaveAsOnlineResponse? = nil;
@@ -14735,7 +14753,7 @@ public class WordsAPI : Encryptor {
1473514753
}
1473614754

1473714755
// Async representation of saveAsTiffOnline method
14738-
// Converts a document to TIFF format using detailed conversion settings.
14756+
// Converts a document in cloud storage to TIFF format using detailed conversion settings.
1473914757
public func saveAsTiffOnline(request : SaveAsTiffOnlineRequest, callback : @escaping (_ response : SaveAsTiffOnlineResponse?, _ error : Error?) -> ()) {
1474014758
do {
1474114759
if (self.apiInvoker == nil) {
@@ -14769,7 +14787,7 @@ public class WordsAPI : Encryptor {
1476914787
}
1477014788

1477114789
// Sync representation of saveAsTiffOnline method
14772-
// Converts a document to TIFF format using detailed conversion settings.
14790+
// Converts a document in cloud storage to TIFF format using detailed conversion settings.
1477314791
public func saveAsTiffOnline(request : SaveAsTiffOnlineRequest) throws -> SaveAsTiffOnlineResponse {
1477414792
let semaphore = DispatchSemaphore(value: 0);
1477514793
var responseObject : SaveAsTiffOnlineResponse? = nil;
@@ -15221,6 +15239,7 @@ public class WordsAPI : Encryptor {
1522115239
}
1522215240

1522315241
// Async representation of updateBorder method
15242+
// Updates a border in the document node.
1522415243
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
1522515244
public func updateBorder(request : UpdateBorderRequest, callback : @escaping (_ response : BorderResponse?, _ error : Error?) -> ()) {
1522615245
do {
@@ -15255,6 +15274,7 @@ public class WordsAPI : Encryptor {
1525515274
}
1525615275

1525715276
// Sync representation of updateBorder method
15277+
// Updates a border in the document node.
1525815278
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
1525915279
public func updateBorder(request : UpdateBorderRequest) throws -> BorderResponse {
1526015280
let semaphore = DispatchSemaphore(value: 0);
@@ -15276,6 +15296,7 @@ public class WordsAPI : Encryptor {
1527615296

1527715297
// Async representation of updateBorderOnline method
1527815298
// Updates a border in the document node.
15299+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
1527915300
public func updateBorderOnline(request : UpdateBorderOnlineRequest, callback : @escaping (_ response : UpdateBorderOnlineResponse?, _ error : Error?) -> ()) {
1528015301
do {
1528115302
if (self.apiInvoker == nil) {
@@ -15310,6 +15331,7 @@ public class WordsAPI : Encryptor {
1531015331

1531115332
// Sync representation of updateBorderOnline method
1531215333
// Updates a border in the document node.
15334+
// The 'nodePath' parameter should refer to a paragraph, a cell or a row.
1531315335
public func updateBorderOnline(request : UpdateBorderOnlineRequest) throws -> UpdateBorderOnlineResponse {
1531415336
let semaphore = DispatchSemaphore(value: 0);
1531515337
var responseObject : UpdateBorderOnlineResponse? = nil;

Sources/AsposeWordsCloud/Model/BookmarkInsert.swift

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ import Foundation
3030
// Represents a bookmark to insert.
3131
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
3232
public class BookmarkInsert : BookmarkData {
33-
// Field of endRange. Represents a bookmark to insert.
34-
private var _endRange : NewDocumentPosition? = nil;
33+
// Field of startRange. Represents a bookmark to insert.
34+
private var _startRange : NewDocumentPosition? = nil;
3535

36-
public var endRange : NewDocumentPosition? {
36+
public var startRange : NewDocumentPosition? {
3737
get {
38-
return self._endRange;
38+
return self._startRange;
3939
}
4040
set {
41-
self._endRange = newValue;
41+
self._startRange = newValue;
4242
}
4343
}
4444

45-
// Field of startRange. Represents a bookmark to insert.
46-
private var _startRange : NewDocumentPosition? = nil;
45+
// Field of endRange. Represents a bookmark to insert.
46+
private var _endRange : NewDocumentPosition? = nil;
4747

48-
public var startRange : NewDocumentPosition? {
48+
public var endRange : NewDocumentPosition? {
4949
get {
50-
return self._startRange;
50+
return self._endRange;
5151
}
5252
set {
53-
self._startRange = newValue;
53+
self._endRange = newValue;
5454
}
5555
}
5656

5757
private enum CodingKeys: String, CodingKey {
58-
case endRange = "EndRange";
5958
case startRange = "StartRange";
59+
case endRange = "EndRange";
6060
case invalidCodingKey;
6161
}
6262

@@ -66,49 +66,37 @@ public class BookmarkInsert : BookmarkData {
6666

6767
public required init(from json: [String: Any]) throws {
6868
try super.init(from: json);
69-
if let raw_endRange = json["EndRange"] as? [String: Any] {
70-
self.endRange = try ObjectSerializer.deserialize(type: NewDocumentPosition.self, from: raw_endRange);
71-
}
72-
7369
if let raw_startRange = json["StartRange"] as? [String: Any] {
7470
self.startRange = try ObjectSerializer.deserialize(type: NewDocumentPosition.self, from: raw_startRange);
7571
}
7672

73+
if let raw_endRange = json["EndRange"] as? [String: Any] {
74+
self.endRange = try ObjectSerializer.deserialize(type: NewDocumentPosition.self, from: raw_endRange);
75+
}
76+
7777
}
7878

7979
public required init(from decoder: Decoder) throws {
8080
try super.init(from: decoder);
8181
let container = try decoder.container(keyedBy: CodingKeys.self);
82-
self.endRange = try container.decodeIfPresent(NewDocumentPosition.self, forKey: .endRange);
8382
self.startRange = try container.decodeIfPresent(NewDocumentPosition.self, forKey: .startRange);
83+
self.endRange = try container.decodeIfPresent(NewDocumentPosition.self, forKey: .endRange);
8484
}
8585

8686
public override func encode(to encoder: Encoder) throws {
8787
try super.encode(to: encoder);
8888
var container = encoder.container(keyedBy: CodingKeys.self);
89-
if (self.endRange != nil) {
90-
try container.encode(self.endRange, forKey: .endRange);
91-
}
9289
if (self.startRange != nil) {
9390
try container.encode(self.startRange, forKey: .startRange);
9491
}
92+
if (self.endRange != nil) {
93+
try container.encode(self.endRange, forKey: .endRange);
94+
}
9595
}
9696

9797
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
9898
}
9999

100-
// Sets endRange. Gets or sets the link to end bookmark node.
101-
public func setEndRange(endRange : NewDocumentPosition?) -> BookmarkInsert {
102-
self.endRange = endRange;
103-
return self;
104-
}
105-
106-
// Gets endRange. Gets or sets the link to end bookmark node.
107-
public func getEndRange() -> NewDocumentPosition? {
108-
return self.endRange;
109-
}
110-
111-
112100
// Sets startRange. Gets or sets the link to start bookmark node.
113101
public func setStartRange(startRange : NewDocumentPosition?) -> BookmarkInsert {
114102
self.startRange = startRange;
@@ -119,4 +107,16 @@ public class BookmarkInsert : BookmarkData {
119107
public func getStartRange() -> NewDocumentPosition? {
120108
return self.startRange;
121109
}
110+
111+
112+
// Sets endRange. Gets or sets the link to end bookmark node.
113+
public func setEndRange(endRange : NewDocumentPosition?) -> BookmarkInsert {
114+
self.endRange = endRange;
115+
return self;
116+
}
117+
118+
// Gets endRange. Gets or sets the link to end bookmark node.
119+
public func getEndRange() -> NewDocumentPosition? {
120+
return self.endRange;
121+
}
122122
}

Sources/AsposeWordsCloud/Model/BookmarkResponse.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
import Foundation
2929

3030
// The REST response with a bookmark.
31+
// This response should be returned by the service when handling: GET bookmarks/{bookmarkName}.
3132
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
3233
public class BookmarkResponse : WordsResponse {
33-
// Field of bookmark. The REST response with a bookmark.
34+
// Field of bookmark. The REST response with a bookmark. This response should be returned by the service when handling: GET bookmarks/{bookmarkName}.
3435
private var _bookmark : Bookmark? = nil;
3536

3637
public var bookmark : Bookmark? {

0 commit comments

Comments
 (0)