Skip to content

Commit 9b26748

Browse files
committed
Update API AddImage: add request parameters body.SourceId.
1 parent 974a78e commit 9b26748

File tree

5 files changed

+59
-5
lines changed

5 files changed

+59
-5
lines changed

AlibabacloudAIWorkSpace20210204.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22

33
spec.name = "AlibabacloudAIWorkSpace20210204"
4-
spec.version = "4.0.0"
4+
spec.version = "4.0.1"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud AIWorkSpace (20210204) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204"

README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
要使用 [Carthage](https://github.com/Carthage/Carthage)`AlibabacloudAIWorkSpace20210204` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.0.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.0.1"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.0.0"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.0.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.0.1")
3030
]
3131
```
3232

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
1717
To integrate `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.0.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.0.1"
2121
```
2222

2323
### Swift Package Manager
@@ -26,7 +26,7 @@ To integrate `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Sw
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.0.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.0.1")
3030
]
3131
```
3232

Sources/AlibabacloudAIWorkSpace20210204/Client.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ open class Client : AlibabacloudOpenApi.Client {
9090
if (!TeaUtils.Client.isUnset(request.size)) {
9191
body["Size"] = request.size!;
9292
}
93+
if (!TeaUtils.Client.isUnset(request.sourceId)) {
94+
body["SourceId"] = request.sourceId ?? "";
95+
}
96+
if (!TeaUtils.Client.isUnset(request.sourceType)) {
97+
body["SourceType"] = request.sourceType ?? "";
98+
}
9399
if (!TeaUtils.Client.isUnset(request.workspaceId)) {
94100
body["WorkspaceId"] = request.workspaceId ?? "";
95101
}

Sources/AlibabacloudAIWorkSpace20210204/Models.swift

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,6 +2850,10 @@ public class AddImageRequest : Tea.TeaModel {
28502850

28512851
public var size: Int32?
28522852

2853+
public var sourceId: String?
2854+
2855+
public var sourceType: String?
2856+
28532857
public var workspaceId: String?
28542858

28552859
public override init() {
@@ -2891,6 +2895,12 @@ public class AddImageRequest : Tea.TeaModel {
28912895
if self.size != nil {
28922896
map["Size"] = self.size!
28932897
}
2898+
if self.sourceId != nil {
2899+
map["SourceId"] = self.sourceId!
2900+
}
2901+
if self.sourceType != nil {
2902+
map["SourceType"] = self.sourceType!
2903+
}
28942904
if self.workspaceId != nil {
28952905
map["WorkspaceId"] = self.workspaceId!
28962906
}
@@ -2927,6 +2937,12 @@ public class AddImageRequest : Tea.TeaModel {
29272937
if dict.keys.contains("Size") {
29282938
self.size = dict["Size"] as! Int32
29292939
}
2940+
if dict.keys.contains("SourceId") {
2941+
self.sourceId = dict["SourceId"] as! String
2942+
}
2943+
if dict.keys.contains("SourceType") {
2944+
self.sourceType = dict["SourceType"] as! String
2945+
}
29302946
if dict.keys.contains("WorkspaceId") {
29312947
self.workspaceId = dict["WorkspaceId"] as! String
29322948
}
@@ -10460,6 +10476,10 @@ public class GetImageResponseBody : Tea.TeaModel {
1046010476

1046110477
public var size: Int32?
1046210478

10479+
public var sourceId: String?
10480+
10481+
public var sourceType: String?
10482+
1046310483
public var userId: String?
1046410484

1046510485
public var workspaceId: String?
@@ -10512,6 +10532,12 @@ public class GetImageResponseBody : Tea.TeaModel {
1051210532
if self.size != nil {
1051310533
map["Size"] = self.size!
1051410534
}
10535+
if self.sourceId != nil {
10536+
map["SourceId"] = self.sourceId!
10537+
}
10538+
if self.sourceType != nil {
10539+
map["SourceType"] = self.sourceType!
10540+
}
1051510541
if self.userId != nil {
1051610542
map["UserId"] = self.userId!
1051710543
}
@@ -10560,6 +10586,12 @@ public class GetImageResponseBody : Tea.TeaModel {
1056010586
if dict.keys.contains("Size") {
1056110587
self.size = dict["Size"] as! Int32
1056210588
}
10589+
if dict.keys.contains("SourceId") {
10590+
self.sourceId = dict["SourceId"] as! String
10591+
}
10592+
if dict.keys.contains("SourceType") {
10593+
self.sourceType = dict["SourceType"] as! String
10594+
}
1056310595
if dict.keys.contains("UserId") {
1056410596
self.userId = dict["UserId"] as! String
1056510597
}
@@ -13884,6 +13916,10 @@ public class ListImagesResponseBody : Tea.TeaModel {
1388413916

1388513917
public var size: Int32?
1388613918

13919+
public var sourceId: String?
13920+
13921+
public var sourceType: String?
13922+
1388713923
public var userId: String?
1388813924

1388913925
public var workspaceId: String?
@@ -13936,6 +13972,12 @@ public class ListImagesResponseBody : Tea.TeaModel {
1393613972
if self.size != nil {
1393713973
map["Size"] = self.size!
1393813974
}
13975+
if self.sourceId != nil {
13976+
map["SourceId"] = self.sourceId!
13977+
}
13978+
if self.sourceType != nil {
13979+
map["SourceType"] = self.sourceType!
13980+
}
1393913981
if self.userId != nil {
1394013982
map["UserId"] = self.userId!
1394113983
}
@@ -13984,6 +14026,12 @@ public class ListImagesResponseBody : Tea.TeaModel {
1398414026
if dict.keys.contains("Size") {
1398514027
self.size = dict["Size"] as! Int32
1398614028
}
14029+
if dict.keys.contains("SourceId") {
14030+
self.sourceId = dict["SourceId"] as! String
14031+
}
14032+
if dict.keys.contains("SourceType") {
14033+
self.sourceType = dict["SourceType"] as! String
14034+
}
1398714035
if dict.keys.contains("UserId") {
1398814036
self.userId = dict["UserId"] as! String
1398914037
}

0 commit comments

Comments
 (0)