Skip to content

Commit efb3f62

Browse files
SDK regenerated by CI server [ci skip]
1 parent d5e6d35 commit efb3f62

File tree

392 files changed

+3072
-916
lines changed

Some content is hidden

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

392 files changed

+3072
-916
lines changed

AsposeWordsCloud.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsposeWordsCloud'
3-
s.version = '23.10'
3+
s.version = '23.11'
44
s.summary = 'Aspose Words for Cloud.'
55
s.homepage = 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

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

1831
- Support for class inheritance in responses from the server.
@@ -288,7 +301,7 @@ Add link to this repository as dependency to your Package.swift:
288301

289302
dependencies: [
290303
// Dependencies declare other packages that this package depends on.
291-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "23.10"),
304+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "23.11"),
292305
],
293306
targets: [
294307
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -306,7 +319,7 @@ targets: [
306319
Add link to git repository as dependency to your Podfile:
307320

308321
```ruby
309-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '23.10'
322+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '23.11'
310323
```
311324

312325
## Getting Started

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ public class Configuration : Codable {
188188

189189
// Returns SDK version for using in statistics headers
190190
public func getSdkVersion() -> String {
191-
return "23.10";
191+
return "23.11";
192192
}
193193
}

Sources/AsposeWordsCloud/Api/WordsApiError.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import Foundation
3131
public enum WordsApiError : LocalizedError {
3232
case requestError(errorCode: Int, message: String?)
3333
case requiredArgumentError(argumentName: String)
34+
case requiredParameterError(paramName: String)
3435
case invalidTypeSerialization(typeName: String)
3536
case invalidTypeDeserialization(typeName: String)
3637
case invalidMultipartResponse(message: String)
@@ -43,6 +44,8 @@ public enum WordsApiError : LocalizedError {
4344
return "Request error: \(errorCode); Description: \(message ?? "")";
4445
case let .requiredArgumentError(argumentName):
4546
return "Required argument \(argumentName) not present.";
47+
case let .requiredParameterError(paramName):
48+
return "Required parameter \(paramName) is null.";
4649
case let .invalidTypeSerialization(typeName):
4750
return "Failed to serialize type '\(typeName)'.";
4851
case let .invalidTypeDeserialization(typeName):

Sources/AsposeWordsCloud/Api/WordsApiModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ import Foundation
3232
public protocol WordsApiModel {
3333
init(from json: [String: Any]) throws;
3434
func collectFilesContent(_ resultFilesContent : inout [FileReference]);
35+
func validate() throws;
3536
}

Sources/AsposeWordsCloud/Model/ApiError.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ public class ApiError : Codable, WordsApiModel {
152152
public func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
153153
}
154154

155+
public func validate() throws {
156+
try self.innerError?.validate();
157+
158+
}
159+
155160
// Sets code. Gets or sets the API error code.
156161
public func setCode(code : String?) -> ApiError {
157162
self.code = code;

Sources/AsposeWordsCloud/Model/AvailableFontsResponse.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,26 @@ public class AvailableFontsResponse : WordsResponse {
139139
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
140140
}
141141

142+
public override func validate() throws {
143+
try super.validate();
144+
if (self.additionalFonts != nil) {
145+
for elementAdditionalFonts in self.additionalFonts! {
146+
try elementAdditionalFonts.validate();
147+
}
148+
}
149+
if (self.customFonts != nil) {
150+
for elementCustomFonts in self.customFonts! {
151+
try elementCustomFonts.validate();
152+
}
153+
}
154+
if (self.systemFonts != nil) {
155+
for elementSystemFonts in self.systemFonts! {
156+
try elementSystemFonts.validate();
157+
}
158+
}
159+
160+
}
161+
142162
// Sets additionalFonts. Gets or sets the list of additional fonts, provided by Aspose team.
143163
public func setAdditionalFonts(additionalFonts : [FontInfo]?) -> AvailableFontsResponse {
144164
self.additionalFonts = additionalFonts;

Sources/AsposeWordsCloud/Model/BaseEntry.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ public class BaseEntry : Codable, WordsApiModel {
7777

7878
}
7979

80+
public func validate() throws {
81+
if (self.fileReference == nil)
82+
{
83+
throw WordsApiError.requiredParameterError(paramName: "fileReference");
84+
}
85+
try self.fileReference?.validate();
86+
87+
}
88+
8089
// Sets fileReference. Gets or sets the file reference.
8190
public func setFileReference(fileReference : FileReference?) -> BaseEntry {
8291
self.fileReference = fileReference;

Sources/AsposeWordsCloud/Model/BaseEntryList.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ public class BaseEntryList : Codable, WordsApiModel {
4949
public func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
5050
}
5151

52+
public func validate() throws {
53+
}
54+
5255
}

Sources/AsposeWordsCloud/Model/BmpSaveOptionsData.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@ public class BmpSaveOptionsData : ImageSaveOptionsData {
6262
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
6363
}
6464

65+
public override func validate() throws {
66+
try super.validate();
67+
}
68+
6569
}

0 commit comments

Comments
 (0)