Skip to content

Commit 511149b

Browse files
committed
Update API CreateImage: add request parameters DataSnapshotIds.
1 parent 831782d commit 511149b

File tree

5 files changed

+91
-5
lines changed

5 files changed

+91
-5
lines changed

AlibabacloudEcd20200930.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 = "AlibabacloudEcd20200930"
4-
spec.version = "3.2.1"
4+
spec.version = "3.2.2"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud ecd (20200930) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/ecd-20200930"

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)`AlibabacloudEcd20200930` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/ecd-20200930" "3.2.1"
20+
github "alibabacloud-sdk-swift/ecd-20200930" "3.2.2"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/ecd-20200930" "3.2.1"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/ecd-20200930.git", from: "3.2.1")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/ecd-20200930.git", from: "3.2.2")
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 `AlibabacloudEcd20200930` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/ecd-20200930" "3.2.1"
20+
github "alibabacloud-sdk-swift/ecd-20200930" "3.2.2"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/ecd-20200930.git", from: "3.2.1")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/ecd-20200930.git", from: "3.2.2")
3030
]
3131
```
3232

Sources/AlibabacloudEcd20200930/Client.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,9 @@ open class Client : AlibabacloudOpenApi.Client {
27312731
if (!TeaUtils.Client.isUnset(request.autoCleanUserdata)) {
27322732
query["AutoCleanUserdata"] = request.autoCleanUserdata!;
27332733
}
2734+
if (!TeaUtils.Client.isUnset(request.dataSnapshotIds)) {
2735+
query["DataSnapshotIds"] = request.dataSnapshotIds ?? [];
2736+
}
27342737
if (!TeaUtils.Client.isUnset(request.description_)) {
27352738
query["Description"] = request.description_ ?? "";
27362739
}
@@ -11296,6 +11299,9 @@ open class Client : AlibabacloudOpenApi.Client {
1129611299
public func rebuildDesktopsWithOptions(_ request: RebuildDesktopsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RebuildDesktopsResponse {
1129711300
try TeaUtils.Client.validateModel(request)
1129811301
var query: [String: Any] = [:]
11302+
if (!TeaUtils.Client.isUnset(request.afterStatus)) {
11303+
query["AfterStatus"] = request.afterStatus ?? "";
11304+
}
1129911305
if (!TeaUtils.Client.isUnset(request.desktopId)) {
1130011306
query["DesktopId"] = request.desktopId ?? [];
1130111307
}

Sources/AlibabacloudEcd20200930/Models.swift

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10944,6 +10944,8 @@ public class CreateDiskEncryptionServiceResponse : Tea.TeaModel {
1094410944
public class CreateImageRequest : Tea.TeaModel {
1094510945
public var autoCleanUserdata: Bool?
1094610946

10947+
public var dataSnapshotIds: [String]?
10948+
1094710949
public var description_: String?
1094810950

1094910951
public var desktopId: String?
@@ -10977,6 +10979,9 @@ public class CreateImageRequest : Tea.TeaModel {
1097710979
if self.autoCleanUserdata != nil {
1097810980
map["AutoCleanUserdata"] = self.autoCleanUserdata!
1097910981
}
10982+
if self.dataSnapshotIds != nil {
10983+
map["DataSnapshotIds"] = self.dataSnapshotIds!
10984+
}
1098010985
if self.description_ != nil {
1098110986
map["Description"] = self.description_!
1098210987
}
@@ -11008,6 +11013,9 @@ public class CreateImageRequest : Tea.TeaModel {
1100811013
if dict.keys.contains("AutoCleanUserdata") {
1100911014
self.autoCleanUserdata = dict["AutoCleanUserdata"] as! Bool
1101011015
}
11016+
if dict.keys.contains("DataSnapshotIds") {
11017+
self.dataSnapshotIds = dict["DataSnapshotIds"] as! [String]
11018+
}
1101111019
if dict.keys.contains("Description") {
1101211020
self.description_ = dict["Description"] as! String
1101311021
}
@@ -21080,6 +21088,8 @@ public class DescribeDesktopGroupsResponseBody : Tea.TeaModel {
2108021088

2108121089
public var imageId: String?
2108221090

21091+
public var isLdap: Bool?
21092+
2108321093
public var keepDuration: Int64?
2108421094

2108521095
public var loadPolicy: Int64?
@@ -21217,6 +21227,9 @@ public class DescribeDesktopGroupsResponseBody : Tea.TeaModel {
2121721227
if self.imageId != nil {
2121821228
map["ImageId"] = self.imageId!
2121921229
}
21230+
if self.isLdap != nil {
21231+
map["IsLdap"] = self.isLdap!
21232+
}
2122021233
if self.keepDuration != nil {
2122121234
map["KeepDuration"] = self.keepDuration!
2122221235
}
@@ -21380,6 +21393,9 @@ public class DescribeDesktopGroupsResponseBody : Tea.TeaModel {
2138021393
if dict.keys.contains("ImageId") {
2138121394
self.imageId = dict["ImageId"] as! String
2138221395
}
21396+
if dict.keys.contains("IsLdap") {
21397+
self.isLdap = dict["IsLdap"] as! Bool
21398+
}
2138321399
if dict.keys.contains("KeepDuration") {
2138421400
self.keepDuration = dict["KeepDuration"] as! Int64
2138521401
}
@@ -24315,6 +24331,8 @@ public class DescribeDesktopsResponseBody : Tea.TeaModel {
2431524331

2431624332
public var imageId: String?
2431724333

24334+
public var isLdap: Bool?
24335+
2431824336
public var managementFlag: String?
2431924337

2432024338
public var managementFlags: [String]?
@@ -24496,6 +24514,9 @@ public class DescribeDesktopsResponseBody : Tea.TeaModel {
2449624514
if self.imageId != nil {
2449724515
map["ImageId"] = self.imageId!
2449824516
}
24517+
if self.isLdap != nil {
24518+
map["IsLdap"] = self.isLdap!
24519+
}
2449924520
if self.managementFlag != nil {
2450024521
map["ManagementFlag"] = self.managementFlag!
2450124522
}
@@ -24719,6 +24740,9 @@ public class DescribeDesktopsResponseBody : Tea.TeaModel {
2471924740
if dict.keys.contains("ImageId") {
2472024741
self.imageId = dict["ImageId"] as! String
2472124742
}
24743+
if dict.keys.contains("IsLdap") {
24744+
self.isLdap = dict["IsLdap"] as! Bool
24745+
}
2472224746
if dict.keys.contains("ManagementFlag") {
2472324747
self.managementFlag = dict["ManagementFlag"] as! String
2472424748
}
@@ -37634,6 +37658,8 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3763437658

3763537659
public var displayName: String?
3763637660

37661+
public var displayNameNew: String?
37662+
3763737663
public var endUserEmail: String?
3763837664

3763937665
public var endUserId: String?
@@ -37650,6 +37676,8 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3765037676

3765137677
public var userDesktopId: String?
3765237678

37679+
public var userPrincipalName: String?
37680+
3765337681
public var userSetPropertiesModels: [DescribeUsersInGroupResponseBody.EndUsers.UserSetPropertiesModels]?
3765437682

3765537683
public override init() {
@@ -37679,6 +37707,9 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3767937707
if self.displayName != nil {
3768037708
map["DisplayName"] = self.displayName!
3768137709
}
37710+
if self.displayNameNew != nil {
37711+
map["DisplayNameNew"] = self.displayNameNew!
37712+
}
3768237713
if self.endUserEmail != nil {
3768337714
map["EndUserEmail"] = self.endUserEmail!
3768437715
}
@@ -37703,6 +37734,9 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3770337734
if self.userDesktopId != nil {
3770437735
map["UserDesktopId"] = self.userDesktopId!
3770537736
}
37737+
if self.userPrincipalName != nil {
37738+
map["UserPrincipalName"] = self.userPrincipalName!
37739+
}
3770637740
if self.userSetPropertiesModels != nil {
3770737741
var tmp : [Any] = []
3770837742
for k in self.userSetPropertiesModels! {
@@ -37726,6 +37760,9 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3772637760
if dict.keys.contains("DisplayName") {
3772737761
self.displayName = dict["DisplayName"] as! String
3772837762
}
37763+
if dict.keys.contains("DisplayNameNew") {
37764+
self.displayNameNew = dict["DisplayNameNew"] as! String
37765+
}
3772937766
if dict.keys.contains("EndUserEmail") {
3773037767
self.endUserEmail = dict["EndUserEmail"] as! String
3773137768
}
@@ -37752,6 +37789,9 @@ public class DescribeUsersInGroupResponseBody : Tea.TeaModel {
3775237789
if dict.keys.contains("UserDesktopId") {
3775337790
self.userDesktopId = dict["UserDesktopId"] as! String
3775437791
}
37792+
if dict.keys.contains("UserPrincipalName") {
37793+
self.userPrincipalName = dict["UserPrincipalName"] as! String
37794+
}
3775537795
if dict.keys.contains("UserSetPropertiesModels") {
3775637796
var tmp : [DescribeUsersInGroupResponseBody.EndUsers.UserSetPropertiesModels] = []
3775737797
for v in dict["UserSetPropertiesModels"] as! [Any] {
@@ -42559,12 +42599,16 @@ public class ListDirectoryUsersResponseBody : Tea.TeaModel {
4255942599

4256042600
public var displayName: String?
4256142601

42602+
public var displayNameNew: String?
42603+
4256242604
public var email: String?
4256342605

4256442606
public var endUser: String?
4256542607

4256642608
public var phone: String?
4256742609

42610+
public var userPrincipalName: String?
42611+
4256842612
public override init() {
4256942613
super.init()
4257042614
}
@@ -42585,6 +42629,9 @@ public class ListDirectoryUsersResponseBody : Tea.TeaModel {
4258542629
if self.displayName != nil {
4258642630
map["DisplayName"] = self.displayName!
4258742631
}
42632+
if self.displayNameNew != nil {
42633+
map["DisplayNameNew"] = self.displayNameNew!
42634+
}
4258842635
if self.email != nil {
4258942636
map["Email"] = self.email!
4259042637
}
@@ -42594,6 +42641,9 @@ public class ListDirectoryUsersResponseBody : Tea.TeaModel {
4259442641
if self.phone != nil {
4259542642
map["Phone"] = self.phone!
4259642643
}
42644+
if self.userPrincipalName != nil {
42645+
map["UserPrincipalName"] = self.userPrincipalName!
42646+
}
4259742647
return map
4259842648
}
4259942649

@@ -42604,6 +42654,9 @@ public class ListDirectoryUsersResponseBody : Tea.TeaModel {
4260442654
if dict.keys.contains("DisplayName") {
4260542655
self.displayName = dict["DisplayName"] as! String
4260642656
}
42657+
if dict.keys.contains("DisplayNameNew") {
42658+
self.displayNameNew = dict["DisplayNameNew"] as! String
42659+
}
4260742660
if dict.keys.contains("Email") {
4260842661
self.email = dict["Email"] as! String
4260942662
}
@@ -42613,6 +42666,9 @@ public class ListDirectoryUsersResponseBody : Tea.TeaModel {
4261342666
if dict.keys.contains("Phone") {
4261442667
self.phone = dict["Phone"] as! String
4261542668
}
42669+
if dict.keys.contains("UserPrincipalName") {
42670+
self.userPrincipalName = dict["UserPrincipalName"] as! String
42671+
}
4261642672
}
4261742673
}
4261842674
public var nextToken: String?
@@ -43284,12 +43340,16 @@ public class ListOfficeSiteUsersResponseBody : Tea.TeaModel {
4328443340

4328543341
public var displayName: String?
4328643342

43343+
public var displayNameNew: String?
43344+
4328743345
public var email: String?
4328843346

4328943347
public var endUser: String?
4329043348

4329143349
public var phone: String?
4329243350

43351+
public var userPrincipalName: String?
43352+
4329343353
public override init() {
4329443354
super.init()
4329543355
}
@@ -43310,6 +43370,9 @@ public class ListOfficeSiteUsersResponseBody : Tea.TeaModel {
4331043370
if self.displayName != nil {
4331143371
map["DisplayName"] = self.displayName!
4331243372
}
43373+
if self.displayNameNew != nil {
43374+
map["DisplayNameNew"] = self.displayNameNew!
43375+
}
4331343376
if self.email != nil {
4331443377
map["Email"] = self.email!
4331543378
}
@@ -43319,6 +43382,9 @@ public class ListOfficeSiteUsersResponseBody : Tea.TeaModel {
4331943382
if self.phone != nil {
4332043383
map["Phone"] = self.phone!
4332143384
}
43385+
if self.userPrincipalName != nil {
43386+
map["UserPrincipalName"] = self.userPrincipalName!
43387+
}
4332243388
return map
4332343389
}
4332443390

@@ -43329,6 +43395,9 @@ public class ListOfficeSiteUsersResponseBody : Tea.TeaModel {
4332943395
if dict.keys.contains("DisplayName") {
4333043396
self.displayName = dict["DisplayName"] as! String
4333143397
}
43398+
if dict.keys.contains("DisplayNameNew") {
43399+
self.displayNameNew = dict["DisplayNameNew"] as! String
43400+
}
4333243401
if dict.keys.contains("Email") {
4333343402
self.email = dict["Email"] as! String
4333443403
}
@@ -43338,6 +43407,9 @@ public class ListOfficeSiteUsersResponseBody : Tea.TeaModel {
4333843407
if dict.keys.contains("Phone") {
4333943408
self.phone = dict["Phone"] as! String
4334043409
}
43410+
if dict.keys.contains("UserPrincipalName") {
43411+
self.userPrincipalName = dict["UserPrincipalName"] as! String
43412+
}
4334143413
}
4334243414
}
4334343415
public var nextToken: String?
@@ -53716,6 +53788,8 @@ public class RebootDesktopsResponse : Tea.TeaModel {
5371653788
}
5371753789

5371853790
public class RebuildDesktopsRequest : Tea.TeaModel {
53791+
public var afterStatus: String?
53792+
5371953793
public var desktopId: [String]?
5372053794

5372153795
public var imageId: String?
@@ -53740,6 +53814,9 @@ public class RebuildDesktopsRequest : Tea.TeaModel {
5374053814

5374153815
public override func toMap() -> [String : Any] {
5374253816
var map = super.toMap()
53817+
if self.afterStatus != nil {
53818+
map["AfterStatus"] = self.afterStatus!
53819+
}
5374353820
if self.desktopId != nil {
5374453821
map["DesktopId"] = self.desktopId!
5374553822
}
@@ -53759,6 +53836,9 @@ public class RebuildDesktopsRequest : Tea.TeaModel {
5375953836
}
5376053837

5376153838
public override func fromMap(_ dict: [String: Any]) -> Void {
53839+
if dict.keys.contains("AfterStatus") {
53840+
self.afterStatus = dict["AfterStatus"] as! String
53841+
}
5376253842
if dict.keys.contains("DesktopId") {
5376353843
self.desktopId = dict["DesktopId"] as! [String]
5376453844
}

0 commit comments

Comments
 (0)