Skip to content

Commit 1600f58

Browse files
committed
Update API DescribeInstanceAttribute: add response parameters Body.NetworkOptions.
1 parent a5549b3 commit 1600f58

File tree

4 files changed

+54
-5
lines changed

4 files changed

+54
-5
lines changed

ecs-20140526/AlibabacloudEcs20140526.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 = "AlibabacloudEcs20140526"
4-
spec.version = "5.0.7"
4+
spec.version = "5.0.8"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud Elastic Compute Service (20140526) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/ecs-20140526"

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/ecs-20140526" "5.0.7"
20+
github "alibabacloud-sdk-swift/ecs-20140526" "5.0.8"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/ecs-20140526" "5.0.7"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/ecs-20140526.git", from: "5.0.7")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/ecs-20140526.git", from: "5.0.8")
3030
]
3131
```
3232

ecs-20140526/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 `AlibabacloudEcs20140526` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/ecs-20140526" "5.0.7"
20+
github "alibabacloud-sdk-swift/ecs-20140526" "5.0.8"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/ecs-20140526.git", from: "5.0.7")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/ecs-20140526.git", from: "5.0.8")
3030
]
3131
```
3232

ecs-20140526/Sources/AlibabacloudEcs20140526/Models.swift

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54677,6 +54677,44 @@ public class DescribeInstanceAttributeResponseBody : Tea.TeaModel {
5467754677
}
5467854678
}
5467954679
}
54680+
public class NetworkOptions : Tea.TeaModel {
54681+
public var enableJumboFrame: Bool?
54682+
54683+
public var enableNetworkEncryption: Bool?
54684+
54685+
public override init() {
54686+
super.init()
54687+
}
54688+
54689+
public init(_ dict: [String: Any]) {
54690+
super.init()
54691+
self.fromMap(dict)
54692+
}
54693+
54694+
public override func validate() throws -> Void {
54695+
}
54696+
54697+
public override func toMap() -> [String : Any] {
54698+
var map = super.toMap()
54699+
if self.enableJumboFrame != nil {
54700+
map["EnableJumboFrame"] = self.enableJumboFrame!
54701+
}
54702+
if self.enableNetworkEncryption != nil {
54703+
map["EnableNetworkEncryption"] = self.enableNetworkEncryption!
54704+
}
54705+
return map
54706+
}
54707+
54708+
public override func fromMap(_ dict: [String: Any?]?) -> Void {
54709+
guard let dict else { return }
54710+
if let value = dict["EnableJumboFrame"] as? Bool {
54711+
self.enableJumboFrame = value
54712+
}
54713+
if let value = dict["EnableNetworkEncryption"] as? Bool {
54714+
self.enableNetworkEncryption = value
54715+
}
54716+
}
54717+
}
5468054718
public class OperationLocks : Tea.TeaModel {
5468154719
public class LockReason : Tea.TeaModel {
5468254720
public var lockReason: String?
@@ -54944,6 +54982,8 @@ public class DescribeInstanceAttributeResponseBody : Tea.TeaModel {
5494454982

5494554983
public var memory: Int32?
5494654984

54985+
public var networkOptions: DescribeInstanceAttributeResponseBody.NetworkOptions?
54986+
5494754987
public var operationLocks: DescribeInstanceAttributeResponseBody.OperationLocks?
5494854988

5494954989
public var publicIpAddress: DescribeInstanceAttributeResponseBody.PublicIpAddress?
@@ -54979,6 +55019,7 @@ public class DescribeInstanceAttributeResponseBody : Tea.TeaModel {
5497955019
try self.dedicatedHostAttribute?.validate()
5498055020
try self.eipAddress?.validate()
5498155021
try self.innerIpAddress?.validate()
55022+
try self.networkOptions?.validate()
5498255023
try self.operationLocks?.validate()
5498355024
try self.publicIpAddress?.validate()
5498455025
try self.securityGroupIds?.validate()
@@ -55056,6 +55097,9 @@ public class DescribeInstanceAttributeResponseBody : Tea.TeaModel {
5505655097
if self.memory != nil {
5505755098
map["Memory"] = self.memory!
5505855099
}
55100+
if self.networkOptions != nil {
55101+
map["NetworkOptions"] = self.networkOptions?.toMap()
55102+
}
5505955103
if self.operationLocks != nil {
5506055104
map["OperationLocks"] = self.operationLocks?.toMap()
5506155105
}
@@ -55169,6 +55213,11 @@ public class DescribeInstanceAttributeResponseBody : Tea.TeaModel {
5516955213
if let value = dict["Memory"] as? Int32 {
5517055214
self.memory = value
5517155215
}
55216+
if let value = dict["NetworkOptions"] as? [String: Any?] {
55217+
var model = DescribeInstanceAttributeResponseBody.NetworkOptions()
55218+
model.fromMap(value)
55219+
self.networkOptions = model
55220+
}
5517255221
if let value = dict["OperationLocks"] as? [String: Any?] {
5517355222
var model = DescribeInstanceAttributeResponseBody.OperationLocks()
5517455223
model.fromMap(value)

0 commit comments

Comments
 (0)